Back to vBulletin 4.x Template Modifications

When quoted, whole author name and a phrase are a link to original post
Mod Version: 1.00, by Alan_SP

vB Version: 4.x.x Rating: (0 vote - 0 average) Installs: 8
Released: 09 Sep 2014 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

It's a simple enhancements how quote BBcode shows itself.

In case that there's author's name and postid of quoted post, whole text (phrase plus authors name) becomes link, not just small image at the end of text. Many users don't know that this small image is actually link to original post, but with this, they maybe start use it more often.

Example is here:

On my site links in posts are red at the moment, so it's obvious what's a link, and what isn't. In code I left both image (first for quoting and second image that originally is a link to original post)

To achieve this, you first need to find template bbcode_quote

Then you need to find this code:

HTML Code:
					<img src="{vb:stylevar imgdir_misc}/quote_icon.png" alt="{vb:rawphrase quote}" /> {vb:rawphrase originally_posted_by_x, {vb:raw username}}
					<vb:if condition="$postid"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}showthread.php?{vb:raw session.sessionurl}p={vb:raw postid}#post{vb:raw postid}" rel="nofollow"><img class="inlineimg" src="{vb:stylevar imgdir_button}/viewpost-{vb:stylevar right}.png" alt="{vb:rawphrase view_post}" /></a></vb:if>
and replace it with this code:

HTML Code:
					<vb:if condition="$postid"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}showthread.php?{vb:raw session.sessionurl}p={vb:raw postid}#post{vb:raw postid}" rel="nofollow"><img src="{vb:stylevar imgdir_misc}/quote_icon.png" alt="{vb:rawphrase quote}" /> {vb:rawphrase originally_posted_by_x, {vb:raw username}} <img class="inlineimg" src="{vb:stylevar imgdir_button}/viewpost-{vb:stylevar right}.png" alt="{vb:rawphrase view_post}" /></a>
<vb:else />
<img src="{vb:stylevar imgdir_misc}/quote_icon.png" alt="{vb:rawphrase quote}" /> {vb:rawphrase originally_posted_by_x, {vb:raw username}}
</vb:if>
If you want, you could remove one or both images.

If you apply it, because posts are cached, only new posts will reflect this change immediately. So, you need to post new post with some quoted text with authors name and postid to see how it looks like on your site.

Download

No files for download.

Screenshots

Click image for larger version
Name:	citiranje.gif
Views:	317
Size:	15.9 KB
ID:	150331  


vblts.ru supports vBulletin®, 2022-2024