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: Hide menu elements of the header to unregistred users ?  (Read 3790 times)

0 Members and 1 Guest are viewing this topic.

Tonus

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Hide menu elements of the header to unregistred users ?
« on: January 11, 2006, 05:42:53 pm »

Hi !

I was looking for this kind of feature for the 1.4.x version but did not found the related topic if it exists.

It might be because of my bad english.

So here is my question : How may I hide menu elements of the header to unregistred users ?

May i use the hack I mentioned in the /include/theme.inc.php ?

Or is there something better in theme.php to do ?

Add : I was trying to use a switch (from phpBB, I haven't found much on coppermine's) but I don't know where or how I could create mine. I tried to but my php knowledge is too poor and i failed to adapte what i've found.

Thanks for your work.
Logged
##########################################
####### Better light a candle than damn darkness #######
## Mieux vaut allumer une chandelle que maudire l'obscurité ##
####### Coppermine Gallery bridged with phpBB2 #######
##########################################

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Hide menu elements of the header to unregistred users ?
« Reply #1 on: January 11, 2006, 07:20:19 pm »

don't edit themes.inc.php! Don't. Ever.
Don't try hijacking threads, and don't double-post - it causes extra moderation work and makes supporters reluctant to help. I deleted your reply to the original thread, as it is identical with your above posting. The hack you mentioned works for cpg1.4.x as well as for cpg1.3.x, the only thing you have to do is copy the relevant section (the button creation) from the sample theme into your custom theme (themes/yourtheme/theme.php) and then start editing it accordingly.
Logged

Tonus

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Hide menu elements of the header to unregistred users ?
« Reply #2 on: January 11, 2006, 09:17:52 pm »

don't edit themes.inc.php! Don't. Ever.
Don't try hijacking threads, and don't double-post - it causes extra moderation work and makes supporters reluctant to help.

Sorry for this, I won't do it anymore

copy the relevant section (the button creation) from the sample theme into your custom theme (themes/yourtheme/theme.php) and then start editing it accordingly.

Sorry, like a sissy, I was trying to thing this in the classic theme that seems to be very different than the others...

Back working on it, thanks for your help.
Logged
##########################################
####### Better light a candle than damn darkness #######
## Mieux vaut allumer une chandelle que maudire l'obscurité ##
####### Coppermine Gallery bridged with phpBB2 #######
##########################################

Tonus

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Hide menu elements of the header to unregistred users ?
« Reply #3 on: January 11, 2006, 10:24:13 pm »

I haven't manage to make visible olny to registered this part of the code :
Code: [Select]
<!-- BEGIN album_list -->
     <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}"><img src="themes/subsilver/images/icon_mini_groups.gif" alt="" />{ALB_LIST_LNK}</a>&nbsp;
<!-- END album_list -->

<a href="{LASTUP_TGT}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{LASTUP_LNK}</a>&nbsp;
<a href="{LASTCOM_TGT}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{LASTCOM_LNK}</a>&nbsp;
<a href="{TOPN_TGT}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{TOPN_LNK}</a>&nbsp;<br />
<a href="{TOPRATED_TGT}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{TOPRATED_LNK}</a>&nbsp;
<a href="{FAV_TGT}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{FAV_LNK}</a>&nbsp;<br />
<a href="{SEARCH_TGT}"><img src="themes/subsilver/images/icon_mini_search.gif" alt="" />{SEARCH_LNK}</a>

Could you help me me ?
Logged
##########################################
####### Better light a candle than damn darkness #######
## Mieux vaut allumer une chandelle que maudire l'obscurité ##
####### Coppermine Gallery bridged with phpBB2 #######
##########################################
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.