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

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: How to make portal front page forward/show a SP Page instead?  (Read 4774 times)

0 Members and 1 Guest are viewing this topic.

Offline Stigmartyr

  • Jr. Member
  • **
  • Posts: 72
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
How to make portal front page forward/show a SP Page instead?
« on: January 10, 2011, 06:59:36 PM »
Subject is pretty self explanitory.  Here's what I did: http://stangnation.com/

Front page pulls iframe in an HTML block.  Notice to the right side border that the page should be centered, but it is actually pushed to the right a few pixels so you can't see the right border of the page within the Iframe.

I have gone over the iframe HTML already from CSS to div layers to ensure its straight.  I am inclined to think that 960 wide as a TOP BLOCK is breaking the theme even though it shouldn't

To test, I use the exact same HTML code and put an iframe in a SP page: http://stangnation.com/index.php?page=beta

It's fine in a page.

So my question is: can you help me make it so I can just have the SP portal open the page instead or perhaps put a page in a block or something?  I'm tired perhaps, I've been up hours with this.

The only way this seems to work is in IE with compatibility mode right now.  Its broken in Opera, Chrome and Safari

Offline Stigmartyr

  • Jr. Member
  • **
  • Posts: 72
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: How to make portal front page forward/show a SP Page instead?
« Reply #1 on: January 10, 2011, 07:06:55 PM »
Edit: for the record - I have tried BBC block using an HTML tag instead, I have attempted to use PHP include but always get syntax errors, so..

It would be nice if the page itself could be optioned to be set as 'Homepage' :P


Thank you!

Offline Stigmartyr

  • Jr. Member
  • **
  • Posts: 72
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: How to make portal front page forward/show a SP Page instead?
« Reply #2 on: January 10, 2011, 09:58:37 PM »
Does anyone know the difference of how SP renders the portal page than from other pages?

I'm hoping if I can sort that out, I can probably devise a patch.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: How to make portal front page forward/show a SP Page instead?
« Reply #3 on: January 11, 2011, 10:10:25 AM »
I'd like to help you find a Simple way to achieve your goal.
 
I am not sure what you are trying to achieve. I have a few suggestions, anyway.
 
The Portal page is like a very special example of a SimplePortal page.  It is as though it has its own special type though. You don't get to choose between BBC, HTML, and PHP.  The only choice for the central area is ARTICLES, which works out to be pretty much like an ARTICLES block (though it doesn't use the ARTICLES block)
 
If you want your Portal page to have a BBC, HTML, or php block in the middle of the page, you can put it at the bottom of the top blocks, and restrict it to show up only on the portal page.
 
If you would like the articles turned off, you can use the setting to turn it off. If you want to use them elsewhere, you can leave them on and make a one-line customization to keep them out of the center of the Portal Page: http://simpleportal.net/index.php?topic=5208.msg31437#msg31437
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 Stigmartyr

  • Jr. Member
  • **
  • Posts: 72
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: How to make portal front page forward/show a SP Page instead?
« Reply #4 on: January 11, 2011, 12:40:37 PM »
TY Angelina - I don't care how, I just want the method that doesn't suffer from the same alignment issues as using a HTML or BBC top block to render a 960px wide iframe.

It seems the 'page' can render it just fine in my example, however a top block has some issues, shortening the width and creating an ugly scroll bar I have to hide with (overflow:hidden) but even then the content is still chopped off on the right.

What I was wondering is if there was a way to make a page show first on the homepage, but you suggested using articles.  I don't want to use articles because that is in a forum post format and I don't want that.

I simply want to display my iframe on the front page or display an 'SP page' as the homepage/portal page.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: How to make portal front page forward/show a SP Page instead?
« Reply #5 on: January 11, 2011, 03:03:14 PM »
Articles is not an issue,then.
 
It sounds as though your alignment issues arise from some kind of CSS problem.
Please give links to
* Portal page with top block showing alignment issues
* Special page with same content, showing no alignment issues.
 
