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: Changing the index/home page into a front page...  (Read 10260 times)

0 Members and 1 Guest are viewing this topic.

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Changing the index/home page into a front page...
« on: July 14, 2016, 09:47:11 pm »

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 :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Changing the index/home page into a front page...
« Reply #1 on: July 14, 2016, 11:03:18 pm »

This is what I do on my personal gallery to have a welcome page. I created a .htaccess file with this content:
Code: [Select]
RewriteEngine on
RewriteBase /
RewriteRule ^$ welcome.php[NC]
Logged

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Changing the index/home page into a front page...
« Reply #2 on: July 15, 2016, 08:31:47 am »

oh thanks... next question where do I put the .htaccess file?  and also where do I put the welcome.php file.. :D


Thanks


Kriss :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Changing the index/home page into a front page...
« Reply #3 on: July 15, 2016, 08:52:32 am »

You need to put both files in your gallery root directory.
Logged

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Changing the index/home page into a front page...
« Reply #4 on: July 15, 2016, 08:54:17 am »

Thank you or Danke!  Really appreciate the help... :)


Kriss :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Changing the index/home page into a front page...
« Reply #5 on: July 16, 2016, 10:46:28 am »

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 :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Changing the index/home page into a front page...
« Reply #6 on: July 16, 2016, 11:28:21 am »

Either create a HTML file (and adjust your .htaccess file accordingly) or just put your HTML code in the PHP file.
Logged

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Changing the index/home page into a front page...
« Reply #7 on: July 16, 2016, 11:46:51 am »

ok thanks!


Kriss :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Changing the index/home page into a front page...
« Reply #8 on: July 16, 2016, 12:03:36 pm »

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



Code: [Select]
RewriteEngine on
RewriteBase /
RewriteRule ^$ welcome.html[NC]


And that this is the welcome.html


Code: [Select]
<!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.







Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Changing the index/home page into a front page...
« Reply #9 on: July 16, 2016, 12:09:52 pm »

You need to remove index.php from the URL.
Logged

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Changing the index/home page into a front page...
« Reply #10 on: July 16, 2016, 12:21:24 pm »

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 :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Changing the index/home page into a front page...
« Reply #11 on: July 16, 2016, 12:31:56 pm »

If you want to use your Coppermine theme for your welcome page, please put this to your welcome.php file:
Code: [Select]
<?php define('IN_COPPERMINE'true); include('include/init.inc.php'); pageheader('Welcome'); ?>

Welcome to my gallery.

<?php pagefooter(); ?>
Logged

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Changing the index/home page into a front page...
« Reply #12 on: July 16, 2016, 12:45:16 pm »




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 :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Changing the index/home page into a front page...
« Reply #13 on: July 16, 2016, 01:21:01 pm »

Then CPMFetch is what you're looking for.
Logged

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Changing the index/home page into a front page...
« Reply #14 on: July 16, 2016, 01:25:11 pm »




Oh I will look at that danke!


Watching an airshow for the rest of the day... :D So I won't bother you...


Kriss :)



Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)
Pages: [1]   Go Up
 

Page created in 0.039 seconds with 20 queries.