Jump to content

how can i show news on my index.html page?


Anders

Recommended Posts

2 hours ago, Anders said:

i like to show news announcements on  my front page index.html any ides how to do it with new whmcs version please?

you mean on a non-WHMCS page, not the WHMCS homepage e.g www.domain.com/whmcs/index.php, but on www.domain.com/index.html ??

I suppose one option would be to use the Announcements RSS feed...

https://docs.whmcs.com/Support_Center#Announcements

Quote

The announcements system, along with showing announcements on the WHMCS homepage, will also output announcements into an XML RSS Feed for use in readers and on other websites.

the URL for your RSS feed will be available from your Announcements sidebar...

9nG8sA6.png

usually for outputting RSS feeds, i'd use PHP - but if you're using .html filenames, that won't necessarily be an option available to you.

you could use free third-party solutions, e.g RSS2HTML, to generate the JavaScript code required to output the announcements feed and add that to your index.html page - then it will just be a case of styling the output with CSS to match your site design.

btw - if you meant showing announcements on the WHMCS homepage, then they will automatically if you haven't added a Twitter username - if you have added a twitter username, then you can use a hook to disable it on the homepage to show the 3 latest announcements.

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