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 12 of 13
FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 LastLast
Results 166 to 180 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; Please try to replace $db-> with $vbulletin->db->...

  1. #166
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    Please try to replace $db-> with $vbulletin->db->
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  2. #167
    Junior Member
    Real Name
    Florian
    Join Date
    Feb 2008
    Posts
    20
    Is there a way to get the original link back?

    In example:

    www.mydomain.tld/forum/thread-title.html

    to

    www.mydomain.tld/forum/showthread.php?id=???

    I need it for two extensions, who both work with the original thread and post id.

  3. #168
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    Please try this:
    Code:
    <?php
    $vbseo_url_ = 'http://www.mydomain.tld/forum/thread-title-id.html';
    $vbseo_arr = vbseo_check_url('VBSEO_URL_THREAD', $vbseo_url_);
    print_r($vbseo_arr);
    ?>
    
    $vbseo_arr['thread_id'] should contains thread ID.
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  4. #169
    Junior Member
    Real Name
    Florian
    Join Date
    Feb 2008
    Posts
    20
    Hmm, it doesn't work as i thought.

    For testing, i included it as a plugin at the global_complete hook.

    I placed the $vbseo_arr[thread_id] but it seems to be empty all the time.

  5. #170
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    What exactly is the code you use?
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  6. #171
    Junior Member
    Real Name
    Florian
    Join Date
    Feb 2008
    Posts
    20
    Here's my code:

    Code:
    Plugin: vBSEO Test
    Hook: global_complete
    Code:
    
    $link = 'http://www.my-domain.com/forum/board-support/1-first-thread.html';
    $container = vbseo_check_url('VBSEO_URL_THREAD', $link);
    
    In the navbar Template (just for testing) i put this code:

    Code:
    <hr />
    SEO: $container[thread_id]
    <hr />
    
    Thanks in advance for your help!

  7. #172
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    Please try to remove forums path and keep only:
    PHP Code:
    $link 'board-support/1-first-thread.html'
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  8. #173
    Junior Member
    Real Name
    Florian
    Join Date
    Feb 2008
    Posts
    20
    Nope, nothing! Doesn't work!

  9. #174
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    I just tried and it worked fine for me. Please try print_r($container) to see if there is anything returned.
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  10. #175
    Member
    Real Name
    Steven
    Join Date
    Jan 2009
    Location
    UK
    Posts
    41
    I guess I'm missing something but cannot figure out what

    $seo_txt only outputs the letter 'a' from $video[description]);

    Code:
    include_once 'includes/functions_vbseo.php';
    vbseo_startup(); 
    $seo_txt = vbseo_filter_text($video[description]);
    

  11. #176
    Member
    Real Name
    Steven
    Join Date
    Jan 2009
    Location
    UK
    Posts
    41
    That did work, it was just a typo

    the output however had hyphen's and removed short words, is that the way it works with description/text?

    example:

    "All the silly things that happen in the football field"
    output
    "all-silly-things-happen-football-field"

  12. #177
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Blog Entries
    9
    That is our stopwords removal feature.

  13. #178
    Member
    Real Name
    Steven
    Join Date
    Jan 2009
    Location
    UK
    Posts
    41
    Thanks Joe,

    I would like to get a word limited pagetext output like you have at the top of threads, is that possible with something else?

  14. #179
    Member
    Real Name
    Steven
    Join Date
    Jan 2009
    Location
    UK
    Posts
    41
    It's ok, did it with php

    Code:
    if ( strlen( $seo_txt) > 25 ) { 
       $seo_txt = explode( ' ',$seo_txt); 
       $seo_txt = array_slice( $seo_txt, 0, 25 ); 
       $seo_txt = implode( ' ', $seo_txt) . '...'; 
    }
    
    What do you think is a good word count for meta description?

  15. #180
    Member
    Real Name
    nayf
    Join Date
    May 2007
    Posts
    69
    how to use it with java script code than does not rewrite the links any hel pls:
    Code:
    <!--
    for (var x in threads)
    {
    document.writeln("&raquo;&nbsp<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />(by: "+threads[x].poster+")<br /><br />");
    }
    //-->
    


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