New menu item on "main menu" New menu item on "main menu"
 

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

New menu item on "main menu"

Started by user0815, May 31, 2004, 12:52:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

user0815

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!

Joachim Müller

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

skybax

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)
(https://coppermine-gallery.com/forum/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.