Advertisement:

Author Topic: Theme Issues  (Read 14091 times)

Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #20 on: August 16, 2019, 01:14:34 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
Code: [Select]
echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

Change to,
Code: [Select]
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 ? 
Code: [Select]
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

Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #21 on: August 16, 2019, 01:23:17 PM »
I hope this is the  correct place.  I don't  have an editor that shows line numbers



Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,394
Re: Theme Issues
« Reply #22 on: August 16, 2019, 01:30:14 PM »
Please post code in [code][/code] tags.

Core index.template.php -

Code: [Select]

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


Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #23 on: August 16, 2019, 01:36:40 PM »
Please post code in [code][/code] tags.

Core index.template.php -

Code: [Select]

{
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 ?? 
Code: [Select]


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

Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #24 on: August 16, 2019, 01:50:37 PM »
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.


Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,496
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Theme Issues
« Reply #25 on: August 16, 2019, 02:41:16 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,

Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #26 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 ??

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,496
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Theme Issues
« Reply #27 on: August 16, 2019, 02:48:52 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.

Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #28 on: August 16, 2019, 02:57:20 PM »
 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



Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #29 on: August 16, 2019, 03:44:53 PM »
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)

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,496
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Theme Issues
« Reply #30 on: August 16, 2019, 03:57:16 PM »
Actually just attach your file here and I'll edit it for you, then you won't have to remove the mods.  ;)

Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #31 on: August 16, 2019, 04:03:51 PM »
 You are genius, what a great idea.....


HERE IS THE FILE

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,496
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Theme Issues
« Reply #32 on: August 16, 2019, 04:07:50 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.

Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #33 on: August 16, 2019, 04:09:40 PM »
lOOK ABOVE YOUR  POST    FILE IS HERE

Online Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,805
  • Master of BBC Abuse
Re: Theme Issues
« Reply #34 on: August 16, 2019, 06:36:18 PM »
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).

Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #35 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

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,496
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Theme Issues
« Reply #36 on: August 16, 2019, 06:51:43 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.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,394
Re: Theme Issues
« Reply #37 on: August 16, 2019, 09:59:45 PM »
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.

Offline Majik_Imaje

  • Semi-Newbie
  • *
  • Posts: 73
Re: Theme Issues
« Reply #38 on: August 16, 2019, 10:31:50 PM »
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 ?

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,394
Re: Theme Issues
« Reply #39 on: August 16, 2019, 10:41:38 PM »
Top menus work in FF68 and IE11, but there are some 404 links.

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.