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 11 of 13
FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 LastLast
Results 151 to 165 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; Since the \w does 0-9a-zA-Z and _ but doesn't do -, what should be used instead. e.g. in the url: ...

  1. #151
    chs
    chs is offline
    Junior Member
    Join Date
    Nov 2005
    Posts
    3
    Since the \w does 0-9a-zA-Z and _ but doesn't do -, what should be used instead.

    e.g. in the url:
    Code:
    script.php?param=user-name
    
    What CRR should be used to extract "user-name"?

    ("user-name" was created by vbseo_filter_text())

  2. #152
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    You can use this:
    [\w\-]
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  3. #153
    chs
    chs is offline
    Junior Member
    Join Date
    Nov 2005
    Posts
    3
    Based on your suggestion this is the CRR (left side)
    Code:
    '^trainingblog\.php\?username=(\w\-+)$'
    
    This is the url
    Code:
    trainingblog.php?username=user-name
    
    It's not being rewritten?

  4. #154
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    It would be:
    '^trainingblog\.php\?username=([\w\-]+)$'
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  5. #155
    chs
    chs is offline
    Junior Member
    Join Date
    Nov 2005
    Posts
    3
    That's got it, thanks.

    Perhaps it would be wise to put that in the CRR usage post. I doubt I'm the only one who's had issues with \w not picking up the -

  6. #156
    ajo
    ajo is offline
    Junior Member
    Real Name
    Miguel Angel
    Join Date
    Oct 2006
    Posts
    17
    I'm using this to build up the links to the lastest post in a thread, but it doesn't work correctly:

    Code:
    $sql = "select * from FP_thread where threadid =  ".$row["threadid"];
    $row2 =  mysql_fetch_array(mysql_query($sql,$link2));
    $url_seo =  "http://www.foropymes.es/foro/".vbseo_thread_url_row_spec($row2, VBSEO_URL_THREAD_LASTPOST);
    

    It gives us this link (which doesn't lead to latest post, just the first):


    AYUDAS: Planificando una nueva empresa - FORO PYMES

    Inside the forum we can see this link that works:


    AYUDAS: Planificando una nueva empresa - Página 2 - FORO PYMES


    Any hint about how to fix it?

    btw:
    The first page with the documentation of this page you have 'last' (which doesn't work) instead of VBSEO_URL_THREAD_LASTPOST .

    Thanks for your help!

  7. #157
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    That URL format (VBSEO_URL_THREAD_LASTPOST) corresponds to showthread.php?t=X&goto=lastpost and recent vBulletin versions do not support "goto lastpost" URLs anymore.
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  8. #158
    Junior Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    29
    how can i get blog entry urls ?

    http://domain/forums/blog.php?b=359
    to
    http://domain/forums/blogs/entrytitle


    is there any vbseo_blog_url_row() ? or anything like that ???

  9. #159
    Junior Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    29
    I try this with no success :(


    <?
    include_once 'includes/functions_vbseo.php';
    vbseo_startup();

    $conex = mysql_connect("localhost","user","password");
    $bd = mysql_select_db("database");
    $sql = 'SELECT * FROM vbblog where state="visible" AND TO_DAYS(NOW()) - TO_DAYS(FROM_UNIXTIME(dateline)) = 1 ORDER BY dateline DESC';
    $consulta = mysql_query($sql);
    while ($fila = mysql_fetch_array($consulta)) {
    $test = vbseo_blog_url(VBSEO_URL_BLOG_ENTRY, array('b'=>$fila['blogid']));
    echo "<a href=\"$test\" target=\"_blank\">$fila[title]</a><br>";
    }

    ?>

  10. #160
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul
    Posts
    16,944
    Blog Entries
    4
    Quote Originally Posted by magmf View Post
    how can i get blog entry urls ?

    http://domain/forums/blog.php?b=359
    to
    http://domain/forums/blogs/entrytitle


    is there any vbseo_blog_url_row() ? or anything like that ???
    vBSEO already has built in vB Blog url support
    Mert Gökçeimam / Crawlability Inc.

    Yeni vBSEO Kontrol Paneli ve vBSEO 3.5 Yayın Tarihleri

    vBSEO 3.5 Beta 2 Yayınlandı - vBulletin 4 Uyumlu!



    Kişisel Sitem : Felsefe - Kültür merkeziniz

  11. #161
    Junior Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    29
    Mert,

    I know but i send everyday a newsletter to my users and i want know how can i change this code

    PHP Code:
    <?
    include_once 'includes/functions_vbseo.php';
    vbseo_startup();
     
    $conex mysql_connect("localhost","user","password");
                
    $bd mysql_select_db("database");
    $sql 'SELECT * FROM vbblog where state="visible" AND TO_DAYS(NOW()) - TO_DAYS(FROM_UNIXTIME(dateline)) = 1 ORDER BY dateline DESC';
           
    $consulta mysql_query($sql);
           while (
    $fila mysql_fetch_array($consulta)) {
             
    $test vbseo_blog_url(VBSEO_URL_BLOG_ENTRY, array('b'=>$fila['blogid']));
              echo 
    "<a href=\"$test\" target=\"_blank\">$fila[title]</a><br>";
           }
     
    ?>
    to get vbseo url's instead of use standart url's

  12. #162
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    Hello Marcus,

    try this:
    PHP Code:
           while ($fila mysql_fetch_array($consulta)) {
    $vbseo_gcache['blog'][$fila['blogid']] = $fila;
             
    $test vbseo_blog_url(VBSEO_URL_BLOG_ENTRY, array('b'=>$fila['blogid']));
              echo 
    "<a href=\"$test\" target=\"_blank\">$fila[title]</a><br>";
           } 
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  13. #163
    Junior Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    29
    MAN,

    WORKED 100% THANKS A LOT
    uhuhhu

  14. #164
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    You are welcome!
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  15. #165
    Member
    Real Name
    Nick Harper
    Join Date
    Oct 2008
    Posts
    48
    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello Tobi,

    this is an array retrieved with mysql_fetch_array() function from "thread" db table.
    Here is an example:
    PHP Code:
    $getthreads $db->query("
    SELECT *
    FROM " 
    TABLE_PREFIX "thread
    WHERE threadid=123
    "
    );
    $threadrow $db->fetch_array($getthreads);

    $threadurl vbseo_thread_url_row($thread_row); 
    hi,

    I tried this but I keep getting an error saying Call to a member function query() on a non-object. Can anybody help?


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