Login error 2.0.14

Started by Maxie2019, May 24, 2017, 07:15:06 AM

Previous topic - Next topic

Maxie2019

Hi,

Firstly, please forgive me because although I have a background in IT, I don't know a great deal about the inner workings of a Simple Machines forum - but after updating the forum to 2.0.14, we are unable to use the login facility in the top left of the screen and have to physically click the login button and enter details into the main screen. This means that there is a limit on how long members can stay logged in. I logged a ticket with our helpdesk but they were next to useless but did highlight a problem with the theme we are using (Curvemavi) and that I should 'download' a new version and upload it to the forum using C-panel. However, they had no idea where I should download it from? They also suggested I use the "find and repair" tool but that t should be used by a developer, which I am not. Any ideas how we can repair our forum?

d3vcho

Please, the next time you need support, open your own support topic.

Thanks :)
"Greeting Death as an old friend, they departed this life as equals"


Maxie2019

#3
Hi all,

I checked the link and found the style sheet for the Curvemavi theme login. Not sure what it all means or if there are errors in the script - any ideas?


        echo '
            <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
            <form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
               <div class="info">', $txt['login_or_register'], '</div>
               <input type="text" name="user" size="10" class="input_text" />
               <input type="password" name="passwrd" size="10" class="input_password" />
               <select name="cookielength">
                  <option value="60">', $txt['one_hour'], '</option>
                  <option value="1440">', $txt['one_day'], '</option>
                  <option value="10080">', $txt['one_week'], '</option>
                  <option value="43200">', $txt['one_month'], '</option>
                  <option value="-1" selected="selected">', $txt['forever'], '</option>
               </select>
               <input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
               <div class="info">', $txt['quick_login_dec'], '</div>';

vbgamer45

It looks like it is missing the edit attach that template file here.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Maxie2019

Quote from: vbgamer45 on May 24, 2017, 01:52:29 PM
It looks like it is missing the edit attach that template file here.

You want me to paste the whole template contents?

vbgamer45

Better you attach it as attachment there is add files option when you make a post.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Maxie2019

This is a copy of the whole sheet

vbgamer45

Find this code

         echo '
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';

Change to
         echo '
               <input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
            </form>';
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Maxie2019

Quote from: vbgamer45 on May 24, 2017, 02:11:20 PM
Find this code

         echo '
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';

Change to
         echo '
               <input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
            </form>';


You are indeed a genius! Thank you!! :D

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Steve

Just as an FYI for future use, when posting code, use the code tags. :)
DO NOT pm me for support!

Advertisement: