Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 60
5 members and 55 guests
climckckwd8here, got2wpoap2gt9si, lux3ctguryallin, nhghgfdumaq4pst, shaqi5kerqlqbot
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > General > Open topics

Reply
 
LinkBack Thread Tools Display Modes
Logo php help ?
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 21
Join Date: Dec 2005
Logo php help ? - 12-19-2005, 07:27 PM

I have a theme running here http://hacked.frag.clanservers.com and the main header php file uses a logo that is 44pixs. I have a banner thats longer then that is there anyway to change the code so it will use my banner and not the sliced image. Any help would be great thanks.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Logo php help ?
Old
  (#2 (permalink))
Super Moderator
 
Duke's Avatar
 
Status: Offline
Posts: 1,016
Join Date: Dec 2005
Location: Under your bed
Re: Logo php help ? - 12-19-2005, 07:45 PM

Quote:
Originally Posted by hfsmoked
I have a theme running here http://hacked.frag.clanservers.com and the main header php file uses a logo that is 44pixs. I have a banner thats longer then that is there anyway to change the code so it will use my banner and not the sliced image. Any help would be great thanks.
I'm not sure you really want to eliminate the sliced image. I believe its there so your header doesn't stretch or compress horribly depending on your members/guests screen resolution. I guess if you really wanted to you could adjust the code from:

<tr>
<td width="60%" height="44" background="themes/subBlack3d/forums/images/hmdl.gif">[img]themes/subBlack3d/forums/images/logo.gif[/img]</td>
<td width="40%" height="44" background="themes/subBlack3d/forums/images/hmdl.gif"></td>
</tr>

to:

<tr>
<td>[img]themes/subBlack3d/forums/images/logo.gif[/img]</td>
</tr>

I'm not really a theme guy and it takes me a while to acheive the desired effect when creating a new header.

BTW, does this mean that you already have a new header and are no longer looking for one and just need help altering the code or am I having acid flahsbacks?
  Send a message via AIM to Duke  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 21
Join Date: Dec 2005
12-19-2005, 07:52 PM

flashbacks are bad no i have a few themes on the site but the subBlack3d is the one i like the most thats the one i want the logo for. I will just adjust the code for the new logo.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 242
Join Date: May 2005
12-20-2005, 12:19 PM

I have a question for you, hfsmoked.

How did you get your logo.jpg to Size with your page when someone resizes their browser? Is that done with some javascript?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 21
Join Date: Dec 2005
12-20-2005, 03:50 PM

actually i dont know. i am sure i could look and mabe find the code but i would check the html file that goes with the header.php it should be header.html if you cant find it there them i am lost as i am a php nub and are still learning.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Super Moderator
 
Duke's Avatar
 
Status: Offline
Posts: 1,016
Join Date: Dec 2005
Location: Under your bed
12-20-2005, 07:21 PM

Quote:
Originally Posted by myrtletrees
I have a question for you, hfsmoked.

How did you get your logo.jpg to Size with your page when someone resizes their browser? Is that done with some javascript?
It happens because the image size is inside of code such as follows:



The image is in a cell that is created as a percentage rather than a pixel size which is the reason for stretching.

I do believe that if your creating an image for a header that you know will be stretched rather than at locked pixels (ex: width=800) it is best to create a banner that will size down instead of size up.

IMHO, build a banner that looks clean at 1600 x 1200 resolution because it should size down cleanly to lower resolutions. If I had known hfsmoked was going to keep his site header as an autostretch value, I would have created a much larger header image. :?
  Send a message via AIM to Duke  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 21
Join Date: Dec 2005
12-20-2005, 07:27 PM

i didnt know as i am a nubie lol.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Super Moderator
 
Duke's Avatar
 
Status: Offline
Posts: 1,016
Join Date: Dec 2005
Location: Under your bed
12-20-2005, 07:40 PM

An easy way to get an idea of how code is used is to do the following:

- Open webpage your curious about
- Move mouse pointer over image
- Right mouse click, select properties
- An element properties window will open up showing Link Properties and Image Properties.
- Under Image Properties, Location is the code your interested in.
- Close Element Properties Window
- At the top of your webbrowser choose View/Page Source
- Find Image Properties Location (here you will find all the relavent info. on how that image is placed, and why it changes color, animates, makes sounds, etc.

Each browser has roughly the same code view feature. IMHO, this is one of the best ways to troubleshoot your website or to learn new code.

Another handy thing to do is copy/paste the code in Dreamweaver and then preview it in a webbrowser. You can edit the code as much as you like then and see what changing it does to the overall layout.
  Send a message via AIM to Duke  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 21
Join Date: Dec 2005
12-21-2005, 09:09 AM

Actually i just notcied that my banner doesnt resize. I am using 800x600 resolution on my work computer. Any ideas about how to correct this would be great. thanks
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Super Moderator
 
Duke's Avatar
 
Status: Offline
Posts: 1,016
Join Date: Dec 2005
Location: Under your bed
12-21-2005, 12:33 PM

It resizes fine for me at work (1024 x 768) and at home (1280 x 960) so I'm not sure what the problem may be.

Can you provide a screenshot?
  Send a message via AIM to Duke  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31