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)

tobias_t 06-08-2007 09:49 AM

Apologies if this has been asked and answered before, but - how can I deactivate thanks given and received being displayed in the user profile bar? I am eager to enable this hack in our forums.

Thanks, Tobias

cash7c3 06-09-2007 02:35 AM

Quote:

Originally Posted by Ramsesx (Post 1260788)
"You have to update your templates so they included the latest $template_hook variables."

Thanks for this hack, but I have one stupid question,

I don't get it what this means exactly, thanks.

Yes, please, if anyone could give a little more info other than "they added some stuff, you have to update some stuff and then it will work", that'd be great.

I have this hack working fine on my site modmymoto.com, and working slightly on my site modmyiphone.com. After two or three days of working on it off and on at modmyiphone.com, I STILL can't get it functioning completely (doesn't show the box under each post with who has thanked).

I know what I'm doing, if I could PLEASE get a little more detailed info on the fix, that'd be great. Thanks.

NolF 06-09-2007 03:05 AM

Lets see 6.2 requires your templates to be up to date meaning 3.6.6 (3.6.7 didn't have any changes) This update adds template hooks on the postbit and postbit_legacy templates.

When abe1 updated his hack, he removed the template changes and used the hooks instead making the installation as simple as possible. IF you don't have this template hooks, then this modification won't be able to show the button or how many groans are there.

Quote:

Originally Posted by Ramsesx
"You have to update your templates so they included the latest $template_hook variables."

means to have the postbit and postbit_legacy up to date.
The quickest way to achieve this is reverting the template, but if you have it modify use the vBulletin tools to compare the changes and update your templates.

---------
Once done this, vBulletin 3.6.7 (not sure if 3.6.6 too) has a small bug which causes to to show more than one botton etc... as shown on the image.

To fix it, download product template hook vb367 fix.zip. You can find it on the first post :) Once installed, it will be fixed ;)

----------------
Quote:

Originally Posted by tobias_t
Apologies if this has been asked and answered before, but - how can I deactivate thanks given and received being displayed in the user profile bar? I am eager to enable this hack in our forums.

Thanks, Tobias

If you don't want to show "Thanks: x" "Thanked 1 time in 1 post"
Go to the template called "post_thanks_postbit_info" and either delete all its contents or (I would do this second one) put a conditional at the beginning for example
(So only users with this usergroups can see it)
<if condition="is_member_of($bbuserinfo, 5,6,7)">
or so only peeople with those userids can see it
<if condition="in_array($bbuserinfo[userid], array(1,8,200))">

Don't forget to put the </if>

I'm sure there are other ways, but these are the ones I know :)

FleXy 06-09-2007 06:43 AM

auto template editor DIN'T work for me. it was edit all styles, but my SUB-style not.
I think that is because template already edeted with VBPlaza.

where can I find instruction how to edit it manualy... or what can I do ?

thank you

Ramsesx 06-09-2007 09:44 AM

Thanks for your kind help NolF, it was as you said, after upgrading the templates it is fine now. I even found out how to get this running on GARS :)

soulweaver 06-09-2007 11:23 AM

how do you hide what their thanking you for until they press thanks.

Monyet 06-09-2007 02:13 PM

I love this mod, this is cool. and "THANX!" :)

Monyet 06-09-2007 02:26 PM

hey, there's this error:

Quote:

Fatal error: Could not open /homepages/46/d207133605/htdocs/includes/xml/bitfield_vbulletin.xml in /includes/class_bitfield_builder.php on line 126
how to fix that?

cash7c3 06-09-2007 04:42 PM

@NoIF-thanks you, that was exactly what I needed.

FleXy 06-09-2007 06:08 PM

what can i do? on one of my style (and sub-style) THANKS button and other template modefications did not show :-(
in to the other styles all correct.


All times are GMT. The time now is 09:10 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.02561 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
  • (4)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