vb.org Archive

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

Abe1 11-12-2008 01:11 AM

Quote:

Originally Posted by richTV (Post 1659049)
a collapseable option would be nice :)

wouldn't work correctly.

Abe1 11-12-2008 01:13 AM

Quote:

Originally Posted by DiMoNd21 (Post 1660859)
Hi!

I have recently moved to another server I did a clean install of vbulletin 3.7.4 . So now there are two databases, one from the old forum and one from the new one. I used ImPEx and got all data from the old to the new one, but after installing this mod all posta-thanks counters of all members have gone away. I mean everyone has 0 thanks.. Is there any way to import the post_thanks data table from the old database to the new one so that everybody will have their number of thanks?

Thank you!

make sure you move the post_thanks table and then use the post thanks recounters.

Abe1 11-12-2008 01:14 AM

Quote:

Originally Posted by Loki12 (Post 1661514)
Hi, this is a great hack, thanks.

I have just one question:

How can I make the font smaller in the postbit, where it says: "The Following User Says Thank You to Hutten For This Useful Post" ??

I think this is too large, and too obtrusive.

you can edit the template or phrase. Wrap the text with <small>...</small>

Abe1 11-12-2008 01:16 AM

Quote:

Originally Posted by ShiZoPhreN (Post 1661675)
Hello Abe1, nice Hack and Thanks

Feature Request: Bump threads when any1 click "thanks" and this with exclude forumids or an option to disable/enable in forumids .. thats where nice.. :)

Thanks in Advance

Tried to do once but it wont work. The thread then didn't get marked as read.

Abe1 11-12-2008 01:18 AM

Quote:

Originally Posted by mmurtha (Post 1662250)
Hi Abe and all,

I just installed this Mod in VB 3.7.4 and came up with this database error:



The actual thanks show up under the users posts just fine, but I haven't been able to tell is they are accumulating yet.

I think I was the only one that used it before I shut the Mod off.

How can I fix this problem?

Thanks ...

Mary

Did you edit any of the post thanks templates?

calgarypuck 11-12-2008 01:19 AM

Nice mod! I think this will meet our desires with a small tweak.

I'm not overly familar with vB mods programming yet and I've been poking around the files, but I'm not sure if I can even get this info..

Basically I would like to remove the box below each post (postbit_end I guess is where it hooks) that has been thanked and instead have something in the user info (postbit_userinfo_right_after_posts hook maybe), and not a list of users but a count of thanks instead.

Easy to do maybe with a simple template modification and a phrase (not sure how phrases work yet)? Or would I have to modify the code of the add-on itself?

Thanks in advance.

EDIT: In the icon and title area would be better I think (for postbit legacy), there's no hook there though. Does that mean I couldn't do it, or just mean that I would have to modify my template?

Abe1 11-12-2008 01:20 AM

Quote:

Originally Posted by tnedator (Post 1662318)
I have been getting a MySQL error for a few days, on an off. Always related to Post_thanks. I am on 3.73, and yesterday updated from version 7.6 to 7.7 of post thanks to see if it would make a difference. It didn't.

This doesn't happen every time a thanks is given. Also, for comletely unrelated reasons my VPS was moved last night to a new hardware node, so this has happened on two different underlying hardware nodes.

I also optimized the MySQL tables to see if there was any issue there:

Database error in vBulletin 3.7.3:

Code:

Invalid SQL:

SELECT text, languageid, special
FROM phrase AS phrase
LEFT JOIN phrasetype USING (fieldname)
WHERE phrase.fieldname = 'frontredirect'
AND varname = 'reportthanks' AND languageid IN (-1, 0, 1);

MySQL Error  : MySQL server has gone away
Error Number  : 2006
Request Date  : Sunday, November 9th 2008 @ 08:39:06 AM
Error Date    : Sunday, November 9th 2008 @ 08:40:41 AM
Script        : http://www.broncosforums.com/forums/report.php?do=sendemail
Referrer      : http://www.broncosforums.com/forums/report.php?p=449534
IP Address    : removed
Username      : removed
Classname    : vB_Database
MySQL Version :


I'm sorry, but i dont see how that mysql has nothing to do with the post thanks hack.

Abe1 11-12-2008 01:31 AM

Quote:

Originally Posted by stuarttunstall (Post 1663607)
I get the same results, this does not show up for me either, in addition I cannot get it to dosplay under the username... the bit that states "thanked x times"

I am using vB 3.7.1 at the moment.. see here www.vwaudiforum.co.uk

Any ideas why? I need an alternative to the rep system..

No clue. I would have to check your acp.

Loki12 11-12-2008 08:53 AM

Quote:

Originally Posted by Abe1 (Post 1663933)
you can edit the template or phrase. Wrap the text with <small>...</small>

Can you be anymore specific please? I wrapped the postbit_legacy template with the code, nothing changes.

mmurtha 11-12-2008 09:58 AM

Quote:

Originally Posted by mmurtha
Hi Abe and all,

I just installed this Mod in VB 3.7.4 and came up with this database error:



The actual thanks show up under the users posts just fine, but I haven't been able to tell is they are accumulating yet.

I think I was the only one that used it before I shut the Mod off.

How can I fix this problem?

Thanks ...

Mary


Quote:

Originally Posted by Abe1 (Post 1663935)
Did you edit any of the post thanks templates?


Hi Abe,

No, the instructions didn't come with any template changes. I only did what the instructions said to do.

I do have a custom theme, and am using VB 3.7.4 fi that tells you anything.

Thanks ...

Mary

tnedator 11-12-2008 04:24 PM

Quote:

Originally Posted by Abe1 (Post 1663940)
I'm sorry, but i dont see how that mysql has nothing to do with the post thanks hack.

It was the "thanks" in "reportthanks" phrase which made me think it was related to the post thanks hack. As it is, it turns out that regardless of what the SQL statement was related to, it was an underlying problem with the VPS hardware node.

Sorry about that. Thanks for the great program. :up:

tester559 11-12-2008 08:10 PM

Ok, I have now got this to work.... sort off :)

In the default vB 3.7.1 skin, all features work, and it shows "thanked x in x posts", but in my custom skin, this wording does not appear under the username/stats on the left hand side in the postbit. All other features appear OK.

Do I need to add anything to my custom skin to make this appear? if so what do I need to add?

Thanks

Stuart

Fangs404 11-12-2008 10:59 PM

Quote:

Originally Posted by ShiZoPhreN (Post 1661675)
Hello Abe1, nice Hack and Thanks

Feature Request: Bump threads when any1 click "thanks" and this with exclude forumids or an option to disable/enable in forumids .. thats where nice.. :)

Thanks in Advance

Quote:

Originally Posted by Fangs404 (Post 1644660)
If anyone's curious, I figured this out myself using the Bump Threads mod. It's very simply to make hitting thanks bump the thread.

First, open post_thanks.php. Find this line:

PHP Code:

if ($_REQUEST['do'] == 'post_thanks_add'

Inside that if block, find this line:

PHP Code:

if ($using_ajax

Right above that line, add this small chunk of code:

PHP Code:

$threadman =& datamanager_init('Thread'$vbulletinERRTYPE_ARRAY'threadpost');
$threadman->set_existing($threadinfo);
$threadman->set('lastpost'TIMENOW);
$threadman->save(); 

The thread will now be bumped to the top upon hitting thanks. :)

A note to the mod writer: this is a handy feature, and it'd be trivial to add an option in the admin panel to enable/disable the bumping of threads upon hitting thanks. Love the plugin. :)

[edit]
By the way, I'm on a 3.7.3 PL1 install for what it's worth.

That what you're looking for?

DieselMinded 11-13-2008 12:42 AM

Does this version work for 3.7.4 ?

coolnikin 11-13-2008 03:22 PM

Quote:

Originally Posted by DiesellMinded (Post 1664577)
Does this version work for 3.7.4 ?

would also like to know the same :rolleyes:

adamskiii 11-13-2008 07:04 PM

Thank you for this wonderful mod :D. I have installed this on 3.7.4 version and works great. The only problem I have is when I set the Use Legacy (Vertical) Postbit Template option to yes the mod does not show up on the side but the thanks button is there. Any way to fix this so that the mod also shows up in the Vertical Position?

thanks

tester559 11-14-2008 07:51 PM

Quote:

Originally Posted by adamskiii (Post 1665091)
Thank you for this wonderful mod :D. I have installed this on 3.7.4 version and works great. The only problem I have is when I set the Use Legacy (Vertical) Postbit Template option to yes the mod does not show up on the side but the thanks button is there. Any way to fix this so that the mod also shows up in the Vertical Position?

thanks

Same problem...

Veer 11-15-2008 02:52 AM

Quote:

Originally Posted by Pehchaan (Post 1657737)
Hello Abe,

I have moved my cPanel server to another host, everything is working fine except the navigation settings link of Post Thank You Hack and some other hacks like that, when i click on "Post Thanks Settings" its getting blank.

I've re uploaded all files and product, but no result, can you guide me how to resolve this problem?

thanks.

Quote:

Originally Posted by Abe1 (Post 1663924)
Do you see the settings in the regular vb setting area?

Yes, I can see that in regular vb setting.

juanpablo 11-15-2008 05:18 PM

I would like to know the query or how can I delete all thanks (given and recived)... I like to restore all to 0. Thanks!

Talk-Pets 11-16-2008 07:39 AM

Quote:

Originally Posted by DiesellMinded (Post 1664577)
Does this version work for 3.7.4 ?

Quote:

Originally Posted by coolnikin (Post 1664948)
would also like to know the same :rolleyes:

Same here :)

Talk-Pets 11-16-2008 08:04 AM

I just tried it on my 3.7.4 board and the icon shows fine. But when you click at it it pops up and says "page not found" :confused:

I followed the instructions given and it shows fine in the admin cp..

Any suggestions to a newbie?

Skyline_GT 11-16-2008 09:22 PM

will you update this hack for 3.8?
https://vborg.vbsupport.ru/showthread.php?t=104845

adamskiii 11-16-2008 09:22 PM

what code do I add to make it show up for Use Legacy (Vertical) Postbit Template?

thanks

ForumsMods 11-16-2008 09:51 PM

Quote:

Originally Posted by Skyline_GT (Post 1667077)
will you update this hack for 3.8?
https://vborg.vbsupport.ru/showthread.php?t=104845

I should work perfectly.

Doomday 11-17-2008 01:47 PM

Is there anyway to hide the thanks button after a thread is closed? i really need this !!!!!!!!!

Bounce 11-17-2008 07:11 PM

Quote:

Originally Posted by shahryar_neo (Post 1646866)
but i know where is the problem because i had Post Thank You Hack version 7.6 and it's good but after that want to upgrade i overwrite the new javascript file with older and this is the problem . does anybody have "post_thanks.js" file from 7.6 ?

===================

My Problem Solved ! Just Download the older version from attachments and downgrade to that version ( replace the javascript file and upload xml file ( overwrite = Enable ) in Admin CP ...

Is this the fix, some of my users get the no permission error,will downgrading fix it ?

Talk-Pets 11-18-2008 05:10 AM

Quote:

Originally Posted by Talk-Pets (Post 1666653)
I just tried it on my 3.7.4 board and the icon shows fine. But when you click at it it pops up and says "page not found" :confused:

I followed the instructions given and it shows fine in the admin cp..

Any suggestions to a newbie?


Anyone? :erm:

Doomday 11-18-2008 03:11 PM

Quote:

Originally Posted by Doomday (Post 1667482)
Is there anyway to hide the thanks button after a thread is closed? i really need this !!!!!!!!!

pls man i really need this!!

anthroforum 11-18-2008 05:21 PM

I use postbit legacy with default skin.

Not thanks button. Checked source code, it's not even looking for the GIF.

Doomday 11-19-2008 01:48 PM

Quote:

Originally Posted by Doomday (Post 1668118)
pls man i really need this!!

:eek::eek:
Any news :(

anthroforum 11-20-2008 12:09 AM

How do I reduce the size of the "The Following User Says Thank You..." text?

Quote:

<phrasetype name="GLOBAL" fieldname="global">
<phrase name="post_thanks_already" date="0" username="" version=""><![CDATA[You have already said thank you for this post!]]></phrase>
<phrase name="post_thanks_remove" date="0" username="" version=""><![CDATA[Remove All]]></phrase>
<phrase name="post_thanks_remove_user" date="0" username="" version=""><![CDATA[Remove Your Thanks]]></phrase>
<phrase name="post_thanks_search" date="0" username="" version=""><![CDATA[Find All Thanked Posts]]></phrase>
<phrase name="post_thanks_search_user" date="0" username="" version=""><![CDATA[Find all thanked posts by {1}]]></phrase>
<phrase name="post_thanks_search_user_gave" date="1201233299" username="Abe" version=""><![CDATA[Find all posts thanked by {1}]]></phrase>
<phrase name="post_thanks_thanked_post" date="0" username="" version=""><![CDATA[Thanked Post]]></phrase>
<phrase name="post_thanks_thanks" date="0" username="" version=""><![CDATA[Thanks]]></phrase>
<phrase name="post_thanks_time_post" date="0" username="" version=""><![CDATA[Thanked 1 Time in 1 Post]]></phrase>
<phrase name="post_thanks_times_post" date="0" username="" version=""><![CDATA[Thanked {1} Times in 1 Post]]></phrase>
<phrase name="post_thanks_times_posts" date="0" username="" version=""><![CDATA[Thanked {1} Times in {2} Posts]]></phrase>
<phrase name="post_thanks_total_thanks" date="0" username="" version=""><![CDATA[Total Thanks]]></phrase>
<phrase name="post_thanks_user_says" date="0" username="" version=""><![CDATA[The Following User Says Thank You to {1} For This Useful Post:]]></phrase>
<phrase name="post_thanks_users_say" date="0" username="" version=""><![CDATA[The Following {1} Users Say Thank You to {2} For This Useful Post:]]></phrase>
</phrasetype>

GlamRockTalk 11-20-2008 03:14 AM

This mod ROCKS! :D

Thanks Abe!

Doomday 11-21-2008 01:26 PM

What happen with the support of this mod?please man i really need help!:confused::confused::(

tester559 11-23-2008 07:56 AM

Any chance of some help with this?

MediaHound 11-23-2008 01:36 PM

Doomday you need to find if there's some conditional operator for "if thread open" or "if thread closed".
And if not, create one. Not the best answer you were looking for but its a step in the right direction.. If you wrap the button code in a conditional to display it or not based on if the thread is open or closed, that should do the trick for you.

albibak 11-23-2008 02:29 PM

1 Attachment(s)
Tanks for this mod Abe1.
You can fin here the french translation for the version 7.7, and in attachement.

Doomday 11-23-2008 10:27 PM

Quote:

Originally Posted by MediaHound (Post 1671301)
Doomday you need to find if there's some conditional operator for "if thread open" or "if thread closed".
And if not, create one. Not the best answer you were looking for but its a step in the right direction.. If you wrap the button code in a conditional to display it or not based on if the thread is open or closed, that should do the trick for you.

i already try this and works the thank button disappear in thread closed but the hide content doesn't appear when i reply the message or thank it...
thats why i need the help of the creater of the mod but no answer from him...

Doomday 11-25-2008 12:25 AM

So far...So good...So what?

any answer from the creator of the mod?????????????

Doomday 11-26-2008 10:47 PM

hellooooooooooo :@ :@

albibak 11-27-2008 04:45 AM

Just wait, not necessary to post every day.
He answers you whan he can.


All times are GMT. The time now is 01:13 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.03281 seconds
  • Memory Usage 1,859KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (26)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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