Benaceur
Forum Replies Created
-
THANKS
you can translate the plugin from this link:
https://translate.www.ads-software.com/projects/wp-plugins/restrict-usernames-emails-characters/
and choose the language, then click on: (Development (trunk)) and start translating
Forum: Plugins
In reply to: [news ticker benaceur] Hide after time not workingTry to purge the cache after saving the settings if you use a cache plugin.
Forum: Plugins
In reply to: [news ticker benaceur] How to disable footer ticker?Make sure you have chosen the correct settings:
1- Enable the shortcode -only manully- (on)2 – General settings:
- hide/show in -> Show in -> home (enabled)
Forum: Plugins
In reply to: [Restrict Usernames Emails Characters] Only numbersEdit this file:
wp-content\plugins\restrict-usernames-emails-characters\classes\classe_val.php
and in line 203 replace this:
if ( preg_match('/^[0-9]+$/i', $login ) || preg_match( '/^\+?\d+$/', $login ) || preg_match( '/^[0 -9]+$/i', $login ) && $this->options('p_space') != 'on' ) { if ( $__valid && $this->options('p_num') ) { $this->valid_num = true; return $_valid; } }
by:
if ( !preg_match('/^[0-9]+$/i', $login ) ) { if ( $__valid ) { $this->valid_num = true; return $_valid; } }
Forum: Plugins
In reply to: [Restrict Usernames Emails Characters] Only numberswordpress by default allows usernames with numbers only, our plugin allows you to not allow username to contain numbers only (Not allow use only numbers in the username)
Forum: Plugins
In reply to: [news ticker benaceur] Super Progressive WebI installed it on my local server but I can’t configure it, because in order for me to help you I have to try it on my computer (desktop)
try this:
add_filter("um_validation_safe_username_regex", function( $regex_username_safe){ $c = '??ü?'; $regex_username_safe = '|[^a-z0-9 _.\-@\\'. $c .']|i'; return $regex_username_safe; });
I’m sorry, but the plugin didn’t work for me, so I can’t fix the problem.
I activated the plugin to try it but did not find this option “manually enter the username” please give me an image
Forum: Plugins
In reply to: [news ticker benaceur] secondary title not showSorry for the late reply, you can translate via this link:
https://translate.www.ads-software.com/projects/wp-plugins/news-ticker-benaceur/dev/fa/default/
Once the translation is complete, notify the WordPress team for approval, via:
https://make.www.ads-software.com/polyglots/Forum: Plugins
In reply to: [news ticker benaceur] secondary title not showdon’t touch the plugin, add the line to your theme’s functions.php with this code certainly:
add_filter( 'ntb_title_filter_ben', function ( $title, $args, $recent_ntb ) { $has_secondary_title = function_exists( 'has_secondary_title' ) ? has_secondary_title($recent_ntb["ID"]) : ''; $get_secondary_title = function_exists( 'get_secondary_title' ) ? get_secondary_title($recent_ntb["ID"]) : ''; return $has_secondary_title ? '<p class="ntb14444l6gh"> '.$get_secondary_title .'</p><p class="ntb14444l6gh2">'. $title .'</p>' : $title; }, 10, 3 );
Forum: Plugins
In reply to: [news ticker benaceur] secondary title not showjust update the plugin (now 3.1.2) then add this line:
add_filter( 'ntb_filter_enable_ellipsis', '__return_false' );
above this code (previous):
add_filter( 'ntb_title_filter_ben', function ( $title, $args, $recent_ntb ) { $has_secondary_title = function_exists( 'has_secondary_title' ) ? has_secondary_title($recent_ntb["ID"]) : ''; $get_secondary_title = function_exists( 'get_secondary_title' ) ? get_secondary_title($recent_ntb["ID"]) : ''; return $has_secondary_title ? '<p class="ntb14444l6gh"> '.$get_secondary_title .'</p><p class="ntb14444l6gh2">'. $title .'</p>' : $title; }, 10, 3 );
plus the css certainly.
Forum: Plugins
In reply to: [news ticker benaceur] secondary title not showI understood you correctly, apply what I gave you and you will have the same result, with <p> you will have the same result as <br> (the second title is up and the title in down of the second title ).
Forum: Plugins
In reply to: [news ticker benaceur] secondary title not showI designed it like that every title in a line is better, so if you want to reverse it:
1- edit the file “wp-content\plugins\news-ticker-benaceur\style-anim\inc \scripts_1-0-2.js” and delete between “// ellipsis” and “// ellipsis”2- replace the code you have pasted in “functions.php” by:
add_filter( 'ntb_title_filter_ben', function ( $title, $args, $recent_ntb ) { $has_secondary_title = function_exists( 'has_secondary_title' ) ? has_secondary_title($recent_ntb["ID"]) : ''; $get_secondary_title = function_exists( 'get_secondary_title' ) ? get_secondary_title($recent_ntb["ID"]) : ''; return $has_secondary_title ? '<p class="ntb14444l6gh"> '.$get_secondary_title .'</p><p class="ntb14444l6gh2">'. $title .'</p>' : $title; }, 10, 3 );
3- in the plugin settings put this in “Style customization (css)”
.ntb14444l6gh {margin-top:18px !important;} .ntb14444l6gh, .ntb14444l6gh2 {line-height: 8px !important;}
and adjust according to your current theme.
-4 in the plugin settings in “Settings of style” change Height,Raise or lower the text (line-height),height (Title),Raise or lower the title (line-height) to 80 and in “Enable style of mobile (recommended)” change Height,Raise or lower the text (line-height) to 80.
finally clear the cache, and the browser cache “Ctrl+f5”
Forum: Plugins
In reply to: [news ticker benaceur] secondary title not show1- edit this file: wp-content/plugins/news-ticker-benaceur/get-news.php
and replace the line 15:$filter_title_ntb = apply_filters( 'ntb_title_filter_ben', $ntb_nm_expt_t, $args );
by:$filter_title_ntb = apply_filters( 'ntb_title_filter_ben', $ntb_nm_expt_t, $args, $recent_ntb );
2- Put this code in the file “functions.php” of your current theme:
add_filter( 'ntb_title_filter_ben', function ( $title, $args, $recent_ntb ) { $has_secondary_title = function_exists( 'has_secondary_title' ) ? has_secondary_title($recent_ntb["ID"]) : ''; $get_secondary_title = function_exists( 'get_secondary_title' ) ? get_secondary_title($recent_ntb["ID"]) : ''; return $has_secondary_title ? $get_secondary_title .': '. $title : $title; }, 10, 3 );