Page 3 of 17 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ... LastLast
Results 31 to 45 of 247
Like Tree1Likes

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; Code: showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]?p=$post[postid] You have two question characters in this URL, while there should be only one. Also, vBulletin is designed ...

  1. #31
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Code:
    showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]?p=$post[postid]
    You have two question characters in this URL, while there should be only one. Also, vBulletin is designed to have either t=xx or p=xx for showthread.php links and you have both of them at the same time.
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  2. #32
    Junior Member Array
    Join Date
    Nov 2005
    Posts
    7
    Liked
    0 times
    I am writing a hack which I will use across multiple forums, some which have vbseo installed and some without, and I will want it to do different things depending on the outcome. What is the correct way to test if vbseo is installed and active (in a php script)? Is there a $vbulletin->options type variable to test for?

  3. #33
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Hello,

    you can use the following code:
    PHP Code:
    if(defined('VBSEO_ENABLED') && VBSEO_ENABLED)
    {

    to make sure vBSEO is installed AND enabled.
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  4. #34
    Member Array
    Real Name
    Eric Chamberlain
    Join Date
    Sep 2006
    Posts
    36
    Liked
    0 times

    How do I get the correct url when calling the fuctions?

    My forum is at http://forum.mydomain.com/. My main site is http://mydomain.com/ and on the front page it displays the last 10 posts from the forum. I am trying to get the url's on this page to be SEO url's.

    When I call the functions like vbseo_forum_url($topic->fid), the url comes back as http://mydomain.com/forum-name, which fails, because it should be http://forum.mydomain.com/forum-name. How do I get the correct url generated?

  5. #35
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Hello Eric,

    the function returns URL as "forum-name/", so you should use it like:
    PHP Code:
    echo 'http://forum.mydomain.com/'.vbseo_forum_url($topic->fid); 
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #36
    Member Array
    Real Name
    Eric Chamberlain
    Join Date
    Sep 2006
    Posts
    36
    Liked
    0 times
    Thanks,

    It's been a long week, I should have thought of that.

  7. #37
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    You are welcome!
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  8. #38
    Member Array
    Real Name
    Eric Chamberlain
    Join Date
    Sep 2006
    Posts
    36
    Liked
    0 times

    Call to undefined function vbseo_thread_url_row_spec()

    I'm trying to use vbseo_thread_url_row_spec(), but I get an undefined error in the apache logs. The other vbseo functions are working properly.

    Here's how I am calling it:

    $urlTopic = $bbpixelPPS->_vb_forum_url."/".vbseo_thread_url_row($topic);
    $urlLastPost = $bbpixelPPS->_vb_forum_url."/".vbseo_thread_url_row_spec($topic,'last');

    vbseo_thread_url_row works fine, so I assume $topic is a properly formatted row array.

    Here's the error in the log:
    ...PHP Fatal error: Call to undefined function vbseo_thread_url_row_spec() in /var/www/html/joomla/modules/mod_jvbplugin_lastpost.php on line 62...

    Any ideas why this would be failing?

  9. #39
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    ...PHP Fatal error: Call to undefined function vbseo_thread_url_row_spec() in
    /* NOTE: This issue has been resolved. The fix will be distributed with the next vBSEO build. */
    Thank you for reporting!
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  10. #40
    Senior Member Array
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    OptionsQuote message in reply?

  11. #41
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    mm.. could you please rephrase?
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  12. #42
    Senior Member Array
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    Hi!

    I don't get the any_url to work.

    This is my CRR:
    Code:
    //PHOTOPOST CRR
    'fotos/showgallery\.php?cat=502$' => 'grijze-roodstaart-papegaaien/fotos.html'
    Wich works fine, the forum grijze-roodstaart-papegaaien/ will serve the grijze roodstaart photo index on forum-direcotory/fotos.html

    This is my test in /fotos/ on the root of my domain.

    PHP Code:
    include_once '../includes/functions_vbseo.php';
    vbseo_get_options();
    vbseo_prepare_seo_replace();
    get_forum_info();
    print 
    vbseo_any_url('fotos/showgallery.php?cat=502');exit; 
    It won't convert the url to the SEO version as configured in the CRR. Also removing fotos, adding a / at the beginning or writing the full url does not work.

    What am I doing wrong?

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

  13. #43
    Senior Member Array
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    Found it!

    the ? needed to be escaped for regular expression purposes but I don't know why it did perform the rewrite without the escape!

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

  14. #44
    Senior Member Array
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    dubble post

  15. #45
    Senior Member Array
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    I still have a problem with the 301 redirects.

    I've configured the folowing redirect:

    Code:
    'fotos/showgallery\.php\?cat=502$' => 'grijze-roodstaart-papegaaien/fotos.html'
    But the page will not be redirected: Papegaaien Foto's - Grijze Roodstaart Papegaaien

    Is this because the rewritten page should actualy not exist anymore?

    I found that both sides are regular expressions so I changed the code to

    Code:
    'fotos/showgallery\.php\?cat=502$' => 'grijze-roodstaart-papegaaien/fotos\.html'
    But this doesn't work either.
    Last edited by Adult SEO; 05-16-2007 at 05:49 AM.
    [SIGPIC][/SIGPIC]

Page 3 of 17 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ... LastLast

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •