PDA

View Full Version : Show Thread Enhancements - [AJAX] Post Thank You Hack


Pages : 1 2 [3] 4 5 6 7 8 9

SCRIPT3R
01-26-2007, 03:10 PM
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?
can u help me regarding thanks mod? i wanna help in editing my template
you PM'd me but...
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
<script type="text/javascript">
<!--
function post_thanks_give_57255()
{
fetch_object('post_thanks_button_57255').style.dis play = 'none'



do_thanks_add = new vB_AJAX_Handler(true)
do_thanks_add.onreadystatechange(thanks_add_Done_5 7255)
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_rem ove_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.dis play = ''


}
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_re move_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.dis play = ''


}
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
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
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
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
i've installed this hack, but... can you optimize code to use 1 predefined js function depending on the post id, instead of using
<script type="text/javascript">
<!--
function post_thanks_give_57255()
{
fetch_object('post_thanks_button_57255').style.dis play = 'none'



do_thanks_add = new vB_AJAX_Handler(true)
do_thanks_add.onreadystatechange(thanks_add_Done_5 7255)
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_rem ove_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.dis play = ''


}
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_re move_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.dis play = ''


}
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
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
I need to learn how to use prototype first. I've tried but failed so far.
i've tried to do so:
function post_thanks_give_(pid)
{
fetch_object('post_thanks_button_'+pid).style.disp lay = '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_'+manualinsertedpost id).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 function post_thanks_give_(pid)
{
fetch_object('post_thanks_button_'+pid).style.disp lay = 'none'
do_thanks_add = new vB_AJAX_Handler(true)
do_thanks_add.onreadystatechange(thanks_add_Done(p id))
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?

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
i've tried to do so:
function post_thanks_give_(pid)
{
fetch_object('post_thanks_button_'+pid).style.disp lay = '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_'+manualinsertedpost id).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 function post_thanks_give_(pid)
{
fetch_object('post_thanks_button_'+pid).style.disp lay = 'none'
do_thanks_add = new vB_AJAX_Handler(true)
do_thanks_add.onreadystatechange(thanks_add_Done(p id))
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
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
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
Use the recounters.

Can you explain please?

w1z4rd
01-29-2007, 05:47 PM
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
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.

afterglow
02-01-2007, 06:38 AM
I probably just found a bug incompatibility of this hack with vb_ad_management_v2[1].1_for_vB3.6x. I installed this hack on a test forum and everything was perfect till i installed vb_ad. When you choose the option to display a banner at the botttom of the first post in a thread and you decided to thank the first poster, the list of users with thanks show up at the bottom of the banner ad, not above it. I've spent many hours trying to find a template glitz in both hacks but can't find it for the life of me. When the ad is disabled, the thanks hack works fine but the moment you display the ad, the thanks show itself at the bottom of the ad. Does anybody have this problem too?

Could someone provide a fix for this?

regards,
afterglow

SCRIPT3R
02-01-2007, 05:37 PM
suggestions for future release... Ability to search posts/threads in which Thanks was given (user-specific).
.

w1z4rd
02-02-2007, 01:21 AM
Does anyone have this working with GARS at all?

Abe1
02-02-2007, 01:47 AM
suggestions for future release... Ability to search posts/threads in which Thanks was given (user-specific).
.
look in a users profile

tanyeri24
02-03-2007, 01:47 PM
How this double-thx is possible? (see attached)

Please could u explain it, thanks.

SCRIPT3R
02-03-2007, 06:25 PM
suggestions for future release... Ability to search posts/threads in which Thanks was given (user-specific).

look in a users profile

what i mean in this which was posted by a user on one of my forums...

I was wondereing if there is a chance to see all the threads I have used the Thanks button?

from what i understand, this is not yet possible. i know from within the User's profile, you are able to find all posts in which a user has received thanks, but you cannot find all posts in which a user has given thanks?

Love30T.com
02-03-2007, 06:52 PM
hi dear :)
tank u for your hack
it's really great !! ;)

Quantnet
02-03-2007, 09:01 PM
from what i understand, this is not yet possible. i know from within the User's profile, you are able to find all posts in which a user has received thanks, but you cannot find all posts in which a user has given thanks?
That's correct. We can only see posts the user received thanks, not the posts that user thanks someone else.

I'm interested in the second feature as well.

Abe1
02-04-2007, 06:28 AM
How this double-thx is possible? (see attached)

Please could u explain it, thanks.
Not sure myself. I've seen this on my forum also. Not sure where the error is. If you look at the table in MySQL, you will see post are posted the same exact second. Not sure how that happens though.

ddr
02-04-2007, 01:57 PM
I've solved problem discussed above.
please see thank.txt, rename it into thank.js and put into clientscript directory.

modifications of my templates are:
template post_thanks_box:
<span id="post_thanks_box_$post[postid]">$post_thanks_box</span>

post_thanks_button
<a href="#" id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_give_('$post[postid]'); return false;"</if> style="display:$display_image" rel="nofollow"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" /></a>

post_thanks_postbit_legacy
<hr>
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px" align="left">
<strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
$liste_user
<if condition="$bbuserinfo[usergroupid] == 6"><br />
<a href="showthread.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_remove_all_('$post[postid]'); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>
<if condition="$post_thanks_user > 0 && $vboptions[post_thanks_delete_own] == 1"><br />
<a href="showthread.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_remove_user_('$post[postid]'); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
</if>
</div>

in SHOWTHREAD template i've included thank.js
other templates not modified =)

YLP1
02-04-2007, 06:24 PM
I have a real newbie question. I have searched all the thanks templates looking for where I can change the color of the thank you table. I want it to be contract against the post so it doesn't blend in so easily. Can someone point me to where I can alter the table colors? Thanks in advance.Nevermind, I found it finally in the postbit legacy template.

BUT I would like for the thank you table to be inside it's post (not a seperate table). Many of members think that the thankyou is for the post below it instead of above it. Is there a way to do this?

Abe1
02-04-2007, 09:04 PM
I've solved problem discussed above.
please see thank.txt, rename it into thank.js and put into clientscript directory.

modifications of my templates are:
template post_thanks_box:
<span id="post_thanks_box_$post[postid]">$post_thanks_box</span>

post_thanks_button
<a href="#" id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_give_('$post[postid]'); return false;"</if> style="display:$display_image" rel="nofollow"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" /></a>

post_thanks_postbit_legacy
<hr>
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px" align="left">
<strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
$liste_user
<if condition="$bbuserinfo[usergroupid] == 6"><br />
<a href="showthread.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_remove_all_('$post[postid]'); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>
<if condition="$post_thanks_user > 0 && $vboptions[post_thanks_delete_own] == 1"><br />
<a href="showthread.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_remove_user_('$post[postid]'); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
</if>
</div>

in SHOWTHREAD template i've included thank.js
other templates not modified =)
Thanks!

I didn't know that would work. I'll try it out and try to release something like it.

harmor19
02-05-2007, 10:35 AM
I made a "Thanks" button.

SecTa
02-10-2007, 12:15 AM
Greetz :)
I need a little help from Abe1 or someone experienced in php...
This is about Thanks Hack for 3.6.x and Reputation feature that can work in conjunction.
I want to enable feature when for every thanks user get also a reputation point, so that amount of thanks user got will be equal to the reputation points.
The issue here is that if i'll enable RP adding feature of Thanks Hack, previous users' thanks wont be counted. Count will start only for thanks, added after enabling the feature...
Now, as far as i understand i need to make some sql changes to get it settled as i want. Something like take values from table(s) where amount of users' thanks stored and add them to table(s) where users' RP stored accordingly...
Could you please explain, with which tables i should work? (i have somebody that will help me to deal with sql queries further)

Thanks in advance.

Quantnet
02-10-2007, 06:54 AM
I made a "Thanks" button.

Awesome. Clicked Thanks

Maybe it would be fun if you can replace the image of paper and the blue check with one of these http://www.quantnet.org/forum/images/smilies/023.gifhttp://www.quantnet.org/forum/images/smilies/tiphat.gifhttp://www.quantnet.org/forum/images/smilies/thumbsup.gif
http://www.quantnet.org/forum/images/smilies/eusa_clap.gifhttp://www.quantnet.org/forum/images/smilies/icon_pray.gif

oricon
02-10-2007, 11:27 AM
i miss the "ajax technology so your users don't have to refresh the page they are viewing!".

in my forum i must reload the page after thanks.whats wrong by me? or how can i enable this function?

ncangler
02-10-2007, 09:17 PM
Thank you! Looks great.
I made a "Thanks" button.

ddr
02-12-2007, 07:07 AM
i've done some changes also to decrease page size
post_thanks_box template:
<if condition="!$show['guest']">
<span id="post_thanks_box_$post[postid]">$post_thanks_box</span>
<else />
<if condition="$post_thanks_box != ''">
<span id="post_thanks_box_$post[postid]">$post_thanks_box</span>
</if>
</if>


post_thanks_button:
<if condition="!$show['guest']"><a href="showthread.php?$session[sessionurl]do=post_thanks_add&amp;p=$post[postid]" id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_give_('$post[postid]'); return false;"</if> style="display:$display_image" rel="nofollow"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" /></a></if>
js included in SHOWTHREAD this way:
<!-- / controls above postbits -->
<if condition="!$show['guest']"><script type="text/javascript" src="/clientscript/thank.js"></script></if>
<!-- toolbar -->

in postbit_legacy template
<!-- controls -->
$post_thanks_button
<if condition="$post['editlink']">
and my thanks button :)
60414

works on my forum now

Abe1
02-12-2007, 12:03 PM
i miss the "ajax technology so your users don't have to refresh the page they are viewing!".

in my forum i must reload the page after thanks.whats wrong by me? or how can i enable this function?
Maybe you did not do the template edits correct or revert any of the post_thanks templates if you edited them.

princeedward
02-12-2007, 06:20 PM
clicked install...nice hack...thanks a lot bro....it's workin great on my Firefox...but IE...got this problem...when clicked or give thanks...comes the box saying ("You have already said thank you for this post!") then it will freeze on that window page...it wont move even if i click refresh...just have to click or go to my homepage again...

pls advice and thanks

:rolleyes:

hotmasala4u
02-12-2007, 06:28 PM
i cant see the button i installed the hack also i am using black ice skin i cnat see pic there is not even a X there i cnat see the button

Hayes
02-12-2007, 07:40 PM
Hello friends,
I was hoping someone could explain to me how to make it not show the box below a post that says who has thanked. It would also be VERY cool if instead it worked like the multi-quote button: "thanks" and "unthank". Thanks in advance for any help.

Abe1
02-12-2007, 11:14 PM
clicked install...nice hack...thanks a lot bro....it's workin great on my Firefox...but IE...got this problem...when clicked or give thanks...comes the box saying ("You have already said thank you for this post!") then it will freeze on that window page...it wont move even if i click refresh...just have to click or go to my homepage again...

pls advice and thanks

:rolleyes:
Make sure all the template edits are done correctly.

Abe1
02-12-2007, 11:16 PM
i cant see the button i installed the hack also i am using black ice skin i cnat see pic there is not even a X there i cnat see the button
Make sure you put the button in all button folders of each style.

hotmasala4u
02-13-2007, 01:26 AM
Make sure you put the button in all button folders of each style.

i did

Abe1
02-13-2007, 12:37 PM
The button will not show up on your posts. Did you check other users posts?

hotmasala4u
02-13-2007, 01:15 PM
The button will not show up on your posts. Did you check other users posts?

yea i tried didnt work

skoenig
02-14-2007, 05:49 AM
Installed an working fine on 3.6.2. Thank you for your hard work Abe1,

~ Steph

GoTTi
02-14-2007, 11:14 AM
my site is not letting me import this xml file. when i click import, it loads...and loads...and loads...and continues to load the page apparently, but its not loading anything, then it gives me a page cannot be displayed error.

i tested other mods with the import and its installing fine. any ideas?

Mohajer
02-15-2007, 03:21 PM
i use post thanks from 3.0.7 vbulletin version ,
after i upgrade vb to 3.5.4 and 3.6.1 its work fine and i upgrade post thanks about 2 times. ( last time i got db error but PT work without any problem.

My Last version is 5

Today i upgrade to 3.6.4 after it PT dont have any problem
but when i upgrade PT to last version 5.3 i get this Db error :
and now i dont see Any Thanks Button Or Thanked Posts Users List :eek:
i see only PostThanks Count in User Profiles.

I check all templates and template is fine for PT with your Insructions.

Totally now Thanks button Isn't showing up in Ie,Firefox...also PT in Setting is On, i check all setting.
But Now i Create a new Defualt template and every thing + PT work fine. But i need to Solve it in Old Template.


Thank you.

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'=

julia44
02-16-2007, 07:18 AM
Installed fine but I am not seeing anything in the admin for this?

nevermind--all nighters doing this stuff makes one lose common sense sometimes

iliton
02-16-2007, 12:45 PM
Not sure myself. I've seen this on my forum also. Not sure where the error is. If you look at the table in MySQL, you will see post are posted the same exact second. Not sure how that happens though.

double-thx

Abe1, I have the same problem, like tanyeri24 (https://vborg.vbsupport.ru/showpost.php?p=1173662&postcount=525)

TamCaVBoy3
02-17-2007, 01:17 AM
how do you add the bbcode for quick reply and reply menu? it's so inconvient to type the code out everytimes....

Quantnet
02-17-2007, 04:17 PM
how do you add the bbcode for quick reply and reply menu? it's so inconvient to type the code out everytimes....
What bbcode ?

TamCaVBoy3
02-17-2007, 09:26 PM
What bbcode ?


you know when you make a new reply , there is a some bbcode shortcuts (like [img], [php]......) i want to have the hide bbcode on it too, so users can click it...faster....

TamCaVBoy3
02-18-2007, 10:57 AM
i think i typed in a wrong topic, sorry guys

SecTa
02-18-2007, 07:56 PM
I'm not sure if it's a bug or it was intended this way, but when i move a thread with thanks to section with thanks hack disabled, all thanks user got from current thread remains counted... The only thing i can do is to remove thanks manually before moving thread... But this could be time consuming, esp when mass-moving threads...

Is there any way to enable/inplement this 'automatic thanks removal' feature? :rolleyes:

Abe1
02-18-2007, 09:28 PM
I'm not sure if it's a bug or it was intended this way, but when i move a thread with thanks to section with thanks hack disabled, all thanks user got from current thread remains counted... The only thing i can do is to remove thanks manually before moving thread... But this could be time consuming, esp when mass-moving threads...

Is there any way to enable/inplement this 'automatic thanks removal' feature? :rolleyes:
Right now there is nothing that will specially remove thanks if there is no permission in a thread.

SecTa
02-19-2007, 02:50 PM
Could this be implemented in future?

Abe1
02-19-2007, 02:56 PM
Could this be implemented in future?
I'm not sure.

ElForro
02-20-2007, 02:53 PM
Hi, great mod!

I would like to know if there is a chance to display ALL the thanked POSTS of ONE certain thread [i.e: search all thanked posts from this thread]...

I would LOVE that..

Thanks!

gsmlover4u
02-20-2007, 07:11 PM
hi all i install thanks hack but button not aapear in the forum threads y i install it like this but not edit it because i dont know where is this file and where i need to go for edit it plz tell me how i can edit it
1) upload
--------------------------------------------------------------------
post_thanks.gif -> EVERY "buttons" image folder in every style you have. Default is /images/buttons/
--------------------------------------------------------------------

2) Import product-post_thanks.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])
3) Do the template edits

in postbit AND postbit_lagacy:

sir where i edit the template after instal wher i find it for edit

Abe1
02-20-2007, 09:46 PM
hi all i install thanks hack but button not aapear in the forum threads y i install it like this but not edit it because i dont know where is this file and where i need to go for edit it plz tell me how i can edit it
1) upload
--------------------------------------------------------------------
post_thanks.gif -> EVERY "buttons" image folder in every style you have. Default is /images/buttons/
--------------------------------------------------------------------

2) Import product-post_thanks.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])
3) Do the template edits

in postbit AND postbit_lagacy:


sir where i edit the template after instal wher i find it for edit
Look around your ACP

Dream
02-22-2007, 01:38 AM
My members asked for this mod and it seems they like it.

One thing Im missing is an option in the AdminCP to decrease the font size of the postbit list of thank yous. Im going to study the templates to do that though, maybe that should be the right way to do it I dont know.

optrex
02-22-2007, 08:42 AM
would it be possible to have a page in the usercp like the Reputation page where you can see who has given you thanks for which post and when?

Cheers,
Moses.

Abe I wonder if you can help?

I have an exisiting forum with the thanks mod that shows what is described above. But I've added the thanks mod to my new forum and the details are not showing.

I've double checked the memberinfo template but can't see anything wrong. How do I get it to work?

optrex
02-22-2007, 08:58 AM
sorted. I forgot to turn on the reputation to 1 from 0 in the thanks acp

aceofspades
02-22-2007, 09:41 AM
Is it possible to intergrate this with any point system?

ElForro
02-22-2007, 01:38 PM
Hi, great mod!

I would like to know if there is a chance to display ALL the thanked POSTS of ONE certain thread [i.e: search all thanked posts from this thread]...

I would LOVE that..

Thanks!

Is this possible? It would be great for threads with Photos, so the Users can "Thanks" only the Posts with Photos and then sort them like that...

sohrab11
02-23-2007, 07:25 AM
thanks.......:)

Bounce
02-23-2007, 01:25 PM
The product will not install in my 3.6.4...

Just keeps loading ??? :mad:

Abe1
02-23-2007, 01:29 PM
The product will not install in my 3.6.4...

Just keeps loading ??? :mad:
Try installing by putting the XML file in your FTP and uploading into products.

Bounce
02-23-2007, 01:37 PM
Try installing by putting the XML file in your FTP and uploading into products.


nice one,that's sorted it,thanks,just editing the templates to do :up:

Edit: Brill,works a treat

subnet_rx
02-26-2007, 11:54 PM
Anyone know of an easy way to get the top thanked posts on the entire forum?

Dream
02-27-2007, 11:14 PM
Say a member went Thanks happy and now I need to remove all his Thanks with a query. What would that query be?

Abe1
02-28-2007, 01:54 AM
Say a member went Thanks happy and now I need to remove all his Thanks with a query. What would that query be?
Should be something like:

DELETE FROM post_thanks WHERE userid = XXXXXX

XXXXXX would be the userid the user.

No warranty though. I didn't check it.

Dream
02-28-2007, 10:48 PM
No, that broke something.

It did remove 94 rows from the table, but the number of thanks of the user is still 94, and the posts he thanked now show that someone thanked it but shows a blank list of people that thanked.

Abe1
03-01-2007, 03:38 AM
No, that broke something.

It did remove 94 rows from the table, but the number of thanks of the user is still 94, and the posts he thanked now show that someone thanked it but shows a blank list of people that thanked.
If you run the recounters, it should fix everything. Run them in the order that they show.

Dream
03-01-2007, 03:52 AM
Oh there are recounters there, should I start from top to bottom or the other way?

Abe1
03-01-2007, 05:03 AM
Oh there are recounters there, should I start from top to bottom or the other way?
start from the top. Do all 4.

Dream
03-01-2007, 05:30 AM
Thanks alot, all is fixed now :)

Great mod btw, thanks for releasing it.

Ahsin1
03-02-2007, 04:50 AM
i do every thing fiel still didn,t working did i need to edit soem templets

Abe1
03-02-2007, 11:45 AM
i do every thing fiel still didn,t working did i need to edit soem templets
Yes, there are template edits.

Ahsin1
03-02-2007, 05:51 PM
<font size="3">thnx but i can do this thing

1) upload
--------------------------------------------------------------------
post_thanks.gif -> EVERY "buttons" image folder in every style you have. Default is /images/buttons/

h i can upload that

i didn,t see it in admin cp

AFTER place this:
after the codes i place these codes or replace then when these codes

please help me </font>

Abe1
03-04-2007, 05:16 AM
thnx but i can do this thing

1) upload
--------------------------------------------------------------------
post_thanks.gif -> EVERY "buttons" image folder in every style you have. Default is /images/buttons/



h i can upload that

i didn,t see it in admin cp


AFTER place this:
after the codes i place these codes or replace then when these codes



please help me
Upload is done via FTP.

if it says "After" why are you asking me if you should replace???

I would say replace if I wanted you to replace.

hotmasala4u
03-04-2007, 05:42 PM
I Cnt See The Thanks Button In Posts I Butted The Images I Did The Right Template U Knw Why????

Abe1
03-04-2007, 06:33 PM
I Cnt See The Thanks Button In Posts I Butted The Images I Did The Right Template U Knw Why????
Are you checking other users posts? or just your own?

YLP1
03-04-2007, 07:43 PM
I updated post thank you on my forums today (had a previous version). Initally when uploading the plugin, it just kept loading and loading. I stopped it because I had no choice and it wiped out all of my thanks records.

I then found the suggestion of uploading the product.xml and it installed from there. My thanks records still gone but that's life.

The problem that I am having is that my "quote" feature is outta whack now. Either I did something when doing template edits or the mod may be affecting it, my quotes within post look like the attached graphic (look at the yellow highlighted portion): see where the quote runs off the post text area?

I reverted my postbit and legacy post bit and did the template edits again yet I am still having this problem.

I have uninstalled and reinstalled but have the same problem.

The only other mod I installed today was the limited view (goes with the welcome header mod that I have had all along with this Post Thank You hack).

This issue is driving me nuts. Anyone have any idea what is causing this quote text issue?

Thanks in advance.
Robin

ReQueM
03-04-2007, 10:18 PM
click thanks :D
*installed*

Abe1
03-05-2007, 01:41 AM
I updated post thank you on my forums today (had a previous version). Initally when uploading the plugin, it just kept loading and loading. I stopped it because I had no choice and it wiped out all of my thanks records.

I then found the suggestion of uploading the product.xml and it installed from there. My thanks records still gone but that's life.

The problem that I am having is that my "quote" feature is outta whack now. Either I did something when doing template edits or the mod may be affecting it, my quotes within post look like the attached graphic (look at the yellow highlighted portion): see where the quote runs off the post text area?

I reverted my postbit and legacy post bit and did the template edits again yet I am still having this problem.

I have uninstalled and reinstalled but have the same problem.

The only other mod I installed today was the limited view (goes with the welcome header mod that I have had all along with this Post Thank You hack).

This issue is driving me nuts. Anyone have any idea what is causing this quote text issue?

Thanks in advance.
Robin
Check the template edits.

Zagis
03-05-2007, 01:05 PM
I've installed this hack and works just fine, but I'd like to ask you guys if you know any hack who does exactly the opposite job. Let's say a "Post No Good Hack" :down:. I really need something like that...
Thanks

Gsmdenis
03-05-2007, 02:39 PM
super nice hack

hotmasala4u
03-05-2007, 05:39 PM
Are you checking other users posts? or just your own?

evry ones others users

Gizmo999
03-05-2007, 09:00 PM
Successfully installed without problem and its really neat :) thanks

one feature i would like is to be able to have it so that only the user being thanked ( and admins) can see who thanked them, is this possible?

Abe1
03-05-2007, 09:46 PM
I've installed this hack and works just fine, but I'd like to ask you guys if you know any hack who does exactly the opposite job. Let's say a "Post No Good Hack" :down:. I really need something like that...
Thanks
Check my sig for the Post Groan Hack.

Abe1
03-07-2007, 03:38 AM
I am releasing in the post version 6.0 RC1.

There have been MANY MANY additions, changes, and fixes to this version. Also, there have been many changed to the template edits so make sure you check to make sure they are all 100% correct. (Some are minor edits that you many not see if you just compare with your eyes, but make a big difference.)

I'm releasing this as a Release Candidate just because it contains a lot on changes. There are no known bugs with the exception of the integration between this hack and Post Groan Hack. Once I release the official update, it should be working. I just didn't write up the update for Post Groan yet.

Here are some of the features just posted quickly:

AJAX code moved to a file.
templates are cached in showpost
NEW - Option to delete all of a users thanks.
Post thanks actions moved to files.
New ACP options.
Index the PostID column in the post_thanks table (huge help you large forums!)
If you delete a user, all this thanks are deleted.
When you change a Username, any thanks he gave his name changes by.
When you physically remove a post, the thanks are deleted.
New Setting - Post Count Needed to Use the Thanks Button
Delete thanks when you hard delete a thread.
New Setting - Ban Usergroups from Getting Thanks
New Setting - Disable Giving Thanks if Post is X Days Old



Please post back ASAP if you see any problems or with you comments and suggestions about this update.

Enjoy!

RC2 released
Fixed the bug with PMS
Just re-upload the XML file. (nothing else changed)

RC3 released
Fixed 2 bugs
Only 2 files were changed.
post_thanks.php
functions_post_thanks.php
No need to uplaod the XML. Nothing changed in it since RC2. (Do upload if you are updating from RC1)

WeArab
03-07-2007, 03:44 AM
Nice additions thank you! :)

Sexified Ninja
03-07-2007, 03:44 AM
I am releasing in the post version 6.0 RC1.

There have been MANY MANY additions, changes, and fixes to this version. Also, there have been many changed to the template edits so make sure you check to make sure they are all 100% correct. (Some are minor edits that you many not see if you just compare with your eyes, but make a big difference.)

I'm releasing this as a Release Candidate just because it contains a lot on changes. There are no known bugs with the exception of the integration between this hack and Post Groan Hack. Once I release the official update, it should be working. I just didn't write up the update for Post Groan yet.

Here are some of the features just posted quickly:

AJAX code moved to a file.
templates are cached in showpost
NEW - Option to delete all of a users thanks.
Post thanks actions moved to files.
New ACP options.
Index the PostID column in the post_thanks table (huge help you large forums!)
If you delete a user, all this thanks are deleted.
When you change a Username, any thanks he gave his name changes by.
When you physically remove a post, the thanks are deleted.
New Setting - Post Count Needed to Use the Thanks Button
Delete thanks when you hard delete a thread.
New Setting - Ban Usergroups from Getting Thanks
New Setting - Disable Giving Thanks if Post is X Days Old



Please post back ASAP if you see any problems or with you comments and suggestions about this update.

Enjoy!

awesome, ive been trying to figure out some of this.

harmor19
03-07-2007, 03:46 AM
some good stuff. I'll upgrade later tonight.

Quantnet
03-07-2007, 04:39 AM
thanks for the upgrade. Do you plan on any significant change for the official update ? Should I wait till then ?

SCRIPT3R
03-07-2007, 05:06 AM
how 'bout some more added features...

suggestions for future release... Ability to search posts/threads in which Thanks was given (user-specific).
.

some added stats w/ a searchable Thanks column into the Members List page would be awesome.

what i mean in this which was posted by a user on one of my forums...I was wondereing if there is a chance to see all the threads I have used the Thanks button?


from what i understand, this is not yet possible. i know from within the User's profile, you are able to find all posts in which a user has received thanks, but you cannot find all posts in which a user has given thanks?

hurry
03-07-2007, 07:23 AM
Feature requests:

(1) An option for a member to see the posts he or she was thanked in descending order of date. Presently the members who are thanked come to know only if they visit the thread again. So the purpose is a little defeated.

(2) An option for a member to receive a popup notification or a pm or an email when he or she is thanked.

(3) An option to see all the thanked posts for the last month for example (time frame can be specified) with the exact members who thanked a post in a kind of summary of quick view without the post text.

Thanks Abe for developing this beautiful mod.

skYfIrE
03-07-2007, 07:52 AM
Hi,

Thanks for your hack.

suggested features :

When I make a research"Find all thanked posts", is it possible that the number of thank you appear in results ?

We would have so the number of views, the number of messages, and the number of thank you.

skYfIrE
03-07-2007, 08:36 AM
Hi,

Me again,

When I open a PM : forum/private.php?do=showpm&pmid=20394

I've this error : Fatal error: Call to undefined function post_thanks_off() in /data/www/trains/forum/includes/class_postbit.php(268) : eval()'d code on line 1

The hack working fine with the 5.3.

charlee
03-07-2007, 08:56 AM
I have the same problem as above.

charlee
03-07-2007, 09:05 AM
And one more thing...

When editing a post... It disappears when you click Save. You have to refresh the page to see it again.

TrIn@dOr
03-07-2007, 09:07 AM
Thanks.

Quantnet
03-07-2007, 09:13 AM
I have the same problem as above.
confirmed.
Something with the postbit template edit.

I suggest people holding off on updating this until Abe1 fixed the PM error. It's more important than the extra thanks features. Not sure how my members will react tomorrow ;)

By the way, did anyone notice any changes on the showthread, postbit? It's very hard to see the difference.

TrIn@dOr
03-07-2007, 10:19 AM
Issue 1:
With option "Delete Own Thanks" to no, after i thanked in the very first screen i have the option to remove my thanks.

But reloading the page it dessapears for ever, i dont want that anybody delete their thanks, perhaps i can see that option because im admnistrator?

Issue 2:
Having "Only First Post" seted to YES, i can see and all users too, the Thanks Option in every post!

TrIn@dOr
03-07-2007, 10:52 AM
Hi,

Me again,

When I open a PM : forum/private.php?do=showpm&pmid=20394

I've this error : Fatal error: Call to undefined function post_thanks_off() in /data/www/trains/forum/includes/class_postbit.php(268) : eval()'d code on line 1

The hack working fine with the 5.3.

Disable the product in the Product Section!

I did this and waiting.

cunder
03-07-2007, 11:25 AM
Hi,

When I open a PM : forum/private.php?do=showpm&pmid=20394

I've this error : Fatal error: Call to undefined function post_thanks_off() in /data/www/trains/forum/includes/class_postbit.php(268) : eval()'d code on line 1

I Disable the product in the Product Section!

Post Thank You Hack postbit_display_start [Wijzig] [Verwijder]

Than it was Oke

these are wrongly still solved!!

Abe1
03-07-2007, 11:53 AM
The bug with PM has been fixed. Please download RC2 from my original post about 6.0.

Abe1
03-07-2007, 11:57 AM
thanks for the upgrade. Do you plan on any significant change for the official update ? Should I wait till then ?
There maybe. I dont really know. Depends on what you guys come up with.

Abe1
03-07-2007, 11:59 AM
how 'bout some more added features...

The first 2 are basically done already.

The third, I will look into.

TrIn@dOr
03-07-2007, 12:00 PM
The bug with PM has been fixed. Please download RC2 from my original post about 6.0.

Only importing the XML will update from 6.0 RC1 to RC2??

Abe1
03-07-2007, 12:03 PM
Feature requests:

(1) An option for a member to see the posts he or she was thanked in descending order of date. Presently the members who are thanked come to know only if they visit the thread again. So the purpose is a little defeated.

Done already. Link in user profile.

(2) An option for a member to receive a popup notification or a pm or an email when he or she is thanked.

Interesting. I think your members in the long run will tell you to disable it because of how often they get it. I'll see what I can do.

(3) An option to see all the thanked posts for the last month for example (time frame can be specified) with the exact members who thanked a post in a kind of summary of quick view without the post text.
Not sure I would try to do it. It can be very hard to make. Maybe some one else wants to make an addon.


Thanks Abe for developing this beautiful mod.
Your very welcome.

TrIn@dOr
03-07-2007, 12:03 PM
Issue 1:
With option "Delete Own Thanks" to no, after i thanked in the very first screen i have the option to remove my thanks.

But reloading the page it dessapears for ever, i dont want that anybody delete their thanks, perhaps i can see that option because im admnistrator?

Issue 2:
Having "Only First Post" seted to YES, i can see and all users too, the Thanks Option in every post!

With Rc2, this continues happening.

Abe1
03-07-2007, 12:11 PM
Hi,

Thanks for your hack.

suggested features :

When I make a research"Find all thanked posts", is it possible that the number of thank you appear in results ?

We would have so the number of views, the number of messages, and the number of thank you.
Look in the top right corner.

Abe1
03-07-2007, 12:12 PM
And one more thing...

When editing a post... It disappears when you click Save. You have to refresh the page to see it again.
Does it still happen in RC2?

Abe1
03-07-2007, 12:14 PM
By the way, did anyone notice any changes on the showthread, postbit? It's very hard to see the difference.

There are no diffs in the output. Many of the variables changed.

RMS-Chef
03-07-2007, 12:17 PM
For anyone with a large forum with a lot of thanks this v6x will be a HUGE help.
With over one million thanks issued on my board the loads the server were so large I had to disable it. About two weeks ago Abe gave me a pre-release version of this and it is like night and day. With the v5x I was getting server loads of 15.00-20.00. With this new update I run my usual 1.00-0.50, almost like it's not even there.

Thanks again Abe for working with me on this and I hope my situation was able to help you out with this.

Should I go ahead and install this RC version over my pre-release test version or wait for a final v6? I really don't need the new features.

Abe1
03-07-2007, 12:23 PM
Issue 1:
With option "Delete Own Thanks" to no, after i thanked in the very first screen i have the option to remove my thanks.

But reloading the page it dessapears for ever, i dont want that anybody delete their thanks, perhaps i can see that option because im admnistrator?

Issue 2:
Having "Only First Post" seted to YES, i can see and all users too, the Thanks Option in every post!
Will be fixed in RC3 coming in a few min.

RS_Jelle
03-07-2007, 12:24 PM
Does it still happen in RC2?

No only the thanks list is disappearing now after AJAX saving (just like with v5). Also, the thanks button is disappearing after saving a post with the AJAX edit.

Abe1
03-07-2007, 12:29 PM
RC3 released in original post.

RS_Jelle
03-07-2007, 12:36 PM
RC3 released in original post.

What are the two bugs you fixed in it?
Btw: you didn't update the version number in the new XML-file, it still says RC2.

@cunder: https://vborg.vbsupport.ru/showpost.php?p=1197694&postcount=596

Edit: the "remove your thanks" bug is fixed and probably also the "only first post" bug.

TrIn@dOr
03-07-2007, 12:38 PM
What are the two bugs you fixed in it?
Btw: you didn't update the version number in the new XML-file, it still says RC2.

@cunder: https://vborg.vbsupport.ru/showpost.php?p=1197694&postcount=596

x2!

Abe1 perhaps uploaded the oldone?

Abe1
03-07-2007, 01:07 PM
x2!

Abe1 perhaps uploaded the oldone?
I said the XML is the same. Still version RC2. Only 2 files were edited between RC2 and RC3.

@RS_Jelle, both your bugs.

TrIn@dOr
03-07-2007, 01:19 PM
Uploaded files and working, thanks.

skYfIrE
03-07-2007, 01:27 PM
Thanks for the RC3 :)


Look in the top right corner.
My english is not very good, and i'm not sure you right understand my idea.

For each posts of the result list, we have the number of views and the number of replies. Is it possible to have also the number of thanks of each post ?

++,
Fred

grc
03-07-2007, 01:56 PM
I love this hack and have used it for some time.

One problem with the upgrade: when I look at a post, the number of thanks doesn't show up. Instead, it looks like this:


Join Date: Oct 2005
Location: Tucson, Arizona
Posts: 1,451
Thanks:
Thanked Times in Posts

Note that the numbers are not there in "Thanked Times in Posts"

What might be causing this?

Black Tiger
03-07-2007, 02:02 PM
Do I miss something? I just got an email because I installed this hack.
It says:
I have released Post Thanks Hack version 6.0 RC1 in this post
Where is it then? At top of the page where hacks should be, only 5.3 is there to download, but no 6.0 RC1.
Or is this only for beta testers?

Abe1
03-07-2007, 02:03 PM
Thanks for the RC3 :)



My english is not very good, and i'm not sure you right understand my idea.

For each posts of the result list, we have the number of views and the number of replies. Is it possible to have also the number of thanks of each post ?

++,
Fred
I understand now. I may be able to do it easily. I'll have to see. It maybe just a template edit.

Abe1
03-07-2007, 02:04 PM
Do I miss something? I just got an email because I installed this hack.
It says:

Where is it then? At top of the page where hacks should be, only 5.3 is there to download, but no 6.0 RC1.
Or is this only for beta testers?
Go look at page 40.

Also, in the email is the direct link to it.

Abe1
03-07-2007, 02:04 PM
I love this hack and have used it for some time.

One problem with the upgrade: when I look at a post, the number of thanks doesn't show up. Instead, it looks like this:


Join Date: Oct 2005
Location: Tucson, Arizona
Posts: 1,451
Thanks:
Thanked Times in Posts

Note that the numbers are not there in "Thanked Times in Posts"

What might be causing this?
Make sure you did all the template edits again. There were many changes.

grc
03-07-2007, 02:25 PM
Make sure you did all the template edits again. There were many changes.

Found it -- I actually downloaded the original rather than the upgrades on page 40 -- that is a bit confusing.

perfphysio
03-07-2007, 02:26 PM
You have a typo in your instructions in the word legacy in postbit_legacy

Also in the stuff below I notice it is wrapped in the header. Does you code also go inside the <head> </head> part or does it go outside this? The comment below suggests it goes inside these tags

in SHOWTHREAD:

find:
--------------------------------------------------------------------
<script type="text/javascript" src="clientscript/vbulletin_post_loader.js?v=$vboptions[simpleversion]"></script>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<script type="text/javascript" src="clientscript/post_thanks.js"></script>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------

fusiongoddess
03-07-2007, 02:50 PM
I just installed version 6 and when I go to open a private message, I get this error:

Fatal error: Call to undefined function: post_thanks_off() in /home/alldoula/public_html/forums/includes/class_postbit.php(268) : eval()'d code on line 58

chopin67_2004
03-07-2007, 02:57 PM
Absolutely , I also get exactly the same error .....

Any idea about it ???

RS_Jelle
03-07-2007, 03:03 PM
Have you installed RC3 (there are three different zip files attached to the v6 RC post)? This is a RC1 problem, it's fixed in RC3 (and RC2).

fusiongoddess
03-07-2007, 03:06 PM
Yup RC3 just fixed the problem. He is updating them too quick! LOL Thanks!!!

Abe1
03-07-2007, 03:16 PM
You have a typo in your instructions in the word legacy in postbit_legacy

Also in the stuff below I notice it is wrapped in the header. Does you code also go inside the <head> </head> part or does it go outside this? The comment below suggests it goes inside these tags

in SHOWTHREAD:

find:
--------------------------------------------------------------------
<script type="text/javascript" src="clientscript/vbulletin_post_loader.js?v=$vboptions[simpleversion]"></script>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<script type="text/javascript" src="clientscript/post_thanks.js"></script>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------
In the head.

Abe1
03-07-2007, 03:17 PM
I just installed version 6 and when I go to open a private message, I get this error:

Fatal error: Call to undefined function: post_thanks_off() in /home/alldoula/public_html/forums/includes/class_postbit.php(268) : eval()'d code on line 58
That was fixed in RC2. Please update to RC3.

Quantnet
03-07-2007, 03:50 PM
thanks for the fix, Abe1. I got rc3 now

The PM bug is fixed.

chopin67_2004
03-07-2007, 04:51 PM
How stupid am I , I forgot to download RC2 and RC3 ...

ociosos
03-07-2007, 05:02 PM
thank you !!!! for the thank you hack !!!!

lol

lolo?
03-07-2007, 05:44 PM
great thanks Abe1 very good mod :)
Do you think it's possible to bump a thread like a poll when a thanks is given?

ncangler
03-07-2007, 05:58 PM
I recieved notice about a version 6 RC3 but I only see 5.3. Where is the RC3 download? Sorry if I'm missing the obvious. :)

Abe1
03-07-2007, 06:05 PM
I recieved notice about a version 6 RC3 but I only see 5.3. Where is the RC3 download? Sorry if I'm missing the obvious. :)
It's on page 40.

Sexified Ninja
03-07-2007, 07:43 PM
I updated and now there are no names under "The following users say thank you for this useful post" and clicking remove thanks simply redirects back to the thread with the thanks still there...

Abe1
03-07-2007, 08:07 PM
I updated and now there are no names under "The following users say thank you for this useful post" and clicking remove thanks simply redirects back to the thread with the thanks still there...
Did you redo all the template edits?

Sexified Ninja
03-07-2007, 09:15 PM
yes, ill try once more to be triple sure but im pretty sure i did everything the instructions said too.

Abe1
03-07-2007, 10:16 PM
For anyone with a large forum with a lot of thanks this v6x will be a HUGE help.
With over one million thanks issued on my board the loads the server were so large I had to disable it. About two weeks ago Abe gave me a pre-release version of this and it is like night and day. With the v5x I was getting server loads of 15.00-20.00. With this new update I run my usual 1.00-0.50, almost like it's not even there.

Thanks again Abe for working with me on this and I hope my situation was able to help you out with this.

Should I go ahead and install this RC version over my pre-release test version or wait for a final v6? I really don't need the new features.
You can wait then.

Roxie
03-07-2007, 10:31 PM
Thanks for the update Abe.

rjmjr69
03-07-2007, 11:22 PM
After upgrading this I now do not see the names of the people who thanked a post and when clicking REMOVE all it doesnt do a thing.
with the new template edits are we supposed to REPLACE whats already in the templates from the previous version or are we to add all the new edits with the old ones?

Abe1
03-07-2007, 11:25 PM
After upgrading this I now do not see the names of the people who thanked a post and when clicking REMOVE all it doesnt do a thing.
with the new template edits are we supposed to REPLACE whats already in the templates from the previous version or are we to add all the new edits with the old ones?
Replace all old post thanks edits.

rjmjr69
03-07-2007, 11:45 PM
I did and now I have no names for those who left thanks I can't view any PM's and when clicking remove it just refresh's the page. I have triple checked everything still same issue

rjmjr69
03-07-2007, 11:57 PM
Heres the link to the original thread man its tough to find with all these other post's

https://vborg.vbsupport.ru/showpost.php?p=1197694&postcount=596

rjmjr69
03-08-2007, 12:05 AM
RC3 same results

Abe1
03-08-2007, 02:48 AM
RC3 same results
Can I check your web site?

rjmjr69
03-08-2007, 02:57 AM
sure but one problem I reinstalled the old one until a fix comes out. Your more than welcome to view the logs or try installing it yourself if you would like. If you want access let me know I'll send you all the login info

Abe1
03-08-2007, 03:13 AM
sure but one problem I reinstalled the old one until a fix comes out. Your more than welcome to view the logs or try installing it yourself if you would like. If you want access let me know I'll send you all the login info
I wouldn't have time to do a total update. If you had it installed, I can try to figure out the problem.

Quantnet
03-08-2007, 04:11 AM
There seems to be either a bug or my own incorrect template edit

When I look on Who's online, there are lot of Yahoo Slurp Spider that are trying to get to
/forum/post_thanks.php?do=post_thanks_add&p=7490

when I click on that link, it will add a thank from me to that post. I never saw this before in the old version.

Abe1
03-08-2007, 04:21 AM
There seems to be either a bug or my own incorrect template edit

When I look on Who's online, there are lot of Yahoo Slurp Spider that are trying to get to
/forum/post_thanks.php?do=post_thanks_add&p=7490

when I click on that link, it will add a thank from me to that post. I never saw this before in the old version.
I'll look into it.

e@sy
03-08-2007, 12:07 PM
Two errors i have found:



after i edit a post as admin the button is away !

after i edit a post with quickedit the box who has say thanks ist away. With f5 it come back!



Sorry for my terrible english

Abe1
03-08-2007, 12:15 PM
Two errors i have found:



after i edit a post as admin the button is away !

after i edit a post with quickedit the box who has say thanks ist away. With f5 it come back!



Sorry for my terrible english
I know about the first. Has to do with vb's AJAX on the edit.

Not sure what you mean by the second.

e@sy
03-08-2007, 01:10 PM
I know about the first. Has to do with vb's AJAX on the edit.

Not sure what you mean by the second.

Look at the picture.


first normally
secand edit
three edit save

I think also Ajax

Hayes
03-08-2007, 01:24 PM
When I delete a post in which a user was thanked, their thank count still remains the same. Is there a way to reset their thanks or make it so when the post/thread is deleted for which they were thanked they lose that many thanks? Thanks!

Abe1
03-08-2007, 03:20 PM
When I delete a post in which a user was thanked, their thank count still remains the same. Is there a way to reset their thanks or make it so when the post/thread is deleted for which they were thanked they lose that many thanks? Thanks!
Only if you hard delete a post right now will the thanks get removed.

UbiqPhoton
03-08-2007, 04:27 PM
Ok, I installed RC1, and got the PM problem, and then updated to RC3, only by updating the xml and re-uploading the files - I didnt make any more template edits, so I dont know if this is where the mistake I made lies.

Currently every so often I am getting error emails with the following in them:


Database error in vBulletin 3.6.5:

Invalid SQL:

UPDATE user
SET post_thanks_thanked_times = 1 + post_thanks_thanked_times,
post_thanks_thanked_posts = 1 + post_thanks_thanked_posts, reputation = +
reputation
WHERE userid = 7804;

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 '+
reputation
WHERE userid = 7804' at line 2
Error Number : 1064
Date : Thursday, March 8th 2007 @ 06:08:27 PM
Script :
http://www.***.com/forum/post_thanks.php?do=post_thanks_add&using_ajax=1&p=244373



Should I have redone the template edits when updating to RC3, or have I found another bug here?

[EDIT] this happens when attempting to thank someone.

Abe1
03-08-2007, 05:16 PM
Ok, I installed RC1, and got the PM problem, and then updated to RC3, only by updating the xml and re-uploading the files - I didnt make any more template edits, so I dont know if this is where the mistake I made lies.

Currently every so often I am getting error emails with the following in them:


Database error in vBulletin 3.6.5:

Invalid SQL:

UPDATE user
SET post_thanks_thanked_times = 1 + post_thanks_thanked_times,
post_thanks_thanked_posts = 1 + post_thanks_thanked_posts, reputation = +
reputation
WHERE userid = 7804;

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 '+
reputation
WHERE userid = 7804' at line 2
Error Number : 1064
Date : Thursday, March 8th 2007 @ 06:08:27 PM
Script :
http://www.***.com/forum/post_thanks.php?do=post_thanks_add&using_ajax=1&p=244373



Should I have redone the template edits when updating to RC3, or have I found another bug here?

[EDIT] this happens when attempting to thank someone.
Do you have reputation set?

UbiqPhoton
03-08-2007, 05:32 PM
Yes, + 1

hotmasala4u
03-08-2007, 07:06 PM
Still cant see button why

UbiqPhoton
03-08-2007, 09:17 PM
check your postbit edits. also make sure you have copied post_thanks.gif into the relevant images/buttons directory for your skin, as per the instructions.

hotmasala4u
03-09-2007, 12:12 AM
check your postbit edits. also make sure you have copied post_thanks.gif into the relevant images/buttons directory for your skin, as per the instructions.

I did taht 2

Abe1
03-09-2007, 12:11 PM
Here is RC4

Fixes some bugs included a reputation bug.

There is also a fix to speed up the hack on the showthread page.

No new template edits
new XML
new post_thanks.php
new fuctions.post_thanks.php

Zagis
03-09-2007, 12:30 PM
Hi Abe,
Is it possible to have the post_thanks.gif file in .psd? Doesn't fit in my forum's style.

Abe1
03-09-2007, 12:49 PM
Hi Abe,
Is it possible to have the post_thanks.gif file in .psd? Doesn't fit in my forum's style.
Sorry, I dont do graphics. I had this button made a long time ago.

anywares
03-09-2007, 12:50 PM
I Love this mod :P

Zagis
03-09-2007, 12:52 PM
Sorry, I dont do graphics. I had this button made a long time ago.Np... Thanks anyway... Great hack! ;)

UbiqPhoton
03-09-2007, 01:25 PM
Here is RC4

Fixes some bugs included a reputation bug.

There is also a fix to speed up the hack on the showthread page.

No new template edits
new XML
new post_thanks.php
new fuctions.post_thanks.php

Thanking you! Will keep you posted ... still eagerly awaiting the final release of this and the new groans mod :)

rjmjr69
03-09-2007, 05:06 PM
Hi Abe,
Is it possible to have the post_thanks.gif file in .psd? Doesn't fit in my forum's style.

There is a hack floating around just posted yesterday IIRC that basically tells the forum to allow all psd files as gifs.... Something of that nature. Sounds like it would be perfect for what you need.

Zagis
03-09-2007, 07:20 PM
Thanks m8 ;)

oldfan
03-09-2007, 07:27 PM
could someone help me out with a button please?
I'm using this current button type http://www.metallifukinca.com/styles/metal/buttons/quote.gif

thanks!

tinnidutt
03-10-2007, 02:06 AM
i have problem to install xml file on 3.6.5 version it show me error can i know why it show

gamma912
03-10-2007, 07:28 AM
thanks! iv installed it no problem

RS_Jelle
03-10-2007, 08:43 AM
A coding suggestion: Replace the two deprecated iif functions (used in post_thanks.php) with ternary conditional operators (http://ch2.php.net/manual/en/language.expressions.php).

* iif($condition, $r_true, $r_false) --> obsolete, use ($condition ? $r_true : $r_false) instead;

It's also a very, very small speed optimization (less function calls).

There are also some old queries in the functions_post_thanks.php code (replace them with read, write, first, ... queries).

rjmjr69
03-10-2007, 10:17 AM
could someone help me out with a button please?
I'm using this current button type http://www.metallifukinca.com/styles/metal/buttons/quote.gif

thanks!

Why are you using a QUOTE button for a Thank you hack? lol There are quite a few different buttons posted.

Abe1
03-10-2007, 11:10 PM
i have problem to install xml file on 3.6.5 version it show me error can i know why it show
No clue if you dont let me know what the error was.

Abe1
03-10-2007, 11:11 PM
Why are you using a QUOTE button for a Thank you hack? lol There are quite a few different buttons posted.
I think he wants a similar picture to his quote button for thanks.

Abe1
03-10-2007, 11:13 PM
A coding suggestion: Replace the two deprecated iif functions (used in post_thanks.php) with ternary conditional operators (http://ch2.php.net/manual/en/language.expressions.php).



It's also a very, very small speed optimization (less function calls).

There are also some old queries in the functions_post_thanks.php code (replace them with read, write, first, ... queries).
I'll see what I can do.

Bounce
03-11-2007, 02:23 AM
could someone help me out with a button please?
I'm using this current button type http://www.metallifukinca.com/styles/metal/buttons/quote.gif

thanks!

I Use this one :D

https://vborg.vbsupport.ru/external/2008/01/11.gif

Bree
03-13-2007, 02:36 AM
*Installed* Thankyou =0) vBulletin 3.6.5

Got everything to work alright except for one thing and I'm pretty sure that's cause of me LOL It's the part where we are chaning the navbar template... I've totally customized it so it's always different - I'll figure out that one eventually - Everything else was VERY easy and worked perfect from getgo =0)

Always, Bree

mauro1947
03-13-2007, 11:14 AM
I installed the RC3 but now is not AJAX, my forum reload the whole page...
:(
How can i fix it?
Thanks
Bye!

Abe1
03-13-2007, 12:30 PM
I installed the RC3 but now is not AJAX, my forum reload the whole page...
:(
How can i fix it?
Thanks
Bye!
Make sure you installed it perfectly. Check to make sure you redid the template edits correct. Also, if you customized any of the post thanks templates, you have to revert them.

kellyandmike
03-13-2007, 01:04 PM
Here is what I am getting. I need help. I made the template changes, imported the product and am getting this in my postbit:

Join Date: Mar 2006
Location: Gorgeous South Carolina
Posts: 1,999
: 0

See the colon with the number of "thanks" as 0?

There is no button to give thanks. I uploaded the buttons though to my buttons/ folders.

Can anyone help a moron?

Oh, I am running 3.5.4 Will it work on this ?

Zagis
03-13-2007, 01:18 PM
I installed the RC3 but now is not AJAX, my forum reload the whole page...
I've got the same prob Abe...
I did all the template edits twice.
None of the post thanks templates have been customized.

Zagis
03-13-2007, 01:25 PM
I fixed it somehow...
I set "Integrate this hack with Post Thanks Hack?" to "No" in "Post Groan Hack" options.

KBV
03-13-2007, 07:45 PM
Any way to color the list of people who have thanked? Like with the who's online list. Would be a nice edition. :)

ddr
03-13-2007, 10:20 PM
kbv, +1

deezelpope
03-13-2007, 10:57 PM
Thank you!!

Abe1
03-14-2007, 01:38 AM
I fixed it somehow...
I set "Integrate this hack with Post Thanks Hack?" to "No" in "Post Groan Hack" options.
Yes, I said it can not integrate right now.

Abe1
03-14-2007, 01:39 AM
Any way to color the list of people who have thanked? Like with the who's online list. Would be a nice edition. :)
This would mean I would have to get the info for every user to get their musername. Would take time i assume.

rjmjr69
03-14-2007, 03:43 AM
So have all the bugs been worked out now?

Abe1
03-14-2007, 04:20 AM
So have all the bugs been worked out now?
wait a few days for the final release.

rjmjr69
03-14-2007, 05:31 AM
Ok I will thank you

Apocalypz
03-14-2007, 07:21 PM
will this still work for vbulliten 3.6.5?

RS_Jelle
03-14-2007, 08:00 PM
will this still work for vbulliten 3.6.5?

Yes, it will ;)

skYfIrE
03-15-2007, 08:03 AM
Hi Abe,

When an user gives a thanks, it augments its number of posts.

When I "Update Post Counts", this total is reset by taking away all thanks.

Is it possible not to count thanks as messages?

++,
Fred

Abe1
03-15-2007, 01:03 PM
Hi Abe,

When an user gives a thanks, it augments its number of posts.

When I "Update Post Counts", this total is reset by taking away all thanks.

Is it possible not to count thanks as messages?

++,
Fred
There is an ACP option to give them a post count or not.

ThePiston
03-15-2007, 08:09 PM
nevermind

skYfIrE
03-15-2007, 08:10 PM
Sorry, I haven't find it in the french translation. Good with the english version.

Thanks.

jazde86
03-16-2007, 01:29 PM
Could not find phrase post_thanks_delete_all_users_thanks_successfully when I do the special option. But the Phrase is there.

Buttons as PSD-files in attachment.

Abe1
03-16-2007, 08:52 PM
Could not find phrase post_thanks_delete_all_users_thanks_successfully when I do the special option. But the Phrase is there.

Buttons as PSD-files in attachment.
will be fixed in next version. The phrase should been in the error group.

jazde86
03-17-2007, 03:47 PM
Would you like to add the german version included TMS (http://www.vbhacks-germany.org/showthread.php?t=5572) here?

Hornstar
03-18-2007, 08:48 AM
The biggest problem on my site currently is users creating several other accounts and thanking there main accounts. When I find this, i ban all there other accounts for good, temp ban there main account, and then have to view every thanked post they have created and remove each one, one by one, its a real slow task.

It would be really good if there was an option in admincp that would allow you to remove all thanks from a specified user. This would save me many many hours.

Thanks.

Abe1
03-18-2007, 11:42 AM
The biggest problem on my site currently is users creating several other accounts and thanking there main accounts. When I find this, i ban all there other accounts for good, temp ban there main account, and then have to view every thanked post they have created and remove each one, one by one, its a real slow task.

It would be really good if there was an option in admincp that would allow you to remove all thanks from a specified user. This would save me many many hours.

Thanks.
Done already. Check the last Release Candidate version I released of version 6.0. Should be ready for a GOLD release in the coming days.

Valter
03-19-2007, 09:57 AM
Not sure if this was mentioned before... I have latest BETA installed and all seems to work fine except when you look at user info in PMs - all counters shows "0". This works fine in posts.

ShayOUU
03-20-2007, 01:49 PM
I installed it but the template changes didn't seem to take effect,

What template additions need to be made so I can do them myself?

mauro1947
03-20-2007, 03:23 PM
I used RC3 and when i click in "Find all thanked posts by xxxx" i only see a blank page.
Can you fix that?
Thanks
Bye!

Valter
03-20-2007, 03:49 PM
I used RC3 and when i click in "Find all thanked posts by xxxx" i only see a blank page.
Can you fix that?
Thanks
Bye!
This is not bug. Re-do template edits.

mauro1947
03-20-2007, 03:52 PM
Ok. i will try.
Thanks
Bye!

Abe1
03-20-2007, 10:13 PM
Not sure if this was mentioned before... I have latest BETA installed and all seems to work fine except when you look at user info in PMs - all counters shows "0". This works fine in posts.
Thanks!

Will be fixed in next release.

Abe1
03-20-2007, 10:14 PM
I installed it but the template changes didn't seem to take effect,

What template additions need to be made so I can do them myself?
Go through the install.txt file

Surviver
03-21-2007, 04:48 AM
Hello, there seems to be a small bug: Ich i klick thanks an reload the Page, the Thanks Button is shown up.

I fixed it:

In the plugin postbit_display_start, find:

else if (can_thank_this_post($this->post, $this->thread['isdeleted']))
{
$display_image = '';
}

and replace with:

else if (can_thank_this_post($this->post, $this->thread['isdeleted']) AND !thanked_already($this->post, $thanks))
{
$display_image = '';
}


Greetings Surviver

Abe1
03-21-2007, 12:21 PM
Hello, there seems to be a small bug: Ich i klick thanks an reload the Page, the Thanks Button is shown up.

I fixed it:

In the plugin postbit_display_start, find:

else if (can_thank_this_post($this->post, $this->thread['isdeleted']))
{
$display_image = '';
}

and replace with:

else if (can_thank_this_post($this->post, $this->thread['isdeleted']) AND !thanked_already($this->post, $thanks))
{
$display_image = '';
}


Greetings Surviver
I see where the problem is. If you have it disabled to delete thanks then it will let you use the thanks button.

Will be fixed in next release.

mauro1947
03-21-2007, 04:54 PM
This is not bug. Re-do template edits.
I re did the templates edit, but the problem still there.
Can you help me?
Thanks
Bye!

defetzer
03-21-2007, 06:51 PM
First,my english is not good.

How can i disable the Ajax Feature of this Mod?
What would have to be changed in the code?
Not for the whole forum,only for this hack!

Thank you.

jackstraw01
03-21-2007, 10:56 PM
I have done all edits, now I am trying to upload the xml, but it won't upload. I enabled global plugins as well.

Could this be a permissions issue?

jackstraw01
03-21-2007, 11:26 PM
Ok, I managed to get is installed using the rc4, but, there is no thank you button displayed on the posts, everything else seems to be working.

Any ideas?

-----

I forgot that I cant thank myself, its works.

Abe1
03-22-2007, 01:53 AM
First,my english is not good.

How can i disable the Ajax Feature of this Mod?
What would have to be changed in the code?
Not for the whole forum,only for this hack!

Thank you.
Delete the AJAX code from the plug in. Anything where you see it check if you have AJAX disabled, delete it.

kingele18
03-22-2007, 02:48 AM
i've installed it , it's a great mod but i've a problem
that the box which for ( who thanked) doesnt appear after the post :(
pls. help :)

Abe1
03-22-2007, 03:20 AM
i've installed it , it's a great mod but i've a problem
that the box which for ( who thanked) doesnt appear after the post :(
pls. help :)
Make sure you did all the template edits.

mauro1947
03-22-2007, 11:00 AM
I re did the templates edit, but the problem still there.
Can you help me?
Thanks
Bye!
Nobody can help me?
Thanks a lot!

Sam21
03-22-2007, 01:53 PM
Hey I've installed it and it's great but when using the first post ad feature in vB Ad Management 3 (Ad Sharing Edition) the thanks box appears after the ad rather than before it. Where abouts would I edit this?

P.s. Sorry if this is simple, this is my first board.

Abe1
03-23-2007, 03:04 AM
Edit where you put the 3rd template edit for postbit

redlabour
03-23-2007, 08:58 AM
Edit where you put the 3rd template edit for postbit

You announced me a Update to Thanks and Groan Hacks soon - anything new about this?

Abe1
03-23-2007, 03:09 PM
You announced me a Update to Thanks and Groan Hacks soon - anything new about this?
Yup. Soon.

Sam21
03-23-2007, 04:26 PM
Edit where you put the 3rd template edit for postbit

Thanks alot I appreciate it.

macuser
03-23-2007, 06:55 PM
How can I allow the moderators and super moderators to remove all Thanks from a single post

<if condition="$bbuserinfo['usergroupid'] == 6 ">
<a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>

Abe1
03-23-2007, 08:15 PM
How can I allow the moderators and super moderators to remove all Thanks from a single post

<if condition="$bbuserinfo['usergroupid'] == 6 ">
<a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>
Try is_moderator()

macuser
03-23-2007, 10:30 PM
Here is my template change
<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">

All moderators can see the remove link but nothing happens wenn they click

Abe1
03-24-2007, 11:38 PM
Here is my template change
<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">

All moderators can see the remove link but nothing happens wenn they click
Good point. You have to edit the functions file also.

leftie
03-25-2007, 09:08 AM
Yesterday i made an upgrade from vb3.0.12 to 3.6.5. This hack was installed in the old vb. I have tried to upgrade to this version but am getting a sql error when trying to upload the xml. Can you tell me how to correct this please.

EDIT. Forget the above, i have just read back and found that i have to run 4 sql query's when upgrading from 3.0.x .

macuser
03-25-2007, 10:27 AM
Good point. You have to edit the functions file also.

functions_post_thanks.php
function can_delete_all_thanks()
{
global $vbulletin;

if ($vbulletin->userinfo['usergroupid'] == '6')
{
return true;
}

How can i edit 6 to 5,6,7 ?

Thanks

Surviver
03-25-2007, 12:40 PM
functions_post_thanks.php
function can_delete_all_thanks()
{
global $vbulletin;

if ($vbulletin->userinfo['usergroupid'] == '6')
{
return true;
}

How can i edit 6 to 5,6,7 ?

Thanks

function can_delete_all_thanks()
{
global $vbulletin;

if (is_member_of($vbulletin->userinfo, array(5,6,7)))
{
return true;
}


Try this ;)

RedTyger
03-26-2007, 09:10 AM
Hey I've installed it and it's great but when using the first post ad feature in vB Ad Management 3 (Ad Sharing Edition) the thanks box appears after the ad rather than before it. Where abouts would I edit this?

P.s. Sorry if this is simple, this is my first board.

Just happened to be passing...the reason for the order when using my modification is a bug in Internet Explorer 6 where dropdown menus would stop working with adcode (presumably just javascript code, not sure) immediately below them. So if you change the order, be aware you may be affecting IE6 users.

vampireus
03-30-2007, 07:21 AM
Hi, is it possible to bump a thread when a user click thank?

ePrOmD
03-30-2007, 02:01 PM
hi! it?s a very cool and necessary hack :D
i want to install it in vb 3.6.4 , but when i wanna upload it, i get the following error in my browser:

ERROR
El URL solicitado no se ha podido conseguir

Mientras se intentaba traer el URL: http://www.arquinauta.com/foros/admincp/plugin.php?


can somebody help me? tks a lot!

Abe1
04-01-2007, 12:39 PM
Hi, is it possible to bump a thread when a user click thank?
I tried and failed.

It would bump the thread but the thread would not get marked as read unless there was a poll in it.

Abe1
04-01-2007, 12:39 PM
hi! it?s a very cool and necessary hack :D
i want to install it in vb 3.6.4 , but when i wanna upload it, i get the following error in my browser:



can somebody help me? tks a lot!
You can't expect me to understand that!

vampireus
04-01-2007, 04:07 PM
I tried and failed.

It would bump the thread but the thread would not get marked as read unless there was a poll in it.

Hi, I really need that function even if it's not perfect yet. Would you please show me how to do it? Thx a lot.