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)

Hornstar 04-20-2007 07:15 AM

Quote:

Originally Posted by Abe1 (Post 1226657)
Anyway to figure out why on that page only?

im sure the answer you are looking for would be on that page somewhere. because it has the error at the top of the page, and you can see what exactly is displayed on that page. So maybe it doesnt like when certain things occur on a page?


also here is another problem im having, which is the reason i upgraded ^^

BUG

The delete all of a users thanks feature in the admincp is not working. it says it deletes them, but when i refresh the page where that user had thanked everyone, their thanks are still there.

is this occurring for anyone else? because it is not doing anything on mine.

here is a screen shot to show that it is processing it, but then when i check to see if the thanks are gone, they're still there.

bjhuang 04-24-2007 03:06 PM

it seems like this hack adds one query to each "post". in my showthread.php, there are 15 posts per page. 12 queries without this hack, and 27 queries with this hack enabled.



Quote:

Originally Posted by Abe1 (Post 1227961)
One query to each showthread and showpost page.


Abe1 04-24-2007 04:45 PM

Quote:

Originally Posted by bjhuang (Post 1234721)
it seems like this hack adds one query to each "post". in my showthread.php, there are 15 posts per page. 12 queries without this hack, and 27 queries with this hack enabled.

It should only be one. Any way I can have a look around? Do you have the latest version?

bjhuang 04-25-2007 02:56 AM

i've found some hints.

if there're more than one thanks in the "page", it adds only one query. but if there is no thanks at all for the posts of the page, it adds one query per post.

the problem is that you forgot to set $act to be ture after the db query in fetch_thanks()

Quote:

Originally Posted by Abe1 (Post 1234790)
It should only be one. Any way I can have a look around? Do you have the latest version?


Abe1 04-25-2007 12:15 PM

Quote:

Originally Posted by bjhuang (Post 1235080)
i've found some hints.

if there're more than one thanks in the "page", it adds only one query. but if there is no thanks at all for the posts of the page, it adds one query per post.

the problem is that you forgot to set $act to be ture after the db query in fetch_thanks()

I thought I did do something to prevent it. I will look into it.

fn9mm 04-25-2007 06:21 PM

After migrating to another server, i got this error on ALL my tables including VB_post_thanks table
Code:

Database error in vBulletin 3.6.5:

Invalid SQL:

INSERT INTO vb_post_thanks
(userid, username, date, postid)
VALUES
('1', 'fn9mm', 1177527910, 15285);

MySQL Error  : Duplicate entry '0' for key 1
Error Number : 1062
...

I was able to fix these duplicate entry errors by running the query mentioned by VBulletin.com here : http://www.vbulletin.com/docs/html/mysql_duplicatekey

However, if I apply the same query for the vb_post_thanks table, it doesn't change a thing,
EDIT, this is the query I ran
Code:

ALTER TABLE `vb_post_thanks` CHANGE `id` `id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT;
i keep getting those erros everytime I push the 'thank you' button.

I'm sure it's data corruption due to server migration, I allready tried to delete the table and import from backup from previous server, but this doesn't help either

what am I missing here ...?

Abe1 04-29-2007 07:57 PM

Quote:

Originally Posted by fn9mm (Post 1235371)
After migrating to another server, i got this error on ALL my tables including VB_post_thanks table
Code:

Database error in vBulletin 3.6.5:

Invalid SQL:

INSERT INTO vb_post_thanks
(userid, username, date, postid)
VALUES
('1', 'fn9mm', 1177527910, 15285);

MySQL Error  : Duplicate entry '0' for key 1
Error Number : 1062
...

I was able to fix these duplicate entry errors by running the query mentioned by VBulletin.com here : http://www.vbulletin.com/docs/html/mysql_duplicatekey

However, if I apply the same query for the vb_post_thanks table, it doesn't change a thing,
EDIT, this is the query I ran
Code:

ALTER TABLE `vb_post_thanks` CHANGE `id` `id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT;
i keep getting those erros everytime I push the 'thank you' button.

I'm sure it's data corruption due to server migration, I allready tried to delete the table and import from backup from previous server, but this doesn't help either

what am I missing here ...?

May have to do with AUTO_INCREMENT

blue6995 04-30-2007 10:52 AM

having carried out the instructions to upgrade/install over the previous verios I am getting the following error messages:

Warning: can_thank_this_post(/homepages/18/d121175559/htdocs/vBulletin/includes/functions_post_groan.php) [function.can-thank-this-post]: failed to open stream: No such file or directory in /includes/functions_post_thanks.php on line 73

Fatal error: can_thank_this_post() [function.require]: Failed opening required '/homepages/18/d121175559/htdocs/vBulletin/includes/functions_post_groan.php' (include_path='.:/usr/local/lib/php') in /homepages/18/d121175559/htdocs/vBulletin/includes/functions_post_thanks.php on line 73


Any idea on how I can resolve this? The file vBulletin/includes/functions_post_groan.php' is definately in the right place.

Thanks

vspro 04-30-2007 11:15 AM

Hi abe1,

You can write an add-con fo this mod, This function of add-on is thank in attad file, Menber which have X THANKS can download attad file, I want this add-on to agains spam member is this one is necessary, My English quite bad, hope you understand my write, thank alot :)

Abe1 04-30-2007 12:22 PM

Quote:

Originally Posted by blue6995 (Post 1238128)
having carried out the instructions to upgrade/install over the previous verios I am getting the following error messages:

Warning: can_thank_this_post(/homepages/18/d121175559/htdocs/vBulletin/includes/functions_post_groan.php) [function.can-thank-this-post]: failed to open stream: No such file or directory in /includes/functions_post_thanks.php on line 73

Fatal error: can_thank_this_post() [function.require]: Failed opening required '/homepages/18/d121175559/htdocs/vBulletin/includes/functions_post_groan.php' (include_path='.:/usr/local/lib/php') in /homepages/18/d121175559/htdocs/vBulletin/includes/functions_post_thanks.php on line 73


Any idea on how I can resolve this? The file vBulletin/includes/functions_post_groan.php' is definately in the right place.


Thanks

No clue. When do you get this error?

Abe1 04-30-2007 12:22 PM

Quote:

Originally Posted by vspro (Post 1238135)
Hi abe1,

You can write an add-con fo this mod, This function of add-on is thank in attad file, Menber which have X THANKS can download attad file, I want this add-on to agains spam member is this one is necessary, My English quite bad, hope you understand my write, thank alot :)

No clue what you are saying.

vspro 04-30-2007 12:53 PM

Quote:

Originally Posted by Abe1 (Post 1238168)
No clue what you are saying.

because my forum have many member signIn to search attach file which they need, but not contribute for my forum, So i want a MOD: member which have X-thank can download attach file, That Anyone which want to dowload attach file must contribue actively for the forum and amount thanks of other member, after have enough, that person can download attach file, So that Mod avoid member signIn and not to do anything,avoid spam for forum, can you understand? Please understand and help me, thank alot..

You can see that image,so that you can understand my words
https://vborg.vbsupport.ru/

fn9mm 04-30-2007 01:38 PM

Update :
This would have helped
Code:

ALTER TABLE `vb_post_thanks` CHANGE `id` `id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT;
If my host wouldn't have changed the database name without telling me (damn *****)
He changed my config file and database name, so I was working in the wrong database,.... two days of worrying for nothing,
thx anyway

redtailboa 04-30-2007 03:26 PM

I asked before, but it may of been lost in this huge thread.

Anyway, is there any chance we can set limits to daily thanks? I have a few users that are starting little cliques on my site thanking each other over and over.

Maybe do something like:
Max Thanks per day:
Max Thanks per thread:
Max Thanks per hour:

blue6995 04-30-2007 03:44 PM

Quote:

Originally Posted by Abe1 (Post 1238167)
No clue. When do you get this error?

Whenever I click on the Thank you button - it used to work before I updated the mod

blue6995 04-30-2007 04:43 PM

Quote:

Originally Posted by Abe1 (Post 1238167)
No clue. When do you get this error?

Ok, I have removed the Post Groan mod and the Post Thank you button is working again

Thanks

Abe1 04-30-2007 10:18 PM

Quote:

Originally Posted by redtailboa (Post 1238292)
I asked before, but it may of been lost in this huge thread.

Anyway, is there any chance we can set limits to daily thanks? I have a few users that are starting little cliques on my site thanking each other over and over.

Maybe do something like:
Max Thanks per day:
Max Thanks per thread:
Max Thanks per hour:

I dont think i would release such options but you should be able to do it very easily with the hook/plugins in the functions of this hack.

AMG021 05-01-2007 10:26 PM

Quote:

Originally Posted by hornstar1337 (Post 1231784)
im sure the answer you are looking for would be on that page somewhere. because it has the error at the top of the page, and you can see what exactly is displayed on that page. So maybe it doesnt like when certain things occur on a page?


also here is another problem im having, which is the reason i upgraded ^^

BUG

The delete all of a users thanks feature in the admincp is not working. it says it deletes them, but when i refresh the page where that user had thanked everyone, their thanks are still there.

is this occurring for anyone else? because it is not doing anything on mine.

here is a screen shot to show that it is processing it, but then when i check to see if the thanks are gone, they're still there.

Abe1 Can you please help me. I have the same problem

itsatonline 05-02-2007 04:07 PM

i can when deleted post thanks other users ?

YLP1 05-02-2007 11:29 PM

I have a question - I did search but couldn't find anything like this. Is there a mod that will display say like the top 4 members along with their avatar with the most thanks for the month or week?

Thanks in advance.

tanyeri24 05-03-2007 12:11 AM

possible to get a toplist like this:
https://vborg.vbsupport.ru/showthrea...hreadid=146277

360themes 05-04-2007 04:52 PM

is there anyway to make the Thanks list collapsable? Too many thanks in the list take so much space.

saman 05-05-2007 01:52 PM

guys i have now Version 5.3 and in the instruction text, there is nothing about how to upgrade from 5.3 to 6.0...

at step 2: 2) Import product-post_thanks.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

but I already have it (5.3) how should i add this one and the most important for, will i loose all the thanks that my members currentlt have?

thanks -

germinus 05-05-2007 05:38 PM

think i must be missing somthin as it dont work for me, got all the info in postbit user info but thats it, no thanks button no hide tag nothing! doesnt even work when i try a manual hide tag

AMG021 05-06-2007 09:50 PM

Abe How do I delete Users all thanks ?

YLP1 05-07-2007 12:51 AM

Abe, I am not a coder but my members LOVE your thanks product, is there an easy solution to have the top one or two members with the most thanks appear on the main forum page? I found this mod: https://vborg.vbsupport.ru/showthread.php?t=143553 and tried to pull the members with the top thank yous but I failed miserably. Your thoughts?

Abe1 05-07-2007 12:12 PM

Quote:

Originally Posted by saman (Post 1241880)
guys i have now Version 5.3 and in the instruction text, there is nothing about how to upgrade from 5.3 to 6.0...

at step 2: 2) Import product-post_thanks.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

but I already have it (5.3) how should i add this one and the most important for, will i loose all the thanks that my members currentlt have?

thanks -

Just install like new. w/o removing what you have already. Just re-do the template edits.

Abe1 05-07-2007 12:12 PM

Quote:

Originally Posted by germinus (Post 1241963)
think i must be missing somthin as it dont work for me, got all the info in postbit user info but thats it, no thanks button no hide tag nothing! doesnt even work when i try a manual hide tag

Who said anything about a hide tag?

Abe1 05-07-2007 12:14 PM

Quote:

Originally Posted by AMG021 (Post 1242717)
Abe How do I delete Users all thanks ?

Go look in the ACp nav bar for post thanks actions.

Abe1 05-07-2007 12:16 PM

Quote:

Originally Posted by YLP1 (Post 1242786)
Abe, I am not a coder but my members LOVE your thanks product, is there an easy solution to have the top one or two members with the most thanks appear on the main forum page? I found this mod: https://vborg.vbsupport.ru/showthread.php?t=143553 and tried to pull the members with the top thank yous but I failed miserably. Your thoughts?

It should be a simple query. Something like

SELECT * FROM users ORDER BY post_thanks_thanked_times DESC LIMIT 2

Andyrew 05-07-2007 12:16 PM

Nice hack, shame about the template edits.

BozzaJos 05-07-2007 12:22 PM

This is a fantastic mod, thanks Abel for creating it!

I've got one question tho. I recently upgraded from 3.5 to 3.6 (installed actually, not used the upgrading function). I reinstalled the Post Thank You hack for 3.6 but I would like to have the old thanks stats back of my old forum. I imported post_thanks table but all the members still have 0 thanks given or gotten.

How can I get my old thanks stats back for all the members?

YLP1 05-07-2007 02:28 PM

Quote:

Originally Posted by Abe1 (Post 1243008)
It should be a simple query. Something like

SELECT * FROM users ORDER BY post_thanks_thanked_times DESC LIMIT 2

I tried that but it didn't work.....;( Thank you for the suggestion.

vspro 05-07-2007 02:50 PM

Quote:

Originally Posted by vspro (Post 1238189)
because my forum have many member signIn to search attach file which they need, but not contribute for my forum, So i want a MOD: member which have X-thank can download attach file, That Anyone which want to dowload attach file must contribue actively for the forum and amount thanks of other member, after have enough, that person can download attach file, So that Mod avoid member signIn and not to do anything,avoid spam for forum, can you understand? Please understand and help me, thank alot..

You can see that image,so that you can understand my words
https://vborg.vbsupport.ru/

I waited for a week but you didn't reply. Will you please answer me now? Thanks

Abe1 05-07-2007 10:10 PM

Quote:

Originally Posted by BozzaJos (Post 1243010)
This is a fantastic mod, thanks Abel for creating it!

I've got one question tho. I recently upgraded from 3.5 to 3.6 (installed actually, not used the upgrading function). I reinstalled the Post Thank You hack for 3.6 but I would like to have the old thanks stats back of my old forum. I imported post_thanks table but all the members still have 0 thanks given or gotten.

How can I get my old thanks stats back for all the members?

Use the post thanks recounters.

Abe1 05-07-2007 10:10 PM

Quote:

Originally Posted by vspro (Post 1243060)
I waited for a week but you didn't reply. Will you please answer me now? Thanks

Sorry, I will not add such a feature. Maybe someone wants to release an add-on.

Hornstar 05-08-2007 05:34 AM

Abe1, ive made several posts about a bug in the deleting all of a users thanks given from the admincp, it doesnt work at all. Any way you can help me on this, as its important. thanks.

Abe1 05-08-2007 10:47 PM

Quote:

Originally Posted by hornstar1337 (Post 1243480)
Abe1, ive made several posts about a bug in the deleting all of a users thanks given from the admincp, it doesnt work at all. Any way you can help me on this, as its important. thanks.

I will look into it. Is there a way I can have a look at your ACP?

bhanuprasad1981 05-09-2007 03:28 AM

abe1 i have upgraded this hack from v5.5 to 6.0 gold recently i came to know about an error when i try to see all the thanked post of an user all i see is a blank page nothing else can u please tell me what i did wrong???

Hornstar 05-09-2007 05:53 AM

Quote:

Originally Posted by Abe1 (Post 1244045)
I will look into it. Is there a way I can have a look at your ACP?

sent you the pm. Thanks.


All times are GMT. The time now is 09:28 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.03086 seconds
  • Memory Usage 1,851KB
  • 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
  • (5)bbcode_code_printable
  • (23)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