The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Make pretty URLs in my plugin
Heya!
I want to use pretty URLs in my plugin (a marketplace) and can't seem to figure out how vBulletin does it So I have something like this: PHP Code:
PHP Code:
So far the .htaccess is the "easy" way - if I add PHP Code:
Looking in members.php or other standard vBulletin pages did not seem to help and now I am asking you for any help One (imho ugly) way would be to access $_SERVER['REQUEST_URI'] and parse everything to only give me the ID 9, but this seems a bit over the top. I am sure there is another way, but I just don't know where to look Thanks for any help! Best Malte |
#2
|
|||
|
|||
Have you tried "Mod Rewrite Friendly URLs" yet?
In Control Panel,Options, Friendly URLs.... Not sure if that's what You're looking for . Good Luck |
#3
|
|||
|
|||
yes I have - it is turned on in my forum and it works fine.
I am more asking for the technical / code implementation. So what are available parameters / variables so I can access 9-da-vinci-code or even better have it parsed so I have just the ID I have found functions like fetch_seo_url(), but they don't seem to help |
#4
|
||||
|
||||
Enable friend url in control panel, it's enough for you to have friendly URLs on your site
|
#5
|
|||
|
|||
I am not sure if I am making myself clear: I do know how to enable enable it. It is already in use. My question is, how do I as adeveloper make use of the feature in my own self coded plugin
|
#6
|
|||
|
|||
Have You tried any SEO software yet? Like DragonByte SEO?.
Quote:
|
#7
|
||||
|
||||
Neither of the suggestions up to now will help him. He has no issues with friendly URLs in his forum. He has coded an addon, and he wants to hook that addon into the vB friendly URL system. He wants to make the URLs that his addon creates to be friendly.
I can't immediately help with the issue at hand, but more suggestions to get vB's friendly URLs running or buy expensive addons won't help him |
#8
|
||||
|
||||
|
#9
|
|||
|
|||
Quote:
I was starting to think I am not explaining myself clear enough Quote:
As far as I understand this is to generate a SEO URL but not parse an existing one :/ But I just found this thread https://vborg.vbsupport.ru/showthread.php?t=241364 (funny, earlier searches did show only good results...) I'll read into this and keep you posted! |
#10
|
||||
|
||||
But your problem is about generating one. You need to generate it whenever you link to pages of your addon.
Parsing does not happen in vB. That happens in .htaccess. You need an .htaccess entry that changes Code:
/marktplatz/9-da-vinci-code Code:
/marketplace.php?do=article&id=9 Edit: OK, rereading your post, you already know that and are explicitly asking for that But don't forget: the htaccess alone will not suffice - you also need to properly generate the URLs in vB. I am, however, not sure what a "german rewrite" exactly means... Anyway, rewriting as you wish seems problematic, since you have two parameters in your standard URL, but only one in the friendly one. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|