Results 1 to 6 of 6

vBulletin CMS URL rewrite

This is a discussion on vBulletin CMS URL rewrite within the General Discussion forums, part of the vBSEO SEO Plugin category; I`m having issues rewriting a vBulletin URL. ie. www.domain.com/content.php?r=345 Code I used : Code: include_once ' vbseo /includes/functions_vbseo.php'; vbseo_get_options(); vbseo_prepare_seo_replace(); ...

  1. #1
    Senior Member
    Real Name
    Adrian A.
    Join Date
    Aug 2005
    Posts
    150
    Liked
    0 times

    Question vBulletin CMS URL rewrite

    I`m having issues rewriting a vBulletin URL.
    ie.
    www.domain.com/content.php?r=345

    Code I used :

    Code:
    include_once 'vbseo/includes/functions_vbseo.php';
    vbseo_get_options();
    vbseo_prepare_seo_replace();
    vbseo_get_forum_info();
    vbseo_get_object_info();
    
    ---------------------
    
    $query = "SELECT * FROM vb3_cms_nodeinfo
    JOIN vb3_cms_node
    ON vb3_cms_nodeinfo.nodeid = vb3_cms_node.nodeid
    WHERE
    vb3_cms_node.setpublish = 1
    AND
    ABS(DATEDIFF(FROM_UNIXTIME(publishdate), NOW() )) <= 2";
    --------------------------------------
    
    $url = vbseo_cms_url('content.php?r='.$row['nodeid'],'content',true);
    I excluded lines with the query execution, mysql connection etc.
    The row is filled with info.
    The url is not getting produced.
    Various Topics - PM for Big Board Admin Solutions

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    Hello,

    please try to add this above "$url = vbseo_cms_url..." line:
    PHP Code:
    $vbseo_gcache['cmscont'][$row['nodeid']] = $row

  3. #3
    Senior Member
    Real Name
    Adrian A.
    Join Date
    Aug 2005
    Posts
    150
    Liked
    0 times
    Doesn't want to work.

    This is what I`m calling in the function :

    Code:
    function do_something($row)
    {
        global $vbseo_gcache;
        $vbseo_gcache['cmscont'][$row['nodeid']] = $row;
        $url = vbseo_cms_url('content.php?r='.$row['nodeid'],'content',true);
    -----------------------
    }
    After a var_dump($url) I get :

    Code:
    string(0)
    Thing is, I have another function doing something like the above, and that works :

    Code:
    function do_something_else($row)
    {
        global $vbseo_gcache;
        $vbseo_gcache['blog'][$row['blogid']] = $row;
        $url = vbseo_blog_url(VBSEO_URL_BLOG_ENTRY, array('b'=> $row['blogid']));
    -----------------------------
    }
    The above fetches the blog url ok.
    I know they are different functions, and I did some study on the cms url part ... whatever I do, the cms url construct doesn`t work.
    Various Topics - PM for Big Board Admin Solutions

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    Hello,

    try to call it like:
    $url = vbseo_cms_url('content/'.$row['nodeid'],'content',true);

  5. #5
    Senior Member
    Real Name
    Adrian A.
    Join Date
    Aug 2005
    Posts
    150
    Liked
    0 times
    Thank you. It works now.
    Various Topics - PM for Big Board Admin Solutions

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    You are welcome!

Similar Threads

  1. vBulletin 4.x vBulletin Tags rewrite..
    By SecondLaw in forum Troubleshooting
    Replies: 15
    Last Post: 09-07-2010, 11:33 PM
  2. URL rewrite settings for members outside of vbulletin
    By JulioF in forum URL Rewrite Settings
    Replies: 3
    Last Post: 07-07-2009, 01:34 PM
  3. vbulletin archive page rewrite url
    By foolix in forum Custom Rewrite Rules
    Replies: 7
    Last Post: 04-02-2009, 04:23 AM
  4. Rewrite vBulletin tags
    By jarod1981® in forum Custom Rewrite Rules
    Replies: 3
    Last Post: 02-23-2009, 06:42 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
  •