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: 421
  • 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]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: Custom Portal layout  (Read 4714 times)

0 Members and 1 Guest are viewing this topic.

Offline hyxer

  • Newbie
  • Posts: 3
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Custom Portal layout
« on: June 07, 2010, 09:04:27 PM »


Greetings fellow SP & smf users. This is my first post.  :nervous-happy: i hope i didn't post in the wrong section.

i was planning to make my homepage as in the picture using custom html/css. (i'm going to learn that later)

the white blocks is the planned place for the portal blocks. maybe i'll go learn some php to call the block functions from within the page.

my questions are:

1. How can i make the Home page to be the custom html page i'm going make instead of the default SP page?
2. Which css file store the style for the blocks?
3. Do u guys think my idea is doable?

oh btw im using SMF 2 RC 3& SP 2.3.2
« Last Edit: June 07, 2010, 09:08:03 PM by hyxer »

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Custom Portal layout
« Reply #1 on: June 08, 2010, 01:07:05 AM »
Assuming you've already got a theme like the one in the mock-up, I think you can do this using a combination of standard SimplePortal blocks (which would make this a support question) and some custom coding to display blocks within blocks (which would make this a custom coding question). It looks like you also wish to simplify and rearrange your navigation menu. This could be a very simple step, and does not involve SimplePortal very much at all -- you'll probably get better support on modifying your buttons in Subs.php over at simplemachines.org.  You may not need to do any theme modification just to support SimplePortal, but if you do want to do other types of theme modification, you can probably find better support in the appropriate board at simplemachines.org.
 
So I'll briefly answer your 3 questions and move the topic to support.
 
1. How can i make the Home page to be the custom html page i'm going make instead of the default SP page?
SimplePortal's home page is always the portal page.
You can lay out your portal page to look very much like the one you mocked up by turning all the default blocks off, then adding a custom HTML or php top or bottom block to the portal page (no title, no body). You can use variations on some of the "Blocks in Blocks" tricks from [SiNaN]'s recent blog post to get blocks layed out the way you want them -- http://simpleportal.net/index.php?topic=5332.0
 
Quote
2. Which css file store the style for the blocks?
portal.css, in the default theme, has the styles.  You can also individually re-style blocks using the custom Style options at the bottom of the block edit http://simpleportal.net/index.php?action=docs;area=block_editor

Quote
3. Do u guys think my idea is doable?
Assuming you've already got a theme that looks like the mock-up, then yes -- you can create a custom php block-of-blocks with your desired layout. It will take a lot of fiddling with the HTML and the CSS to get the heights and widths just the way you want them.
« Last Edit: June 11, 2010, 08:03:06 AM by AngelinaBelle »
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Custom Portal layout
« Reply #2 on: June 08, 2010, 01:35:44 AM »
Quote
my questions are:

1. How can i make the Home page to be the custom html page i'm going make instead of the default SP page?
2. Which css file store the style for the blocks?
3. Do u guys think my idea is doable?

1.) Change the associated action that loads 'home' to something else through index.php. Eg you could load a custom page that would be considered 'home' to SMF. Fairly simple to do.

2.) portal.css contains the rules for blocks.

3.) Fairly doable, considering you load the proper blocks on the custom page using PHP. You can call specific blocks inside blocks using SiNaN's Block Inside Blocks method, or you could hardcode the custom page itself.

Offline hyxer

  • Newbie
  • Posts: 3
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Custom Portal layout
« Reply #3 on: June 08, 2010, 03:45:56 AM »
wow. thanks for the replies.

I've never thought of the block in block idea, definitely gonna try it.

the picture was from a rough design done in .psd. not a real theme yet. going to move slowly towards that final view. hope it can be done by this weekend.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Custom Portal layout
« Reply #4 on: June 08, 2010, 08:21:58 AM »
I suppose you'll be doing something like:
1) Theme customization -- simplemachines.org
2) Menu button simplification -- simplemachines.org
3) Lose the current blocks -- http://simpleportal.net/index.php?action=docs;area=the_blocks_list
4) Create the 5 new blocks you are going to use, plus a custom php block that will (eventually) contain them -- http://simpleportal.net/index.php?action=docs;area=adding_a_block
5) Write some php for the HTML to layout the spaces your blocks are going to be in
6) Use Blocks-in-blocks to put the blocks in the right spots http://simpleportal.net/index.php?topic=5332.0
 
Enjoy!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline hyxer

  • Newbie
  • Posts: 3
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Custom Portal layout
« Reply #5 on: June 11, 2010, 04:50:22 AM »
promised update. the block in block is working. but still lots of work left to do.


Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Custom Portal layout
« Reply #6 on: June 11, 2010, 08:07:40 AM »
You've made good progress already!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?