960px wide iframe?
 
 
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 Stigmartyr

  • Jr. Member
  • **
  • Posts: 72
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: How to make portal front page forward/show a SP Page instead?
« Reply #6 on: January 11, 2011, 04:05:08 PM »
Articles is not an issue,then.
 
It sounds as though your alignment issues arise from some kind of CSS problem.
Please give links to
* Portal page with top block showing alignment issues
* Special page with same content, showing no alignment issues.
 
960px wide iframe?

What you ask is all explained in my first post :)

Articles would be an issue also because it introduces pagination at the footer which I don't want either.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: How to make portal front page forward/show a SP Page instead?
« Reply #7 on: January 11, 2011, 04:17:58 PM »
I think articles are not an issue because you do not want them at all.
So - no articles.
 
To my eyes, and using IE8, (compatability mode on or off) the Portal and simpleportal page you linked to look identical.
 
In both cases, stuff is piled on top of other stuff.
Except for those moments when "Stang Nation Sponsors" contains "Service Temporarily Unavailable"
Then everything looks much better on both pages, and still identical.
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 Stigmartyr

  • Jr. Member
  • **
  • Posts: 72
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: How to make portal front page forward/show a SP Page instead?
« Reply #8 on: January 11, 2011, 04:32:56 PM »
I think articles are not an issue because you do not want them at all.
So - no articles.
 
To my eyes, and using IE8, (compatability mode on or off) the Portal and simpleportal page you linked to look identical.
 
In both cases, stuff is piled on top of other stuff.
Except for those moments when "Stang Nation Sponsors" contains "Service Temporarily Unavailable"
Then everything looks much better on both pages, and still identical.

Bad timing - all that is now happening because of service interruption with the advertising plugin I think.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: How to make portal front page forward/show a SP Page instead?
« Reply #9 on: January 11, 2011, 08:17:18 PM »
Well, now, they look identically beautiful. My eyes cannot tell the difference between the two.
Maybe you can post some pictures of the differences you see.
The differences may be CSS related. Or not.
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 Stigmartyr

  • Jr. Member
  • **
  • Posts: 72
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: How to make portal front page forward/show a SP Page instead?
« Reply #10 on: January 11, 2011, 08:45:18 PM »
Well, now, they look identically beautiful. My eyes cannot tell the difference between the two.
Maybe you can post some pictures of the differences you see.
The differences may be CSS related. Or not.

Cool - so if you can see what I'm talking about you'll want to look very closely to the borders and edges in the example pics below.

When its in an HTML front page block pulling that 690px wide iframe, the portal crops a few pixels off:





When it's in a Simple Portal Page, it will show perfectly using the exact same iframe code:




I am running IE9 Beta and must use compatibility mode to view it correctly.  However in Opera, Chrome, Safari it is broken.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: How to make portal front page forward/show a SP Page instead?
« Reply #11 on: January 12, 2011, 03:29:55 PM »
I did  little experimenting on my own (portal top-block vs page)
I saw some changes in padding, but no cropping in either case.
One difference I noticed in your two examples is the two is that on the portal page you use
Code: [Select]
<div id="Synthetik">, whereas on the simpleportal page, you did not.
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 Stigmartyr

  • Jr. Member
  • **
  • Posts: 72
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: How to make portal front page forward/show a SP Page instead?
« Reply #12 on: January 12, 2011, 09:57:16 PM »
I did  little experimenting on my own (portal top-block vs page)
I saw some changes in padding, but no cropping in either case.
One difference I noticed in your two examples is the two is that on the portal page you use
Code: [Select]
<div id="Synthetik">, whereas on the simpleportal page, you did not.

Ah yes, and the reason for that is because unlike in the SP page, I do not have to compensate for the horizontal scroll bar that gets created at the bottom.  I made that css call to provide me a way to do 'overflow: hidden;' on any elements I need to with just a div layer.

I was brainstorming today wondering how to get SP to just show a page onload of the home URL.  Is it possible that whatever code calls the SP page templates up could just call an SP page instead of the SP portal template?

