Legacy How do I hide the thank/like bar when no thanks has been given

Status
Not open for further replies.
This suggestion has been closed. Votes are no longer accepted.
Entirely un-tested but:
Edit template dbtech_thanks_postbit_entries

Under the line:
PHP:
<vb:if condition="$show['dbtech_thanks_area']">

Add the following:
PHP:
<div id="dbtech_thanks_block_{vb:raw post.postid}" <vb:if  condition="$entries==false">style="display:none;"</if>>

Now go to the bottom, and ABOVE the line:
PHP:
</vb:if>

Add the following:
PHP:
</div>


Now to edit the javascript - open the file dbtech/thanks/clientscript/thanks.js

ABOVE the line:
PHP:
YAHOO.util.Dom.get('dbtech_thanks_entries_' +  this.postid).innerHTML = (entries[0].firstChild ?  entries[0].firstChild.nodeValue : '');

Add the following:
PHP:
YAHOO.util.Dom.get('dbtech_thanks_block_' + this.postid).style.display = "block";


See if that works for you :)

I think the JS instructions are a bit out of date since I believe I switched to jQuery, but if you're still running an older version it should work.

We'll look into adding it as standard in a future version :)
 
Status
Not open for further replies.

Similar threads

  • Locked
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
2
Views
668
  • Locked
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
37
Views
3K
  • Locked
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
0
Views
619
  • Locked
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
0
Views
2K
  • Locked
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
2
Views
1K

Legacy Advanced Post Thanks / Like

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,055
Customer rating
5.00 star(s) 1 ratings
Back
Top