Ok, now it works!
Thanks for the support!
Jan Jaap
vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.
This is a discussion on vBSEO Functions for Extensibility within the General Discussion forums, part of the vBSEO SEO Plugin category; Ok, now it works! Thanks for the support! Jan Jaap...
Ok, now it works!
Thanks for the support!
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 05:33 AM.
[SIGPIC][/SIGPIC]
Hi!
How do I obtain the Forum ID for a page rewritten via CRR within a forum directory such as domain.com/forum-directory/chat.html
As the forum ID is not available in $GLOBALS
Best Regards,
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 05:35 AM.
[SIGPIC][/SIGPIC]
Predefined URL parts, like [forum_title]/[forum_id]/[thread_title] etc are only available in corresponding standard vB URLs and not in CRRs.
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
Hi!
Thanks for the reply!
I managed to do it by creating the custom rewritten content within forumdisplay.php?page=xxxx&f=123 so that the variables are available within the rewritten content.
Best Regards,
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 05:36 AM.
[SIGPIC][/SIGPIC]
Great!
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
Can you elaborate more on:
where $threadrow is
array(
'threadid'=>xxx,
'title'=>xxx,
....
);
I tried looking in the php file that is being included but forgot that vbSEO is encryptedIf I knew what array keys and values $threadrow needs to have it would greatly help me out.
thanks!
STR | SocalTrailRiders.org
The array keys are described in the php code you quoted in the message, i.e., this is a retrieved db table row that includes thread_id, title, forumid etc.
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
I was trying to figure out what columns exactly the query needed to select instead of having to use a * and grab all of it.
But I tried it out and with some trial and error narrowed down to the fields it needs to return the URL. The select part of the query only needs the following:
NOTE: I only did this for thread URL - #4 in the how-to. Returning forum URL and stuff like that will probably be different.Code:SELECT threadid, title, forumid
And yeah you did just say
but I was unsure if the "etc." meant there were more fields involved.
But yeah . . . thanks for the suggestions of using functions for extensibility. Now the URL's are vbSEO-ized.End result: STR | Southern California Trail Riders
STR | SocalTrailRiders.org
Looks great![]()
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
That will work on vbulletin-powered pages only (after init_startup hook is triggered).Does this function still work if the Direct Forum Links option is turned on?
It does the same function, just a shorter code - so you can use old snippet if you need compatibility with older vBSEO versions.Is there any efficiency in doing the newer method over the older method? If yes, what's a quick & easy of checking what version is being used?
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
HHHmm... OK, I think I'm good to go then.
Cool, in that case I'll just keep using the older version. So far I have not had to do anything where the version of vBSEO was a concern so if the older snippet is still a 'universal' method I'll keep with that.
Kevin, does your page trigger the init_startup? That could be why vBSEO isn't automatically rewriting your links, causing you to have to use these functions to manually do it.
The problem I was having is/was that it was rewriting the URLS but with unexpected results. At Cool SciFi I was getting just a "/" as the URL and at least one person wasn't getting any rewrites.
I'll be going back over my code again to make sure I didn't miss anything obvious. It also gets a little complicated because on my site I have the script integrated with vBa CMPS while the other person does not.
topic bookmarked - i will need this to apply vbseo in the cms i use.
3D Accelerator www.3dacc.net
Maximize your computer performance experience