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: New menu item on "main menu"  (Read 2680 times)

0 Members and 1 Guest are viewing this topic.

user0815

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
New menu item on "main menu"
« on: May 31, 2004, 12:52:54 pm »

Hello,

on the top of the page, i have different menu items, for example: album list, login, search, ...

now, i will create a new item: "information"
   - when you click on this link, a new blank site (with the coppermine logo & menu) open
     (i can write on this page some information)
   - the menu item "infomation" is only visible, when a user from group XX or XY are loged on
  -  when an user from group XX click the link, the page "information_XX" open
  -  when an user from group XY click the link, the page "information_XY" open

do you understand?
only visible when an user from an allowed group loged on, and different pages for users from group XX and XY.

how can i do this?

thank you for helping an excuse my bad english!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: New menu item on "main menu"
« Reply #1 on: May 31, 2004, 02:20:40 pm »

this is not a standard feature in coppermine, you have to create the page yourself (i.e. do some coding). The menu item can be added easily, take a look at themes/yourtheme/theme.php (at the very top).

GauGau
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: New menu item on "main menu"
« Reply #2 on: August 14, 2004, 12:25:29 am »

There is no way to build this without getting dirty with code.  ::) ;D

But a simple way to build this feature is with a switch statement for the link to check the user's group and then display the proper link. The problem with this at it's current feature would have issues if visitor is listed in 2 *conflicting* groups.... also might get a bit messy trying to add additional groups. Don't think it's worth the trouble unless you're only adding several groups and then forget about the links...

-T 8)
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 14 queries.