Jump to content

whmcs 6x version announcements on portal home page


Recommended Posts

I've read thru various threads on this subject all of them old and purporting to offer solutions but haven't found one. I am trying to put latest announcements on the portal home page using the six template in version 6x of whmcs. looking at homepage.tpl it looks like there is code in there intimating that this is a feature that can be turned on or off via a setup function in the admin but I don't see anything there in that regard. Would be nice if it was something that could be controlled via admin.

Link to comment
Share on other sites

if Twitter username defined in General Setting it will display latest tweets, otherwise Announcements will be displayed

 

so all you have to do is to make Twitter Username field in General Settings empty

 

- - - Updated - - -

 

another option if you need to display both "Twitter Feed" and "Announcements" in home page is to edit /templates/six/homepage.tpl

 

replace this:

 

{elseif $announcements}

 

with

 

{/if}
{if $announcements}

Link to comment
Share on other sites

Yes good solution. Only problem I have now is I have
{if $announcement@index < 6}

and still only 3 show up but seems should be 6.

this will be caused because the $announcements array available to the homepage only contains 3 announcements... by default, the latest two are shown... you could change that to three, but you can't go beyond it.

 

the only way to get around it would be to get more announcements via querying the database - using an action hook would be the obvious way, a data feed would be another...

 

the thread below includes a hook to display announcements in the footer.

 

http://forum.whmcs.com/showthread.php?108358-Announcements-in-Footer-tpl&p=443910#post443910

 

it will give you a new variable {$footerannoucements} that you can add to your template... not necessarily in the footer, but anywhere in the homepage.tpl template - you'd just need to modify the output to suit your website styling... change the limit value from 3 to 6 and perhaps use the ClientAreaPageHome hook instead (so that it's only available to the homepage and not all pages).

 

long-term, you'd have to rewrite it to use Capsule instead of mysql, but it would certainly work in the short-term. :idea:

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