The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Quote link to parent message
Hi,
Firstly apologies if this is not the right place to ask this - I wasn't sure which forum it should go in. I've just changed from IPB to vB3 and there are a couple of thingsImiss (although the these are outweighed by the features we've gained). 1) When you quote part of a message in a reply the originalmessagecould be pages back in the thread. IPB puts a little "arrow"within thequote box which when clicked opens the original message thatthe quotecame from. Very useful if someone quotes from multiplemessages. 2) "Back to top" buttons either on each message or at least at the bottom of the thread. Can anyone tell me if/how these features could be added. Thanks for your help, Renada |
#2
|
|||
|
|||
Quote:
First, create a custom BBCode called snapback, as follows: Title: Snapback Tag: s Replacement: Code:
<a href="http://www.yourforums.com/forum/showpost.php?p={param}" target="_blank"><img class="inlineimg" src="http://www.yourforums.com/forum/images/snap.gif" border="0" alt="View Quoted Post"></a> Upload snap.gif to the correct path on the server. I've attached the one IPB use, but use any you like. Next, open the template newpost_quote, and add this code where you want the arrow to appear: Code:
[s]$postinfo[postid][/s] This will give you the basics of the same thing IPB have for viewing quoted posts in full. |
#3
|
||||
|
||||
Quote:
Thank you so much for your help, I've got it working of sorts. This is what my newpost_quote template says now: Code:
QUOTE=$originalposter]{$pagetext}[s]$postinfo[postid][/s][/QUOTE] Have I got something wrong because the messagenumberdoesn'tshowupandtheposter's name isn't a link. Alsotheimageappearsdirectlyafter thelastcharacter of the quote, I can'tseemtoinsertany spacesafter thetextbefore the image appears. I'm very happy to have my quote links back though, thanks again Renada |
#4
|
|||
|
|||
Quote:
Code:
QUOTE=$originalposter] [s]$postinfo[postid][/s]{$pagetext}[QUOTE If you're after one like my site has, that quotes post numbers and all sorts, then you need a whole replacement for the newreply_quote template and two more pieces of BBCode. Create this BBcode: Title: Postlink Tag: p Replacement: Code:
post <a href="http://www.yourforum.com/forum/showpost.php?p={param}" target="_blank">{param}</a> Title: SnapbackPM Tag: x Replacement: Code:
<a href="http://www.yourforum.com/forum/private.php?do=showpm&pmid={param}" target="_blank"><img class="inlineimg" src="http://www.yourforum.com/forum/snap.gif" border="0" alt="View Quoted Message"></a> Title: PMlink Tag: m Replacement: Code:
message {param} Then change your new reply template to this: Code:
quote][s]$postinfo[postid][/s] In [p]$postinfo[postid][/p][m]$pm[pmid][/m] $originalposter said: {$pagetext} [/quote As you can see, it starts to get a bit messy to cover all eventualities, and you end up with rather a lot of BBCode in your new message window when quoting. However, as you can see on my site, the end result is good. I am sure some expert coder could come up with a cleaner way of achieving this though. Obviously in the above examples you'll need to put the "[" bracket and the "]" bracket back on the tags. |
#5
|
||||
|
||||
Mark,
Wonderful stuff, thank you so much Renada |
#6
|
|||
|
|||
Thought I'd resurrect this. I'm trying to get it to work on my site, but it's not happening. (Keep in mind I'm a bit of a novice.)
This is what I have in my newpost_quote template: Quote:
|
#7
|
||||
|
||||
Quote:
This is what Mark told me to put in my newpost_quote template: Code:
[ s ]$postinfo[postid] [/s] In [p]$postinfo[postid][/p][m]$pm[pmid][/m] $originalposter said: {$pagetext} Try that and see if that helps and if it doesn't make sense I'll try to find another way to help Regards, Renada |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|