Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter jaycee1981

    (@jaycee1981)

    okay i just updated to 1.1. Thank you!

    Another question is that how can i move up “thank you” to the beginning of the post?

    Because it’s displaying now at the end of the post under my social bookmars, and almost invisible for the users.

    Thread Starter jaycee1981

    (@jaycee1981)

    Hmmm, the fact is that it does not work properly for me. Sometimes it shows up that thanks pic, but after refreshing page or re-load the site later it doesn’t show

    Plugin Author Nulled_Icode

    (@nulled_icode)

    The plguin is still in development which doesn’t mean it will fit in any theme. I will be working on it. But in order to help me figure your problem could you please show a screen shot ?

    Thread Starter jaycee1981

    (@jaycee1981)

    Okay, of course i can show you a screenshot, but you won’t see anything ’cause it does not show anymore:-(((

    When i updated the plugin to 1.1 then it show only one time. After some minutes later it disappeared………… so i saw it only one time

    Plugin Author Nulled_Icode

    (@nulled_icode)

    Also regrading the Location of the thanks post.

    Append – Comes after the post
    Prepend – Comes before the post.
    Inside Post – Inside Post …(In new version 1.2 tobe released).

    Thread Starter jaycee1981

    (@jaycee1981)

    Nulled_Icode, i just figured out something:

    So, when you are on index, homepage – there’s no any Thank button

    But when u enter in a post/entry then there’s thank.

    I wish it could show on index page too on every entries…..

    Anyway, thanx for your hard work! Good job!

    Plugin Author Nulled_Icode

    (@nulled_icode)

    Hey,

    I did add in 1.2 which includes also a theme option which you add by your own.

    Be updated soon .

    Thread Starter jaycee1981

    (@jaycee1981)

    Hey, Thanx for the update!

    I tried Theme option with $thx->thank_theme();

    but im not a code genius ?? so i just put this $thx->thank_theme(); into index.php but no results i suppose i need to add some code more just don’t know exactly what.

    Plugin Author Nulled_Icode

    (@nulled_icode)

    <?php $thx->thank_theme(); ?> this will show the text.

    Thread Starter jaycee1981

    (@jaycee1981)

    Thank you so much!

    Thread Starter jaycee1981

    (@jaycee1981)

    I found a small bug:

    When i click on “This post was thanked 0 times. Thank it ?
    ” it works but jump up to the top of the page. Or is just me?

    Plugin Author Nulled_Icode

    (@nulled_icode)

    Yes i know about it.. it’s not a bug..but the fact that i added # in the href which automatically takes you up . Next version it’s off.

    Fabregus

    (@fabregus)

    Hi there,Nulled_Icode.
    Thank you for you very helpful plugin.
    One question: Is there a way so that i can use php code to parse ONLY the number of thanks on every post?I want it to be visible in every post’s preview (before user clicks the thread),so that it mentions the author,the number of comments and the number of thanks to each post’s header.Thank you in advance.

    Nulled_Icode, thank you so much for making this plugin public. I’ve never ventured to write a plugin, but you made it so clear and simple I’ve actually understood how to use wp,php,js,sql. I’m now modifying your thank post plugin into a voting plugin – giving people the opportunity to vote YES or NO on a certain post (like a motion to approve something by a board of directors). It’s going good so far.

    Once again, thank you for writing clean code, and for sharing it freely. I’ll let you know once my modifications are done.

    @fabregus,

    Here’s a hint for you:

    function get_thanks (){
    			global $wpdb,$post;
    			$table = $wpdb->prefix.$this->table;
    			$thanks = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM $table WHERE post_id='$post->ID' "));
    
    			return $thanks;
    
    		}

    You can actually make the same mySQL inquiry anywhere inside wordpress as long as you call global $wpdb. The most important line in that code above is this:
    SELECT COUNT(*) FROM $table WHERE post_id='$post->ID'
    That’s a mySQL query that will count all entries that have your current post’s ID attached to it. $table should be wp_thank if you have not changed prefix when you set up wordpress. Hope this helps you out.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘thank-post does not show anything’ is closed to new replies.