sirol81
Forum Replies Created
-
Forum: Plugins
In reply to: [Local Development] setting disappeared and not allowed in pagethanks man
Forum: Plugins
In reply to: [TS Poll - Survey, Versus Poll, Image Poll, Video Poll] Top Resulthi Jennyong,
obviously the better option is to wait for the official answer.
But if you feel like tampering a little, here I explain how to change and sort results by votes
https://www.ads-software.com/support/topic/sort-results-8/#post-16421296This is a great plugin and I could tweak it to my likings using effectively.
Forum: Plugins
In reply to: [TS Poll - Survey, Versus Poll, Image Poll, Video Poll] Sort Resultsthe function to edit is called tsp_get_sorted_answers
Forum: Plugins
In reply to: [TS Poll - Survey, Versus Poll, Image Poll, Video Poll] Sort Resultsif anybody needs this hack to sort results by number of votes, you can edit your file
/includes/class-ts_poll-function.php
around line 3509 change the UKSORT function with this new USORT one:
usort(
$ts_poll_answers_columned,
function($a, $b) {
return strcmp($b["Answer_Votes"], $a["Answer_Votes"]);
}
);Minor spelling fix:
‘options’ => array(
‘s’ => esc_attr__( ‘Second(es)‘, ‘tspoll’ ),
‘m’ => esc_attr__( ‘Minute(s)’, ‘tspoll’ ),
‘h’ => esc_attr__( ‘Hour(es)‘, ‘tspoll’ ),
‘d’ => esc_attr__( ‘Day(s)’, ‘tspoll’ ),
‘w’ => esc_attr__( ‘Week(s)’, ‘tspoll’ ),
‘y’ => esc_attr__( ‘Year(s)’, ‘tspoll’ ),
)it should be second(s) and hour(s), no (es)
Forum: Plugins
In reply to: [TS Poll - Survey, Versus Poll, Image Poll, Video Poll] Vote in a few daysis there a chance to have different shorter settings like 1minute 2minutes 3minutes 5minutes 10minutes 15minutes? thanks
I’m thinking about a numeric field with free number entry by the user and a dropdown to select the time measure (seconds – minutes – hours – days – weeks – months – years)
What I do to cleanup this malware (GD-LIB):
– delete /wp-content/mu-plugins/gd-lib.php (it’s not really a must-use plugin)
– edit wp-config.php and remove these entries:
* REMOVE THIS LINE : require_once(ABSPATH . ‘wp-content/mu-plugins/gd-lib.php’);
* REMOVE THIS WHOLE SECTION (otherwise it gives error 500)
/*if (function_exists(‘wp_remote_request’)) {
*wp_remote_request( “https://”.$_SERVER[‘HTTP_HOST’].”/gd-config.php”, array(
* ‘method’ => ‘BAN’,
* ‘headers’ => array(
* ‘Host’ => $_SERVER[‘HTTP_HOST’]
* )
* ) );
*}
*/Forum: Plugins
In reply to: [EZ SQL Reports Shortcode Widget and DB Backup] unserializefound this commented code in your source, it hinted me where to edit and obtain my specific item:
$report .= ‘<td>’.($value).'</td>’;//is_array(maybe_unserialize($value))?print_r(maybe_unserialize($value),1):
It shows that you were already working on something along the idea of using ‘maybe_unserialize’, thanks a lot!
Forum: Plugins
In reply to: [EZ SQL Reports Shortcode Widget and DB Backup] unserializeI need only an item of the array for my personal purposes. Is there a hook or something that I can use to customize your plugin for my needs? Could you provide a minimal example in order to learn where to hook my custom code? thanks
Forum: Plugins
In reply to: [Custom Content Shortcode] if field with WCKHello Eliot, thanks for the quick update.
With the syntax I provided it works wonderfully:[if field=dop]OK[else]KO[/if]
But it doesn’t work with this simpler syntax as in:
[if dop]OK[else]KO[/if]
It would be wonderful to have it working even with this syntax in a future update!
Thank you very much!!!