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)

sunnycher 06-20-2007 04:10 PM

I installed 6.0 gold! Thank you!!
I have a question! How easy or hard would it be to do this and it say Congratulations? Or Way To Go?

THANK YOU!

NolF 06-20-2007 04:22 PM

Quote:

Originally Posted by adam2484
basically i'd like the names of anybody who thanks the poster to be available as a dropdown if selected. not to be visible at all times, many thanks

There are a number of ways to achieve this.

Option A (is the one I use on my site) is to use a hidden div and make it visible when you click on an image. [Warning: this system is not compatible with Opera. I have tried to use it but pressing the images with Opera doesn't seem to work sadly]

Option B is to set a profile field to indicate if you want them visible or not.

-------------
Option A
Go to post_thanks_postbit_legacy template and add at the beginning
<div id="elos_$post[postid]" style="display:none"> and </div> at the end

Now on the postbit(_legacy) add where you want to display the expansion buttons
PHP Code:

<if condition="$post['post_thanks_amount'] > 0 OR $post['post_groan_amount'] > 0">
<
img class="inlineimg" src="- image url" onclick="getElementById('elos_$post[postid]').style.display='none';" title="Close" />
<
img class="inlineimg" src="+ image url" onclick="getElementById('elos_$post[postid]').style.display='';" title="Open" />
</if> 

Delete the " OR groan.... etc" if you are not using that hack. Well it doesn't change anything but.

I have tried to use the collapse system from vbulletin, but failed to make it compatible with this.
I'm not sure if it is a problem or not, but it only works when it is pressed, meaning that if you leave the psot and come back the box will be hidden again and you will have to press the button once again to see its contents

------------
Option B
Create a profile field, maybe a list box with options (for example: Yes and NO).
Go to post_thanks_postbit_legacy template and add at the beginning
<if condittion="$post[fieldXX] == Yes"> all the code </if>
(means that if the field is = to Yes it WILL show all the code)

You could combaine it with option A tho
Go to post_thanks_postbit_legacy template and add at the beginning
PHP Code:

<if condittion="$post[fieldXX] == Yes">
<
div id="elos_$post[postid]style="display:none;">
<else />
<
div id="elos_$post[postid]style="display:">
</if>
All code
</div

Means that if the field is = to Yes then it will be hidden by default, and only when clicked on the image it will reveal its contents

-----
I could elaborate on any of this two systems if the explanation has only confused you more ^^


:::::::::::::::::..
Quote:

Originally Posted by sunnycher
I have a question! How easy or hard would it be to do this and it say Congratulations? Or Way To Go?

Just change the phrases and images to whatever you want tho show or say

Quote:

Originally Posted by Fungsten
I found this in the first two "Edit Plugins". Is it a misspelling?

I've noticed that one too, but didn't think it was important, after all the name of the plugin doesn't change anything

Quote:

Originally Posted by tekguru
Any ideas how they got duplicated in the first place?

Maybe you got slightly distracted while adding the hooks ^^

Quote:

Originally Posted by sim20
Thanks, i have used the 6.0 gold version, followed instructions but i still get no button, have double checked everything and am sure everything was uploaded correctly and all template edits were done correctly, any help please guys..

No button means that either the button image is not in the button folder of your skin, you don't have enough "permissions" to see it (thank ppl) or that the template modification regarding the button was done incorrectly
Quote:

find:
--------------------------------------------------------------------
<!-- controls -->
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------
I'm wondering do you see the other features of the thank you hack? such as the user info, or info in the user profile page?

sunnycher 06-20-2007 05:04 PM

Thank you NoIF!

Another question! :) How can I remove the (Today) from the list of names where it shows who is thanking the poster?

sunnycher 06-20-2007 05:06 PM

Nevermind, I think I found it LOL Thank you :)

sim20 06-20-2007 05:23 PM

Quote:

No button means that either the button image is not in the button folder of your skin, you don't have enough "permissions" to see it (thank ppl) or that the template modification regarding the button was done incorrectly
Quote:

I'm wondering do you see the other features of the thank you hack? such as the user info, or info in the user profile page?
The template is correct, the button image is in all relevant folders and i see this in user info:

Join Date: 02-18-2007
PostsTotal Posts: 36 (0.29 posts per day)
Total Thanks: 0
Thanked 0 Times in 0 Posts
Find all thanked posts by *****
Find all posts by *****
Find all threads started by *****


But still no button!!

kwblue 06-20-2007 07:25 PM

Hello -

I'm having some issues :( It's been a while since I installed the hack and I just noticed that when threads have more than 1 post, the image (thank you image) is duplicated along with the thanks information in the header.

So, for post1 - 1 header/button, for post2 - 2 headers/buttons/, etc...

It will go on forever. I don't know what I might have done to get this to happen... any clues?

You can see the issue at:

http://www.affiliateguarddog.com/for...126.html?t=126

Thanks in advance for the help!

gregfindley 06-20-2007 08:10 PM

Hi, after some help if anyone can spare a few mins :)

I have installed this hack following the instructions, and nothing has appeared at all? I'm running 3.6.7 so I installed the 6.0 gold followed by the 3.6.7 fix, but still nothing?

I have a fairly modified template so not sure if this is whats causing the problems? WOuld appreciate any help or suggestions on solving this one!

My site is www.ChessForums.org

Thanks!
Greg

sunnycher 06-20-2007 09:22 PM

How to I remove the thanks stats in the members block/info?

sunnycher 06-20-2007 09:33 PM

I don't have a post_thanks_postbit_info template.
I have it without the info on the end.


Quote:

Originally Posted by NolF (Post 1270600)

Yes, go to the template called post_thanks_postbit_info and put at the very begining
<if condition="$bbuserinfo[usergroupid] == 6"> (in order for ONLY admins to be able to see it) and put </if> at the very end. That should do the trick, otherwise, just delete the whole content of the template, and when you want to show it again, just revert it ^^.



Fungsten 06-20-2007 09:43 PM

I can't find mine either.

Quote:

Originally Posted by sunnycher (Post 1272751)
I don't have a post_thanks_postbit_info template.
I have it without the info on the end.



All times are GMT. The time now is 12:47 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.02801 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_php_printable
  • (10)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