News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to Change Title / Logo part in Default theme

Started by Ivan Minic, August 01, 2005, 08:42:20 AM

Previous topic - Next topic

coldy316

Would you believe it that i live in gods country
Australia

Arantor

Then yes as I said it should work. The logo is still Themes/default/images/smflogo.png

coldy316

I have look at the blackrain2 theme and the smf image logo isnt there but a red box is . I have gone to
both theme sections via ftp to  /Themes/default/index.template.php default core curve and black rain2
theme did a search for this with dreamweaver:

// This part is the logo and forum name.  You should be able to change this to whatever you want... echo ' <img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" /> <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';Replace


result was could not be found. I then did another search in the blackrain2 theme and got the same result
is  it possible that the script has been move to some other location with SMF 2.0 RC2 curve???
Would you believe it that i live in gods country
Australia

Arantor

Um... you said you were using the default theme? In the default theme I already told you where it is.

By the way you won't find that string you've been looking for, that's two separate lines of code there.

Almost every custom theme is different however. You're best off looking in the thread for that theme.

coldy316

im also doing this on another forum as well arantor
but even when you view the default core theme for SMF 2.0 RC2 curve I still cant find all of that code

Would you believe it that i live in gods country
Australia

Arantor

I can't help you with the custom theme issue. Ask in the thread for the custom theme.

For this one, search for smflogo.png on its own in the file, don't try finding the rest of the code.

brokentater

Im not trying to sound belittling or anything like that but Im genuinely curious why things are designed to be this complicated? I mean seriously in my time to change a logo all it took was a change to a simple IMG tag now theres like 40 lines of code to call one simple image. I really want to know How things were allowed to go from so simple to painfully complex.

Arantor

Where is there 40 lines of code to call a single image? AFAIK in RC2 nothing in the default does that. You can configure the left logo with an admin option IIRC, and change the right logo with a single change of <img>.

Custom themes are at the author's whim however.

brokentater

I just seen a 3 step explanation to change a simple image and thought it sounded like overkill for the task at hand. I mean having to sift through even 9 or 10 lines of code to change one img is just wild to me. But I code extremely simple, even in php I leave all complexity out and make sure that even the design templates when loaded will display correctly in things like dreamweaver to make certain the editing of the design is flawless.

Arantor

Except that opening the templates in Dreamweaver has a real tendency to break them because they're mostly PHP not HTML.

Most of the problem is that the above is a custom template - where the authors can do what they like. They don't have to stick to the same as SMF's code, which is why code sifting is more complex.

In straight SMF, it is a quick find/replace for a single img tag, nothing more, just as it would be in a conventional HTML page. The only reason it is more complex in any way for an SMF template is that there's so much PHP involved concerning conditional display of things (and anything else would be a lot slower)

thesorceress

I feel really stupid but i can't find the first code, the one that starts with // This part is the logo and forum name. i'm using SMF 1.1.11 and Simple Portal 2.3.1

I triple checked i had the right file and i did. I was so excited i found this topic  ;)
Thanks for any help  :)

Arantor


thesorceress

Hi Arantor thanks for trying to help  :)

I'm using the default theme, but i copied it, changed the colors and gave it it's own name.
I've also looked in that folder at the index.template.php but also no luck.

here is a link to my forum

You can see why i desperately want to fix the header and logo part  ;)

thesorceress

#73
Do i need to add more info? Please let me know, i have nihil knowledge of this .... i just follow the given steps.

Never mind i found it out in another post  ;)

Viresh12

/* The main body of the entire forum. */
body
{
   background-color: #ffffff;
   margin: 0px;
   padding: 12px 30px 4px 30px;

After (F) this color list may be found.

CrouchingPanther

I'm using a clone of the default template, I would like to have my forum 1000px wide and centred on screen.
Please can someone let me know how to do this, I've tried with the following http://docs.simplemachines.org/index.php?topic=1021.0
but it's not working. I am using v1.1.11

Thanks  ;D

Outdoor-Fishing

Quote from: Viresh12 on March 09, 2010, 01:30:13 AM
/* The main body of the entire forum. */
body
{
   background-color: #ffffff;
   margin: 0px;
   padding: 12px 30px 4px 30px;

After (F) this color list may be found.

How would we implement a custom background instead of just a color?

Arantor

Replace the background-color line with: background: url(image.png);

Since I have no idea whether you want it to repeat or not I didn't bother trying to guess that and just left it.

Outdoor-Fishing

Quote from: Arantor on March 20, 2010, 06:19:21 PM
Replace the background-color line with: background: url(image.png);

Since I have no idea whether you want it to repeat or not I didn't bother trying to guess that and just left it.

Yes, I want it to repeat. Maybe I don't? Not exactly sure what affect it would have on the theme.

Thanks for the help! ;)

Outdoor-Fishing

#79
New possibility...

The current theme that I have set on my forum has a file named "backdrop". If I am not mistaken, then this would be the "repeating" background image. It's approx 30 px wide and a full page size in length.

So, would I be able to replace this image file with whatever I want to give me my backround.

EDIT: Figured this out. Please disregard this post.

Advertisement: