HOWTO:Display image only and navigation images (< | >) HOWTO:Display image only and navigation images (< | >)
 

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]

Main Menu

HOWTO:Display image only and navigation images (< | >)

Started by euscera[gru], November 19, 2003, 01:49:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

euscera[gru]

displayimage.php?album=lastup&cat=&pos=1 in this file.
Sorry for my clumsy english

Joachim Müller

if you want to get rid of the "info", "slidesho", "ecards" etc. you'll have to modify your theme.php: just comment the unwanted stuff out. Look for// HTML template for the image navigation barand modify the stuff that comes after it, so you have something like$template_img_navbar = <<<EOT

        <tr>
                <!--<td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="images/folder.gif" width="16" height="16" align="absmiddle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}"><img src="images/slideshow.gif" width="16" height="16" border="0" align="absmiddle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" witdh="100%">
                        {PIC_POS}
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" title="{ECARD_TITLE}"><img src="images/ecard.gif" width="16" height="16" border="0" align="absmiddle" alt="{ECARD_TITLE}"></a>
                </td>-->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="images/prev.gif" width="16" height="16" border="0" align="absmiddle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="images/next.gif" width="16" height="16" border="0" align="absmiddle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>

EOT;
GauGau

euscera[gru]

well GauGau actually i ment to get rid of buttons on top like

Album list, Login, Last uploads, Last comments etc...

I would be verry happy if you can help me on that one.. :P all my tries went to white screen ;f

Tnx.
Euscera

Joachim Müller

this works similarly: edit /themes/yourtheme/theme.php and look for                        <br />
                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> ::
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> ::
                        <a href="{FAV_TGT}">{FAV_LNK}</a> ::
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>
and replace it with                        <!--<br />
                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> ::
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> ::
                        <a href="{FAV_TGT}">{FAV_LNK}</a> ::
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>-->

Do something similar with the other menu items you don't want to show. Do not remove the tags like<!-- BEGIN register -->-they must remain in the theme.php file for coppermine to work properly!

GauGau

euscera[gru]

Thanks alot...
but the bad thing is that this action removes those buttons from administration pannel too! :( is it possible to leave it on AP, and remove it from Users view?

Thanks!  :wink:

euscera[gru]

may be its possible for me to make a new page for administration stuff?

Joachim Müller

the gallery admin menu is done in themes/yourtheme/theme.php as well. Look for // HTML template for gallery admin menuand add whatever you like in the code block that comes after it.

GauGau

euscera[gru]

That means, that al i removed from preview page <br />
                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> ::
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> ::
                        <a href="{FAV_TGT}">{FAV_LNK}</a> ::
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>


I may insert in to admin area?

Joachim Müller