coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: angelicdestiny on December 28, 2006, 07:50:42 PM

Title: huge problem!
Post by: angelicdestiny on December 28, 2006, 07:50:42 PM
hello Coppermine Experts! Well here's the problem, I was fiddling with my index.php file to change the theme but I accidently dlted the whole catagory table so now I can't view anything! Can some one help me? Heres the link to my gallery:
http://janice.simplykenix.net/gallery
Title: Re: huge problem!
Post by: Nibbler on December 28, 2006, 08:13:54 PM
Restore index.php from a backup or from the distribution package. Alternatively just update the gallery.
Title: Re: huge problem!
Post by: angelicdestiny on December 28, 2006, 08:53:50 PM
I would but I don't think I can! I think I screwed up the index page but anyways here is the code I did for the index page..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Pragma" content="no-cache" />
<title>Joyful Janice Gallery - Home</title>

<link rel="stylesheet" href="themes/water_drop/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
 
  <table width="740" border="0" cellpadding="10" cellspacing="10" align="center">
    <tr>
      <td valign="top" style="border: 1px solid #C2B9BA; background-color: #FFFFFF;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center">
         <img src="themes/water_drop/images/header.png" border="0" width="600" height="272" alt="Joyful Janice Gallery"><br>
              <h1>Joyful Janice Gallery</h1>
              <h3></h3>
         
                          <!-- 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 -->

  </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.9 (stable)-->
</body>
</html>


-------
Iz there anyway you can help me put the code back in?
Title: Re: huge problem!
Post by: Stramm on December 28, 2006, 10:26:54 PM
in config... have you removed entries for 'content of the main page'?? Put that back in
or do you have removed the {GALLERY} placeholder from your template.html??
Title: Re: huge problem!
Post by: Nibbler on December 28, 2006, 10:29:11 PM
You can't copy/paste a view source into index.php, it doesn't work like that. Do a regular update to 1.4.10 and your issue will be solved.