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)

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

Quote:

Originally Posted by GearTripper (Post 1172320)
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

Quote:

Originally Posted by GearTripper (Post 1172320)
suggestions for future release... Ability to search posts/threads in which Thanks was given (user-specific).

Quote:

Originally Posted by Abe1 (Post 1172662)
look in a users profile

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

Quote:

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

Quote:

Originally Posted by GearTripper (Post 1173816)
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

Quote:

Originally Posted by tanyeri24 (Post 1173662)
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:
Code:

<span id="post_thanks_box_$post[postid]">$post_thanks_box</span>
post_thanks_button
Code:

<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
Code:

<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

Quote:

Originally Posted by ddr (Post 1174417)
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:
Code:

<span id="post_thanks_box_$post[postid]">$post_thanks_box</span>
post_thanks_button
Code:

<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
Code:

<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

Quote:

Originally Posted by harmor19 (Post 1175110)
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...s/thumbsup.gif
http://www.quantnet.org/forum/images.../eusa_clap.gifhttp://www.quantnet.org/forum/images.../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.
Quote:

Originally Posted by harmor19 (Post 1175110)
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:
Quote:

<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:
Quote:

<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:
Quote:

<!-- / controls above postbits -->
<if condition="!$show['guest']"><script type="text/javascript" src="/clientscript/thank.js"></script></if>
<!-- toolbar -->
in postbit_legacy template
Quote:

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

works on my forum now

Abe1 02-12-2007 12:03 PM

Quote:

Originally Posted by oricon (Post 1179078)
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

Quote:

Originally Posted by princeedward (Post 1180853)
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

Quote:

Originally Posted by hotmasala4u (Post 1180855)
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

Quote:

Originally Posted by Abe1 (Post 1181082)
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

Quote:

Originally Posted by Abe1 (Post 1181471)
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:

Quote:

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

Quote:

Originally Posted by Abe1 (Post 1174164)
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

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

Quote:

Originally Posted by TamCaVBoy3 (Post 1184295)
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

Quote:

Originally Posted by Quantnet.org (Post 1184663)
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

Quote:

Originally Posted by SecTa (Post 1185525)
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

Quote:

Originally Posted by SecTa (Post 1186062)
Could this be implemented in future?

I'm not sure.


All times are GMT. The time now is 06:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03220 seconds
  • Memory Usage 1,855KB
  • 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
  • (24)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