The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
include php in template URL REWRITE
hi, i've created a new plugin for a php include (wordpress news into vbulletin)
all works fine (thx to lynne) but now how can i make this url SEO FRIENDLY? fetch_seo_url is the function? how can i do this step by step? |
#2
|
|||
|
|||
What URL are you talking about?
|
#3
|
|||
|
|||
i've made a plugin to include the wordpress news in vbulletin
but this url are not rewrited.... (now you can't see the plugin because is disabled) |
#4
|
||||
|
||||
Have you checked out the function either in the files or in the API (link in Quick Links)?
|
#5
|
|||
|
|||
i don't understand lynne, i'm italian and i'm not a coder
|
#6
|
||||
|
||||
Go to the API here - http://members.vbulletin.com/api/ and click on functions and find fetch_seo_url . That should help you understand how the function works.
|
#7
|
|||
|
|||
ok i read this
HTML Code:
Converts raw link information into an appropriate URL Verifies that the requested linktype can be handled void fetch_seo_url (string $link, array $linkinfo, [array $pageinfo = null], [string $primaryid = null], [string $primarytitle = null]) string $link: Type of link, 'thread', etc array $linkinfo: Specific information relevant to the page being linked to, $threadinfo, etc array $pageinfo: Other information relevant to the page being linked to string $primaryid: Override the default $linkinfo[userid] with $linkinfo[$primaryid] string $primarytitle: Override the default $linkinfo[title] with $linkinfo[$primarytitle] |
#8
|
||||
|
||||
It's a function you call with php. If the function were called "myfunction" and it accepted two inputs, you would call it like:
$newname = myfunction($var1, $var2); Do a search through the vbulletin files for other calls to the function ("fetch_seo_url") and you'll get 294 hits. That's 294 good examples of how to use that function. |
#9
|
|||
|
|||
not work for me, this is an example from a coder of vbseo.com but i get a fatal error:
"you have to do something like this" in your file.php PHP Code:
it's so difficult for me twice because i'm not english... PHP Code:
|
#10
|
||||
|
||||
That is a vbseo function, so you will have to ask them for help as I know nothing about that function.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|