I need help adding a banner to my Gallery! I need help adding a banner to my Gallery!
 

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

I need help adding a banner to my Gallery!

Started by loubymar, August 24, 2006, 08:55:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

loubymar

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 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

Many Thanks
Loubymar

Nibbler

Adding a banner into your template.html would not cause any error messages. Try again.

loubymar

#2
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

loubymar

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

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??

Joachim Müller

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:
  • You have chosen a rather complicated theme to build your custom theme on. Where exactly on the screen is your banner suppossed to show?
  • I wouldn't make up my mind yet on adding a banner to my page if I were you - fill your page with content instead of advertisment stuff if you want people to visit your page and stay there.
  • Your page requires registration, so I suggest you post a non-admin test user account along with the links to your site as well.
  • Please use the [ c o d e ]-bbcode tags (the button with the hash sign) when posting code. Try using explanations that mean something to us. When trying to describe what you did, say "I edited foo/bar/whatever.htm and added bla into a new line after somestuff"

loubymar

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/
This is my banner url: http://i68.photobucket.com/albums/i30/loubymar/AnastaciaisGreat2copia-2.jpg

Many Thanks

Joachim Müller

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.


loubymar

#7
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

Joachim Müller

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.