SimplePortal

Customization => Custom Coding => Topic started by: ROZA on July 10, 2015, 09:37:41 AM

Title: Need help to set the standalone mode via ftp not by setting in admin area
Post by: ROZA on July 10, 2015, 09:37:41 AM
Hello everybody!
 Sorry because of poor writing, English is my second language! :-[

I need some help to set the standalone mode via ftp not by change the setting in admin area.
The reason that I want to do this:
 Although I knew that they are not fully compatible but I installed the sp2.3.6 on smf2.1 beta for some reasons. However, everything seems ok except that the portal configuration does not work in the admin area and I can not save any change.  I do not know which php file(s) should be edited and how I should do that as well!

Thanks in advance for your help and any advice is appreciated.
Title: Re: Need help to set the standalone mode via ftp not by setting in admin area
Post by: [SiNaN] on July 10, 2015, 10:22:34 AM
Hello and welcome to SimplePortal!

I won't be able to help you with getting full compatibility for SMF 2.1 Beta, however, for saving the settings issue, the following change should fix it:

./Themes/default/PortalAdmin.template.php

Code: (Find) [Select]
echo '
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />

Code: (Replace) [Select]
if (isset($context['admin-dbsc_token']))
echo '
<input type="hidden" name="', $context['admin-dbsc_token_var'], '" value="', $context['admin-dbsc_token'], '">';
echo '
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Title: Re: Need help to set the standalone mode via ftp not by setting in admin area
Post by: ROZA on July 11, 2015, 06:10:32 AM
Hi SiNaN!

Thank you very much! It worked like a charm.
Title: Re: Need help to set the standalone mode via ftp not by setting in admin area
Post by: [SiNaN] on July 11, 2015, 02:11:06 PM
Good to hear that it worked for you. You're welcome! ;)
SimplePortal 2.3.8 © 2008-2024, SimplePortal