You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I would like to add a graphic at the top of my web site spanning the entire width of it. Can anyone please explain what code to use and where to put it in the ste_layout.txt element?
many thanks.
Offline
Right below the <BODY tag. You can put your top image there.
Tell me if it works (which I'm sure it will).
Offline
try this after (CGIGET TYPE="SUB" VALUE="ste_exec_bodytag")
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="same as image color">
<tr>
<td bgcolor=""><img src="(CGIVAR)images_path(/CGIVAR)/put folder image is in here/image name.jpg" width="put width here" height="put height here" border="0" /></td> <-- this assumes the image is in the ccp media directory !-->
</tr>
</table>
Offline
Thanks for your help.Have followed advice but am getting two blue rectangles side by side on top of my web site with the left one showing a small white square with a red cross(ed) in it.
I have two image folders on the server and need to upload the image into both every time I want to add/change an image on my site.
The paths to my image are ssl/ccp51/media/images/site/image.jpg
and ccp51/media/images/site/image.jpg
I am getting the same result whichever path I specify in the code.
Btw do I need to state anything here?-bgcolor="">
Any other suggestions?
Happy New Year Everyone
Offline
In this case, make sure your media folder can be specified like this :
(CGIVAR)images_path(/CGIVAR)/site/image.jpg
Offline
Correct. Use the following command for the bgcolor :
(CGIVAR)html_site_bground_image(/CGIVAR) for the background image and install it in : media/images/site. It "will" work.
Offline
Since the ste_exec.pl already provides that command in the script, you can configure this option under the admin section in : Main menu, Global settings, HTML settings. Once there. you can specify the bgimage in the first box.
Offline
o.k.- I think we have a little confusion here.What I am after is an image at the top of the site spanning its entire width.I am not after a background image for the site just a header image.
Unfortunately my proficiency as a perlogrammer has only reached the 'copy and paste' level which I have mastered quite well now.
On that basis here is what I have inserted into the ste_layout.txt element:
<!-- ############################################# -->
<!-- # Body Tag Insertion # -->
<!-- ############################################# -->
(CGIGET TYPE="SUB" VALUE="ste_exec_bodytag")
the name of my graphic is "wwwbanr1.jpg" and is 500x60 pixels
The above code now shows a rectangle on top of my site filled with the background colour and spanning from the left to about the middle of the site's width.It still shows a small white square with red cross(ed) in the top left area of the rectangle.I guess it can't find the jpg somehow?
thanks for your help (& patience)
Offline
Try the bolded changes in your table code to make it the same width as your image and to center it on the page. Also try the image path as below:
<table width="" border="0" cellspacing="0" cellpadding="0"
<tr>
<td><img src="wwwbanr1.jpg" width="500" height="60" border="0" /></td>
</tr>
</table>
Offline
Eureka! We have lift off!
I have an my image on top of my web site! It's smack in the center of my site!
This is the code after following your instructions for those of you who are similarly disadvantaged to me and want to do the same.
This forum is worth its community's weight in gold!@#%
Thanks all who helped.
Offline
Well, the forum may well be worth its weight in gold, but why is CCP so clunky?
It has good functionality, but appears to have been developed and marketed by nerds with their beads deep in code. Alternatives manage to make such very very basic issues as this straight-forward, but not CCP. I've been at it for 48hrs now and I am deeply disappointed in this product. However, I am reaching a point of 'no-return' and have to consider my options. No one should have to go through the above to do something so obviously important. For example, it wasn't at all obvious where this text file was, so i had to search for it and work backwards to the interface part where I could access it. Crazy. This product feels like it was written for 1986, not 2006. I have the impression the interface is deisgned to generate tech help revenue. So, keep the forum going ....:-)
Offline