Gossamer Forum
Quote Reply
Site_html.pl
How and where can I add an html code in site_html.pl to have an image, (e.g. i want to have a head image to be at the top of the page)

Thanks
Quote Reply
Re: Site_html.pl In reply to
For starters (and saving some time)you may try this(only if you use the same image(e.g. a logo)
add $my_image = <img src="location_of_the_image" alt="you alt text"> anywhere in the site_html.pl file(but not under any sub routienes!) for example put it here
##########################################################
## Globals ##
##########################################################
# You can put variables here that you would like to use throughout
# the site.

$date = &get_date;
$time = &get_time;

$my_image = <img src="location_of_the_image" alt="you alt text">

$font_new = 'font face="arial, helvetica" size=2 color="#CC0000"';
then just add $my_image where ever you want it to apppear on any of the pages
Thanks
Joey

------------------
Links is HOT! Get it and you will LOVE IT!
Quote Reply
Re: Site_html.pl In reply to
That still doesn't work i keep getting an error. I am wanting to put in a logo that will show up on every page.
Quote Reply
Re: Site_html.pl In reply to
 
Heres a simple way to do what he is saying above.

Open up your site_html.pl and go to line 61.

Find this:

<$font_menu>|
<A HREF="$build_root_url">Home</A> |
<A HREF="$build_add_url">Add a Resource</A> |
<A HREF="$build_modify_url">Modify a Resource</A> |
<A HREF="$build_new_url">What's New</A> |
<A HREF="$build_cool_url">What's Cool</A> |
<A HREF="$build_jump_url?$db_key=random">Random Link</A> |
<A HREF="$build_search_url">Search</A> |
</font>

And replace it with this, changing the image location to your image.

<$font_menu>
<p align="center"><img src="your-file_location_here" alt="Alt_name"><br>
| <a HREF="$build_root_url">Home</a> | <a HREF="$build_add_url">Add a Resource</a> | <a
HREF="$build_modify_url">Modify a Resource</a> | <a HREF="$build_new_url">What's New</a> |
<a HREF="$build_cool_url">What's Cool</a> | <a HREF="$build_jump_url?$db_key=random">Random
Link</a> | <a HREF="$build_search_url">Search</a> | </p></font>

That will place an image directly above your image on every page right above the menu.

This is the simplest ways, you can edit every sub that builds a page to get it the way you want it but this will work fine to get you a logo on every page VERY painlessly.

Let us know!



------------------
MRaburn
Raburn Networks
www.raburn.net
Site Hosting-Design/Customize Scripts/Graphic Artwork

Personal Site:
The Mustang Network
www.stangnet.com
My UBB:
www.raburn.net/stangnet/bb/Ultimate.cgi
My Links Page:
www.stangnet.com/links2

Quote Reply
Re: Site_html.pl In reply to
Thanks, Mike. I used to run The Mustang Garage, but I took it down, because I was hardly getting any hits. thanks again for your help.

Chris K
Quote Reply
Re: Site_html.pl In reply to
Well, I thought it was going to work, but it didn't here's the error message i keep getting:



Content-type: text/plain Error including libraries: Final $ should be \$ or $name at /home/resource/public_html/Links/admin/site_html.pl line 62, within string
syntax error at /home/resource/public_html/Links/admin/site_html.pl line 75, near "$~" (Might be a runaway multi-line ~~ string starting on line 62)syntax error at /home/resource/public_html/Links/admin/site_html.pl line 84, near "center>"
syntax error at /home/resource/public_html/Links/admin/site_html.pl line 179, near ""$build_root_url/Links/admin/mailnews2.cgi" method"Make sure they exist, permissions are set properly, and paths are set correctly.
Quote Reply
Re: Site_html.pl In reply to
Chris,

If you want, Ill take a look at it for you, one Mustang guy to another.

Email me you user name and password and such and ill doctor it up for you.

Just inlude the image location.

Mike
mraburn@raburn.net


------------------
MRaburn
Raburn Networks
www.raburn.net
Site Hosting-Design/Customize Scripts/Graphic Artwork

Personal Site:
The Mustang Network
www.stangnet.com
My UBB:
www.raburn.net/stangnet/bb/Ultimate.cgi
My Links Page:
www.stangnet.com/links2

Quote Reply
Re: Site_html.pl In reply to
Try this first if you like, looks like I forgot to close the center command, as well I will remove the paragraph comment.

Try this one below...

<img src="your-file_location_here" alt="Alt_name"><br><$font_menu>| <a HREF="$build_root_url">Home</a> | <a HREF="$build_add_url">Add a Resource</a> | <a
HREF="$build_modify_url">Modify a Resource</a> | <a HREF="$build_new_url">What's New</a> |
<a HREF="$build_cool_url">What's Cool</a> | <a HREF="$build_jump_url?$db_key=random">Random
Link</a> | <a HREF="$build_search_url">Search</a> | </font>

Let me know
Mike
Quote Reply
Re: Site_html.pl In reply to
OK, timeout, im going in there so dont touch it and ill play around and let you know.

Mike