Advertisement:

Author Topic: top of forum graphic  (Read 2758 times)

Offline SpectroPro

  • Jr. Member
  • **
  • Posts: 376
  • Gender: Male
    • The Reality Rocks Group
top of forum graphic
« on: October 05, 2008, 01:53:58 AM »
Using 2.0b4 SMF.  Wondering if there is a css for the area at the top of the forum (default theme) for graphics that are located there?   We have a logo we put on our site.  In Admin/Config/theme settings..  But, I need to set it to be a % in width so that it is flexible..  Right now, if someone narrows their window too much, it messes up the graphics on the side of the page, and forces a scroll bar long before we want one to show up...   

Thanks for any help.. I can't seem to find where this would be.   But guessing it should be in a css somewhere..

- Greg
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,826
  • Gender: Male
    • Kindred-999 on GitHub
Re: top of forum graphic
« Reply #1 on: October 06, 2008, 12:49:49 PM »
try using firefox with firebug installed....   it's almost a required tool for webmasters looking for CSS issues.

The exact CSS tag would be listed in index.template.php and probably defined in style.css
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline SpectroPro

  • Jr. Member
  • **
  • Posts: 376
  • Gender: Male
    • The Reality Rocks Group
Re: top of forum graphic
« Reply #2 on: October 06, 2008, 07:11:23 PM »
Thanks Kindred, I will look there.  I can't find it in style.css at all, that is where I have been looking..  But I will get that for my firefox and will check the index.template.php file for the info....
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,826
  • Gender: Male
    • Kindred-999 on GitHub
Re: top of forum graphic
« Reply #3 on: October 06, 2008, 07:52:13 PM »
what is your forum URL?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline SpectroPro

  • Jr. Member
  • **
  • Posts: 376
  • Gender: Male
    • The Reality Rocks Group
Re: top of forum graphic
« Reply #4 on: October 06, 2008, 08:01:03 PM »
It was in fact in the index.template.php file..  calls the image there as header_logo_url.  I just added width="100%" and that fixed the problem. Now when the window is resized, it doesn't screw it up!!! 

Thank you!!!!   I'm still learning where things are all hidden..  You guys always come through!!!

Greg
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg

Offline SpectroPro

  • Jr. Member
  • **
  • Posts: 376
  • Gender: Male
    • The Reality Rocks Group
Re: top of forum graphic
« Reply #5 on: October 06, 2008, 08:01:40 PM »
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg

Offline SgtMic

  • Sophist Member
  • *****
  • Posts: 1,083
  • Gender: Male
    • -{FAST}- Squad
Re: top of forum graphic
« Reply #6 on: October 07, 2008, 01:49:58 AM »
It was in fact in the index.template.php file..  calls the image there as header_logo_url.  I just added width="100%" and that fixed the problem. Now when the window is resized, it doesn't screw it up!!! 

Thank you!!!!   I'm still learning where things are all hidden..  You guys always come through!!!

Greg

Where and how did you implement this in the index.template?
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Offline SpectroPro

  • Jr. Member
  • **
  • Posts: 376
  • Gender: Male
    • The Reality Rocks Group
Re: top of forum graphic
« Reply #7 on: October 07, 2008, 02:12:18 AM »
In line 182, which is a few lines under where the <body> starts is the line for the logo image.  Here is my line:


Code: [Select]
<img src="', $settings['header_logo_url'] , '" width="100%" height="125" alt="', $context['forum_name'], '" />';

I just added the nomal width and height code after the image code.  Just have to make sure it is OUTSIDE the quotes of the image code.

If it helps, it's 4 code lines above the line:   // Display user name and time.

Hope that is the info you wanted...

- Greg
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg