CheekyTourist
Forum Replies Created
-
Solixta,
Can you explain what you mean when you say
I just tried with INCLUDE to the original PHP file
?
Thanks!
Forum: Fixing WordPress
In reply to: Add comment count to a tableThanks Alchymyth,
Ok, I decided to try my hand at PHP. I put this code in my “index.php” file, right below
<?php get_header(); ?>This is what I came up with:
<?php if (is_page( '28878' )){ ?> <?php $data = array( '0' => array('Buffalo Dance Arts Studio', 'Specializes in Salsa and Cha Cha', '123 Seseme st, Buffalo, NY', 'Nancy Ortiz', '$num_comments = get_comments_number( $post->id == "249" ); // get_comments_number returns only a numeric value if ( comments_open() ) { if ( $num_comments == 0 ) { $comments = __('Be the first to review.'); } elseif ( $num_comments > 1 ) { $comments = $num_comments . __(' reviews'); } else { $comments = __('1 review'); } $write_comments = '<a href="' . get_comments_link( $post->id == "249" ) .'">'. $comments.'</a>'; } else { $write_comments = __('Comments are off for this post.'); }'), '1' => array('Rochester Ballet Co', 'Teaches Ballet to dancers of all ages', '470 Hudson Ave, Rochester, NY', 'Tim Walenti 789-323-3223', 'I WANT THE COMMENT CODE IN THIS CELL'), '2' => array('Rochester Ballet Co', 'Teaches Ballet to dancers of all ages', '470 Hudson Ave, Rochester, NY', 'Tim Walenti 789-323-3223', 'I WANT THE COMMENT CODE IN THIS CELL'), ); ?> <?php require_once 'HTML/Table.php'; $attrs = array('width' => '600'); $table = new HTML_Table($attrs); $table->setAutoGrow(true); $table->setAutoFill('n/a'); ?> <?php require_once 'HTML/Table.php'; $attrs = array('width' => '600'); $table = new HTML_Table(); $table->setAttributes($attrs); // [...] ?> <?php $table->setAttributes($attrs); // [...] for ($nr = 0; $nr < count($data); $nr++) { $table->setHeaderContents($nr+1, 0, (string)$nr); for ($i = 0; $i < 4; $i++) { if ('' != $data[$nr][$i]) { $table->setCellContents($nr+1, $i+1, $data[$nr][$i]); } } } ?> <?php $table->setHeaderContents(0, 0, ''); $table->setHeaderContents(0, 1, 'Studio/Dance Company Name'); $table->setHeaderContents(0, 2, 'Description'); $table->setHeaderContents(0, 3, 'Location'); $table->setHeaderContents(0, 4, 'Contact information'); $table->setHeaderContents(0, 5, 'Reviews'); $hrAttrs = array('bgcolor' => 'silver'); $table->setRowAttributes(0, $hrAttrs, true); $table->setColAttributes(0, $hrAttrs); ?> { ?> </div> <?php echo $table->toHtml(); ?> { ?>This is SUPPOSED to be a PHP table (with fake data for test purposes). But I can’t even get the table to load!
Can any of you code geniuses see why this code is not producing a result? I’m a newbie, so hopefully it will be something obvious. I am desperate. Thank you in advance!
Forum: Fixing WordPress
In reply to: Add comment count to a tableHi Alchymyth,
I’m using Verbage by organic themes, and this is the code:
<table border="1"> <tbody> <tr> <th>Studio Name</th> <th>Description</th> <th>Location</th> <th>Reviews</th> </tr> <tr> <td>Ballet Dance Academy</td> <td>Beginning and intermediate Ballet</td> <td>Buffalo, NY</td> <td></td> </tr> </tbody> </table>Thanks for your response!
BTW I reviewed that codex page, as well as this one
http://codex.wordpress.org/Template_Tags/get_comments_numberBut I don’t have a advanced enough understanding of coding to make use of that information. But it does seem like the answer is there!
Okay. Thanks for your super fast responses. I hope I can get this fixed so I can work with your amazing plugin!
Best wishes
Yes, that seems to be the problem – it works in Twenty Thirteen. Dare I ask – can this be fixed?
Hi Tobias,
Wow thanks for the fast response!
http://nydancesociety.com/table-testing/That worked perfectly! I thought I needed some kind of complex code. Thank you! 🙂
Forum: Plugins
In reply to: [WP FullCalendar] Displaying Events on Full CalendarCan someone please explain in simple terms how to get this plugin up and running? I know that BertvanDorp said it’s all in the docs but I reviewed them and really don’t understand how to display this calendar at all, let alone how to use it with Events Manager.
I downloaded the plugin. Activated it. Settings > Full Calendar Settings. Now I would like to display the calendar with Events from Events Manager. What do you do next? Keeping in mind that I do not use google calendar. Thanks!
Forum: Fixing WordPress
In reply to: Remove share buttons from a single pageZoonini- I experimented with a few of those and I found that sexybookmarks by shareaholic fixed my problem right away- I was able to edit the settings easily and get the share buttons on the posts, and out of my store. Thank you all very much for your help!
Forum: Fixing WordPress
In reply to: Remove share buttons from a single pageActually, if anybody knows how to do this with a different share button plug-in I would happily replace my current one.
Forum: Fixing WordPress
In reply to: Remove share buttons from a single pageRameshhelp
I still need help. My issue is not resolved.Forum: Fixing WordPress
In reply to: Remove share buttons from a single pageForum: Installing WordPress
In reply to: Can't access dashboard anymoreThis is advice from a novice, but I was in a similar jam less than 30 minutes ago, and I found a solution that was pretty easy and effective. It involves logging into your hosting site (mine is godaddy) and clicking on an option to restore your site to a previous date and time (before I did whatever I did to screw it up).
I logged into godaddy.com, went into the hosting control center, found “My SQL” under “Databases”. Identify the database you need to restore (you may only have one if have only one site) and look for some kind of Edit button, there’s got to be one somewhere. On Godaddy, it’s a button with a pen/pencil icon. Click on that, select restore, and it should undo whatever you did by mistake. Unfortunately, like all restore options, it may undo changes that you wanted to save, but I guess it’s still better than not being able to access your site!
Good luck 🙂
BTW I got the idea from this link- you may find this useful: