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)

NeutralizeR 01-16-2007 02:29 PM

Quote:

Originally Posted by Abe1 (Post 1160515)
In the post_bit_start, it would be this: $this->registry->userinfo['usergroupid']

Finally, thanks.

stinger2 01-16-2007 03:43 PM

Quote:

Originally Posted by Abe1 (Post 1160513)
Did you check the settings? I need more info.

thanks Abe1
wel they are the standard settings.......nothing added or removed......and all template changes are checked and doublechecked....nothing wrong with then also


here is an SS fo the setting
http://www.hostmypiconline.com/images/nothanks.jpg
http://www.hostmypiconline.com/images/nothanks2.jpg

Abe1 01-16-2007 04:03 PM

Quote:

Originally Posted by stinger2 (Post 1160642)
thanks Abe1
wel they are the standard settings.......nothing added or removed......and all template changes are checked and doublechecked....nothing wrong with then also


here is an SS fo the setting
http://www.hostmypiconline.com/images/nothanks.jpg
http://www.hostmypiconline.com/images/nothanks2.jpg

Can you try running the re-counters?

stinger2 01-16-2007 06:37 PM

currently doing it......it is taking a while.....will let you know

thx

gbml4u 01-17-2007 02:53 AM

I have a problem. After setting, members cannot see "thank" button, only admin and mods can see it. There isn't any problem when setting

stinger2 01-17-2007 07:13 AM

no success abe1............still the same problem........

Abe1 01-17-2007 11:45 AM

Quote:

Originally Posted by stinger2 (Post 1161243)
no success abe1............still the same problem........

Dont really know. I would need access to your ACP to test it out.

ncangler 01-17-2007 07:34 PM

Just tried to install on my vBulletin 3.6.4 forum and I get this error message on the Product Import. Sorr to post this long thing but I appreciate any help. BTW this is a clean install.
Quote:

Database error in vBulletin 3.6.4:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, validationcode, blacklist, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
10,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_forum_off',
'post_thanks',
'',
'',
'free',
'',
20,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_forum_first_all',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
30,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_forum_first',
'post_thanks',
'',
'',
'free',
'',
40,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_date_all',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
50,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_date_forum',
'post_thanks',
'',
'',
'free',
'',
60,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_usergroup_using',
'post_thanks',
'',
'',
'free',
'',
70,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_user_useing',
'post_thanks',
'',
'',
'free',
'',
80,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_reputation',
'post_thanks',
'0',
'0',
'number',
'',
90,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
100,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_delete_own',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
110,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_poster_button',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
130,
0,
1,
'',
0,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date : Wednesday, January 17th 2007 @ 04:27:11 PM
Script : http://www.mysite.net/forums/admincp...=productimport
Referrer : http://www.mysite.net/forums/admincp...?do=productadd

Abe1 01-17-2007 11:18 PM

Quote:

Originally Posted by ncangler (Post 1161636)
Just tried to install on my vBulletin 3.6.4 forum and I get this error message on the Product Import. Sorr to post this long thing but I appreciate any help. BTW this is a clean install.

You must have had the vb3.0 version installed. Run the queries that I posted in the zip file of the vb3.5 version.

ncangler 01-18-2007 02:28 AM

Thanks Abe1. That was all it took. I totally don't remember ever installing the mod on this website but I guess I did. Anyway it is working great. Thank you!

gbml4u 01-18-2007 12:21 PM

Re hi Abe1,
I give you an admin and password, can you look into my forum? Beacuse the hack is installed, but not work. :( Thz..

BTW: Sorry for my english, i am from vietnam republic

stinger2 01-18-2007 02:31 PM

Quote:

DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `phrase` WHERE `varname` LIKE '%post_thanks%' AND `product` = '';

DELETE FROM `template` WHERE `title` LIKE '%post_thanks%' AND `product` = '';
i removed the hack and ran the 4 queries you gave in version 3.5.4 and reinstalled it again...strange enough it fixed the problem......

p.s i never had this hack in older version.....i started the board with 3.5.0

thanks for your help abe1

Abe1 01-19-2007 12:36 PM

Quote:

Originally Posted by gbml4u (Post 1162127)
Re hi Abe1,
I give you an admin and password, can you look into my forum? Beacuse the hack is installed, but not work. :( Thz..

BTW: Sorry for my english, i am from vietnam republic

yes.

stinger2 01-20-2007 10:37 AM

hi again Abe1
is there away that a member can see who thanked hem..or which posts where thanked?

now we can see for some one else.....and not for your self....

http://www.YOURFORUM.COM/forums/sear...findthanks&u=1

with this i can find my thanked posts........so is it possible to add this in quick links for example... to do for each user for himself??

thx

mack324 01-20-2007 07:58 PM

Hi abe1

installed, all ok

i want moderators and supermods to use the thanks also, i dont want them to see the hidden content until they thank....
how do i do it?

BuyHostCheap 01-24-2007 02:55 AM

hey bro,
i downloaded this hack and installed but even after i uploaded post_thanks.gif its nt working. i mean i can c search for thank posts link but nt button. y?

2meplie 01-25-2007 01:35 PM

First I want to say I really like this hack. I prefer it to the reputation system.

I was wondering, and sorry if this has already been discuss, but is it possible to hide the thanks from the posts and just leave it in the member's section, but with all the details there? Or even better would be for each member to only see the thanks they received and not all of them. It take a lot of space when peoples are thanked at every post of it 10-15 peoples thank another one for one post.

Thanks :

tiger 01-25-2007 11:59 PM

Quote:

Originally Posted by BuyHostCheap (Post 1166169)
hey bro,
i downloaded this hack and installed but even after i uploaded post_thanks.gif its nt working. i mean i can c search for thank posts link but nt button. y?

I have the same problem.

Soliloquy 01-26-2007 02:46 AM

I've installed this hack (works perfectly, thanks!) and will install the Groan one as well. However... I need another just like this for Laughs. Any chance you'll release one, or tell me how to modify it? I know I could change phrases but I'd really like all three working together.:)

tiger 01-26-2007 06:32 AM

Don't know what happened but I removed the hack and deleted the post_thank table and reinstalled the hack and everything worked fine after that.

SCRIPT3R 01-26-2007 03:10 PM

Quote:

Originally Posted by BuyHostCheap (Post 1166169)
hey bro,
i downloaded this hack and installed but even after i uploaded post_thanks.gif its nt working. i mean i can c search for thank posts link but nt button. y?

Quote:

Originally Posted by BuyHostCheap
can u help me regarding thanks mod? i wanna help in editing my template

you PM'd me but...
Quote:

BuyHostCheap has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.

Heir Jordan 01-27-2007 10:05 AM

Just out of curiosity, is there a way to change default things such as "Thanks" and "....has thanked...."?

i.e.; say I'd like to change it to "Thank You" and "**** has said Thank You to **** for this post" --- is that possible? Let me know if I need to clarify this.

ddr 01-28-2007 04:05 AM

i've installed this hack, but... can you optimize code to use 1 predefined js function depending on the post id, instead of using
Code:

<script type="text/javascript">
<!--
function post_thanks_give_57255()
{
        fetch_object('post_thanks_button_57255').style.display = 'none'
       
       
       
        do_thanks_add = new vB_AJAX_Handler(true)
        do_thanks_add.onreadystatechange(thanks_add_Done_57255)
        do_thanks_add.send('showthread.php?do=post_thanks_add_ajax&p=57255')
}
function thanks_add_Done_57255()
{
        if (do_thanks_add.handler.readyState == 4 && do_thanks_add.handler.status == 200)
        {
                fetch_object('post_thanks_box_57255').innerHTML = do_thanks_add.handler.responseText
        }
}
function post_thanks_remove_all_57255()
{
        do_thanks_remove_all = new vB_AJAX_Handler(true)
        do_thanks_remove_all.onreadystatechange(thanks_remove_all_Done_57255)
        do_thanks_remove_all.send('showthread.php?do=post_thanks_remove_all_ajax&p=57255')

        fetch_object('post_thanks_button_57255').style.display = ''
       
       
}
function thanks_remove_all_Done_57255()
{
        if (do_thanks_remove_all.handler.readyState == 4 && do_thanks_remove_all.handler.status == 200)
        {
                fetch_object('post_thanks_box_57255').innerHTML = do_thanks_remove_all.handler.responseText
        }
}
function post_thanks_remove_user_57255()
{
        do_thanks_remove_user = new vB_AJAX_Handler(true)
        do_thanks_remove_user.onreadystatechange(thanks_remove_user_Done_57255)
        do_thanks_remove_user.send('showthread.php?do=post_thanks_remove_user_ajax&p=57255')

        fetch_object('post_thanks_button_57255').style.display = ''
       
       
}
function thanks_remove_user_Done_57255()
{
        if (do_thanks_remove_user.handler.readyState == 4 && do_thanks_remove_user.handler.status == 200)
        {
                fetch_object('post_thanks_box_57255').innerHTML = do_thanks_remove_user.handler.responseText
        }
}
//-->
</script>

for EVERY post?

jawinn 01-28-2007 10:51 AM

I've had this mod installed for a while now. It has worked fine until a few days ago. I noticed that two of my users have "thanks" counts that are way too high. One of the two has over 5000 thanks in his postbit. He assures me that he didn't go and hit thanks 5000 times and I believe him.

I have two questions.
Has anyone else experienced this?
Is there any way to remove all the thanks from one user?

Abe1 01-28-2007 11:55 AM

Quote:

Originally Posted by BuyHostCheap (Post 1166169)
hey bro,
i downloaded this hack and installed but even after i uploaded post_thanks.gif its nt working. i mean i can c search for thank posts link but nt button. y?

Do you have more then on style. You would have to put the button into the button folder of all styles.

Abe1 01-28-2007 11:56 AM

Quote:

Originally Posted by 2meplie (Post 1167018)
First I want to say I really like this hack. I prefer it to the reputation system.

I was wondering, and sorry if this has already been discuss, but is it possible to hide the thanks from the posts and just leave it in the member's section, but with all the details there? Or even better would be for each member to only see the thanks they received and not all of them. It take a lot of space when peoples are thanked at every post of it 10-15 peoples thank another one for one post.

Thanks :

You can edit the template so the thanks_bit doesn't show up.

Abe1 01-28-2007 11:57 AM

Quote:

Originally Posted by Soliloquy (Post 1167476)
I've installed this hack (works perfectly, thanks!) and will install the Groan one as well. However... I need another just like this for Laughs. Any chance you'll release one, or tell me how to modify it? I know I could change phrases but I'd really like all three working together.:)

Before uploading the thanks hack again, you would have to edit a LOT in the template. It's a lot of work. Not sure you would get everthing right.

Abe1 01-28-2007 12:17 PM

Quote:

Originally Posted by ddr (Post 1168765)
i've installed this hack, but... can you optimize code to use 1 predefined js function depending on the post id, instead of using
Code:

<script type="text/javascript">
<!--
function post_thanks_give_57255()
{
        fetch_object('post_thanks_button_57255').style.display = 'none'
       
       
       
        do_thanks_add = new vB_AJAX_Handler(true)
        do_thanks_add.onreadystatechange(thanks_add_Done_57255)
        do_thanks_add.send('showthread.php?do=post_thanks_add_ajax&p=57255')
}
function thanks_add_Done_57255()
{
        if (do_thanks_add.handler.readyState == 4 && do_thanks_add.handler.status == 200)
        {
                fetch_object('post_thanks_box_57255').innerHTML = do_thanks_add.handler.responseText
        }
}
function post_thanks_remove_all_57255()
{
        do_thanks_remove_all = new vB_AJAX_Handler(true)
        do_thanks_remove_all.onreadystatechange(thanks_remove_all_Done_57255)
        do_thanks_remove_all.send('showthread.php?do=post_thanks_remove_all_ajax&p=57255')

        fetch_object('post_thanks_button_57255').style.display = ''
       
       
}
function thanks_remove_all_Done_57255()
{
        if (do_thanks_remove_all.handler.readyState == 4 && do_thanks_remove_all.handler.status == 200)
        {
                fetch_object('post_thanks_box_57255').innerHTML = do_thanks_remove_all.handler.responseText
        }
}
function post_thanks_remove_user_57255()
{
        do_thanks_remove_user = new vB_AJAX_Handler(true)
        do_thanks_remove_user.onreadystatechange(thanks_remove_user_Done_57255)
        do_thanks_remove_user.send('showthread.php?do=post_thanks_remove_user_ajax&p=57255')

        fetch_object('post_thanks_button_57255').style.display = ''
       
       
}
function thanks_remove_user_Done_57255()
{
        if (do_thanks_remove_user.handler.readyState == 4 && do_thanks_remove_user.handler.status == 200)
        {
                fetch_object('post_thanks_box_57255').innerHTML = do_thanks_remove_user.handler.responseText
        }
}
//-->
</script>

for EVERY post?

I need to learn how to use prototype first. I've tried but failed so far.

Abe1 01-28-2007 12:18 PM

Quote:

Originally Posted by jawinn (Post 1168907)
I've had this mod installed for a while now. It has worked fine until a few days ago. I noticed that two of my users have "thanks" counts that are way too high. One of the two has over 5000 thanks in his postbit. He assures me that he didn't go and hit thanks 5000 times and I believe him.

I have two questions.
Has anyone else experienced this?
Is there any way to remove all the thanks from one user?

In the ACP under maintenance, there is an option to re-count the users thanks amount.

ddr 01-28-2007 06:28 PM

Quote:

Originally Posted by Abe1 (Post 1168947)
I need to learn how to use prototype first. I've tried but failed so far.

i've tried to do so:
Code:

function post_thanks_give_(pid)
{
        fetch_object('post_thanks_button_'+pid).style.display = 'none'
        do_thanks_add = new vB_AJAX_Handler(true)
        do_thanks_add.onreadystatechange(thanks_add_Done)
        do_thanks_add.send('showthread.php?do=post_thanks_add_ajax&p='+pid)
}
function thanks_add_Done() {
        if (do_thanks_add.handler.readyState == 4 && do_thanks_add.handler.status == 200) {
          fetch_object('post_thanks_box_'+manualinsertedpostid).innerHTML = do_thanks_add.handler.responseText+pid
          }
}

i've moved this code to showthread template and cleaned post_thanks_box template. I've also modified all links in hack's templates to use post_thanks_give_('$postid') function, but i couldn't get postid in function thanks_add_Done.
if
Code:

function post_thanks_give_(pid)
{
        fetch_object('post_thanks_button_'+pid).style.display = 'none'
        do_thanks_add = new vB_AJAX_Handler(true)
        do_thanks_add.onreadystatechange(thanks_add_Done(pid))
        do_thanks_add.send('showthread.php?do=post_thanks_add_ajax&p='+pid)
}

function thanks_add_Done(pid) {
        if (do_thanks_add.handler.readyState == 4 && do_thanks_add.handler.status == 200) {
          fetch_object('post_thanks_box_'+pid).innerHTML = do_thanks_add.handler.responseText+pid
          }

}

there is an error
do_thanks_add.handler.readyState is null or non-object

w1z4rd 01-29-2007 03:57 AM

Whenever thanks are posted in a gars forum errors occur if the thread spans multiple pages. Any idea how to fix this?

Quote:

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(268) : eval()'d code on line 160

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(268) : eval()'d code on line 170

brandnewx 01-29-2007 10:35 AM

Does this mod still insert javascript after every post? The last time I checked a few months ago, javascripts were all over the places, tripling page size, which eventually lead to long downloading time plus bad SEO keywords/content ratio.

Abe1 01-29-2007 12:33 PM

Quote:

Originally Posted by ddr (Post 1169195)
i've tried to do so:
Code:

function post_thanks_give_(pid)
{
        fetch_object('post_thanks_button_'+pid).style.display = 'none'
        do_thanks_add = new vB_AJAX_Handler(true)
        do_thanks_add.onreadystatechange(thanks_add_Done)
        do_thanks_add.send('showthread.php?do=post_thanks_add_ajax&p='+pid)
}
function thanks_add_Done() {
        if (do_thanks_add.handler.readyState == 4 && do_thanks_add.handler.status == 200) {
          fetch_object('post_thanks_box_'+manualinsertedpostid).innerHTML = do_thanks_add.handler.responseText+pid
          }
}

i've moved this code to showthread template and cleaned post_thanks_box template. I've also modified all links in hack's templates to use post_thanks_give_('$postid') function, but i couldn't get postid in function thanks_add_Done.
if
Code:

function post_thanks_give_(pid)
{
        fetch_object('post_thanks_button_'+pid).style.display = 'none'
        do_thanks_add = new vB_AJAX_Handler(true)
        do_thanks_add.onreadystatechange(thanks_add_Done(pid))
        do_thanks_add.send('showthread.php?do=post_thanks_add_ajax&p='+pid)
}

function thanks_add_Done(pid) {
        if (do_thanks_add.handler.readyState == 4 && do_thanks_add.handler.status == 200) {
          fetch_object('post_thanks_box_'+pid).innerHTML = do_thanks_add.handler.responseText+pid
          }

}

there is an error
do_thanks_add.handler.readyState is null or non-object

You can pass a variable with onreadystatechange. This is why I would have to use prototype but not sure how now.

Abe1 01-29-2007 12:34 PM

Quote:

Originally Posted by w1z4rd (Post 1169503)
Whenever thanks are posted in a gars forum errors occur if the thread spans multiple pages. Any idea how to fix this?

Use the recounters.

Abe1 01-29-2007 12:35 PM

Quote:

Originally Posted by brandnewx (Post 1169679)
Does this mod still insert javascript after every post? The last time I checked a few months ago, javascripts were all over the places, tripling page size, which eventually lead to long downloading time plus bad SEO keywords/content ratio.

It does right now. I think I may have figured out how to avoid it right now. I have to write it and give it some testing. I was able to do it with a diff prject I am working on.

Lionel 01-29-2007 01:11 PM

Quote:

Originally Posted by Abe1 (Post 1169751)
Use the recounters.

Can you explain please?

w1z4rd 01-29-2007 05:47 PM

Quote:

Originally Posted by Lionel (Post 1169775)
Can you explain please?

Yes please.. I rebuilt nearly everything, still no luck. If there are no thanks recorded for that thread then pages 2 3 etc work fine. As soon as a thanks is inputted and you go past page one the above errors occur.

Lionel 01-29-2007 05:49 PM

I am also very anxious to solve that problem which I mentioned to you months ago. I have been forced to remove all thanks and groans on first post when there are multiple pages on Gars

Abe1 01-29-2007 10:03 PM

Quote:

Originally Posted by w1z4rd (Post 1169945)
Yes please.. I rebuilt nearly everything, still no luck. If there are no thanks recorded for that thread then pages 2 3 etc work fine. As soon as a thanks is inputted and you go past page one the above errors occur.

Could it be getting interfered by another hack?

w1z4rd 01-30-2007 02:41 PM

No because it works fine without gars. This is a great mod just really hoping to clear this up.


All times are GMT. The time now is 03:58 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.03060 seconds
  • Memory Usage 1,875KB
  • 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
  • (6)bbcode_code_printable
  • (25)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