Page 15 of 17 FirstFirst ... 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 LastLast
Results 211 to 225 of 246
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; Hello Clive, you can use this to get rewritten CMS article link: PHP Code: $GLOBALS [ 'vbseo_gcache' ][ 'cmscont' ][ ...

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

    you can use this to get rewritten CMS article link:
    PHP Code:
    $GLOBALS['vbseo_gcache']['cmscont'][$cmsrow['nodeid']] = $cmsrow;
    $url vbseo_cms_url($cmsrow['nodeid']); 
    ($cmsrow should be a populated database row with article info, similar to $threadrow described above)
    Last edited by Oleg Ignatiuk; 09-11-2010 at 04:11 AM.

  2. #212
    Junior Member Clive's Avatar
    Real Name
    Clive
    Join Date
    Feb 2008
    Posts
    19
    Liked
    0 times
    I've tried using the following code inside a CMS widget:

    PHP Code:
    while($cmsrow vB::$db->fetch_array($articlegrab))
    {
        
    $GLOBALS['vbseo_gcache']['cmscont'][$cmsrow['nodeid']] = $cmsrow;
        
    $url vbseo_cms_url('content.php?r=' $cmsrow['nodeid']);

    You can see it in action on the website that we're currently developing:
    www.ConsoleSpot.net (check the "Recent Updates" block in the sidebar, we've experimented with the "Features" tab for now). Yet, $url does not output any value. What would I be doing wrong?

  3. #213
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    Can you check what is the contents of $cmsrow in that loop?

  4. #214
    Junior Member Clive's Avatar
    Real Name
    Clive
    Join Date
    Feb 2008
    Posts
    19
    Liked
    0 times
    I've sent you a code snippet by email, Oleg.
    Thanks for your support!

  5. #215
    Junior Member
    Real Name
    Matías
    Join Date
    Nov 2009
    Posts
    23
    Liked
    0 times
    Hi
    I'm using vbseo 3.5

    i've got

    PHP Code:
    include_once ('path/vbseo/includes/functions_vbseo.php');
                
    vbseo_get_options();
                
    vbseo_prepare_seo_replace();
                
    vbseo_get_forum_info(); 
    where path it's correct

    and then

    PHP Code:
    $threadrow = array('threadid' => $data['threadid'],
                                       
    'title'=> $data['title']
                                ); 
    and finally
    PHP Code:
                    $threadurl vbseo_thread_url_row($threadrow'1');

    echo 
    $threadurl
    and i've got nothing... any ideas?

    print_r($data) results
    Array ( [0] => 19648 [threadid] => 19648 [1] => Que hubiese pasado si era en Argentina? [title] => Que hubiese pasado si era en Argentina? )

    print_r($threadrow) results
    Array ( [threadid] => 19648 [title] => Que hubiese pasado si era en Argentina? )

    So arrays are fine

  6. #216
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    $threadrow should contain all thread details, like forumid too.

  7. #217
    Junior Member
    Real Name
    Matías
    Join Date
    Nov 2009
    Posts
    23
    Liked
    0 times
    $threadrow = array('threadid' => $data['threadid'],
    'title'=> $data['title'],
    'forumid'=> $data['forumid']
    );

    Nothing more?

  8. #218
    Junior Member
    Real Name
    Matías
    Join Date
    Nov 2009
    Posts
    23
    Liked
    0 times
    Thanks, it's working

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

  10. #220
    Junior Member
    Real Name
    Marco
    Join Date
    Oct 2009
    Posts
    11
    Liked
    0 times
    hi all, i have created a plugin for include a php to my vbulletin template, all works
    this plugin is an inclusion of last 10 url from wordpress…

    but the url are not rewrited…how can i make this url seo friendly??? please i'm a newbie

  11. #221
    Senior Member webmastersitesi's Avatar
    Join Date
    Oct 2007
    Posts
    518
    Liked
    16 times
    Blog Entries
    3
    very useful data thank you. I love vbseo

  12. #222
    Junior Member
    Real Name
    Marco
    Join Date
    Oct 2009
    Posts
    11
    Liked
    0 times
    anyone can help me with my plugin?

    hi all, i have created a plugin for include a php to my vbulletin template, all works
    this plugin is an inclusion of last 10 url from wordpress…

    but the url are not rewrited…how can i make this url seo friendly??? please i'm a newbie

  13. #223
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    What is the code you are using to make SEOed URLs?

  14. #224
    Junior Member
    Real Name
    Marco
    Join Date
    Oct 2009
    Posts
    11
    Liked
    0 times
    i have only included the functions_vbseo………...

    HTML Code:
    ob_start();
      include('myfile.php');
      include_once 'includes/functions_vbseo.php';
              
      $newsjust = ob_get_contents();
      ob_end_clean();
    $ad_location['global_below_navbar'] = $newsjust . $ad_location['global_below_navbar'];

  15. #225
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    You should use functions specified in first post to make seoed links: vBSEO Functions for Extensibility (including the file is not sufficient)

Page 15 of 17 FirstFirst ... 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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
  •