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)

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:


All times are GMT. The time now is 11:13 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02483 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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