coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: euscera[gru] on November 19, 2003, 01:49:04 AM

Title: HOWTO:Display image only and navigation images (< | >)
Post by: euscera[gru] on November 19, 2003, 01:49:04 AM
displayimage.php?album=lastup&cat=&pos=1 in this file.
Sorry for my clumsy english
Title: HOWTO:Display image only and navigation images (< | >)
Post by: Joachim Müller on November 19, 2003, 08:19:17 AM
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
Title: HOWTO:Display image only and navigation images (< | >)
Post by: euscera[gru] on November 22, 2003, 12:26:41 PM
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
Title: HOWTO:Display image only and navigation images (< | >)
Post by: Joachim Müller on November 22, 2003, 12:45:24 PM
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
Title: HOWTO:Display image only and navigation images (< | >)
Post by: euscera[gru] on November 30, 2003, 07:00:55 AM
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:
Title: HOWTO:Display image only and navigation images (< | >)
Post by: euscera[gru] on November 30, 2003, 07:05:00 AM
may be its possible for me to make a new page for administration stuff?
Title: HOWTO:Display image only and navigation images (< | >)
Post by: Joachim Müller on November 30, 2003, 08:34:25 AM
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
Title: HOWTO:Display image only and navigation images (< | >)
Post by: euscera[gru] on December 04, 2003, 08:28:04 PM
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?
Title: HOWTO:Display image only and navigation images (< | >)
Post by: Joachim Müller on December 05, 2003, 09:21:53 AM
yes