How to generate url from post id

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doli
    Member
    • Mar 2006
    • 54

    [Forum] How to generate url from post id

    Hi,
    I'm doing newsletter for my users, and generated list of most popular posts.
    The list consists postid's. Is there any way I could convert this postids list to urls pointing to these posts on my forum ?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74154

    #2
    Look at the fetch_seo_url function.

    Converts raw link information into an appropriate URL Verifies that the requested linktype can be handled
    void fetch_seo_url (string $link, array $linkinfo, [array $pageinfo = null], [string $primaryid = null], [string $primarytitle = null])
    • string $link: Type of link, 'thread', etc
    • array $linkinfo: Specific information relevant to the page being linked to, $threadinfo, etc
    • array $pageinfo: Other information relevant to the page being linked to
    • string $primaryid: Override the default $linkinfo[userid] with $linkinfo[$primaryid]
    • string $primarytitle: Override the default $linkinfo[title] with $linkinfo[$primarytitle]
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...