I know I'm asking alot, but I started thinking: if admins had an option to mark an SP page to 'set as home' or 'set as front page' that might be rather handy.  If not, I started pondering how the portal worked in different modes, like stand alone, etc. which tell the site how to render the front page.  If that could be modified to simply call the contents of a page instead we might be in business.

I can't understand what might be the culprit - I wondered if it was the elements that collapse the side bar but it was unclear to me, even using the developer console of my browser.  Was hoping for some insight from the SP gurus as to any differences between how the front page is rendered to account for all the blocks, etc and how a page is rendered.

I know it's just a few pixels but I'm committed to resolving this! :D

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: How to make portal front page forward/show a SP Page instead?
« Reply #13 on: January 13, 2011, 11:07:49 AM »
I understand what you are saying. You want help figuring out how to make a major change in SimplePortal function. It might even be relatively easy.And here I am, trying to push a very different way of looking at it on you.

I'm still stuck in the "defining the problem" step, whereas you desire information on implementing the solution you've identified.

I can guess, from your attempts to reword, that you are just trying to get me to understand. I'm sorry I'm frustrating you. So I'm going to make only one more attempt at defining the problem before I pass your question up to an (very overworked) expert

I don't think you have any clipping of the iframe contents.  I think you've got issues with whitespace OUTSIDE the iframe.

Here's why I don't think there is no clipping:
I blew up both pages way up (400%), and used IE8 developers tools to put a blue line around the IFrame. The inside of the iframe part looked the same to me on both pages.

Here's what I see for the beta page:
   
 
 
and for the portal page:
   
 
What I do see is a difference in the space put around the iframe, especially the space after.
There are ways to handle this, to get control over the padding and one extra <br />
 
« Last Edit: January 13, 2011, 11:21:27 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 Stigmartyr

  • Jr. Member
  • **
  • Posts: 72
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: How to make portal front page forward/show a SP Page instead?
« Reply #14 on: January 13, 2011, 11:58:26 AM »
I tried </iframe><br /></div> and </iframe></div><br /> but none worked for me.  Did you intend I put it somewhere else?

Thanks again!

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: How to make portal front page forward/show a SP Page instead?
« Reply #15 on: January 13, 2011, 12:25:47 PM »
If you have firefox, get firebug.
If you have IE7 or IE8, hit F12 to bring up the developers tools.
This makes it very easy to analyze the HTML.
 
On your portal page, your iframe is in block 80.
After that block, but still within <td id="sp_center"> comes two <br>
The first <br/> comes because simpleportal puts one after every block, as a spacer between blocks.
Not everyone likes this. It can be addressed like this: http://simpleportal.net/index.php?topic=5276.msg31858#msg31858
 
I'm not sure where the second one comes from.  I is probably from 1) the end of all top blocks 2) the end of the (empty) central area, 3) the end of the (empty) bottom blocks or 4) not from SimplePortal at all.  I'm guessing 1 or 4.  One would have to hunt through the code.
 
On the beta page your iframe is in the page's center block, enclosed by
Code: [Select]
<div>
<table class="sp_block"> 
After that, but still within <td id="sp_center"> comes one <br/> (see reasons 1-4 above)
So you could make the beta page a bit more like the portal page by adding a <br/> in pages center block. But not the other way around.
 
-------------------------------------------------------------------------------
And then, you have margins-and-padding in all the various containers. If you have IE developers tools or firebug, you can easily sort out the differences in style.
 
Why are there such differences in style? Maybe historical reasons.
 
----------------------------------------------------------------------
"Make the portal page just a special case of a SimplePortal Page" might be a good feature request.
Because, really, the SimplePortal page is KIND OF like a SimplePortal page of type "Articles".
But it is not implemented that way.
 
OK.  I made that request myself. Feel free to add your comment.
 
------------------------------------------------------------------------
 
Whatever you decide to do with your portal page, you are now definitely heading into themes and graphics or customization territory.
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?