The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vB4 to vB3 {vb:link}
Hi there,
I want to convert the following links in vB4 format to vB3 format, can anyone help? HTML Code:
<a href="{vb:link forum, {vb:raw thread}, {vb:raw foruminfo}}&prefixid={vb:raw thread.prefixid}" rel="nofollow">{vb:raw thread.prefix_rich}</a> Also: HTML Code:
<a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_postusername}}" rel="nofollow">{vb:rawphrase thread_starter}{vb:raw sortarrow.postusername}</a> HTML Code:
<a href="{vb:link forum, {vb:raw foruminfo}}">
|
#2
|
||||
|
||||
You may want to take a look at this article - https://vborg.vbsupport.ru/showthread.php?t=221572
|
#3
|
|||
|
|||
I have read that, but I'm not sure what {vb: link forum} is in terms of vB3, what does forum represent in terms of hyperlinking?
For the first one, would it be: HTML Code:
<a href="{vb:link forum, {vb:raw thread}, {vb:raw foruminfo}}&prefixid={vb:raw thread.prefixid}" rel="nofollow">{vb:raw thread.prefix_rich}</a> HTML Code:
<a href="$vbulletin->options['bburl']/forumdisplay.php?f=$thread['forumid']&prefixid=$thread['prefixid']" rel="nofollow">$thread['prefix_rich']</a> |
#4
|
||||
|
||||
forum means it's linking to a forum page, ie. forumdisplay.php and it is being passed the thread and foruminfo arrays.
Have you tried just hovering over the link to see what variables are being used? (Your translation looks correct except for "$vbulletin->options['bburl']" should just be "$vboptions['bburl']") |
#5
|
|||
|
|||
To get a closer look at what is going on under the hood, look at includes/class_friendly_url.php.
The type "forum" in direct linking terms, simply means forumdisplay.php; that is the script that deals with forum listing. |
#6
|
|||
|
|||
Thanks Lynne and Danny
Issue resolved |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|