jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
Hi!
I feel this function is good, but I can only add one news ?
Why not make it like the news in WHM ? I mean like a guest book, clients can read all the previous message.
 

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:4ba512105e][i:4ba512105e]Originally posted by jameshsi[/i:4ba512105e]

Hi!
I feel this function is good, but I can only add one news ?
Why not make it like the news in WHM ? I mean like a guest book, clients can read all the previous message.[/quote:4ba512105e]
Append your news by paragraphs &p& &/p& or table in html.
It’s not a news it's one file which you can put all of your news or append whatever you want.
 

BJMG

Active Member
Jul 24, 2002
27
0
151
Instead of typing in TEXT, treat it as an html page as you are able to include HTML code.
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
Which themes are updated with the news file?

Do we have to add the file to our own themes manually (probably a daft question!)?
 

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:dfbab1b03f][i:dfbab1b03f]Originally posted by moronhead[/i:dfbab1b03f]

Which themes are updated with the news file?

Do we have to add the file to our own themes manually (probably a daft question!)?[/quote:dfbab1b03f]
News are shown by this cpanel tag &cpanel News=&displaynews()&& default and iconic themes have this tag you can put it to your current themes then cpanel will show news in your themes too.
 

randy

Member
Oct 12, 2001
18
0
301
I just updated my cpanel version and added a messege to be displayed in the control panel, but it is not being displayed.

grep'ing the /usr/local/cpanel/base/frontend/default directory for &displaynews& also turns up nothing... am I doing something wrong?
 

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:3d6d7384a9][i:3d6d7384a9]Originally posted by randy[/i:3d6d7384a9]

I just updated my cpanel version and added a messege to be displayed in the control panel, but it is not being displayed.

grep'ing the /usr/local/cpanel/base/frontend/default directory for &displaynews& also turns up nothing... am I doing something wrong?[/quote:3d6d7384a9]
That tag is available in this file
/usr/local/cpanel/base/frontend/default/menumain.html

Also make sure you put your news in the right text area

Global cPanel News (displayed in all cPanels [including resellers' customer]):

Global WHM News (displayed in all resellers' WHMs):

Resold Customer News (displayed in all resold customers' cPanels [resellers' customers]):

cPanel News (displayed in all of your customers cPanels):
 

randy

Member
Oct 12, 2001
18
0
301
still nothing...

I updated my control panel again (though it seems like it was already updated), but I still dont see the tag anywhere...here is what i did:


# /scripts/upcp
Doing a manual update...
Cpanel updates are coming from layer2.cpanel.net
...
==& Checking to see if you have the latest version.....Yep! 5.0.0-STABLE_37
==& Exiting
==& Extracting snarf...done
http://www.burst.net/cptheme.tar.gz (5024K)
/tmp/cptheme.6062 [########################] 5024K | 8241.86K/ss
5145063 bytes transferred in 0.61 sec (8235.86k/sec)
...
#
# grep news /usr/local/cpanel/base/frontend/default/menumain.html
#