Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Monkey50 - elokuu 26, 2011, 10:13:28 AP

Otsikko: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 26, 2011, 10:13:28 AP
how do i add my own css or html code or add a background picture i kno you have to go to the files but how do i get there
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - elokuu 26, 2011, 10:21:51 AP
you will normally edit files with your FTP program:

How do I use FTP? / What is FTP? (http://wiki.simplemachines.org/smf/How_do_I_use_FTP)


the files to edit will be  /Themes/your theme/index.template.php

and depending on your forum version,

/Themes/your theme/css/index.css   for 2.0

/Themes/your theme/style.css  for 1.1.x



where  "your theme"  is the theme's name that you are currently using.
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 26, 2011, 11:53:29 AP
can i find theme/ so on on my forum or my host area
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - elokuu 26, 2011, 11:57:29 AP
on your server, take a look at the link I gave.

You can also find it on your hosting area via a file manager tool.
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 26, 2011, 12:42:10 IP
thanks
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 27, 2011, 08:54:54 AP
can i just uload a background picture not that great with css
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - elokuu 27, 2011, 06:09:51 IP
yes you can, you can add your background in the  body



body {



}


take a look at some css tuts

Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 28, 2011, 07:21:54 AP
where would i find that
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - elokuu 28, 2011, 08:31:49 AP
It depends on what smf version you are using:

1.1.x  /Themes/your theme/style.css


2.0  /Themes/your theme/css/index.css
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 28, 2011, 08:39:24 AP
when i click on index.css it opens up to my files on my pc
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - elokuu 28, 2011, 08:40:52 AP
How do I use FTP? / What is FTP? (http://wiki.simplemachines.org/smf/How_do_I_use_FTP)

then open it with a code editor like notepad++
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 28, 2011, 08:59:05 AP
ok thanks
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 29, 2011, 08:55:08 AP
having some trouble. does what you told do the bits the arrow is pointing at. sorry about going on i am learning good but this is very hard
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - elokuu 29, 2011, 10:00:04 AP
an you post a link to your forum
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 29, 2011, 10:24:30 AP
you want a link. all i want to is to change to blue bit in to a picture
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - elokuu 29, 2011, 10:27:04 AP
Yes, a link is necessary here since I'm going to use Opera/dragonfly  on your forum to tell you exactly the css bit that controls the background,  but it is your decision.
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 29, 2011, 10:56:47 AP
its http://drwhofanzoneforum.hostzi.com/index.php
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - elokuu 29, 2011, 11:04:44 AP
ok the background image is located in your /Themes/smf-curve/css/index.css

/* Set a fontsize that will look the same in all browsers. */
body
{
   background: #E9EEF2 url(../images/theme/backdrop.png) repeat-x;
   font: 78%/130% "Verdana", "Arial", "Helvetica", sans-serif;
   margin: 0 auto;
   padding: 15px 0;
}


the image is this:

/images/theme/backdrop.png


and is located in /Themes/smf-curve/images/theme/backdrop.png
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 29, 2011, 11:23:47 AP
so would i just replace the backdrop image to get what i want
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Gary - elokuu 29, 2011, 11:27:06 AP
That is the simplest method, yes. You may still need to edit the background colour though. (#e9eef2)
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 29, 2011, 12:42:26 IP
ok i have now worked it out thanks but now it wont let me change to a different theme even that i got rid of the one i have now
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 30, 2011, 05:03:26 AP
the theme is back to normal. theres one more thing how do i keep the backdrop from scrolling and make it stay in position and i scroll
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - elokuu 30, 2011, 09:42:05 AP
please take a look at any css tut out there, for example:

http://www.w3schools.com/cssref/pr_background-attachment.asp
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 31, 2011, 05:17:30 AP
hi i had a look and i think i know what to do but i want to check. the code the stop it scrolling would i add that in the same area that the code for the backdrop and add the code after that
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - elokuu 31, 2011, 08:21:29 AP
yes, it all should go in the

body {

}
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - elokuu 31, 2011, 08:47:00 AP
thanks
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: Monkey50 - syyskuu 01, 2011, 01:55:06 IP
that works now thanks
Otsikko: Re: if i wanted to change the background or add things
Kirjoitti: All Colours Sam - syyskuu 01, 2011, 05:10:41 IP
OK, I'm going to mark this as solved then.