Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Rainy Day Button Layout [PS]  (Read 4431 times)

0 Members and 1 Guest are viewing this topic.

sbpoole

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 66
Rainy Day Button Layout [PS]
« on: October 23, 2003, 06:02:49 am »

Having added several buttons to the rainy day theme, I am wondering if it is possible to display the buttons on two rows and possibly centering them as well?  Thanks, Sonny
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Rainy Day Button Layout [PS]
« Reply #1 on: October 23, 2003, 10:08:58 am »

just edit /themes/rainy_day/theme.php and add </tr><tr>-tags wherever you like - you can do anything to the table or the <span>tag the menu is in - it's all done in plain html.
Change
Code: [Select]
// HTML template for main menu
$template_main_menu1 = <<<EOT
                <span class="topmenu">
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
to
Code: [Select]
// HTML template for main menu
$template_main_menu1 = <<<EOT
                <span class="topmenu" align="center">
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
The same thing applies to $template_main_menu2

To add a new line, simply start a new row by adding
Code: [Select]
</tr><tr>after
Code: [Select]
                                       <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>
                                        <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="{TOPN_TGT}">{TOPN_LNK}</a>
                                        </td>


GauGau
Logged

sbpoole

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 66
Rainy Day Buttons
« Reply #2 on: October 23, 2003, 03:57:29 pm »

Thanks for your reply GauGau.  I changed the following lines, but it made no difference at all.  The buttons are still in the same locations.

// HTML template for main menu
$template_main_menu1 = <<<EOT
                <span class="topmenu" align="center">
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>


Thanks again for your help,  Sonny Poole
Logged

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
Rainy Day Button Layout [PS]
« Reply #3 on: October 23, 2003, 04:00:02 pm »

You still need to add the </tr><tr> after the lines he said to add them after....

That starts the new row.
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

sbpoole

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 66
Button alignment
« Reply #4 on: October 23, 2003, 04:15:56 pm »

jasendorf, I'm not trying to start a new row yet, I'm trying to center the buttons first but adding the align="center" to the <span class="topmenu"> has no effect at all.  I also tried making 2 rows of buttons, but it resulted in broken and misaligned buttons.  I'll try that later, for now I would just like to center the buttons on the page.
Logged

sbpoole

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 66
Button Alignment
« Reply #5 on: October 23, 2003, 04:32:07 pm »

Adding

<div align="center">
                <span class="topmenu">
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>.........................</div>

worked in centering the buttons.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.