SimplePortal
Customization => Custom Coding => Topic started 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.
-
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
echo '
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
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'], '" />
-
Hi SiNaN!
Thank you very much! It worked like a charm.
-
Good to hear that it worked for you. You're welcome! ;)