The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
When quoted, whole author name and a phrase are a link to original post Details »» | |||||||||||||||||||||||||||
When quoted, whole author name and a phrase are a link to original post
Developer Last Online: Oct 2023
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: citiranje.gif 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> 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 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. Show Your Support
|
Благодарность от: | ||
john7911 |
Comments |
#2
|
|||
|
|||
Seems interesting, does it work with 4.2.5?
|
#3
|
||||
|
||||
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.
|
#4
|
|||
|
|||
it does - though I think it might be better to click the link to trigger to the member profile page or start a PM to the member... just a thought
I can see someone saying that the link "doesn't work" on my site :erm: |
#5
|
||||
|
||||
Well, I think you missed what's discussed here. This is for quotes, so you want link to original post. There, after you follow link to original post you can access user's profile, send PM, or whatever you want.
|
#6
|
|||
|
|||
I know exactly what was/is being discussed here. I was only giving something that I believe would be more useful for my site along with answering kaoss's question about working on 4.2.5
|
#7
|
||||
|
||||
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).
|
#8
|
|||
|
|||
Quote:
If/when I make any adjustments, I'll pass it by you first to ensure you are good with me posting any updates |
Благодарность от: | ||
nookta |
#9
|
||||
|
||||
There's no need, I tagged it reusable, anyone can make changes as they like them. So, go ahead, do whatever you want.
|
2 благодарности(ей) от: | ||
nookta, scottkoz20 |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|