vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Automatic 'Thank you' Hack (https://vborg.vbsupport.ru/showthread.php?t=63368)

Boofo 04-03-2004 10:31 AM

How do we set the thank you button to only show up on the forums it is turned on for? Right now, it shows up on all forums. ;)

VBDev 04-03-2004 11:07 AM

In the showthread template :

Replace
Code:

<td class="smallfont" align="right"><a href="newreply.php?do=thanks&amp;threadid=$thread[threadid]">
<img src="$stylevar[imgdir_button]/thanks.gif" alt="$vbphrase[thanks]" border="0" >
</a></td>

with

Code:

<if condition="$forum[showthanks]==1"><td class="smallfont" align="right"><a href="newreply.php?do=thanks&amp;threadid=$thread[threadid]">
<img src="$stylevar[imgdir_button]/thanks.gif" alt="$vbphrase[thanks]" border="0" >
</a></td></if>


Boofo 04-03-2004 11:30 AM

Yeah, I just figured that out before coming up here to tell you. ;)

Only, this is what I used and it seems to work fine.

HTML Code:

<if condition="$forum['showthanks']">

Boofo 04-03-2004 11:33 AM

Is there a way to add this:

Quote:

thanks username for this thread
as the title of the message instead of actually being in the message?

VitroX 04-03-2004 11:50 AM

this is a great hack.

how about adding the total pple who thank the thread starter?

something like:

5 Users already said Thank You!:

username1, username2, username3, username4, username5


it would fit better for my forum.

Thanks for your work!

VBDev 04-03-2004 01:00 PM

I don't want to work on vBulletin now ;)

But I'll look for these 2 things (title for boofo, really not hard, and for you counter vitrox, not harder )

Boofo 04-03-2004 01:01 PM

When you are ready to work on vBulletin again, I have a couple things to talk to you about. PM me when you are aready. ;)

VBDev 04-03-2004 01:03 PM

I'll have a really hard night this evening, and will not be able to work tomorrow, I think I'll stay at bed all the day ! :p

Monday, I look for this ;)

Boofo 04-03-2004 01:04 PM

PM me Monday and we'll talk then. Hope you feel better. ;)

Mone' 04-03-2004 04:08 PM

Hi thank you for the hack everything works great so far :)

I'd like to point a few things........


1 if you delete a thread with a thank you post the thank you talbe doen not get deleted in the db. Can you add the function to remove the db entry if a thread get deleted?

2 ability to bump a post when a user say thank you


3 admin should be able to delete thank you post

4 like other have requested I would like to see a counter of the totla user that said thank you :)

Apart of that great job!

Mone'


All times are GMT. The time now is 08:25 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.01835 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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