Jump to content

Announcement Link


ChrisTERiS

Recommended Posts

Hello,

Is there any function to prepare the single announcement link depending on site settings for links?

I want to use it in a hook and what I know at that time is the Announcement id

eg the Basic URL is index.php?rp=/announcements/4/This-is-the-3nd-post.html

I wish to be a magic code and have it eg $link = getAnnouncementLink($id) 🤪😂

Thank you

Chris

Link to comment
Share on other sites

4 minutes ago, WHMUp said:

Is there any function to prepare the single announcement link depending on site settings for links?

using routepath, e.g the links in announcements.tpl.... routepath can be used in hooks....

8 minutes ago, WHMUp said:

I want to use it in a hook and what I know at that time is the Announcement id

eg the Basic URL is index.php?rp=/announcements/4/This-is-the-3nd-post.html

I wish to be a magic code and have it eg $link = getAnnouncementLink($id) 🤪😂

also, you might get away with using announcements.php?id=x and let WHMCS work out the redirection.... i'm pretty sure that's always worked, though these days that might be dependent upon the user's WHMCS redirecting correctly. 😲

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated