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.

deezelpope 06-09-2007 06:14 PM

What exactly do you mean by "other template modefications"???

With some styles, you need to make a button.

Arda MENDES 06-09-2007 08:07 PM

Quote:

Originally Posted by libabom (Post 1261603)
"I attempt to load 6.0 version for 3.6.4 but while loading xml files the screen freezes and its unable to load files. What should i do now? "

Problem's still goin' on. What must we do?

FleXy 06-09-2007 09:02 PM

Quote:

Originally Posted by deezelpope (Post 1264938)
What exactly do you mean by "other template modefications"???

With some styles, you need to make a button.

i mean that thanks button didn't show on the template used by default, but into other installeted templates all work fine and I seen thanks button.

NolF 06-10-2007 01:28 AM

There are 2 reasons the button wouldn't show.
A) Templates are not up to date (template hooks)
B) You haven't uploaded the images in all the styles you are using. Different styles use different directories for their images. THe button uses the variable $stylevar[imgdir_button] used by each theme, so just upload it to your buttons directory of each theme and should work.

Quote:

Originally Posted by Arda MENDES
Quote:

Originally Posted by libabom
"I attempt to load 6.0 version for 3.6.4 but while loading xml files the screen freezes and its unable to load files. What should i do now? "

Problem's still goin' on. What must we do?

You mean the screen freezes when you are installing the product?
According to the instructions first upload all the files to the ftp of the site, and then when installing the product select YES on the Allow Overwrite option.

Quote:

Originally Posted by Monyet
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?

It would be helpful to know what you were doing when that error came up. For example removing or giving a thanks... who knows.

FleXy 06-10-2007 07:08 AM

Quote:

Originally Posted by NolF (Post 1265169)
There are 2 reasons the button wouldn't show.
A) Templates are not up to date (template hooks)
B) You haven't uploaded the images in all the styles you are using. Different styles use different directories for their images. THe button uses the variable $stylevar[imgdir_button] used by each theme, so just upload it to your buttons directory of each theme and should work.

Thank for your answer.
About first one A) where can I check this and correct? I think problem on this...
B) no, because I didn't see thanks counter into the postbit for every user, also like I didn't see thanks button.

ps. sorry for my english

NolF 06-10-2007 12:46 PM

Quote:

Originally Posted by FeXy
A) where can I check this and correct? I think problem on this...

You fisrt need to have your forums updated to 3.6.7 (3.6.6 minimum) Then when you login to your admincp there will be a message on the top saying something like

Quote:

There are currently XX customized template(s) that need to be updated or reverted. Some sections of vBulletin may not function if you do not do this!

Click here to view these templates!

Click on the link and it will take you to a menu with all the outdated templates.
For this hack you are interested on updating
postbit, postbit_legacy, navbar, and memberinfo
so click on "[View History]" on those templates, and you will be able to compare the changes between the templates.
You will have more yellow lines depending on how modified your template is, but you are looking for green and reds. and specially the ones called $template_hook_[var] or something like that. If you don't want to revert your template, you will have to add these hooks to your current template manually.

Once added the template hooks, this modification should work no problem ^^. In addition if you want to update all your templates, it is very useful to use the modification post of vbulletin here to determine the importance and the nature of the updates :)

Lionel 06-10-2007 06:14 PM

Quote:

Originally Posted by Ramsesx (Post 1264684)
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 :)

can you tell us how?

Mommyland 06-10-2007 07:31 PM

Quote:

Originally Posted by echocpt (Post 1263254)
Ok so i just installed the post thankyou hack 6.2 and i was like score this is great. Then this jst randomly happerned, every reply post after 1st one gets a double button for thanks and so on till its like 17th post with 17 thanks buttons.

http://www.xblgamingzone.com/images/forum prob.JPG

Can any1 think why this is happerning ?? Help Please

Thanks.
Also i don't want to turn thank first post only on. Also ud still get written in header so any surgestions?? Also im running on version 3.6.7 PL1

I am having the same problem i searched and read the thread did the suggested things but its still happening

NolF 06-10-2007 10:27 PM

You need to have product template hook vb367 fix.zip installed. It is provided on the first post.
If you have it installed and still happens might be because you are not using 3.6.7. The patch is designed to work with 3.6.7 and stop working on 3.6.8

FleXy 06-11-2007 05:33 AM

Quote:

Originally Posted by NolF (Post 1265485)
You fisrt need to have your forums updated to 3.6.7 (3.6.6 minimum) Then when you login to your admincp there will be a message on the top saying something like

Realy thank You! It's was helpful! I use 3.6.5 template. Where here THANKS button :-)

I remake template from new one, install manuany all old hacks and template editing.
It's takes long time, but now work fine

mrahul 06-11-2007 07:18 AM

if suppose I dis-able the hack after installation for a few months, then will the post count will be decreased for users or only the thanks count fetaure will be dis-abled ?

Mommyland 06-11-2007 07:42 AM

Quote:

Originally Posted by NolF (Post 1265794)
You need to have product template hook vb367 fix.zip installed. It is provided on the first post.
If you have it installed and still happens might be because you are not using 3.6.7. The patch is designed to work with 3.6.7 and stop working on 3.6.8

Thanks I installed that before and it didnt help, So Ijust unstalled everything reuploaded and its working great thanks again :)

Abe1 06-11-2007 12:31 PM

Quote:

Originally Posted by pspcrazy (Post 1260653)
I have v3.6.0 and i install hacks all the time, i had installed this in the past, but later upgraded vb versions and removed the hack. Oddly when i go to install the 6.0 version and install the product xml file, it simply crashes the server. Any idea what's up with that? Thanks abe love this hack :)

What happened if you use the upload from server option to install the hack?
Quote:

Originally Posted by Lonely Heart (Post 1260749)
i'm having a Problem with Version 6.2

My forum Version 3.6.7 PL1

when i clicked on Thank You button i got this message :

=========

Lonely Heart, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

======

when i disable AJAX it's working fine. so what to do since i need AJAX to be Active?


Thanks

I would have to look at your forums.
Quote:

Originally Posted by Franky45 (Post 1260821)
Hello Abe1.

Have you one tip for this problem?



regards

Use the recounters.
Quote:

Originally Posted by mrahul (Post 1260845)
does this actually count up as a post count or only as a thank count, i.e will it reflect on total posts also, then it would surely boost community stats.

You have an option to add to post count.

Abe1 06-11-2007 12:33 PM

Quote:

Originally Posted by Arda MENDES (Post 1264997)
Problem's still goin' on. What must we do?

I dont know where the problem is, all i know is that it is no problem with the latest version.

RTFA 06-11-2007 02:33 PM

Everything works, except the thanks button does not show up or the times thanked on the user info on the post bit template. I can see the options in the Admin panel and the thanks reference in the user profile but thats it :confused:

http://www.bamauniverse.com/forums/s...ead.php?t=1114



Using VB 3.6.7 and I have installed the hook update fix.

NolF 06-11-2007 03:13 PM

Quote:

Originally Posted by RTFA
Using VB 3.6.7 and I have installed the hook update fix.

the hook update fix and vB 3.6.7 are no good if the template it self doesn't have the hooks in the first place. Make sure your postbit or postbit_legacy, memberinfo and navbar are up to date (3.6.6 3.6.7 didn't have any template changes)

RTFA 06-11-2007 03:27 PM

Quote:

Originally Posted by NolF (Post 1266303)
the hook update fix and vB 3.6.7 are no good if the template it self doesn't have the hooks in the first place. Make sure your postbit or postbit_legacy, memberinfo and navbar are up to date (3.6.6 3.6.7 didn't have any template changes)


Ok, I will check all of those and look for the Hooks. If they are not there (IE up to date
) where do I find them so I can update.

inteller2k7 06-11-2007 04:43 PM

