ChrisTERiS Posted February 23, 2021 Share Posted February 23, 2021 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 Link to comment Share on other sites More sharing options...
brian! Posted February 23, 2021 Share Posted February 23, 2021 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.