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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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