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.

Page 5 of 13
FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 LastLast
Results 61 to 75 of 195

vBSEO Functions for Extensibility

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...

  1. #61
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Ok, now it works!

    Thanks for the support!

    Jan Jaap
    Last edited by Adult SEO; 05-16-2007 at 05:33 AM.
    [SIGPIC][/SIGPIC]

  2. #62
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    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]

  3. #63
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    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


  4. #64
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    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]

  5. #65
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    Great!
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  6. #66
    Member
    Real Name
    LBmtb
    Join Date
    Nov 2006
    Posts
    33
    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello Tobi,

    this is an array retrieved with mysql_fetch_array() function from "thread" db table.
    Here is an example:
    PHP Code:
    $getthreads $db->query("
    SELECT *
    FROM " 
    TABLE_PREFIX "thread
    WHERE threadid=123
    "
    );
    $threadrow $db->fetch_array($getthreads);

    $threadurl vbseo_thread_url_row($thread_row); 
    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 encrypted If I knew what array keys and values $threadrow needs to have it would greatly help me out.

    thanks!

  7. #67
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    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


  8. #68
    Member
    Real Name
    LBmtb
    Join Date
    Nov 2006
    Posts
    33
    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:
    Code:
    SELECT threadid, title, forumid
    
    NOTE: I only did this for thread URL - #4 in the how-to. Returning forum URL and stuff like that will probably be different.

    And yeah you did just say
    Quote Originally Posted by Oleg Ignatiuk View Post
    i.e., this is a retrieved db table row that includes thread_id, title, forumid etc.
    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

  9. #69
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    Looks great
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  10. #70
    Senior Member KW802's Avatar
    Real Name
    Kevin
    Join Date
    Jan 2006
    Posts
    163
    Quote Originally Posted by Juan Muriente View Post
    3. The following function returns the vBSEO URL for the forum specified by id:
    Code:
    $forumurl = vbseo_forum_url($forumid, $pagenum);
    
    Does this function still work if the Direct Forum Links option is turned on?

    Quote Originally Posted by Oleg Ignatiuk View Post
    Btw, with vBSEO3.0.0+ you can use this:
    PHP Code:
    vbseo_startup(); 
    instead of:
    PHP Code:
    vbseo_get_options();
    vbseo_prepare_seo_replace();
    get_forum_info(); 
    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?

    Thanks

  11. #71
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    Does this function still work if the Direct Forum Links option is turned on?
    That will work on vbulletin-powered pages only (after init_startup hook is triggered).

    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?
    It does the same function, just a shorter code - so you can use old snippet if you need compatibility with older vBSEO versions.
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  12. #72
    Senior Member KW802's Avatar
    Real Name
    Kevin
    Join Date
    Jan 2006
    Posts
    163
    Quote Originally Posted by Oleg Ignatiuk View Post
    That will work on vbulletin-powered pages only (after init_startup hook is triggered).
    HHHmm... OK, I think I'm good to go then.


    Quote Originally Posted by Oleg Ignatiuk View Post
    It does the same function, just a shorter code - so you can use old snippet if you need compatibility with older vBSEO versions.
    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.

  13. #73
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    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.

  14. #74
    Senior Member KW802's Avatar
    Real Name
    Kevin
    Join Date
    Jan 2006
    Posts
    163
    Quote Originally Posted by Keith Cohen View Post
    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.

  15. #75
    Junior Member Tefra's Avatar
    Real Name
    Chris T.
    Join Date
    Jan 2006
    Posts
    25
    topic bookmarked - i will need this to apply vbseo in the cms i use.
    3D Accelerator www.3dacc.net
    Maximize your computer performance experience


Similar Threads

  1. vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature!
    By Juan Muriente in forum vBSEO Announcements
    Replies: 74
    Last Post: 05-20-2006, 09:29 PM
  2. vBSEO 2.0 RC7 Released
    By Juan Muriente in forum vBSEO Announcements
    Replies: 17
    Last Post: 09-08-2005, 11:00 PM