Page 11 of 17 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 LastLast
Results 151 to 165 of 242

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
    Liked
    0 times
    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
    25,680
    Liked
    157 times
    You can use this:
    [\w\-]
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #153
    chs
    chs is offline
    Junior Member
    Join Date
    Nov 2005
    Posts
    3
    Liked
    0 times
    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
    25,680
    Liked
    157 times
    It would be:
    '^trainingblog\.php\?username=([\w\-]+)$'
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #155
    chs
    chs is offline
    Junior Member
    Join Date
    Nov 2005
    Posts
    3
    Liked
    0 times
    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
    19
    Liked
    0 times
    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
    25,680
    Liked
    157 times
    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.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  8. #158
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    75
    Liked
    2 times
    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
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    75
    Liked
    2 times
    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, Turkey, Turkey
    Posts
    22,322
    Liked
    535 times
    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.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  11. #161
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    75
    Liked
    2 times
    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
    25,680
    Liked
    157 times
    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.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  13. #163
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    75
    Liked
    2 times
    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
    25,680
    Liked
    157 times
    You are welcome!
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  15. #165
    Member
    Real Name
    Nick Harper
    Join Date
    Oct 2008
    Posts
    48
    Liked
    0 times
    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?

Page 11 of 17 FirstFirst 1 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, 10:29 PM
  2. vBSEO 2.0 RC7 Released
    By Juan Muriente in forum vBSEO Announcements
    Replies: 17
    Last Post: 09-09-2005, 12:00 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
  •