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: Add ann extra frame to index.php  (Read 5865 times)

0 Members and 1 Guest are viewing this topic.

jeffreyt

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Add ann extra frame to index.php
« on: January 10, 2004, 08:46:00 am »

He There,

Iff you look at the demo version of coppermine at the home page http://coppermine.sourceforge.net/demo/index.php?lang=english "rainy day theme" u see at the bottum an extra frame. It starts with this;

About this demo
This demo features the dev version ......

the source code is this i think:
<!-- Start standard table -->
<table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">
<tr>
<td class="tableh1" colspan="1"><h2>About this demo</h2></td>
</tr>
<tr><td class="tableb" >
<ul>
<li class="footer">This demo features the dev version of Coppermine (which has not yet been released). The features that are visible to the regular user are the same as the features from the current stable release (cpg1.2.1) except for the language and theme selection (that's why we decided to show a dev version demo).<br />
Please do not ask for a release date of the current dev (cpg1.3.0) - we simply don't know ourselves...</li>
<li class="footer">The demo uses the bbs integration feature<br />
<!--You're currently logged in as <b></b>--> - you'll notice a difference in the ability to post comments and rate pics if you
<a href="login.php?referer=%2Fdemo%2F">log in</a> / <a href="logout.php?referer=%2Fdemo%2F">log out</a>
.</li>
<li class="footer">For performance reasons (and for compliance with sf.net policies) the ecard and upload features have been disabled for &quot;regular&quot; users.</li>
</ul>
</td></tr>
</table>
<!-- End standard table -->

I want to add a simmular table to my website at the same spott, with different text, but when i open index.php (mine) i dont know where tot put it, because the code is very different?!. .php instead of HTML like above.

Does somebody knows the right code to put this extra table into my website? Take a look at mine at http://www.jeffreyt.nl/fotoalbums

Thanks in advance.

Jef
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Add ann extra frame to index.php
« Reply #1 on: January 10, 2004, 11:30:44 am »

Creat a custom footer, as described in the docs, then specify it in the 'contents of main page' in config.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

jeffreyt

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Add ann extra frame to index.php
« Reply #2 on: January 10, 2004, 11:43:57 am »

Create a custom footer.... Hmmm... sounds easy but for me? I don't think so.

Otherwise, it is not a custom footer, but i want to ise the standard. Isn't a simple code that i can put in, where ever i want?

It just needs some few lines about what new on my site. But in de content of the mainpage. Simmulair like as the link above in my question.

I really doesn't know much about .php, but i'm willing to try....
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Add ann extra frame to index.php
« Reply #3 on: January 10, 2004, 12:12:32 pm »

this is not a custom footer, but the anycontent.php...
Edit the file "anycontent.php" that comes with the coppermine package and put this into it:
Quote
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.0                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002,2003 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// (at your option) any later version.                                       //
// ------------------------------------------------------------------------- //
starttable("100%", "About this demo");

?>
<tr><td class="tableb" >
<ul>
<li class="footer">This demo features the dev version of Coppermine (which has not yet been released). The features that are visible to the regular user are the same as the features from the current stable release (cpg1.2.1) except for the language and theme selection (that's why we decided to show a dev version demo).<br />
Please do not ask for a release date of the current dev (cpg1.3.0) - we simply don't know ourselves...</li>
<li class="footer">The demo uses the bbs integration feature<br />
<!--You're currently logged in as <b><?php print $user_data['user_name']; ?></b>--> - you'll notice a difference in the ability to post comments and rate pics if you
<a href="login.php?referer=<?php print $REFERER; ?>">log in</a> / <a href="logout.php?referer=<?php print $REFERER; ?>">log out</a>
.</li>
<li class="footer">For performance reasons (and for compliance with sf.net policies) the ecard and upload features have been disabled for &quot;regular&quot; users.</li>
</ul>
</td></tr>
<?php
endtable();
?>
<div align="center" class="footer">
<table border="0" cellspacing="5" cellpadding="5">
<tr>
<td align="center">
<a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=89658&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
</td>
<td align="center">
<a href="http://mysql.com/"><img src="/images/mysql.gif" width="88" height="43" border="0"></a>
</td>
<td align="center">
<a href="http://php.net/"><img src="/images/php.gif" width="88" height="47" border="0"></a>
</td>
</tr>
</table>
</div>

Upload anycontent.php to your webspace, go to coppermine config and add "anycontent" to "The content of the main page" as described in the documentation, so it looks like this:
Quote
breadcrumb/catlist/alblist/random,1/lastup,1/anycontent
Refer to http://forum.coppermine-gallery.net/index.php?topic=621 for details

GauGau

P.S. you don't call this a "frame", but a "content element", "block" or "table"
Logged

jeffreyt

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Add ann extra frame to index.php
« Reply #4 on: January 10, 2004, 04:47:36 pm »

@ GauGau,

This was exectly what i was looking for!

Thanks, It works fine.!!!

Jef
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 18 queries.