Announcement

Collapse
No announcement yet.

How to generate url from post id

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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 ?

  • #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 customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment

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