JPeachey Posted February 26, 2011 Share Posted February 26, 2011 I used the code posted here, http://wiki.whmcs.com/Linking_to_WHMCS#Showing_Announcements_on_your_Site is there a way to make it so when someone clicks on the title of the announcement it takes them to WHMCS system directly to that post ?? here is a picture of what it looks like on my site. 0 Quote Link to comment Share on other sites More sharing options...
WebsiteIntegrations Posted February 26, 2011 Share Posted February 26, 2011 instead of echo("<p><font color=#cccccc>$date</font> - <b>$title</b><br>$announcement</p>"); you can add the link like so: echo("<p><a href='support/announcements.php?id=$id'><font color=#cccccc>$date</font> - <b>$title</b></a><br>$announcement</p>"); (obviously replacing support with your whmcs directory) 0 Quote Link to comment Share on other sites More sharing options...
JPeachey Posted February 26, 2011 Author Share Posted February 26, 2011 Thank-you, this did the trick and is exactly what I wanted! 0 Quote Link to comment Share on other sites More sharing options...
JPeachey Posted February 26, 2011 Author Share Posted February 26, 2011 After looking at the code and site, I thought it looked better like this: echo("<p><font color=#cccccc>$date</font> - <a href='billing/announcements.php?id=$id'><b>$title</b></a><br>$announcement</p>"); So just the title was a link, and the date was not. 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.