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)

Boofo 11-25-2004 02:03 PM

Quote:

Originally Posted by Abe1
I'm work a link that would alow admins to remove all thank your for one post.

When you delete a thread, do the thank you posts get deleted, too?

Abe1 11-25-2004 02:07 PM

Quote:

Originally Posted by Boofo
When you delete a thread, do the thank you posts get deleted, too?

No, they wouldn't get deleted. They wont create any errors though. Do you realy want to start making 10 file edits that that they DO delete when you delete a post? Also, the thank yous are only saved in a seperate table nothing to do with the posts.

Abe1 11-25-2004 02:10 PM

Just for the info, so no-one has to post about, next version will have, once you say 'thanks' you wont see that button. Also, the button will be removed from PMs.

glenvw 11-25-2004 02:22 PM

Quote:

Originally Posted by Abe1
Maybe in the postbit you should put
HTML Code:

<!-- post thank you hack -->
<if condition="$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 -->

Didn't try it, but I think it should remove the button if it's not the first post.


Didn't fix it. :-(

Abe1 11-25-2004 02:31 PM

Quote:

Originally Posted by glenvw
Didn't fix it. :-(

This should work:
HTML Code:

<!-- 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 -->


glenvw 11-25-2004 02:37 PM

Quote:

Originally Posted by Abe1
This should work:
HTML Code:

<!-- 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 -->


That doesn't work either.

It does not thank, but the button stays and after you thank, it throws an extra button between posts.

http://www.yes-its-free.com/forums/s...d.php?p=152280

Abe1 11-25-2004 03:22 PM

Quote:

Originally Posted by glenvw
That doesn't work either.

It does not thank, but the button stays and after you thank, it throws an extra button between posts.

http://www.yes-its-free.com/forums/s...d.php?p=152280

This is suppost to replace what I told you to put in the instructions, not just add it.

glenvw 11-25-2004 03:27 PM

Quote:

Originally Posted by Abe1
This is suppost to replace what I told you to put in the instructions, not just add it.

I did that. I replaced it. It doesn't work.

Abe1 11-25-2004 03:35 PM

Quote:

Originally Posted by glenvw
I did that. I replaced it. It doesn't work.

Ok then, you'll have to wait until I test it out.

Abe1 11-25-2004 03:40 PM

Quote:

Originally Posted by glenvw
I did that. I replaced it. It doesn't work.

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


All times are GMT. The time now is 05:36 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.03785 seconds
  • Memory Usage 1,746KB
  • 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_html_printable
  • (9)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