SimplePortal

Support => English Support => Topic started by: zdylann on December 17, 2012, 12:57:20 AM

Title: SimplePortal Page Help
Post by: zdylann on December 17, 2012, 12:57:20 AM
Which version of SMF you're using: 2.0.2
Which version of SimplePortal you're using: 2.3.5
A link to your forum: (Or screenshots, either or): BlockedUp.net/forum
Any errors from your error log that may be related (please remove paths and IP addresses as this could give out personal information not needed on a public forum.): No errors
A detailed description of the problem. (VERY IMPORTANT): I have created a page on my website called "Donate" and have also create a tab called "Donate" which links to the Donate page. I created this tab by editing the Subs.php file in Root/Sources/Subs.php . If I go on my website and log in and navigate to the Donate page it will show me that I am logged out even though I just logged. So pretty much clicking the tab will log me out until I return back to the home page. Also when you are on the Donate tab it will not highlight the Donate tab as it would highlight the Home tab. I think this may just be a problem with the code in Subs.php or some setting I am forgetting with SimplePortal. Its much easier to visit my website to understand the problem easier. Thanks in advance for any assistance!
Title: Re: SimplePortal Page Help
Post by: TinMan on December 17, 2012, 02:31:23 PM
It may be due to how you have your subs button coded, when hovering the buttons it seems like your site is set up for use without the www., but when hovering the donate button it seems to be coded using it which may cause the problem with your being logged in/out.

In subs.php, if you coded your button link like...
Code: [Select]
'href' => 'hxxp://www.yoursite.tld/forum/index.php?page=Donate',
It would probably be better to use something like...
Code: [Select]
'href' => $scripturl . '?page=Donate',
Title: Re: SimplePortal Page Help
Post by: zdylann on December 17, 2012, 08:50:48 PM
*Gods Work*
THANK. YOU. I feel like such an idiot, but we all make mistakes. It is now working as intended. :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal