SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: ccbtimewiz on May 27, 2009, 04:53:53 PM

Title: Parameter empty results in right-side missing?
Post by: ccbtimewiz on May 27, 2009, 04:53:53 PM
http://simpleportal.net/index.php?action=

When the action parameter is set but left empty, the right side is missing. Is this intended to happen?

Same thing happens if board or topic is set but not defined.

From the look of it, it appears that blocks defined to only show on the portal page look for nothing to be set.
Title: Re: Parameter empty results in right-side missing?
Post by: [SiNaN] on May 28, 2009, 02:35:06 AM
That's intentional. If you have something in the URL that does not belong to SimplePortal, blocks that are only displayed on portal are not displayed. This is to prevent URLs like

http://simpleportal.net/index.php?project=1
http://simpleportal.net/index.php?issue=146.0
http://simpleportal.net/index.php?game=5

being considered as portal. Because action, topic and board will empty there too.
Title: Re: Parameter empty results in right-side missing?
Post by: ccbtimewiz on May 28, 2009, 10:51:59 PM
Ahhh, I see what you mean. Though what if you tried to access an area that was still considered 'portal', but had those parameters?
Title: Re: Parameter empty results in right-side missing?
Post by: Nathaniel on May 29, 2009, 01:59:06 AM
There is a '$portal_actions' array defined within the 'getShowInfo' function of the 'Subs-SPortalX.php' file. Any special $_GET parameters which will be used, but are still considered a part of the portal must be added there.
Title: Re: Parameter empty results in right-side missing?
Post by: ccbtimewiz on May 29, 2009, 11:58:33 AM
Thanks Nat. :)

This is solved for now.
SimplePortal 2.3.8 © 2008-2024, SimplePortal