Results 1 to 10 of 10
Like Tree2Likes
  • 1 Post By Oleg Ignatiuk
  • 1 Post By Oleg Ignatiuk

How does vbseo_any_url work?

This is a discussion on How does vbseo_any_url work? within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi I'm trying to pull some content on an external page and i wan't to use vbseo url's I've got ...

  1. #1
    Junior Member
    Real Name
    Matías
    Join Date
    Nov 2009
    Posts
    23
    Liked
    0 times

    Question How does vbseo_any_url work?

    Hi

    I'm trying to pull some content on an external page and i wan't to use vbseo url's

    I've got the includes

    PHP Code:
    include_once('/var/www/taringacs.net/public_html/foros/vbseo/includes/functions_vbseo.php');
    vbseo_get_options();
    vbseo_prepare_seo_replace();
    vbseo_get_forum_info(); 
    and for ie vbseo_member_url_row it's working, but when trying to use vbseo_any_url i can't make it work

    i've tryed


    PHP Code:
     $link vbseo_any_url('album.php?albumid='.$albumid); 
    and

    PHP Code:
    $link vbseo_any_url('album.php?albumid='.$albumid.'&username='.$username.'&userid'.$userid.'=&title='.$title); 
    but it's not working

    whats wrong?

    thanks in advance

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

    it will work only in case if details for that URL are in vBSEO's cache, which is not the case normally.
    You can try using make_crawlable() function to replace all URLs in page content.

  3. #3
    Junior Member
    Real Name
    Matías
    Join Date
    Nov 2009
    Posts
    23
    Liked
    0 times
    Oh, too bad!

    Are there any functions like vbseo_member_url_row for creating album / pictures urls?

    Thanks!

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

    you can use vbseo_album_url_row() function like:
    vbseo_album_url_row($arow, VBSEO_URL_MEMBER_ALBUM);

    where $arow is the array with details containing user and album info (extracted from database).

  5. #5
    Junior Member
    Real Name
    Matías
    Join Date
    Nov 2009
    Posts
    23
    Liked
    0 times
    mmm i can't make it work

    i've got this

    PHP Code:
    $albumrow = array(
                
    'albumid'=>$albumid,
                
    'username'=>$username,
                
    'userid'=>$userid,
                
    'title'=>$title
            
    );

            
    $link vbseo_album_url_row($albumrowVBSEO_URL_MEMBER_ALBUM); 
    Warning: Illegal offset type in isset or empty in [path]/vbseo/includes/functions_vbseo_createurl.php on line 459

    Warning: constant() expects parameter 1 to be string, array given in [path]/vbseo/includes/functions_vbseo_createurl.php on line 463
    Array it's fine... i've checked it and looks like

    PHP Code:
     Array (     [albumid] => 547     [username] => Zuker     [userid] => 1     [title] => testeo 
    url should be like this

    /albums/username-userid/albumtitle-albumid.html

  6. #6
    Junior Member
    Real Name
    Matías
    Join Date
    Nov 2009
    Posts
    23
    Liked
    0 times
    any idea oleg?

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Please try to change to this line:
    $link = vbseo_album_url_row('VBSEO_URL_MEMBER_ALBUM', $albumrow);

    (with url format as string instead of constant)

  8. #8
    Junior Member
    Real Name
    Matías
    Join Date
    Nov 2009
    Posts
    23
    Liked
    0 times
    Great Oleg! Now it's working

    And what about for groups and pictures?

    I've tried this for pictures but it's not working

    PHP Code:
    $albumrow = array(
                
    'userid' => $userid,
                
    'username' => $username,
                
    'albumid' => $albumid,
                
    'title' => $albumid,
                
    'pictureid' => $pictureid,
                
    'caption' => $title
            
    );
            
            
    $link vbseo_album_url('VBSEO_URL_MEMBER_PICTURE_IMG'$albumrow); 

  9. #9
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    You should put vbseo_album_url_row() instead of vbseo_album_url() there.

  10. #10
    Junior Member
    Real Name
    Matías
    Join Date
    Nov 2009
    Posts
    23
    Liked
    0 times
    Hi oleg

    After that change i've got this url

    albums/zuker-1/test-552/foto3977-10-06-09-1707.

    and it should be

    albums/zuker-1/test-552/foto3977-10-06-09-1707.html

    it's something related to my code or i need to add manually the .html extension (no problem)

    Thanks!

    ps: How about group urls?

Similar Threads

  1. Does this work with vb 4?
    By kinderkyle in forum General Discussion
    Replies: 2
    Last Post: 08-14-2010, 02:08 PM
  2. Will this work in vB 4.0.4?
    By jdark in forum Pre-Sales Questions
    Replies: 7
    Last Post: 07-16-2010, 07:11 PM
  3. Does this really work?
    By x YNWA x in forum Pre-Sales Questions
    Replies: 9
    Last Post: 03-24-2009, 06:42 AM
  4. Opposite of vbseo_any_url ?
    By mihai11 in forum General Discussion
    Replies: 1
    Last Post: 11-07-2008, 03:47 AM
  5. Call to undefined function: vbseo_any_url()
    By MainFrame in forum Troubleshooting
    Replies: 7
    Last Post: 02-23-2008, 10:45 AM

Posting Permissions

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