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: Need a button  (Read 3790 times)

0 Members and 1 Guest are viewing this topic.

vexd

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Need a button
« on: October 11, 2004, 02:59:49 pm »

Hi I am using the  "Rainy Day" Theme and on the top I want to get rid of the button "My Gallery" with a button called "Main Gallery Page" which ofcourse leads to the main gallery page.

edit: and a button next ot he menu where it says "Album List", "Last uploads", etc

ANyone have any ideas on how i could do that easily :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Need a button
« Reply #1 on: October 11, 2004, 09:57:21 pm »

edit themes/rainy_day/theme.php, find
Code: [Select]
<!-- BEGIN my_gallery -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="button1_r1_c1" src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" id="button1_r1_c1" alt="" /></td>
                                        <td background="themes/rainy_day/images/button1_r1_c2.gif">
                                                <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a>
                                        </td>
                                        <td><img name="button1_r1_c3" src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" id="button1_r1_c3" alt="" /></td>
<!-- END my_gallery -->
and replace with
Code: [Select]
<!-- BEGIN my_gallery -->
                                        <!--<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="button1_r1_c1" src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" id="button1_r1_c1" alt="" /></td>
                                        <td background="themes/rainy_day/images/button1_r1_c2.gif">
                                                <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a>
                                        </td>
                                        <td><img name="button1_r1_c3" src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" id="button1_r1_c3" alt="" /></td>-->
<!-- END my_gallery -->
to disable the "my gallery" link (if you actually want to get rid of it).
To add a link to any other page in that area of the screen, find
Code: [Select]
<!-- BEGIN my_gallery -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="button1_r1_c1" src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" id="button1_r1_c1" alt="" /></td>
                                        <td background="themes/rainy_day/images/button1_r1_c2.gif">
                                                <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a>
                                        </td>
                                        <td><img name="button1_r1_c3" src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" id="button1_r1_c3" alt="" /></td>
<!-- END my_gallery -->
and add after it
Code: [Select]
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="button1_r1_c1" src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" id="button1_r1_c1" alt="" /></td>
                                        <td background="themes/rainy_day/images/button1_r1_c2.gif">
                                                <a href="index.php" title="Main Gallery page">Main Gallery page</a>
                                        </td>
                                        <td><img name="button1_r1_c3" src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" id="button1_r1_c3" alt="" /></td>

Similar technique with any other custom buttons, take a look at theme.php - you should find it easy to understand. Do not remove the html comments like <!-- BEGIN foo_bar --> though, they're needed. In fact, you shouldn't remove anything you don't need, but just comment out.

Joachim
Logged

silx

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Need a button
« Reply #2 on: October 12, 2004, 07:05:22 am »

thanks for the fix
Logged
s1Lx
(http://www.neutek.net/neutek-sig.gif)
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.