forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: avatarlab on July 04, 2004, 12:17:57 am

Title: Main site & gallery on one page?
Post by: 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 :: (http://theavatarlab.net/) which is the main site, to also include the :: avatar gallery :: (http://theavatarlab.net/gallery/index.php?theme=project_vii), 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
Title: Re: Main site & gallery on one page?
Post by: DaMysterious on July 04, 2004, 12:36:10 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 :: (http://theavatarlab.net/) which is the main site, to also include the :: avatar gallery :: (http://theavatarlab.net/gallery/index.php?theme=project_vii), 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.

Code: [Select]
<!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>
Title: Re: Main site & gallery on one page?
Post by: avatarlab on July 04, 2004, 03:03:15 am
 :o

THANKS!!!  :D
Title: Re: Main site & gallery on one page?
Post by: Filigree on July 17, 2004, 12:05:05 am
I'm wondering exactly what was changed from the original.  I, too, would like to incorporate coppermine into an existing layout. 
Title: Re: Main site & gallery on one page?
Post by: Joachim Müller 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.

GauGau
Title: Re: Main site & gallery on one page?
Post by: Filigree on July 17, 2004, 01:49:15 pm
Wow, that sounds worthwhile!!  Oh my.

Thanks Gau Gau.
Title: Re: Main site & gallery on one page?
Post by: avatarlab on July 17, 2004, 08:20:50 pm
basically, <iframe> was used, which doesn't make it a true integration, but offers all disadvantages frames have.
Disadvantages?
Title: Re: Main site & gallery on one page?
Post by: Joachim Müller on July 18, 2004, 08:45:30 am
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