News:

Wondering if this will always be free?  See why free is better.

Main Menu

How do you remove 3d effect in SMF default theme

Started by Homie, April 21, 2004, 09:23:48 AM

Previous topic - Next topic

Homie

Hi in my forum
http://abhosting.uni.cc/abhosting/homie/index.php

I would like to remove the 3d effect can anyone tell me what file to edit like .php file and tell me what stuff to remove and what to add thanks
:)
Regards
Homie

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Acf

Sigh...

Homie

Look at the boards on my forum

http://abhosting.uni.cc/abhosting/homie/index.php

and see it curves and stuff id like all that flat Look.  :)

bostasp

Homie, I just see a Simple Machines Forum with the default theme, I don't see any 3D effects...

Homie


Aoshi

As suggested, remove the image. It's not purely css or php that's doing that.

Homie

Well i dont (KNOW) What i get rid of in the css stlye file i dont know what code to edit in there can someone tell me  :)

bostasp

Find this is index.template.php:

<style type="text/css"><!--
.catbg
{
background-image: url(http://www.simplemachines.org/community/Themes/default/images/titleback.gif);
}
.catbg2
{
background-image: url(http://www.simplemachines.org/community/Themes/default/images/titleback.jpg);
}
.code
{
white-space: pre;
}
--></style>


Replace it with this:

<style type="text/css"><!--
.code
{
white-space: pre;
}
--></style>


Homie


Ryan

Goto Themes/default on ur ftp if the theme u wanna edit...

Now all you need to do is open up index.template.php in notepad, and remove the following (Its near the top):

echo '
<style type="text/css"><!--
.catbg
{
background-image: url(', $settings['images_url'], '/titleback.gif);
}
.catbg2
{
background-image: url(', $settings['images_url'], '/titleback.jpg);
}', $context['browser']['is_gecko'] ? '
.code
{
white-space: pre;
}' : '', '
--></style>';


Now you will be left with a grey background...

Open up your style.css file for the default theme and replace this...
/* The category headers, page indexes, and such things - catbg2 is used for "new" posts. */
.catbg, .catbg2
{
font-weight: bold;
background-color: silver;
color: #000000;
}


With...

/* The category headers, page indexes, and such things - catbg2 is used for "new" posts. */
.catbg,
{
   font-weight: bold;
   background-color: silver;
   color: #red;
}
.catbg2
   font-weight: bold;
   background-color: silver;
   color: #green;

Ive set the colors to reg and green but u can easily change this...

Good luck

It looks harder than it is :)



bostasp

Just to note, those urls to simplemachines.org will be whatever your address to your forum is.

Ryan

Bost beat me to it :P

Slightly different variation hehe

bostasp

I'd trust ryan's version more, does it the proper way ;)

Homie

Thanks it worked on one of my other forums cool  :)

Homie

#15
 When a person posts on my forum after i edited the board thing. the part Turns White which i dont want when someone posts a new post how can you have it so the thing doesnt turn white heres a image below





Peter Duggan

Please stop posting 1024x768 screenshots to illustrate every little problem you have! ::)

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0


Advertisement: