vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Post Thank You Hack v.0.6 (https://vborg.vbsupport.ru/showthread.php?t=72141)

glenvw 11-25-2004 03:45 PM

Quote:

Originally Posted by Abe1
I just tested it, It works perfectly. The thank you button only shows up on the first post of a thread.

I must be stupid.

Ok you say then in the "Postbit" template:

Replace:

<!-- post thank you hack -->
$post_thanks
<!-- end post thank you hack -->


with

<!-- post thank you hack -->
<if condition="$post[postcount]==1"><a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a></if>
<!-- end post thank you hack -->


right?

Leave Postbit Legacy alone?

Abe1 11-25-2004 04:15 PM

LOL

Replace:

<!-- post thank you hack -->
<a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a>
<!-- end post thank you hack -->

with

<!-- post thank you hack -->
<if condition="$post[postcount]==1"><a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a></if>
<!-- end post thank you hack -->

you can leave legacy alone if you don't use it.

glenvw 11-25-2004 04:21 PM

Quote:

Originally Posted by Abe1
LOL

Replace:

<!-- post thank you hack -->
<a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a>
<!-- end post thank you hack -->


with

<!-- post thank you hack -->
<if condition="$post[postcount]==1"><a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a></if>
<!-- end post thank you hack -->


you can leave legacy alone if you don't use it.



Take a look what this does. Does not remove buttons and ads one between posts:

http://www.yes-its-free.com/forums/s...ad.php?t=20918

And I did not even use the "thank you button for this one.

Let me know when you have seen this so I can revert.

Abe1 11-25-2004 04:30 PM

Quote:

Originally Posted by glenvw
Take a look what this does. Does not remove buttons and ads one between posts:

http://www.yes-its-free.com/forums/s...ad.php?t=20918

And I did not even use the "thank you button for this one.

Let me know when you have seen this so I can revert.

Ok. Send me a PM with your postbit template. Make sure you put it in [html] tags.

shadiguy1 11-25-2004 04:45 PM

installed hack when i click on a Thank u it just goes to a blank page and does nothing more What could be wrong.

Abe1 11-25-2004 04:48 PM

Quote:

Originally Posted by shadiguy1
installed hack when i click on a Thank u it just goes to a blank page and does nothing more What could be wrong.

hmmm... no clue I'd need more info. What is thel ink that it shows? Did you do the file edits?

xtreme-mobile 11-25-2004 07:22 PM

hi mate sorry for delay in reply :ermm:

please find attached my postbit_legacy after edit

hopefully you can see where ive gone wrong :disappointed:

cheers mate

dean

Abe1 11-26-2004 03:55 PM

Version 0.2 Released:
  • Fixed what you should look for in file /includes/functions_showthread.php
  • Thank You Button doesn?t show if user used it already
  • Thank You Button doesn?t show in private messages
  • Fixed installation for forums that have a 'TABLE_PREFIX'
  • Administrators can delete all Thank Yous for a single post
  • Users can't thank them-selves

Abe1 11-26-2004 03:59 PM

Quote:

Originally Posted by xtreme-mobile
hi mate sorry for delay in reply :ermm:

please find attached my postbit_legacy after edit

hopefully you can see where ive gone wrong :disappointed:

cheers mate

dean

I don't see anything wrong with it. Do you use a different place for you're button's folder?

JohnBee 11-28-2004 07:09 AM

*** Update!

I did uninstall, applied the new version 2 and it works.

I would like to see the button disapear after we thanked the
person though.

I have one question, can this applied to 1 forum in perticular?


All times are GMT. The time now is 05:35 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.01859 seconds
  • Memory Usage 1,743KB
  • 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
  • (5)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