Hide menu elements of the header to unregistred users ? Hide menu elements of the header to unregistred users ?
 

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

Hide menu elements of the header to unregistred users ?

Started by Tonus, January 11, 2006, 05:42:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tonus

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.
##########################################
####### Better light a candle than damn darkness #######
## Mieux vaut allumer une chandelle que maudire l'obscurité ##
####### Coppermine Gallery bridged with phpBB2 #######
##########################################

Joachim Müller

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.

Tonus

Quote from: GauGau on January 11, 2006, 07:20:19 PMdon'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

Quote from: GauGau on January 11, 2006, 07:20:19 PM
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.
##########################################
####### Better light a candle than damn darkness #######
## Mieux vaut allumer une chandelle que maudire l'obscurité ##
####### Coppermine Gallery bridged with phpBB2 #######
##########################################

Tonus

I haven't manage to make visible olny to registered this part of the code :
<!-- 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 ?
##########################################
####### Better light a candle than damn darkness #######
## Mieux vaut allumer une chandelle que maudire l'obscurité ##
####### Coppermine Gallery bridged with phpBB2 #######
##########################################