News:

Join the Facebook Fan Page.

Main Menu

Theme Issues

Started by Majik_Imaje, August 14, 2019, 02:05:47 PM

Previous topic - Next topic

Majik_Imaje

Quote from: lurkalot on August 16, 2019, 12:41:21 PM
There's two closing form tags in that index.template file, you sure you added it to the correct one ?

This is the one you want, around line 293

Find
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>';
}




I did not close that <form tag when I posted, I didin't want to lose the text........I purposely left it open but yes I did insert that single line of code in the right place.
Now you give me two lines of CODE.............wonderful !!!

Now I noticed I have two files that  say   Index.template.php 20k 
the other file is   Index.template.php~ 20k

So I am supposed to go to  Line 293 and insert this ?  echo '
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />

Ok.......I will give that a try  once I hear back from you

Majik_Imaje

I hope this is the  correct place.  I don't  have an editor that shows line numbers



Sir Osis of Liver

Please post code in [code][/code] tags.

Core index.template.php -



{
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form class="windowbg" 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'] . '\');"' : '', '>
', $txt['login_or_register'], '<br />
<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 />
', $txt['quick_login_dec'];

if (!empty($modSettings['enableOpenID']))
echo '
<br />
<input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

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


When in Emor, do as the Snamors.
                              - D. Lister

Majik_Imaje

Quote from: Sir Osis of Liver on August 16, 2019, 01:30:14 PM
Please post code in [code][/code] tags.

Core index.template.php -



{
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form class="windowbg" 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'] . '\');"' : '', '>
', $txt['login_or_register'], '<br />
<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 />
', $txt['quick_login_dec'];

if (!empty($modSettings['enableOpenID']))
echo '
<br />
<input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

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





Ok  copy all of the  text  and everything  from code to code with all the other stuff and where do I insert this ?? 


Wouldn't it  be easier to just send me index.template.php   ???

Majik_Imaje

I am so lost and confused   first I have to insert one line of code, then it is two, now it is a huge paragraph?

I have 3 strands of hair  left from pulling my  hair out  over this issue.


lurkalot

Quote from: Majik_Imaje on August 16, 2019, 01:36:40 PM

Wouldn't it  be easier to just send me index.template.php   ???

Do you have any mods installed, or is this a clean install of 2.0.15?

Only use this if you have no mods installed,

Majik_Imaje

I have four mods instaled..............I can easily delete them and put them back later  how would that work out ??

lurkalot

Quote from: Majik_Imaje on August 16, 2019, 02:44:34 PM
I have four mods instaled..............I can easily delete them and put them back later  how would that work out ??

Thing is some mods might make edits to that file when they install, so it depends on if they do or not.  If you uninstall them first, then upload the file, then re-install those mods you should be ok.

Majik_Imaje

 That seems easier than trying to add  of those other lines of code.. I don't know which choice is right    #1 ?  #2?  or #3  all of them ??

I will un-install all of the mods.....refresh the page and then change index.template.php

I will be back to let you know what happened in a couple hrs

Thanks a whole heap for your help

I'm   trying to convince my friends to join  but they are busy distributing 70 TONS of food !!


I live with ESKIMO'S



Majik_Imaje

Would it be wise for me to put the board in Maintainance Mode while I remove the mods.... I have more than I thought (avatars 1/2    dozen sets) A couple of security mods..

that way there is no activity that might interfere  (I dunno)

lurkalot

Actually just attach your file here and I'll edit it for you, then you won't have to remove the mods.  ;)

Majik_Imaje

 You are genius, what a great idea.....


HERE IS THE FILE

lurkalot

Quote from: Majik_Imaje on August 16, 2019, 04:03:51 PM
You are genius, what a great idea......

https://majikimaje.com/smf/Themes/core/index.template.php

You need to attach the actual file to your reply..

I'm sending you a PM.

Majik_Imaje

lOOK ABOVE YOUR  POST    FILE IS HERE

Antechinus

That file should be correct, according to the instructions. Are you saying it still doesn't work?

If it's no good, that means they must be trying to log in via one of the other forms in the software. For example, the Login button on the menu takes you to Login.template.php, and that would need editing too if that is what they are doing.

The edit to index.template.php only works if they are trying to log in via the "quick log in" form in the theme header (the one that is visible on all pages).

Majik_Imaje

I have to wait to see what happens.

Personally I think it is an issue with firefox.
Every time, I am denied access or kicked out and can't get  back in. server timme outs etc

EVERY  TIME I switch to Chrome ............EVERYTHING IS FIXED

Recently 10  Java menus on the top of my home page would not work. 
Once I un-installed firefox and  downloaded a new copy they were all fixed.
So I will advise my users to use Chrome if they run into any problems.......

If Not,  I'll repeat  Arnold...........I'LL BE BACK

lurkalot

Quote from: Majik_Imaje on August 16, 2019, 06:48:07 PM
I have to wait to see what happens.

Personally I think it is an issue with firefox.
Every time, I am denied access or kicked out and can't get  back in. server timme outs etc

EVERY  TIME I switch to Chrome ............EVERYTHING IS FIXED

Recently 10  Java menus on the top of my home page would not work. 
Once I un-installed firefox and  downloaded a new copy they were all fixed.
So I will advise my users to use Chrome if they run into any problems.......

If Not,  I'll repeat  Arnold...........I'LL BE BACK

The edits have been made to your Core theme now, so like you said, wait and see if it plays up. Hopefully it'll be ok.

Sir Osis of Liver

Shouldn't have any problems with Firefox.  Disable forum caching in Admin -> Server Settings -> Caching, clear forum cache, and clear browser history.  I'm sure you know that Chrome is spyware, don't you?

Hmm, that whale looks a lot like one of my old girlfriends.
When in Emor, do as the Snamors.
                              - D. Lister

Majik_Imaje

https://majikimaje.com   Those menu's up top would not work.  They have been there    15 years and one day suddenly none of them were even   there,   I checked using  Chrome and everything was fine.. I despise I.E.  I checked my site, everything was fine
I uninstalled   Fire  Fox   Upon  the new install.  Everything was fine.  spyware?   HA HA HA HA  I have nothing to hide.  Google is the least of my worries.   I have a few alphabet agencies that live on my comptuer.
Thanks for the info........Your girlfriend  weighed 70 TONS ?

Sir Osis of Liver

Top menus work in FF68 and IE11, but there are some 404 links.

Quote from: Majik_Imaje on August 16, 2019, 10:31:50 PM
I have nothing to hide.

Everyone has something to hide.

https://www.washingtonpost.com/technology/2019/06/21/google-chrome-has-become-surveillance-software-its-time-switch/?noredirect=on&utm_term=.34bd6a77e05a

Quote
Your girlfriend  weighed 70 TONS ?

Not quite, but she could eat that much, long as I was paying.
When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: