vb.org Archive

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

jancarlo 12-31-2009 01:43 PM

1 Attachment(s)
I come out a mess thanks :confused:

AzzidReign 12-31-2009 02:34 PM

One of the best hacks ever! Thanks for updating quickly!

hmedi 12-31-2009 02:59 PM

Quote:

Originally Posted by sigh (Post 1943364)
We are also having this problem, as quoted. Every time a user clicks the "Thanks" button the page reloads. I don't think this is intended behaviour - any suggestions on fixing it?

We are using vB4 PL1, default style with some colour modifications.

Thanks!


The same problem


Thank you for the nice hak:)

garretbyrne 12-31-2009 04:20 PM

I've tried to install but came across an issue.. I had this mod back in 3.8.4 and my members love it was being well used.. but had to uninstall all the mods because of an issue upgrading to 4 (I'm aware I might have lost previous thanks count) but now when I install I get an SQL error..

------------------
Database error in vBulletin 4.0.0:

Invalid SQL:
ALTER TABLE `user` ADD `post_thanks_user_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL;

MySQL Error : Duplicate column name 'post_thanks_user_amount'
Error Number : 1060
Request Date : Thursday, December 31st 2009 @ 06:06:50 PM
Error Date : Thursday, December 31st 2009 @ 06:06:51 PM
Script : http://www.irishparanormal.org/admin...=productimport
Referrer : http://www.irishparanormal.org/admin...?do=productadd
IP Address : 79.97.12.86
Username : Garret
Classname : vB_Database
MySQL Version : 5.0.85-community
------------------

Is there any ideas on how to fix this?? Because I really like this thanks..

dodgeboard.com 12-31-2009 04:30 PM

Any updates on the post groan addition to this?

We use this hack a little differently on our forums. I had converted the phrases to AGREE (for post thanks) and DISAGREE (for post groan).

This allowed other members of the forums to agree or disagree on a topic without actually cluttering the forums with short posts.

Worked very well.

I would install and support this hack, once the other half is available. :D

Thanks for all your work thus far.

dmart 12-31-2009 05:15 PM

Quote:

Originally Posted by S4RFamily (Post 1943380)
I see that the mod have 2 buttons image but i dont see it when installed. Just "Thank" text :)
How enable it, master :)


Same prob here anyone know how to get the thumb images to show next to the text ?

huuquynh 12-31-2009 05:21 PM

Sometime, I got this error:

Database error in vBulletin 4.0.0:

Invalid SQL:

REPLACE INTO vb_search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
VALUES (0, '67.195.112.188', 1, 'Clue', '', 'post.dateline', 'DESC', 0.00284, 1, '1364950,1364429,1364397', 1262286103, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{} s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:1587;s:4 :\"Clue\";}s:6:\"forums\";i:0;s:7:\"options\";a:3: {s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1 ;s:6:\"action\";s:7:\"process\";}}', '5ccd1105ee3bae40ab83b817fe6f2f0a');

MySQL Error : Table 'my_forum.vb_search' doesn't exist
Error Number : 1146
Request Date : Friday, January 1st 2010 @ 02:01:43 AM
Error Date : Friday, January 1st 2010 @ 02:01:43 AM
Script : http://mydomain.com/post_thanks.php?...er_gave&u=1587

What is wrong? I can not find the table vb_search in my forum's database.

vulture 12-31-2009 06:50 PM

Quote:

Originally Posted by garretbyrne (Post 1943487)
I've tried to install but came across an issue.. I had this mod back in 3.8.4 and my members love it was being well used.. but had to uninstall all the mods because of an issue upgrading to 4 (I'm aware I might have lost previous thanks count) but now when I install I get an SQL error..

------------------
Database error in vBulletin 4.0.0:

Invalid SQL:
ALTER TABLE `user` ADD `post_thanks_user_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL;

MySQL Error : Duplicate column name 'post_thanks_user_amount'
Error Number : 1060
Request Date : Thursday, December 31st 2009 @ 06:06:50 PM
Error Date : Thursday, December 31st 2009 @ 06:06:51 PM
Script : http://www.irishparanormal.org/admin...=productimport
Referrer : http://www.irishparanormal.org/admin...?do=productadd
IP Address : 79.97.12.86
Username : Garret
Classname : vB_Database
MySQL Version : 5.0.85-community
------------------

Is there any ideas on how to fix this?? Because I really like this thanks..

See my post. The install script is coded incorrectly are far as I'm concerned as it doesn't take into account if you are doing an upgrade.

Edit: as you uninstalled, you should really check if all the alterations made by the script are in you db. If not, you need to change the install accordingly.

LuckyNeo 12-31-2009 07:33 PM

Awesome! Thank you, VERY MUCH for this hack!;)

imagirlgeek 12-31-2009 08:46 PM

Quote:

Originally Posted by huuquynh (Post 1943511)
Sometime, I got this error:

Database error in vBulletin 4.0.0:

Invalid SQL:

REPLACE INTO vb_search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
VALUES (0, '67.195.112.188', 1, 'Clue', '', 'post.dateline', 'DESC', 0.00284, 1, '1364950,1364429,1364397', 1262286103, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{} s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:1587;s:4 :\"Clue\";}s:6:\"forums\";i:0;s:7:\"options\";a:3: {s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1 ;s:6:\"action\";s:7:\"process\";}}', '5ccd1105ee3bae40ab83b817fe6f2f0a');

MySQL Error : Table 'my_forum.vb_search' doesn't exist
Error Number : 1146
Request Date : Friday, January 1st 2010 @ 02:01:43 AM
Error Date : Friday, January 1st 2010 @ 02:01:43 AM
Script : http://mydomain.com/post_thanks.php?...er_gave&u=1587

What is wrong? I can not find the table vb_search in my forum's database.

I see this too. Anyone know what I need to change to stop it?

Charlie98902 12-31-2009 08:52 PM

Quote:

Originally Posted by imagirlgeek (Post 1943607)
I see this too. Anyone know what I need to change to stop it?

See this post. The install script is coded incorrectly are far as I'm concerned as it doesn't take into account if you are doing an upgrade.

SledgeHead 12-31-2009 09:44 PM

Image isn't working for me. All that shows is the word Thanks.

rbc 12-31-2009 09:52 PM

thanks -
i did an update and it works perfect :)
happy new yeahr

barcena 12-31-2009 09:57 PM

Do I have to use FTP to install this mod or only the XML file will do it?

Thanks in advance

gbechtel 12-31-2009 10:15 PM

Quote:

Originally Posted by jancarlo (Post 1943382)
I come out a mess thanks :confused:


I had the same issue, both these mods will cause the mess you speak of...

https://vborg.vbsupport.ru/showthread.php?t=228673

https://vborg.vbsupport.ru/showthread.php?t=230901

Not sure what the conflict is but disabling them fixed the problem with the duplications.

hendri 12-31-2009 10:15 PM

why the icon not show up ?

hendri 12-31-2009 10:20 PM

Quote:

Originally Posted by nightbloom (Post 1943084)
vb.org needs a thanks button....

Thanks, I was pulling my hair out trying to make this work.

thanks bro. i use your edit now look good and the icons show up already.

hendri 12-31-2009 10:22 PM

why come out " cannot find phrase post thanks " everytime click thanks ?

Charlie98902 12-31-2009 10:25 PM

Quote:

Originally Posted by barcena (Post 1943627)
Do I have to use FTP to install this mod or only the XML file will do it?

Thanks in advance

You have to upload all the files within this hack to make it work.

Charlie98902 12-31-2009 10:26 PM

Quote:

Originally Posted by gbechtel (Post 1943631)
I had the same issue, both these mods will cause the mess you speak of...

https://vborg.vbsupport.ru/showthread.php?t=228673

https://vborg.vbsupport.ru/showthread.php?t=230901

Not sure what the conflict is but disabling them fixed the problem with the duplications.

I use the first link and my forum is working great.

Charlie98902 12-31-2009 10:27 PM

Quote:

Originally Posted by hendri (Post 1943632)
why the icon not show up ?

You didn't upload the images to the right path I bet.

Quote:

Originally Posted by hendri (Post 1943638)
why come out " cannot find phrase post thanks " everytime click thanks ?

Sounds like some files aren't there or in the wrong place.

hendri 12-31-2009 10:52 PM

Quote:

Originally Posted by Charlie98902 (Post 1943641)
You didn't upload the images to the right path I bet.



Sounds like some files aren't there or in the wrong place.

images all upload nice ly.. it settle already after i change the template according to post bit legacy.


all the files in the right place. that one not an issue. i triple checked and triple upload already.

so what is the problem why keep finding post_thanks phrase ?

vulture 12-31-2009 10:54 PM

Quote:

Originally Posted by Charlie98902 (Post 1943608)
See this post. The install script is coded incorrectly are far as I'm concerned as it doesn't take into account if you are doing an upgrade.

That issue isn't resolved by my post. Looks like the table/field doesn't exit.

dmart 12-31-2009 11:38 PM

Quote:

Originally Posted by Charlie98902 (Post 1943641)
You didn't upload the images to the right path I bet.

you bet wrong Charlie98902

Images in the right path....

garretbyrne 01-01-2010 01:34 AM

Quote:

Originally Posted by vulture (Post 1943550)
See my post. The install script is coded incorrectly are far as I'm concerned as it doesn't take into account if you are doing an upgrade.

Edit: as you uninstalled, you should really check if all the alterations made by the script are in you db. If not, you need to change the install accordingly.

Hi Vulture that didn't work for me.. I even went into my SQL and deleted the post_thanks (I made a backup first of course, lol) but that gave me the same issue I've also looked through the DB and can't find post_thanks_user_amount so don't know why I'm getting this error..

[EDIT] Was looking in the wrong place.. I removed the two issues and imported fine..

Cheers

mtlcore 01-01-2010 01:39 AM

Is there way to edit the number of thanked and thanks for specific users? Because once you delete a thread, the thanks go with it...

garretbyrne 01-01-2010 02:39 AM

I would love to know also so I can put the thanks count back up also..

Darkimmortal 01-01-2010 03:05 AM

Code:

<style type="text/css">
.postbitlegacy .postfoot .textcontrols a.quickreply, .postbit .postfoot .textcontrols a.post_thanks_button  {
    background: url({vb:stylevar imgdir_button}/post_thanks.png) no-repeat transparent {vb:stylevar left};
    padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.quickreply:hover, .postbit .postfoot .textcontrols a.post_thanks_button:hover  {
    background: url({vb:stylevar imgdir_button}/post_thanks-hover.png) no-repeat transparent {vb:stylevar left};
</style>

a.quickreply? :p

Huy Ho?ng 01-01-2010 03:28 AM

work with the vbb3.8 not?

carrlos 01-01-2010 04:09 AM

Quote:

Originally Posted by Abe1 (Post 1942963)
Yes, it is very simple. Install the new version of post thanx hack. remove the post_thanks table from your database an replace it with the one from a backup. Run the re-counters in the ACP.

Which counters do I run?? :rolleyes:

fi3ryfalc0nZ 01-01-2010 04:36 AM

Hey, I've got an extra separator after clicking on Thanks. I saw another post about it, about 10 pages earlier, but it wasn't solved.

garretbyrne 01-01-2010 04:48 AM

To bring up the post count you can go into your SQL DB and find "user" then you find the user you wish to edit and then you click edit (Pencil Image) and go to the bottom to where you can see "post_thanks_*****" then add in the value you wish click save.. you've now just changed the post count for that user.. BUT BE WARNED if you don't know what your doing I would recommend NOT going into the SQL DB one mistake and mess everything up on your site, but if you wish to go ahead make a backup.

G :)

carrlos 01-01-2010 05:33 AM

Quote:

Originally Posted by garretbyrne (Post 1943748)
To bring up the post count you can go into your SQL DB and find "user" then you find the user you wish to edit and then you click edit (Pencil Image) and go to the bottom to where you can see "post_thanks_*****" then add in the value you wish click save.. you've now just changed the post count for that user.. BUT BE WARNED if you don't know what your doing I would recommend NOT going into the SQL DB one mistake and mess everything up on your site, but if you wish to go ahead make a backup.

G :)

Under the "user" table I see the following (amongst others):
post_thanks_user_amount
post_thanks_thanked_posts
post_thanks_thanked_times

I don't see user names anywhere. How do I export those 3 fields and import them into my other database? I have already successfully added the post_thanks table but I'm still getting all zero's for the counts.

Edit:
Found each individual user. It would be too much work to change the counts manually. I want each person to retain their count and I want the threads to reflect who gave "thanks" as it did before I upgraded.

garretbyrne 01-01-2010 05:46 AM

Under "User" in PHPAdmin click on Browse and then select your username.. Then in there down at the bottom of the list you'll see all of those three..

carrlos 01-01-2010 05:54 AM

Quote:

Originally Posted by garretbyrne (Post 1943772)
Under "User" in PHPAdmin click on Browse and then select your username.. Then in there down at the bottom of the list you'll see all of those three..

I have too many members to update manually. Isn't there an easier way? I imported the post_thanks table but everyone's count is still zero (0).

ddaybofb 01-01-2010 05:54 AM

I have the same problem with some other people here.

When i click Thanks the page reloads.

garretbyrne 01-01-2010 06:09 AM

1 Attachment(s)
I've just noticed a problem on my side. When I click thanks on a user it shows up as thanks: 1 for everyone.. then when I go into a thread that has a few people the thanks below the image doubles for every user..

So If i was 1: there would be one thanks, 2: post thee would be two thanks, 3: post there would be 3 thanks.. if it's not clear I'll attach a photo.

Dr.osamA 01-01-2010 06:43 AM

Button image missing in the postbit_legacy

as ather her
________
RHODE ISLAND MEDICAL MARIJUANA DISPENSARY

huuquynh 01-01-2010 08:35 AM

Quote:

Originally Posted by vulture (Post 1943550)
See my post. The install script is coded incorrectly are far as I'm concerned as it doesn't take into account if you are doing an upgrade.

Edit: as you uninstalled, you should really check if all the alterations made by the script are in you db. If not, you need to change the install accordingly.


Thanks for your help!

However, I need to make it clear by steps:

1. uninstall the current product.
2. modify the script as your post.
3. install again.

Right?

I don't know how to "check if all the alterations made by the script are in you db. If not, you need to change the install accordingly.". Please show me the best way to do. Sorry becuase my bad English!

Many thanks and Happy New Year!

jancarlo 01-01-2010 08:45 AM

1 Attachment(s)
why do not I see pictures of the big toe :confused:. Thanks!


All times are GMT. The time now is 04:39 PM.

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.02570 seconds
  • Memory Usage 1,847KB
  • 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
  • (19)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