![]() |
When quoted, whole author name and a phrase are a link to original post
1 Attachment(s)
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: Attachment 150331 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}} 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> 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. |
Seems interesting, does it work with 4.2.5?
|
If they didn't changed html, of course. This is just change in links' scope, nothing else. Even with a bit different html, you can change links' scope easily.
|
Quote:
I can see someone saying that the link "doesn't work" on my site :erm: |
Quote:
|
Quote:
|
This is simple template modification, to change links' scope. But, for adding other links, you'll need to have some modification (i.e. much more coding, accessing database to know who original author is, as in quote it is only textual info, without real link to user's ID).
|
Quote:
If/when I make any adjustments, I'll pass it by you first to ensure you are good with me posting any updates |
There's no need, I tagged it reusable, anyone can make changes as they like them. So, go ahead, do whatever you want.
|
All times are GMT. The time now is 10:35 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|