Main site & gallery on one page? Main site & gallery on one page?
 

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]

Main Menu

Main site & gallery on one page?

Started by avatarlab, July 04, 2004, 12:17:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

avatarlab

I'm very new to PHP and just need a few pointers to get me going in the right direction.

I'd like :: this page :: which is the main site, to also include the :: avatar gallery ::, when the 'gallery' link is clicked. It should show up where the 'welcome' section is situated now.

I do not want the huge heading graphics from the gallery page.

Also the gallery navigation will be replaced by text only links to be included in the 'header' section of the main site.

This is a struggle for me to get hold of, I have a PHP book sitting here in front of me but I still can't understand 'how to' do this.


Help, opinions, please?
reality.failure - the avatarlab.net
visit :: the avatar lab :: for custom made avatars and icons

DaMysterious

#1
Quote from: avatarlab on July 04, 2004, 12:17:57 AM
I'm very new to PHP and just need a few pointers to get me going in the right direction.

I'd like :: this page :: which is the main site, to also include the :: avatar gallery ::, when the 'gallery' link is clicked. It should show up where the 'welcome' section is situated now.

I do not want the huge heading graphics from the gallery page.

Also the gallery navigation will be replaced by text only links to be included in the 'header' section of the main site.

This is a struggle for me to get hold of, I have a PHP book sitting here in front of me but I still can't understand 'how to' do this.


Help, opinions, please?
reality.failure - the avatarlab.net

Maybe you like to begin at this point without any knowledge of php ;). Rename and copy the content from theme 'Classic' to themes/your_name. Save the content below into template.html. and replace the file in themes/your_name.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0024)http://theavatarlab.net/ -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>the avatar lab</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css media=screen>@import url( http://theavatarlab.net/gallery/themes/project_vii/css2.css );
</STYLE>

<META content="MSHTML 6.00.3790.118" name=GENERATOR></HEAD>
<BODY><!---BEGIN CHANGABLE CONTENT---><!---Script 8.2 - header.html--->
<DIV id=Header><A title="the avatar lab ?? home ??"
href="http://theavatarlab.net/">the avatar lab ?? home ??</A></DIV>
<DIV id=Content align="center">
 
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                               <td><a href="index.php"><img src="themes/classic/images/site_logo.png" alt="" border="0" /><br /></a></td>
                               <td width="100%" align="center">
                                       <h1>{GAL_NAME}</h1>
                                       <h3>{GAL_DESCRIPTION}</h3><br />
                                       {MAIN_MENU}
                               </td>
                       </tr>
               </table>
               <table width="100%" border="0" cellspacing="0" cellpadding="0">
                 <tr>
                 <td align="center" valign="top">{LANGUAGE_SELECT_FLAGS}</td></tr>
                <tr> <td align="center" valign="top">{LANGUAGE_SELECT_LIST}
                 {THEME_SELECT_LIST}</td>
                 </tr>
               </table>
               <img src="images/spacer.gif" width="1" height="15" /><br />
               <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                       <tr>
                               <td align="center" valign="top">
                                       {ADMIN_MENU}
                                       {GALLERY}
                               </td>
                       </tr>
               </table>
</DIV>
<!---END CHANGABLE CONTENT--->
<DIV id=Menu><A title=gallery href="http://theavatarlab.net/gallery/">avatar
galleries</A><BR><A title=weblog href="http://theavatarlab.net/weblog/">website
news &amp; updates</A><BR><A title=forum
href="http://theavatarlab.net/forum/">web forum &amp; resources</A><BR><A
title=links href="http://theavatarlab.net/links/">links to avatar
sites</A><BR><BR>
<TABLE cellSpacing=0 cellPadding=0 border=0>
 <TBODY>
 <TR>
   <TD><IFRAME
     style="BORDER-RIGHT: #ababab 1px solid; BORDER-TOP: #ababab 1px solid; BORDER-LEFT: #ababab 1px solid; BORDER-BOTTOM: #ababab 1px solid"
     name=cboxmain marginWidth=2 marginHeight=2
     src="the avatar lab_bestanden/box" frameBorder=0 width=160 scrolling=yes
     height=225 allowTransparency></IFRAME></TD></TR>
 <TR>
   <TD><IFRAME
     style="BORDER-RIGHT: #ababab 1px solid; BORDER-TOP: #ababab 0px solid; BORDER-LEFT: #ababab 1px solid; BORDER-BOTTOM: #ababab 1px solid"
     name=cboxform marginWidth=2 marginHeight=2
     src="C:\Zip\the avatar lab_bestanden\box(1).3]" frameBorder=0 width=160
     scrolling=no height=75
allowTransparency></IFRAME></TD></TR></TBODY></TABLE></DIV><!---layout ~ bluerobot.com / shoutbox ~ cbox.co.za / gallery ~ coppermine.sf.net---><!---Script 8.3 - footer.html---></BODY></HTML>
DaMysterious.

avatarlab

visit :: the avatar lab :: for custom made avatars and icons

Filigree

I'm wondering exactly what was changed from the original.  I, too, would like to incorporate coppermine into an existing layout. 

Joachim Müller

basically, <iframe> was used, which doesn't make it a true integration, but offers all disadvantages frames have.

GauGau

Filigree

Wow, that sounds worthwhile!!  Oh my.

Thanks Gau Gau.

avatarlab

Quote from: GauGau on July 17, 2004, 09:59:15 AM
basically, <iframe> was used, which doesn't make it a true integration, but offers all disadvantages frames have.
Disadvantages?
visit :: the avatar lab :: for custom made avatars and icons

Joachim Müller

You want me to post the disadvantages of frames? OK, from the back of my mind (incomplete list):
- not bookmarkable
- not search engine friendly
- user coming from a search engine will only see the content of the iframe, not your surrounding page
- ugly scroll bars on the page
- will not work in all browsers
- frame/iframe needs a fixed width, if the content is larger, the page will appear cropped
- litlle control over what others will link to

GauGau