The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I would like to print the PROPER URL on each
I would simply like to print the entire "CORRECT" url on the page.
e.g. vbulletin ignores everything after the number in the below link vbulletin.com/forum/forumdisplay.php/153-SPONGE-BOB so i'd like to simply display the correct link. e.g. vbulletin.com/forum/forumdisplay.php/153-vBulletin-4 |
#2
|
||||
|
||||
I'm not sure what you mean by "correct" URL. You mean you want it to print it without the SEO? That's neither correct, nor incorrect, but you could just put
Code:
http://www.vbulletin.com/forum/forumsdisplay/$forum[forumid] |
#3
|
|||
|
|||
thanks
e.g. I want to print the "correct" "nice name" e.g. "sponge bob square pants" is not the correct "nice name" for the forum in question. so i'd like to print the correct one - e.g. the one in the database |
#4
|
||||
|
||||
What do you mean "the one in the database"? There is no URL kept in the database.
Can you give actual links and such for us to understand what you want? |
#5
|
|||
|
|||
oh it's not in the database...?
oh...ok... well i guess i'd like to print the output of whatever process derives the "seo title" then. e.g. here are two links: https://www.vbulletin.com/forum/foru...roubleshooting https://www.vbulletin.com/forum/foru...artyPartyParty so, on my forum, i would like to print the string: vbulletin.com/forum/forumdisplay.php/153-vBulletin-4-Questions-Problems-and-Troubleshooting Despite the different formations in the above two links. |
#6
|
||||
|
||||
Well, I may be misunderstanding you, so I'll post both ways and hopefully that will cover your question. My vB4 installation is a little older, but it should still work the same.
To keep the SEO title in the URL you can use: Code:
{vb:raw vboptions.bburl}/{vb:link forum, {vb:raw forum}} To REMOVE the SEO title, you can use: Code:
{vb:raw vboptions.bburl}/forumdisplay.php/{vb:raw foruminfo.forumid} One of those should work for you, depending on what you were trying to achieve. |
#7
|
|||
|
|||
Thanks
What the first line of code does, is merely reprint the "nice SEO name" portion of the URL. I seem to be confusing people ;( I am very sorry. I'll try to be more clear. Suppose you have a forum like this: vbulletin.com/forumdisplay.php/176-vBulletin-Mobile-Suite Now, upon creation of this forum, a "nice seo name" was created. That SEO name is "vBulletin-Mobile-Suite" Hence, I would like the created string (vBulletin-Mobile-Suite), to print on the page, REGARDLESS of what people ACTUALLY link to. e.g. if someone arrives to FORUM 176 via any of the below links: vbulletin.com/forum/forumdisplay.php/176 vbulletin.com/forum/forumdisplay.php/176-PartyPartyParty vbulletin.com/forum/forumdisplay.php/176-TheWorstForumEver vbulletin.com/forum/forumdisplay.php/176-DontGoToThisForumOrYouDie vbulletin.com/forum/forumdisplay.php/176-vBulletin-Mobile-Suite I would like vBulletin to always print the words "vBulletin-Mobile-Suite" Why is this important I would like to eventually put this string into the canonical tag http://www.youtube.com/watch?v=Cm9onOGTgeM |
#8
|
||||
|
||||
Okay, I see now. The second line of code will do what you want.
|
#9
|
|||
|
|||
You mean this line?
Code:
{vb:raw vboptions.bburl}/forumdisplay.php/{vb:raw foruminfo.forumid} I need to print the "nice seo name" e.g. "vBulletin-Mobile-Suite" too. |
#10
|
||||
|
||||
Hey, okay then. The first line will do that, no matter what they typed in to get there.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|