i cant seem to install this could someone explain to me

RTFA 06-11-2007 05:15 PM

Is this the hook you are talking about? This and only this line of code?

$template_hook[postbit_start]

This needs to be installed in the following:

postbit or postbit_legacy, memberinfo and navbar.

Is that what you are saying? The only place I see this is in my custom style in the PostBit.

Quote:

Make sure above are up to date (3.6.6 3.6.7 didn't have any template changes)
What do you mean up to date? I am running 3.6.7....you mean up to date as in this hook ( as shown above) installed?

NolF 06-11-2007 10:58 PM

Quote:

Originally Posted by RTFA
Quote:

Make sure above are up to date (3.6.6 3.6.7 didn't have any template changes)
What do you mean up to date? I am running 3.6.7....you mean up to date as in this hook ( as shown above) installed?

No. When you upgraded from any version to 3.6.6 or 3.6.7 your nonmodified templates updated. However, modified templates were left untouched and working as if it still was your old version.
In order to update your modified templates correctly, follow the instructions posted here.

Postbit postbit_legacy navbar and memberinfo all have different hooks (different names) the one you mentioned is just one of the postbits. I think there are nine different hooks in each postbit, and navbar and memberinfo have their own hooks, so follow instructions and if done correctly it will work beautifully ^^

PS heavily modified templates will take a while to update so be patient, and make a backup of it ^^

Quote:

i cant seem to install this could someone explain to me
Makes sure your forum version is 3.6.7 and templates are up to date
Upload all th files to the their corresponding directories.
Makes sure the images go to your templates images directory
Install the product (admincp -> plugins and products -> product admin) [in the bottom part of the page]
Set up your hack configuration
and you are done ^^

inteller2k7 06-12-2007 12:24 AM

i installed it but under every forum it shows what user said thanks so it shows it to every single member as u can c here
http://www.aioforums.com/forum/showthread.php?t=108
it also shows like this
Join Date: Jun 2007
Posts: 53
Thanks: 0
Thanked 2 Times in 2 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts

i need help asap

NolF 06-12-2007 12:29 AM

Quote:

Originally Posted by inteller2k7 (Post 1266634)
i installed it but under every forum it shows what user said thanks so it shows it to every single member as u can c here
http://www.aioforums.com/forum/showthread.php?t=108
it also shows like this
Join Date: Jun 2007
Posts: 53
Thanks: 0
Thanked 2 Times in 2 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts

i need help asap

Try this

inteller2k7 06-12-2007 01:01 AM

thanks man your real Help but i uploaded the Hide hack and it not working witch is pissing me of

dbirosel 06-12-2007 06:01 AM

Suggestion: When you receive a thanks, you get an automated private message.

topshams 06-12-2007 12:14 PM

I am sorry if this has already been asked. Is it possibe to completely disable this for guests so they won't even see the members who have thanked.

I am just thinking from an SEO point of view this would be a beneficial feature.

NolF 06-12-2007 01:53 PM

I think a simple conditional on post_thanks_postbit_info template at the very begining stating
<if condition="$bbuserinfo[usergroupid] != 1"> and </if> at the very end should do the trick. basically it means if the usergrouipd is NOT 1 (unregistered not logged in) show the content of the template else don't show anything ^^ (ps tested and fixed works to me unresgistered/not logged in people can't see it)

Quote:

Originally Posted by dbirosel
Suggestion: When you receive a thanks, you get an automated private message.

No offence, I think it would be a nice option, but not essential. You see In a medium/large forum where even if a restricted number of people are eligible to used the feature many people (in my forums) got well over 200 thanks in less than a month, imagine the amount of PMs that would involve.
Maybe a feature that alerts you next to the PM number the amount of thanks obtained since last connected but receiving an actual PM I think would be a bit problematic in some cases [I have considered a disable button but then...]

Quote:

Originally Posted by inteller2k7
thanks man your real Help but i uploaded the Hide hack and it not working witch is pissing me of

I'm going to assume so far you made the post thank you hack work...
I haven't used or tested hide hack, but I've noticed it hasn't been updated since December, while this hack has suffered important changes in the latest updates so the problem might be with the version incompatibility since maybe now post thank you hack does things differently than what hide hack was originally designed to use.
I know this is probably useless mumble jumble, so let's wait till someone who know these two systems better clarifies the issue. Just in advance I would suggest you to indicate with more detail how they are not working with each other as it would help the expert(s).

Ramsesx 06-12-2007 03:14 PM

Quote:

Originally Posted by Lionel (Post 1265641)
can you tell us how?

Sure I can, in GARS_pb you need to add below
Code:

<div align="$stylevar[right]" style="float:bottom-right;">
            <!-- controls -->

$template_hook[postbit_controls]
Code:

<!-- / controls -->
        </div>
        </td>
</tr>
</table>

below add:
$template_hook[postbit_end]
Code:

<if condition="$show['garsspacer']">
</div>
$spacer_close
</if>

below that add:
$template_hook[postbit_user_popup]

I'm not sure if all three hooks are necessary, but it's working, the thanks button is on the left side, not right as in normal posts, maybe you can try around a bit to fit your needs.
For the comments I use the vb default postbit_legacy but it should be possible to get this done also in the gars comment template same way as described above.
Only one thing, sometimes there's an error: Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 183 and the thanks are not shown below the posts, seems to be only occur if a thread has more pages.

inteller2k7 06-12-2007 04:50 PM

Quote:

Originally Posted by NolF (Post 1266947)
I think a simple conditional on post_thanks_postbit_info template at the very begining stating
<if condition="$bbuserinfo[usergroupid] != 1"> and </if> at the very end should do the trick. basically it means if the usergrouipd is NOT 1 (unregistered not logged in) show the content of the template else don't show anything ^^ (ps tested and fixed works to me unresgistered/not logged in people can't see it)


