Increase Header Size for Curve.

Started by SaltedWeb, March 23, 2015, 10:10:37 PM

Previous topic - Next topic

SaltedWeb

I am using a Curve based forum.
I have a 700x190 image file to put in the top header areas but unsure where the settings are located. I thought the CCS
but didnt seem to update it when I adjusted it there. Maybe was the wrong place ?

Help appreciated.
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Deaks

what exact location? is it the logo? need more information to help you better :)
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

SaltedWeb

The very top where normally under Admin you can set a path for the image, Ive done that but of
course it doesn't fit in the header.  Its where the default size name would be if there was no image.

Hope this helps.
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

SaltedWeb

Ps my guess is its somewhere near the #upper_section ul li.greeting

But see nothing but widths in index.css
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Deaks

in the index.template.php you need to find

<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>


and make it a direct img code so for example

<h1 class="forumtitle">
<a href="', $scripturl, '"><img src="' , $settings['images_url'] , '/mylogo.png" height="190px" width="700px" alt="" /></a>
</h1>


this is not best way but it should work :)
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

SaltedWeb

Thank You I will give it a try and report back :)
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Deaks

remember backup and also change the code to suit your needs for example src should be to your logo
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

SaltedWeb

Hi there, SMF is having site issue I guess took awhile to get back in:
The code didnt seem to work it removed the header, but didnt put an image in its place.
No errors just didnt seem to do anything other then remove the header. The url and such is correct.
scratching head ...........
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: