tcabrera
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-Table Reloaded] [Plugin: WP-Table Reloaded] Row randomizer via ExtensionThanks for looking into an unpopular feature. Everything’s looking good!
I at least had to buy you some lunch. It’s on its way…
Forum: Plugins
In reply to: [WP-Table Reloaded] [Plugin: WP-Table Reloaded] Row randomizer via ExtensionHi Tobias,
Thanks again for the quick response.
What you explained initially (rows were random but did not change at refresh) was exactly what was happening. And your explanation makes total sense now, thanks.
I upgraded one of my smaller sites to test it out and the weird thing now is that when I refresh the page, the rows randomize on both cache settings (checked or unchecked). So I don’t know what happened initially.
Thanks again for your help.
Once I get some income off my sites, I’ll be sure to donate again.
Thanks
TonyForum: Plugins
In reply to: [WP-Table Reloaded] [Plugin: WP-Table Reloaded] Row randomizer via ExtensionFound a 1.8 version on the WP page so I’m back to business.
But when you get a chance, please look into why the randomize row feature gets lost with 1.9.
Here’s the randomize row at work using the extension plugin.
http://www.chicagoweddingvenues.com/main/?page_id=956Let me know what other info you need from me.
Forum: Plugins
In reply to: [WP-Table Reloaded] [Plugin: WP-Table Reloaded] Random Row OptionEffen beautiful! That did the trick!
Awesome awesome awesome!
Not sure if this is useful for others, but it’s just what I need. If you want to see it in action, it’s here.
http://www.chicagoweddingvenues.com/main/?page_id=956Thanks again for being patient and such a huge help!
Forum: Plugins
In reply to: [WP-Table Reloaded] [Plugin: WP-Table Reloaded] Random Row OptionAwesome! The randomizer works great! And thanks agian for the fast response.
One more thing though, and I’m not sure if this is a big deal. But I want to make sure it’s not messing with any SEO coding on any page/post.
Whenever I update or create a page/post/plugin, I get this message in a blank white page. If it’s not a big deal, I can live with it.
“Warning: Cannot modify header information – headers already sent by (output started at /home1/lifeonpr/public_html/chicagoweddingvenues/main/wp-content/plugins/wp-table-reloaded-extensions.php:37) in /home1/lifeonpr/public_html/chicagoweddingvenues/main/wp-includes/pluggable.php on line 890”
Forum: Plugins
In reply to: [WP-Table Reloaded] [Plugin: WP-Table Reloaded] Random Row OptionUpdate –
I tried to edit the file within WordPress editor to see if my FTP is screwing with the file when transferred.
Now I’m getting a different error message when I try to activate the plugin. I’m getting this:
“Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ‘)'”
I’m running on PHP5.
Forum: Plugins
In reply to: [WP-Table Reloaded] [Plugin: WP-Table Reloaded] Random Row OptionThanks again for taking the time to do this.
You should have seen a donation come through under tony_cabrera via paypal.
I plan on adding to that once I can get this working.
So I’ve done everything on your extension instructions. But when I try to activate the plugin, it gives me this error on basically the first line of the extension code (on line 12 of the file below).
“Parse error: syntax error, unexpected T_FUNCTION”
I’ve tried looking at your 7 examples to see if I can compare figure out what’s causing the error, but no luck.
Here’s what I have on the php file. (without the dashes of course)
—————————————————————–
<?php
/*
Plugin Name: WP-Table Reloaded Extensions
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/extensions/
Description: Custom Extensions for WP-Table Reloaded
Version: 1.0
Author: YOU, Tobias Baethge
*/
// this is where the actual code goesfunction wp_table_reloaded_shuffle_table( $table, $orig_table, $this->output_options )
{
$list_of_random_tables = array( 2, 4, 5, ); // table IDsif ( ! in_array( $table[‘id’], $list_of_random_tables ) )
return $table;$array_to_shuffle = $table[‘data’];
if ( $this->output_options[‘first_row_th’] )
$first_row = array_shift( $array_to_shuffle );
if ( $this->output_options[‘table_footer’] )
$last_row = array_pop( $array_to_shuffle );shuffle( $array_to_shuffle );
if ( $this->output_options[‘first_row_th’] )
array_unshift( $array_to_shuffle, $first_row );
if ( $this->output_options[‘table_footer’] )
array_push( $array_to_shuffle, $last_row );$table[‘data’] = $array_to_shuffle;
return $table;
}
add_filter( ‘wp_table_reloaded_render_table’, ‘wp_table_reloaded_shuffle_table’, 10, 3 );
?>
—————————————————————–Forum: Plugins
In reply to: [WP-Table Reloaded] [Plugin: WP-Table Reloaded] Random Row OptionThanks so much for your reply.
I’m no programmer so I’d be willing to “donate” more for you to make me one!
Just give me a quote!