No offence, I think it would be a nice option, but not essential. You see In a medium/large forum where even if a restricted number of people are eligible to used the feature many people (in my forums) got well over 200 thanks in less than a month, imagine the amount of PMs that would involve.
Maybe a feature that alerts you next to the PM number the amount of thanks obtained since last connected but receiving an actual PM I think would be a bit problematic in some cases [I have considered a disable button but then...]


I'm going to assume so far you made the post thank you hack work...
I haven't used or tested hide hack, but I've noticed it hasn't been updated since December, while this hack has suffered important changes in the latest updates so the problem might be with the version incompatibility since maybe now post thank you hack does things differently than what hide hack was originally designed to use.
I know this is probably useless mumble jumble, so let's wait till someone who know these two systems better clarifies the issue. Just in advance I would suggest you to indicate with more detail how they are not working with each other as it would help the expert(s).

yes i got the thanks hack to work perfectly thanks so you saying the hide hack is not good at all i goot a question where could i get the rep botton or something am sorry for all this help it is that am new to this and dont really now much :)

topshams 06-12-2007 06:56 PM

[QUOTE=NolF;1266947]I think a simple conditional on post_thanks_postbit_info template at the very begining stating
<if condition="$bbuserinfo[usergroupid] != 1"> and </if> at the very end should do the trick. basically it means if the usergrouipd is NOT 1 (unregistered not logged in) show the content of the template else don't show anything ^^ (ps tested and fixed works to me unresgistered/not logged in people can't see it)
QUOTE]

Thanks very much for your help, I really appreciate it:) I'll make those changes now.

YukonMaster 06-12-2007 08:55 PM

There are alot of posts so I did not have a chance to read them all so I am soory if this has been asked before.

This is the link to what I am seeing, (Double and triple thank yous)
Code:

http://i151.photobucket.com/albums/s123/YukonMaster/untitled-2.jpg
How can I fix this?


All times are GMT. The time now is 10:51 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.04429 seconds
  • Memory Usage 1,878KB
  • 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_code_printable
  • (33)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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