collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 429
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Background for portal, background for forum  (Read 7266 times)

0 Members and 1 Guest are viewing this topic.

Offline Nier

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Background for portal, background for forum
« 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 !!!

« Last Edit: February 07, 2010, 02:14:16 PM by Nier »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Background for portal, background for forum
« Reply #1 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?
« Last Edit: February 08, 2010, 07:11:52 PM by Nathaniel »
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Nier

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Background for portal, background for forum
« Reply #2 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 :)

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Background for portal, background for forum
« Reply #3 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.
And slowly, you come to realize... It's all as it should be...

Offline Nier

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Background for portal, background for forum
« Reply #4 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.
« Last Edit: February 11, 2010, 02:49:31 PM by Nier »