vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=122944)

Mixibiza 01-04-2008 05:29 AM

Thanks

TCE Killa 01-11-2008 09:48 PM

Is there away I can take the thanks and groans out of the postbits (where posts, age etc.. display)? thanks.

GTGT 01-15-2008 10:50 AM

The thank you button does not show up after I insstalled it? Do I have to do somethign more?

GTGT 01-15-2008 10:56 AM

WHere do I download the latest version?

GTGT 01-15-2008 04:16 PM

How can I make this text shorter?

The Following User Says Thank You to scoopz For This Useful Post:

marksimon 01-15-2008 09:44 PM

Hello,

I also installed the hack and want to translate it now. were can I do it?
Is it possible to translate the *.xml and load it up again or will these damage or delete something?

thanks for your answer,
Mark

Mancunian_Red 01-16-2008 01:56 AM

thanks for this it'll help keep the post boosting down

kimtown 01-16-2008 09:45 PM

When I go to download this it says:

Download Now

No Files Uploaded.

ftaclub 01-17-2008 03:20 PM

here also

kimtown 01-17-2008 03:33 PM

Quote:

Originally Posted by ftaclub (Post 1423171)
here also


Here it is ;) https://vborg.vbsupport.ru/showthrea...=165673&page=2

liwo 01-17-2008 07:20 PM

Quote:

Originally Posted by Abe1 (Post 1396588)
Can you please explain more.

I think I can explain that problem. In reputation.php, not only the reputation points of a user are updated, but also the reputationlevelid. That way, the reputation level of a user is updated instantly. You just give the reputation points, but do not update the reputationlevelid. So if a user gets 1000 reputation points by post thank you hack, but does not get any reputation the normal way, his reputationlevel will not update.

To fix this problem, a minor change to function add_thanks() is sufficent i think

PHP Code:

    if ($vbulletin->options['post_thanks_reputation'])
    {
        
$vbulletin->db->query_write("
            INSERT IGNORE INTO "
TABLE_PREFIX ."reputation
                (postid, userid, reputation, whoadded, reason, dateline)
            VALUES
                ('"
.$postinfo['postid']."', '".$postinfo['userid']."', '" $vbulletin->options['post_thanks_reputation'] . "', '" $vbulletin->userinfo['userid'] . "', '$vbphrase[post_thanks_thanked_post]', " TIMENOW ")
        "
);

        if (
$vbulletin->db->affected_rows() != 0)
        {
            
////////////////////////////////////////////////
            // BEGIN FIX
            ////////////////////////////////////////////////
            // Query copied from reputation.php
            // Determine this user's reputationlevelid.
            
$reputationlevel $vbulletin->db->query_first_slave("
                SELECT reputationlevelid
                FROM " 
TABLE_PREFIX "reputationlevel
                WHERE " 
. ($postinfo['reputation'] + $vbulletin->options['post_thanks_reputation']) . "  >= minimumreputation
                ORDER BY minimumreputation
                DESC LIMIT 1
            "
);
            
// I do not store the new reputation calculated for the query above and use it here again to avoid a potential race condition
            
$set_user_got .= ", reputation = " $vbulletin->options['post_thanks_reputation'] . " + reputation, reputationlevelid = " intval($reputationlevel['reputationlevelid']);
            
////////////////////////////////////////////////
            // END FIX
            ////////////////////////////////////////////////

        
}
    } 

I hope that small note helps you improving that great hack further!

BadgerDog 01-18-2008 10:26 AM

Hack has been generating errors.... :confused:

Here's a typical one ...

Quote:

Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT * FROM post_thanks WHERE postid IN () ORDER BY username ASC;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY username ASC' at line 1 Error Number : 1064
Date : Friday, January 18th 2008 @ 06:25:54 AM
Script : http://www.xxxxx.com/post_thanks.php...sing_ajax=1&p=
Referrer :
IP Address : xx.xx.xx.xxxx
Username : Badger
Classname : vB_Database
Some information XXX'd out for privacy...

Regards,
Badger

binevi 01-18-2008 11:30 PM

It's such a good hack.

Abe1 01-25-2008 01:08 AM

Quote:

Originally Posted by BadgerDog (Post 1423689)
Hack has been generating errors.... :confused:

Here's a typical one ...



Some information XXX'd out for privacy...

Regards,
Badger

Do you know where you are getting this error from? It seems like some is clicking to remove their thanks and the link is not good. The postID is not being sent. Please check the post thanks templates.

BadgerDog 01-25-2008 09:44 AM

Quote:

Originally Posted by Abe1 (Post 1428400)
Do you know where you are getting this error from? It seems like some is clicking to remove their thanks and the link is not good. The postID is not being sent. Please check the post thanks templates.

Ok, will check.... :up:

I haven't seen another one since I posted the message here ...

Thanks :)

Regards,
Badger

Hannan 01-26-2008 04:00 AM

Nice Mod, thanks

alphamarc 02-06-2008 02:40 PM

How do you change the VIEWS column to show the amount of thanks a thread has?

Because, we all know that the number of views a thread has doesn't mean anything compare to the amount of thanks it has. It would make it easier for users to find old quality threads when surfing the forum.

Thanks!

cookiepants 02-06-2008 06:37 PM

Can I set an additional 'thanks' button? For "job well done" or some such thing? How do I go about adding a button -- I can do the graphics, but is there a problem with having two "thanks" hacks on a forum?

:)

cookiepants 02-07-2008 01:38 AM

Is there anything besides the thank you and the groan hack? Or a "how to" for writing my own?

bchertov 02-07-2008 04:33 AM

Quote:

Originally Posted by alphamarc (Post 1437425)
How do you change the VIEWS column to show the amount of thanks a thread has?

Because, we all know that the number of views a thread has doesn't mean anything compare to the amount of thanks it has. It would make it easier for users to find old quality threads when surfing the forum.

Thanks!

This is a good idea! https://vborg.vbsupport.ru/external/2008/02/15.gif

However rather than having a forumdisplay column, I would suggest adding icon in the thread title column, ala the rating graphics, that shows up if there is any thanks for any post on the thread with tool tip with "Thread contains x posts that where thanked a total of Y times".

Note that thanks are registered on the post level rather than the thread level. Still it is easy enough to find out if any posts on that thread have been thanked.

cookiepants 02-08-2008 06:37 PM

Is it possible to remove the amount of thanks given in the postbit near the member's name?

Abe1 02-10-2008 09:10 PM

Quote:

Originally Posted by alphamarc (Post 1437425)
How do you change the VIEWS column to show the amount of thanks a thread has?

Because, we all know that the number of views a thread has doesn't mean anything compare to the amount of thanks it has. It would make it easier for users to find old quality threads when surfing the forum.

Thanks!

Thanks are on a POST basis, not a thread basis.

Abe1 02-10-2008 09:11 PM

Quote:

Originally Posted by cookiepants (Post 1439039)
Is it possible to remove the amount of thanks given in the postbit near the member's name?

Edit the template.

mystic10 02-12-2008 04:15 PM

i have question every time someone clicks that thanks button they dont see the link until they refresh the browser...any insight on that..what i can do please guide

Abe1 02-13-2008 12:33 AM

Quote:

Originally Posted by mystic10 (Post 1441536)
i have question every time someone clicks that thanks button they dont see the link until they refresh the browser...any insight on that..what i can do please guide

What link?

mystic10 02-13-2008 03:22 PM

what i mean to say is that they dont see the hidden contents till they refresh the page...i even installed the newer version yesterday still no show....members still have to refresh the page inorder to see the hidden content:(

CLF 02-16-2008 12:32 AM

Quote:

Originally Posted by rinkrat (Post 1414743)
My thank button is looped too and also the list of Thankers is after every post instead of just the first one! I managed to get rid of the multiple thanks by limiting thanks to the first post, but still the list of thankers is after EVERY POST in the thread which clutters the whole page.

How do I fix this?

Same problem here. It loops and then I limited to the first post but same as yours, the list of members that thanked is showing at the bottom of each post and it is sooo ugly.
Can somebody please help with this?
THANK YOU!

CLF 02-18-2008 08:36 PM

Quote:

Originally Posted by CLF (Post 1444155)
Same problem here. It loops and then I limited to the first post but same as yours, the list of members that thanked is showing at the bottom of each post and it is sooo ugly.
Can somebody please help with this?
THANK YOU!


:(:(:(

I guess I gotta quote myself and ask again if there's anyone who could help with this problem. Thank you.

Abe1 02-19-2008 10:25 PM

Quote:

Originally Posted by mystic10 (Post 1442243)
what i mean to say is that they dont see the hidden contents till they refresh the page...i even installed the newer version yesterday still no show....members still have to refresh the page inorder to see the hidden content:(

What part of my hack makes things hidden?

Abe1 02-19-2008 10:25 PM

Quote:

Originally Posted by CLF (Post 1444155)
Same problem here. It loops and then I limited to the first post but same as yours, the list of members that thanked is showing at the bottom of each post and it is sooo ugly.
Can somebody please help with this?
THANK YOU!

I Fixed it on your forum. Will be fixed in next release.

MissKalunji 02-19-2008 10:37 PM

Quote:

Originally Posted by Abe1 (Post 1446943)
I Fixed it on your forum. Will be fixed in next release.

ah great! i've been having that problem from day 1 but gave up :)

haytham 02-27-2008 05:56 PM

Quote:

Originally Posted by cavyspirit (Post 1046155)
In the MemberInfo template, this code:
<!-- Start Post Thank You Hack -->
<br />
$vbphrase[post_thanks_total_thanks]: <strong>$userinfo[post_thanks_user_amount]</strong>
<br />
<if condition="$userinfo[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$userinfo[post_thanks_thanked_posts_on] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$userinfo[post_thanks_thanked_times]" 2="$userinfo[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</td></tr>
<tr><td>
<a href="search.php?$session[sessionurl]do=findthanks&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_thanks_search_user]</phrase></a>
<!-- End Post Thank You Hack -->

Where was this in the instructions? I didn't find any instructions about this template edit.
The only edit instructions for this template was:

Open template: MEMBERINFO

find:
--------------------------------------------------------------------
<br />($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
</if>
</div>
</div>
</if>
--------------------------------------------------------------------

place AFTER:
--------------------------------------------------------------------
$template_hook[memberinfo_foruminfo]

???? I don't get it.

haytham 02-27-2008 05:59 PM

Quote:

Originally Posted by Dagoor (Post 1356101)
For those who couldnt have it show up. I fixed mine.
Here is the thing.

on some templates the mod doesnt automatically work.
you gotta go and follow the instruction that comes with the Template Edits for Custom Styles.txt file. and follow what it says.

for me MEMBERINFO and NAVBAR was already edited but not postbit_legacy and postbit. so i did those manually and its working now.

hope it works for you.

I did those but still nothing shows:mad:

haytham 02-29-2008 02:01 PM

I don't know what happened. Maybe net cache problem but it's fine now. Thank you.

sunnylikbeckham 03-02-2008 05:55 AM

no File Uploaded??????

Abe1 03-02-2008 05:55 PM

Quote:

Originally Posted by sunnylikbeckham (Post 1454965)
no File Uploaded??????

You dont know how to read?

haytham 03-03-2008 05:53 PM

Quote:

Originally Posted by sunnylikbeckham (Post 1454965)
no File Uploaded??????


Hey. Go here!
https://vborg.vbsupport.ru/showthread.php?t=165673

m.fink 03-09-2008 08:55 PM

hey!
i got this error:
Quote:

Parse error: syntax error, unexpected $end in /var/www/web1/html/includes/functions_post_thanks.php on line 403

the "evol" code is:
Quote:

if ($vbulletin->db->affected_rows() != 0)
{
$set_user_got .= ", reputation = reputation - ". $vbulletin->options[post_thanks_reputation] ."";
}
any sugestions?

Abe1 03-09-2008 11:51 PM

Quote:

Originally Posted by m.fink (Post 1461011)
hey!
i got this error:



the "evol" code is:


any sugestions?

Did you make any changes your self to the hook?

m.fink 03-10-2008 01:43 PM

no :)
i just downloaded the version that is in the first post and than the error comes up :/

i got vB 3.6.8


All times are GMT. The time now is 09:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02713 seconds
  • Memory Usage 1,852KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete