vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=165673)

mauro1947 06-05-2008 12:32 PM

In my 3.7.1 version, the "new" 7.6 version didnt work. I installed 7.4 version and works perfect.
What im doing wrong? :confused: :eek:
Thanks
REgards!

Xphusion 06-05-2008 02:10 PM

The Following User Says Thank You to Abe1 For This Useful Post:

Chrisedge 06-05-2008 05:23 PM

Quote:

Originally Posted by Chrisedge (Post 1540199)
I searched, and just installed, but I don't want the:

Thanks: 1
Thanked 0 Times in 0 Posts

Text to appear under the post count...How can I get rid of it? (What template to edit? Noob)

Quote:

Originally Posted by FRANKTHETANK 2 (Post 1540214)
take it out of your postbit or postbit_legacy

Quote:

Originally Posted by Chrisedge (Post 1540609)
I looked through both...what exactly am I looking to remove?

Anyone, Bueller?

sunrise2006 06-06-2008 07:33 AM

I prepared a instruction to custom modify templates, I hope it will be affective for you.

In this content you must edit some plug-ins of hack to be able to custom modify templates for Post Thank You Hack 7.x

Now begin the plug-ins changes:

Note: In here I wrote the Hook Location name for Post Thank You hack that titled as Post Thank You Hack in Plugin Manager.

Edit global_setup_start same as below:

FIND BELOW:
PHP Code:

eval('$template_hook[navbar_search_menu] .= "' fetch_template('post_thanks_navbar_search') . '";'); 

AFTER ADD:
PHP Code:

eval('$search_thanks_navbar = " ' fetch_template('post_thanks_navbar_search') . '";'); 

Save the changes.

Edit member_profileblock_fetch_unwrapped same as below:

FIND BELOW:
PHP Code:

eval('$template_hook[profile_stats_pregeneral] .= "' fetch_template('post_thanks_memberinfo_block') . '";'); 

AFTER ADD:
PHP Code:

eval('$block_thanks  = " ' fetch_template('post_thanks_memberinfo_block') . '";'); 

Save the changes.

Edit postbit_display_start same as below:

FIND BELOW:
PHP Code:

eval('$template_hook[postbit_end] .= " ' fetch_template('post_thanks_box') . '";'); 

AFTER ADD:
PHP Code:

eval('$post_thank_box = " ' fetch_template('post_thanks_box') . '";'); 

Save the changes.

Edit postbit_display_complete same as below:

FIND BELOW:
PHP Code:

eval('$template_hook[postbit_controls] .= " ' fetch_template('post_thanks_button') . '";'); 

AFTER ADD:
PHP Code:

eval('$post_thanks_button = " ' fetch_template('post_thanks_button') . '";'); 

FIND BELOW:
PHP Code:

eval('$template_hook[postbit_userinfo_right_after_posts] .= " ' fetch_template('post_thanks_postbit_info') . '";'); 

AFTER ADD:
PHP Code:

eval('$post_thanks_postbitinfo = " ' fetch_template('post_thanks_postbit_info') . '";'); 

Save the changes.

Now begin the template changes:

Changes of navbar template:

FIND BELOW [OR SAME]:
HTML Code:

<tr>
            <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>

AFTER ADD:
HTML Code:

$search_thanks_navbar
Save the changes.

Changes of memberinfo_block_statistics template (From vBulletin 3.7.x):

FIND BELOW:
HTML Code:

    <if condition="$show['post_visitor_message']"><li><a href="#visitor_messaging" onclick="return goto_post_pm();"><phrase 1="$prepared[username]">$vbphrase[post_a_visitor_message_for_x]</phrase></a></li></if>
        </ul>
    </fieldset>
    </if>

AFTER ADD:
HTML Code:

$block_thanks
Save the changes.

Changes of postbit and postbit_legacy:

FIND BELOW:
HTML Code:

<if condition="$post['editlink']">
AFTER ADD:
HTML Code:

$postbit_thanks_button
FIND BELOW:
HTML Code:

<div>$vbphrase[posts]: $post[posts]</div>
AFTER ADD:
HTML Code:

$post_thanks_postbitinfo
AT THE END LINE OF THESE TEMPLATES ADD:
HTML Code:

$post_thank_box
Save the changes.

Congratulation, you are now custom modified the templates for Post Thank You Hack 7.x :up:

Hamel el Mesl 06-06-2008 11:15 AM

1 Attachment(s)
Abe1
I translated the Hack into Arabic
this is it.

Chrisedge 06-06-2008 03:40 PM

Well, I like this hack, but I can't seem to get the info on modifying the templates. You should add in that option of not having the "counts" under the post information. I have a board that sees anything with counts and goes crazy.

I will probably uninstall if I can't figure it out...

volarium 06-06-2008 06:05 PM

Great hack, thanks! (so to speak).

Are there any plans to create a page that displays a list of "top thankers"? Just something simple like this page:

http://vfrworld.com/forums/referrers.php

Great job!

Jorrit787 06-06-2008 09:39 PM

Me and my users keep getting a No Permission error when clicking the thanks button...

SCRIPT3R 06-06-2008 10:15 PM

1 Attachment(s)
Edit.. nevermind.

SAT2M 06-07-2008 05:17 PM

I think this hack take server load becuase after I update this hack from 7.4 to 7.6 in 3.7.1 VB my server load go high

Is it true? any person have same problem?


All times are GMT. The time now is 01:26 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.05115 seconds
  • Memory Usage 1,773KB
  • 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
  • (9)bbcode_html_printable
  • (10)bbcode_php_printable
  • (3)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