Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    84
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Help Edit Coppermines

    Need help editing coppermine php. I would like to move the content from the top (before CATEGORY) to the bottom with the picture first on top. could i just copy and paste (in red) the top part and paste it at the bottom?



    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />
    <title>Gallery Page - Home</title>
    
    <link rel="stylesheet" href="themes/classic/style.css" type="text/css" />
    <script type="text/javascript" src="scripts.js"></script>
    <!--
      SVN version info:
      Coppermine version: 1.4.20
      $Revision: 4784 $
      $LastChangedBy: gaugau $
      $Date: 2008-08-07 08:33:20 +0200 (Do, 07 Aug 2008) $
    -->
    </head>
    <body>
      
      <table width="100%" border="0" cellpadding="20" cellspacing="20">
        <tr>
          <td valign="top" style="border: 1px solid #666666;background-color:#FFFFFF;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>
                  <a href="index.php"><img src="themes/classic/images/site_logo.png" border="0" alt="" /></a><br />
                </td>
                <td width="100%" align="center">
                  <h1>Gallery Page</h1>
                  <h3></h3><br />
                              <!-- BEGIN home -->
            <a href="index.php" title="Go to the home page">Home</a> ::
      <!-- END home -->                  <!-- BEGIN login -->
            <a href="login.php?referer=index.php" title="Log me in">Login</a> 
      <!-- END login -->   <br />               <!-- BEGIN album_list -->
            <a href="index.php?cat=0" title="Go to the album list">Album list</a> ::
      <!-- END album_list -->  <!-- BEGIN lastup -->
            <a href="thumbnails.php?album=lastup&amp;cat=0" title="Show most recent uploads">Last uploads</a> ::
      <!-- END lastup -->  <!-- BEGIN lastcom -->
            <a href="thumbnails.php?album=lastcom&amp;cat=0" title="Show most recent comments">Last comments</a> ::
      <!-- END lastcom -->  <!-- BEGIN topn -->
            <a href="thumbnails.php?album=topn&amp;cat=0" title="Show most viewed items">Most viewed</a> ::
      <!-- END topn -->  <!-- BEGIN toprated -->
            <a href="thumbnails.php?album=toprated&amp;cat=0" title="Show top rated items">Top rated</a> ::
      <!-- END toprated -->  <!-- BEGIN favpics -->
            <a href="thumbnails.php?album=favpics" title="Go to my favorites">My Favorites</a> ::
      <!-- END favpics -->  <!-- BEGIN search -->
            <a href="search.php" title="Search the gallery">Search</a> 
      <!-- END search -->
                </td>
              </tr>
            </table>        <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center" valign="top">
                  
                </td>
              </tr>
              <tr>
                <td align="center" valign="top">
                  
                  
                </td>
              </tr>
            </table>
            <img src="images/spacer.gif" width="1" height="15" alt="" />
            <br />
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td align="left" valign="top">
                  
                  
    <!-- Start standard table -->
    <table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">
    
            <tr>
                    <td class="tableh1" width="80%" align="left"><b>Category</b></td>
                    <td class="tableh1" width="10%" align="center"><b>Albums</b></td>
                    <td class="tableh1" width="10%" align="center"><b>Files</b></td>
            </tr>
    
            <tr>
                    <td class="catrow" align="left"><table border="0"><tr><td></td><td><span class="catlink"><b><a href="index.php?cat=1">User galleries</a></b></span>This category contains albums that belong to Coppermine users.</td></tr></table></td>
                    <td class="catrow" align="center">1</td>
                    <td class="catrow" align="center">61</td>
            </tr>
            <tr>
                <td class="tableb" colspan="3"></td>
            </tr>
    
            <tr>
                    <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>61</b> files in <b>1</b> albums and <b>1</b> categories with <b>0</b> comments viewed <b>93</b> times</span></td>
            </tr>
    </table>
    <!-- End standard table -->
    
            <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
    
    <!-- Start standard table -->
    <table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">
            <tr>
                    <td class="tableh1" colspan="4">Random files</td>
            </tr>
    
            <tr>
    
            <td valign="top" class="thumbnails" width ="25%" align="center">
                    <table width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                    <td align="center">
                                            <a href="displayimage.php?album=random&amp;cat=0&amp;pos=-24"><img src="albums/userpics/10001/thumb_march7_039.jpg" class="image" width="75" height="100" border="0" alt="march7_039.jpg" title="Filename=march7_039.jpg
    Filesize=354KB
    Dimensions=1254x1672
    Date added=Feb 26, 2009"/><br /></a>
                                            <span class="thumb_title">John Sully Pete</span><span class="thumb_title">1 views</span><span class="thumb_caption">just got done building the snowman</span>
                                            
                                    </td>
                            </tr>
                    </table>
            </td>
            <td valign="top" class="thumbnails" width ="25%" align="center">
                    <table width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                    <td align="center">
                                            <a href="displayimage.php?album=lastup&amp;cat=0&amp;pos=7"><img src="albums/userpics/10001/thumb_VACATION_060.jpg" class="image" width="100" height="75" border="0" alt="VACATION_060.jpg" title="Filename=VACATION_060.jpg
    Filesize=545KB
    Dimensions=1672x1254
    Date added=Feb 26, 2009"/><br /></a>
                                            <span class="thumb_title">Sully Driving</span><span class="thumb_title">2 views</span><span class="thumb_caption">Pete with Sully driving at Disney</span><span class="thumb_caption">Feb 26, 2009</span>
                                            
                                    </td>
                            </tr>
                    </table>
            </td>
    
            </tr>
    </table>
    <!-- End standard table -->
    
            <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
    <div class="footer" align="center" style="padding-top: 10px;">Powered by <a href="http://coppermine-gallery.net/" title="Coppermine Photo Gallery" rel="external">Coppermine Photo Gallery</a></div>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <div id="vanity">
          <a id="v_php" href="http://www.php.net/" target="_blank"></a>
          <a id="v_mysql" href="http://www.mysql.com/" target="_blank"></a>
          <a id="v_xhtml" href="http://validator.w3.org/check/referer" target="_blank"></a>
          <a id="v_css" href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"></a>
    </div>
    <!--Coppermine Photo Gallery 1.4.20 (stable)-->
    </body>
    </html>

  • #2
    New Coder
    Join Date
    Jan 2009
    Posts
    84
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Tried copy and paste as mentioned above and it's all wacked.

    I want to move the top part to the bottom so that people dont have to scroll down to see full picture. Top part is taken most of the webpage and only half of the picture shows.

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    This is a design problem, not a scripting problem. Moving from php to html/css forum.
    What I can tell you is the client guys will probably tell you to drop you're table usage first thing and opt for a div with css markup design. Then you won't need to worry about problems like these from happening.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #4
    Regular Coder
    Join Date
    Sep 2008
    Posts
    280
    Thanks
    25
    Thanked 9 Times in 9 Posts
    if you took a peek into XHTML & CSS, not only would you not be lost in translation, but you'd find it a lot easier to move your content around, static or dynamic.

  • #5
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    Have a read here - you might find some good info that might help: http://documentation.coppermine-gall...t/en/theme.htm


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •