General annoucement for logged users only General annoucement for logged users only
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

General annoucement for logged users only

Started by mahdi1234, August 19, 2008, 06:17:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mahdi1234

Hello,

I'd like have simple announcement somewhere below buttons section to be displayed only for logged user (on all the pages). I'd like this to be content of external html file if possible (just couple of lines with very basic html elements) not to have to edit theme.php everytime when changed required.

Could you suggest how to achieve this?

PS - I'd like to avoid using MiniCMS for this and afaik it doesn't support display on all pages anyway.

thx,
mahdi

Nibbler

Set a custom header in config that points to a php containing this code:


<?php

if (USER_ID) {
    echo 
file_get_contents('yourfile.html');
}

?>



Then move the {CUSTOM_HEADER} tag in your theme's template.html to where you need the information displayed.

mahdi1234