Advanced search  

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]

Pages: [1]   Go Down

Author Topic: General annoucement for logged users only  (Read 2970 times)

0 Members and 1 Guest are viewing this topic.

mahdi1234

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
General annoucement for logged users only
« on: August 19, 2008, 06:17:43 pm »

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
Logged

Nibbler

  • Guest
Re: General annoucement for logged users only
« Reply #1 on: August 19, 2008, 06:25:09 pm »

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

Code: [Select]
<?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.
Logged

mahdi1234

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: General annoucement for logged users only
« Reply #2 on: August 20, 2008, 01:00:28 pm »

Thanks Nibbler.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.