coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: bwsdj on April 06, 2009, 04:50:25 AM

Title: [Solved]: can not figure out how to center Banner at top of page
Post by: bwsdj on April 06, 2009, 04:50:25 AM
I have checked the topics and have not found a answer on how to center a banner i have at the top of my gallery, it is displaying in the top left corner.  here is the link www.bullstailgating.com/photo 

i have gone into the edit template theme and see the banner info but do not see anyting on the alignment option
  thanks
Title: Re: can not figure out how to center Banner at top of page
Post by: Joachim Müller on April 06, 2009, 08:53:14 AM
Now this is HTML/CSS basics: in http://www.bullstailgating.com/photo/themes/classic/template.html, you have<object id="Igeo1"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0", width="998" height="215">
<param name="movie" value="themes/classic/images/bullstailgating banner 3.swf"/>

<param name="quality" value="best"/>
<param name="play" value="true"/>
<param name="loop" value="true"/>
<param name="menu" value="false"/>
<embed src="themes/classic/images/bullstailgating banner 3.swf" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
quality="best" play="true" loop="true" menu="false"  width="998" height="215">
</embed></object>
as top banner. Wrap that into a container that is center-aligned. Replace the code I just pasted in with<div style="width:100%;text-align:center">
<object id="Igeo1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0", width="998" height="215">
<param name="movie" value="themes/classic/images/bullstailgating banner 3.swf"/>
<param name="quality" value="best"/>
<param name="play" value="true"/>
<param name="loop" value="true"/>
<param name="menu" value="false"/>
<embed src="themes/classic/images/bullstailgating banner 3.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="best" play="true" loop="true" menu="false"  width="998" height="215">
</embed>
</object>
</div>
For such trivial HTML questions, please read up generic help (google for it!) from tutorials that explain HTML basics.

Instead of worrying about the alignement of your banner I would worry about the fact that you're running cpg1.4.16, while the most recent stable currently is cpg1.4.21. Your version is outdated and contains serious security flaws that are actively being exploited. It's mandatory to upgrade instantly to avoid getting hacked. Read up how to upgrade in the docs that come with coppermine and that are available online as well (link at top of screen).
Before you do, you should also consider reading http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create_rename to make sure that your upgrade doesn't overwrite your custom theme.
Title: Re: can not figure out how to center Banner at top of page
Post by: bwsdj on April 06, 2009, 07:44:25 PM
Thank you very much, that worked like a champ. :)   I have upgraded to the latest version as well. Had to go in and re add the banner but everything else looks pretty good.
Title: Re: can not figure out how to center Banner at top of page
Post by: phill104 on April 06, 2009, 07:49:02 PM
You have upgraded to 1.4.19 while the current version is 1.4.21

Are you using a cpanel or your hosts installer to upgrade?

Whatever the case, install the latest version via ftp but first take a copy of your custom theme and rename it to something else and you will not loose your header when you upgrade.
Title: Re: can not figure out how to center Banner at top of page
Post by: bwsdj on April 06, 2009, 09:35:04 PM
yes i upgraded thru my cpanel. 
Title: Re: can not figure out how to center Banner at top of page
Post by: phill104 on April 06, 2009, 10:00:04 PM
Then do as suggested above. Since 1.4.19 a couple of security issues have been fixed and you are risking getting hacked.

The upgrade is simple enough via ftp. Just download the latest release from this site and follow the instructions in the docs.

This is one reason why we are not keen on auto installers as they are often out of date.
Title: Re: can not figure out how to center Banner at top of page
Post by: Joachim Müller on April 07, 2009, 09:59:06 AM
Quote from: bwsdj on April 06, 2009, 09:35:04 PM
yes i upgraded thru my cpanel. 
Why? I already told you what to do. I didn't say "upgrade using your cpanel fantastico crap that you used to install in the first place", but
Quote from: Joachim Müller on April 06, 2009, 08:53:14 AM
Read up how to upgrade in the docs that come with coppermine and that are available online as well (link at top of screen).

Anyway, this thread does not deal with upgrading, but your request to center your banner. This has been solved. As per our "one issue per thread rules", I'm marking this thread accordingly and locking it.