coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: loubymar on August 24, 2006, 08:55:18 PM

Title: I need help adding a banner to my Gallery!
Post by: loubymar on August 24, 2006, 08:55:18 PM
How do i add a banner to my gallery at the top? I reffered to this thread: http://forum.coppermine-gallery.net/index.php?topic=30240.0 (http://forum.coppermine-gallery.net/index.php?topic=30240.0) but i put the codes in the right place (i think) and a error accoured on the site, i have removed the code i put on so error has gone, but i still want a banner at top of my page, but dono how can u help plz? I am using Eyeball theme! Heres my gallery: http://anagallery.an.funpic.org/cpg148/index.php (http://anagallery.an.funpic.org/cpg148/index.php)

Many Thanks
Loubymar
Title: Re: I need help adding a banner to my Gallery!
Post by: Nibbler on August 24, 2006, 08:56:31 PM
Adding a banner into your template.html would not cause any error messages. Try again.
Title: Re: I need help adding a banner to my Gallery!
Post by: loubymar on August 24, 2006, 09:11:45 PM
I don't think i inserted the code correctly, cud u post it, cus i not sure where to insert it, and where abouts Plz!!!

Thanks
Title: Re: I need help adding a banner to my Gallery!
Post by: loubymar on August 25, 2006, 02:39:47 PM
i tryed it again i put the code in from that thread and i put the banner into the eyeball folder then uploaded it and nothing came up, See my Gallery http://anagallery.an.funpic.org/cpg148/index.php (http://anagallery.an.funpic.org/cpg148/index.php)

Heres the code i put on template.html: function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
<tr>
<td><img src="themes/classic/images/http://i68.photobucket.com/albums/i30/loubymar/AnastaciaisGreat2copia-2.jpg" border="0" alt="" /></td>
</tr>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<td>
<a href="index.php"><img src="themes/classic/images/http://i68.photobucket.com/albums/i30/loubymar/AnastaciaisGreat2copia-2.jpg" border="0" alt="" /></a><br />
</td>

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }

Is this right, if it is, it wont work! Can u help me Plz??
Title: Re: I need help adding a banner to my Gallery!
Post by: Joachim Müller on August 25, 2006, 07:01:01 PM
What's the JavaScript snippet you added supposed to do? You appear to have little idea about basics, so I suggest you start from the beginning: upload your custom logo/banner to http://anagallery.an.funpic.org/cpg148/themes/eyeball/images/. Then tell us the name of that banner and we could easily come up with the needed code changes. You're trying to accomplish to many things at once: if you have no idea about HTML nor webhosting, you shouldn't start fiddling with JavaScript yet.
The file you're suppossed to edit later (once you figured out what to edit) is http://anagallery.an.funpic.org/cpg148/themes/eyeball/template.html

Some suggestions:
Title: Re: I need help adding a banner to my Gallery!
Post by: loubymar on August 25, 2006, 10:25:19 PM
I choose eyeball cus it all ready customised to how i wanted it to look and for users to register they need to hover over homepage n it appears, i dono how to change that,and the gallery is not open to public yet which is why they isn't much content on it, it sill under construction. I want the banner to appear at top of page in center, cud u tell me how to make register button appear without hoverin over homepage to please. I have uploaded my banner to http://anagallery.an.funpic.org/cpg148/themes/eyeball/images/ (http://anagallery.an.funpic.org/cpg148/themes/eyeball/images/)
This is my banner url: http://i68.photobucket.com/albums/i30/loubymar/AnastaciaisGreat2copia-2.jpg (http://i68.photobucket.com/albums/i30/loubymar/AnastaciaisGreat2copia-2.jpg)

Many Thanks
Title: Re: I need help adding a banner to my Gallery!
Post by: Joachim Müller on August 25, 2006, 10:51:27 PM
Although it's not a good idea to place a 200 kb banner at the top of the eyeball theme, nor is it a good idea to store it off-site, here's what you have to do: edit http://anagallery.an.funpic.org/cpg148/themes/eyeball/template.html, find{CUSTOM_HEADER}and add beneath it (in a new line) <div align="center">
<img src="http://i68.photobucket.com/albums/i30/loubymar/AnastaciaisGreat2copia-2.jpg" border="0" width="852" height="480" alt="" />
</div>
Don't blame me though if this is going to look crappy and the onhover menu items are going to display misplaced.

Title: Re: I need help adding a banner to my Gallery!
Post by: loubymar on August 25, 2006, 11:51:14 PM
The banner looks aright on my gallery, it is a lil big n i gonner fix that!  how do u make the register link appear without having to hover over homepage?

Many Thanks For all your help
Louis
Title: Re: I need help adding a banner to my Gallery!
Post by: Joachim Müller on August 26, 2006, 06:51:00 AM
We have a "one question per thread" policy that you agreed to respect when signing up. You have been told so repeatedly. Your initial question was about adding the banner, which appears to be solved. Marking the thread accordingly, giving your karma record the smite it deserves for again failing to respect board rules, then locking this thread. You know the drill: start a new thread that contains a link to your page and the question you have. Preferably search the board before posting your question, as I'm pretty sure that this has been asked before.