Bug Border element still showing for all posts without any thanks/likes

Status
Not open for further replies.

bzcomputers

Customer
I recently edited the postbit border color to be a little darker and now this issue is very noticeable.

For any post which does not have any current thanks/likes a "postbitlegacy postcontainer" is still showing for the likes box. It appears as a 2px high line, basically a collapsed box with just the postbit border showing (see image). It really clusters up the look. Is there any way to hide the element if there are no likes?

capture.jpg
 
You can apply a style="" attribute to the wrapper via this template: dbtech_thanks_postbit_entries

That should allow you to locally eliminate the border :)
 
The style attribute would need to disable the border via something like border:0 or something like that ;)

Yeah, sometimes when writing code we should call it night long before we actually do! Thanks. :)

For those using the thanks position "Below Posts" and looking for a decent solution open template "dbtech_thanks_postbit_entries" and replace line 3:

Code:
<li class="postbitlegacy postcontainer">

with this:

Code:
<li class="postbitlegacy postcontainer" <vb:if condition="$entries == NULL">style="border:0;"</vb:if>>

This will remove the border (currently appears as a line beneath posts) if there are no thanks entries for the post, but allow the border to still show if there are thanks entries.

Edit:

Another option is to replace the 3rd line with this:

Code:
<li class="postbitlegacy postcontainer" <vb:if condition="$entries == NULL">style="border:0;"</vb:if><vb:if condition="$entries != NULL">style="border-top:0;margin-top:-10px;"</vb:if>>

This will fix the border issue like above and also move the thanks box up so it is actually touching the post it is referring to rather than sitting half way between two posts. (see below)

Before:
two.jpg

After:
one.jpg
 
Last edited:
Status
Not open for further replies.

Legacy Advanced Post Thanks / Like

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