WordPress.org

Ready to get started?Download WordPress

Forums

Reaction Buttons
[resolved] Reaction Buttons - Change CSS of tagline? (16 posts)

  1. jillsays
    Member
    Posted 3 years ago #

    Love this plugin- it's exactly what I've been looking for!

    Quick question - how do I change the CSS of the tagline (Text above the reaction buttons?) I want to change the color and the font size and can't figure out where to do it.

    Thanks!

  2. Jakob Lenfers
    Member
    Plugin Author

    Posted 3 years ago #

    The class is reaction_buttons_tagline. Put something like the follwing in your styles css:

    div.reaction_buttons_tagline{
    color: #ff0000;
    font-size:
    }
  3. jillsays
    Member
    Posted 3 years ago #

    Thank you @Jakob42!

    I do have one more question. Does the plugin have the capability to take the reaction with the most clicks, and display that info on another page?

    For example, I am currently displaying the reactions on my SINGLE blog post page. I would like the reaction with the most clicks to appear on the blog index page.

    Basically, if the most popular reaction to a post is LOL, I'm trying to get only the LOL reaction to appear on the main page next to the link to the single blog post.

    Is that even possible?

  4. Jakob Lenfers
    Member
    Plugin Author

    Posted 3 years ago #

    At the moment it isn't. I'll put it on my todo list, but don't hold your breath, I don't have time for new features atm. :)

  5. jillsays
    Member
    Posted 3 years ago #

    Understood!

    I'm sorry to bother you with this, but I've been trying to fix this issue for 2 days straight and I don't know who else to ask.

    I had the Reaction Buttons working perfectly on my site, but I just switched servers and now it no longer showing the clicks instantly. When someone clicks a reaction button, the result doesn't show up until the page is refreshed.

    I restored built-in defaults, removed unused data, and even tried reinstalling, but it still won't show clicks instantly.

    Heres an example page.

    http://pophangover.com/?p=6048

    How can I fix this? I love your plug-in and want to keep supporting it, but I can't use it like this!

  6. Jakob Lenfers
    Member
    Plugin Author

    Posted 3 years ago #

    I tried to check it out and as far as I can tell, the javascript sends the request to increment the counter (which works), but it sends no reply. Can you find any errors in your webservers log? Some php errors for example?

    Just out of curiosity, is it working if you disable the use of cookies?

  7. jillsays
    Member
    Posted 3 years ago #

    I did disable cookies! And I even tried uninstalling and reinstalling the whole plugin.

    I will try to find an error log on my VPS but I don't even know where to look.

  8. Jakob Lenfers
    Member
    Plugin Author

    Posted 3 years ago #

    Well, Debian based systems usually have their apache logs in /var/log/apache/. The php stuffs winds up in an error.log

  9. jillsays
    Member
    Posted 3 years ago #

    I see this in my error logs:

    [Thu Sep 23 11:46:39 2010] [error] [client 199.59.33.127] PHP Fatal error: Call to undefined function json_encode() in /var/www/vhosts/pophangover.com/httpdocs/wp-content/plugins/reaction-buttons/reaction_buttons.php on line 412, referer: http://pophangover.com/?p=6026

  10. jillsays
    Member
    Posted 3 years ago #

    And also this:

    [Tue Sep 21 14:52:10 2010] [error] [client 76.208.137.98] PHP Fatal error: Call to undefined function json_decode() in /var/www/vhosts/pophangover.com/httpdocs/wp-content/plugins/reaction-buttons/reaction_buttons.php on line 67

  11. Jakob Lenfers
    Member
    Plugin Author

    Posted 3 years ago #

    You are missing json in your php installation. That might be due to the fact, that the php version is too old (<5.2.0) or that it was disabled during compile time (unsure why someone would do that).

    Your version and if json was enabled on your installation should be visible in phpinfo(): Create a file on the webserver with the following content and open it in a browser:

    <?php
    phpinfo();
    ?>
  12. jillsays
    Member
    Posted 3 years ago #

    This is the result - I have on idea what any of that means:

    http://pophangover.com/test.php

  13. Jakob Lenfers
    Member
    Plugin Author

    Posted 3 years ago #

    I'm really sorry, but your php version is just too old. 5.1.6 is over four years old... Maybe your hoster might consider updating. I know a ton of software that relies on at least 5.2...

  14. jillsays
    Member
    Posted 3 years ago #

    Jakob,
    you were exactly right - I had my host update the PHP version and now it works perfectly.

    I don't use widgets in our blog, so what would the PHP code be to directly place the "MOST CLICKED POSTS" somewhere in our sidebar?

    I look forward to implementing this across all of our blogs. Great work and thanks again.

  15. jillsays
    Member
    Posted 3 years ago #

    Is there a way to display the most clicked posts without using a widget?

    Anyone know?

  16. Jakob Lenfers
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry, I've been on vacation :D

    The funcion should be reaction_buttons_clicked_widget(). But you aren't able to set up the number of posts to be shown and I bet the default is too high... You can try to add a widget if its possible and set the value the way you like and delete it again. But if that doesn't work... well, then write and we'll see. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic