Advanced search  

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

Pages: [1]   Go Down

Author Topic: Filter Menus: Guest-only / View only gallery  (Read 10380 times)

0 Members and 1 Guest are viewing this topic.

AndyDragon

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 1
Filter Menus: Guest-only / View only gallery
« on: March 08, 2006, 02:38:49 am »

I have been using this software for about a week or so now, and just started to read about the plug-ins.  There is one area which I think is missing to achieve important filtering outside of the core (via a plug-in) and that is the sys and sub menus.

I have created a small mod which I propose makes it into the core code to allow plug-ins to filter both the sys and the sub menus.

http://photoworld.andydragon.com/Files/Plugin_Menu_Filter_Mod.zip contains an EasyMod-style mod file and an example plug-in which turns the software into a simplified guest-only, view-only gallery.
« Last Edit: March 30, 2006, 07:00:16 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Proposed plug-in mod...
« Reply #1 on: March 30, 2006, 06:59:53 am »

Renamed this thread from
Quote
Proposed plug-in mod...
to
Quote
Filter Menus: Guest-only / View only gallery
and attached the file to the thread in case the link goes down.
Logged

stormtrooper

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Filter Menus: Guest-only / View only gallery
« Reply #2 on: May 26, 2006, 01:03:32 am »

Works fine for me after using these two plug-ins:

NoSubMenu v1.0 Author Donnoman@donovanbray.com from cpg-contrib.org
Disables SubMenu unless you are logged in as an admin
     
Final_Extract v1.0 Author Donnoman@donovanbray.com from cpg-contrib.org
Removes specified template blocks from final output
 




Just as suggestion:
would it be possible that with the implemention of the plug-in, the admin could specify which links to show/block?

in my case:

guests: no sys/sub menus at all
members: login, upload, newest comments
admin: all menus
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.