The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel/WHM News

Discussion in 'General Discussion' started by jameshsi, Sep 11, 2002.

  1. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  2. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [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.
     
  3. BJMG

    BJMG Active Member

    Joined:
    Jul 24, 2002
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Instead of typing in TEXT, treat it as an html page as you are able to include HTML code.
     
  4. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    Which themes are updated with the news file?

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

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [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.
     
  6. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    Great.. thanks itf
     
  7. randy

    randy Member

    Joined:
    Oct 12, 2001
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  8. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [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):
     
  9. randy

    randy Member

    Joined:
    Oct 12, 2001
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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
    #
     
  10. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If it helps any, the line you want is on or very near line 12 of the menumain.html page of the default cpanel, and line 11 of the iconmail.html page of the iconic cpanel.
     
Loading...

Share This Page