SimplePortal

Customization => Themes and Graphics => Topic started by: Nier on February 07, 2010, 12:24:08 PM

Title: Background for portal, background for forum
Post by: Nier on February 07, 2010, 12:24:08 PM
Hey guys, i really appreciate your time and help. My site is nearly finished, but i got some questions.
I use images for my background
Code: [Select]
body {
background: #292929 url(../images/img/test.jpg) repeat-x top;
margin: 0px;
padding: 15px 0px 4px 0px;

But how can i make it possible that when ur on the portal page background 1 and on the forum background 2.

Something else, you got the option ''news'' to show news on your site like news: website is online.

But i dont need that, i have the news empty, but it still shows the word News:

Go to http://badcompany2clans.com/index.php , and than right top, u see it. I want to delete that news.


And the last:

I dont get my logo in the center

My code

Code: [Select]
#logo {
position: absolute;
top: -6px;
left: 15px;
display: block;
width: 1690px;
height: 270px;
cursor: pointer;
background: url(../images/img/logo.png) no-repeat;

If i change the pixel in my confrgation panel on my pc, like 1024x768 to 1650 x800 or something , the logo doesnt stand in the center, how can i make that possible


Thx !!!

Title: Re: Background for portal, background for forum
Post by: Nathaniel on February 07, 2010, 07:15:21 PM
Most of these issues look like you could resolve them with edits to the 'Themes/{custom_theme_name}/ ndex.template.php' file

1) These edits should do what you want.

Code: ("Find") [Select]
function sportal_main()
{
global $smcFunc, $context, $sourcedir;

if (WIRELESS)
redirectexit('action=forum');

Code: ("Replace") [Select]
function sportal_main()
{
global $smcFunc, $context, $sourcedir;

if (WIRELESS)
redirectexit('action=forum');

$context['portal_active'] = true;

Then add something like the code below, where you <body> tag was (in the index.template.php file somewhere).

Code: [Select]
<body class="', !empty($context['portal_active']) ? 'portal_body' : 'fourm_body', '">
Then create two new css classes called 'portal_body' and 'forum_body', placing the relevant background css  there.

2) Do a search for 'news' in your index.template.php file. There should be a section you can remove.

3) Which logo?
Title: Re: Background for portal, background for forum
Post by: Nier on February 10, 2010, 12:21:52 PM
1) You said to the edit in the index.template.php of the template i use, but when i search, i cant find the code what you say. ( i use template Loner )

2)2. http://img683.imageshack.us/img683/8764/deleteinheader.jpg

This i got on right top of my page, i dont need those, none of them: ''news'' ( that word must be deleted, u even see it when i dont fill any site news), avatar(profile), searchfield,
How can i delete that? in template index?

Ty :)
Title: Re: Background for portal, background for forum
Post by: [SiNaN] on February 11, 2010, 04:13:58 AM
1) First edit is for Sources/PortalMain.php and second one is for index.template.php file.

2 and 3) It would be better if you attached your index.template.php and style.css files here.
Title: Re: Background for portal, background for forum
Post by: Nier on February 11, 2010, 02:17:10 PM
About my first question, i changed everyting in my index.css ( of the theme) and not in a template index.css file, so what to do now?
I succeeded changing in portal file.

But where to place. in my index.css???:

''<body class="', !empty($context['portal_active']) ? 'portal_body' : 'fourm_body', '">
''
And how? Because i get also error when i pasted it and uploaded to server.

because this is also in my index.css:

body {   background: #292929 url(../images/img/test.jpg) repeat-x top;   margin: 0px;   padding: 15px 0px 4px 0px;
So i must make that to

portal_body {   background: #292929 url(../images/img/test.jpg) repeat-x top;   margin: 0px;   padding: 15px 0px 4px 0px;

and

forum_body {   background: #292929 url(../images/img/test2222.jpg) repeat-x top;   margin: 0px;   padding: 15px 0px 4px 0px;

Attachtments added for question 2.
SimplePortal 2.3.8 © 2008-2024, SimplePortal