Results 1 to 6 of 6

Any way to link to threads outside vbulletin?

This is a discussion on Any way to link to threads outside vbulletin? within the Troubleshooting forums, part of the vBSEO SEO Plugin category; We have a 'news' forum and we dynamically pull the last 5 thread titles from there and display them [linked] ...

  1. #1
    Junior Member
    Real Name
    Nate
    Join Date
    Dec 2006
    Posts
    5
    Liked
    0 times

    Any way to link to threads outside vbulletin?

    We have a 'news' forum and we dynamically pull the last 5 thread titles from there and display them [linked] on our home page. Something tells me I won't be able to change their URL's to the vBSEO static style very easily. I'm sure its not as easy as replacing spaces in the title for dashes, and lowercase everything? Is there a function I can tap into that would make it possible?

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

    you can use vBSEO Functions for Extensibility for this.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Junior Member
    Real Name
    Nate
    Join Date
    Dec 2006
    Posts
    5
    Liked
    0 times
    Exactly what I was hoping for! However, i'm not able to get vbseo_any_url working.

    echo vb_seo_url("showthread.php?t=26479"); //returns showthread.php?t=26479

    Is it not supposed to work for that case?

  4. #4
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Try it with the full URL.

  5. #5
    Junior Member
    Real Name
    Nate
    Join Date
    Dec 2006
    Posts
    5
    Liked
    0 times
    Code:
    echo vb_seo_url("http://www.savingadvice.com/forums/showthread.php?t=26479");
    // returing http://www.savingadvice.com/forums/showthread.php?t=26479

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    vbseo_any_url() works for the threads existing in the cache only and non-standard URLs (i.e., Custom Rewrite Rules are applied).
    For normal showthread links you should use vbseo_thread_url_row() function.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. The vBSEO LinkBacks User Guide - vBSEO 3.0 GOLD
    By Joe Ward in forum General Discussion
    Replies: 49
    Last Post: 09-20-2011, 08:10 PM
  2. Sitemap alırken hata alıyorum :(
    By erhanerhan_5 in forum Türkçe
    Replies: 9
    Last Post: 11-15-2006, 09:44 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
  •