WHMUp 10 Posted Tuesday at 03:25 PM 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 0 Quote Share this post Link to post Share on other sites
brian! 3105 Posted Tuesday at 04:26 PM 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. 😲 0 Quote Share this post Link to post Share on other sites