Hi guys
What do I mean? I would like to have on the home page just a list of the latest uploaded albums so I can put on it more information and an intro... then when they hit album list up comes the album list only with none of the front info on it... if that makes any sense at all. Like a website rather than a gallery.
Be aware I know html and CSS but not script of any kind. Was just wondering if there was an easy way of doing it by inserting a new page and using a command in the {}
Thanks in advance
Kriss :)
This is what I do on my personal gallery to have a welcome page. I created a .htaccess file with this content:
RewriteEngine on
RewriteBase /
RewriteRule ^$ welcome.php[NC]
oh thanks... next question where do I put the .htaccess file? and also where do I put the welcome.php file.. :D
Thanks
Kriss :)
You need to put both files in your gallery root directory.
Thank you or Danke! Really appreciate the help... :)
Kriss :)
Ok so I have created the files and put them in the root folder... now what to I put in the PHP file... as I said know nothing about script... how do I put html into it... I have looked at the index.php and can see you can put html into a php file but how?
I know I am being a pain sorry..
Kriss :)
Either create a HTML file (and adjust your .htaccess file accordingly) or just put your HTML code in the PHP file.
ok thanks!
Kriss :)
Ok I have uploaded the 2 files and changed them but seeing no change in the gallery...I put both files into the root part of the gallery as well
This is the .htaccess file
RewriteEngine on
RewriteBase /
RewriteRule ^$ welcome.html[NC]
And that this is the welcome.html
<!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="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="css/coppermine.css" type="text/css" />
<link rel="stylesheet" href="themes/michael/style.css" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">
{JAVASCRIPT}
<!--
SVN version info:
Coppermine version: 1.5.9
$HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/themes/michael/template.html $
$Revision: Kriss 1 $
-->
</head>
<body>
{CUSTOM_HEADER}
<table width="85%" border="0" cellpadding="20" cellspacing="20" align="center">
<tr>
<td valign="top" style="border: 2px solid #87273f; padding:10px 40px; border-radius:20px; -webkit-box-shadow: 10px 10px 21px 0px rgba(68,68,68,0.65);
-moz-box-shadow: 10px 10px 21px 0px rgba(68,68,68,0.65);
box-shadow: 10px 10px 21px 0px rgba(68,68,68,0.65); background: #EEEEEE;">
</td>
</tr>
</table>
{CUSTOM_FOOTER}{CREDITS}
</body>
</html>
And here is the link http://nikmania.me.uk/copperminetest/index.php this is a test site not everything on there just use it to play with things.
You need to remove index.php from the URL.
Ok I have done that so I can see it... but why am I getting the {} descriptions outside the box? as I have just copied the template from the theme...
Kriss :)
If you want to use your Coppermine theme for your welcome page, please put this to your welcome.php file:
<?php define('IN_COPPERMINE', true); include('include/init.inc.php'); pageheader('Welcome'); ?>
Welcome to my gallery.
<?php pagefooter(); ?>
Ok done that but I don't want the menu's all I want is the last album uploaded row on that page...
Personally I think for me this is too hard to work out!... LOL... why I never got on with script I really didn't understand it.
Danke for all your help though... you have enough to do without writing my pages for me from the ground up! :D
Kriss :)
Then CPMFetch is what you're looking for.
Oh I will look at that danke!
Watching an airshow for the rest of the day... :D So I won't bother you...
Kriss :)