Advertisement:

Author Topic: 2.0.14 Login Form Fix  (Read 1036 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
2.0.14 Login Form Fix
« on: January 08, 2018, 10:47:23 AM »
Link to Mod

As a fix to the login form issues that have come in since 2.0.14 where things didn't get added to login forms, here's a patch that fixes it.

Works on PHP 5.3+, and should fix all themes and mods that have login forms. Works with Pretty URLs too.

Licence is 3-clause BSD as per SMF 2.0.x licence.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,739
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: 2.0.14 Login Form Fix
« Reply #1 on: January 08, 2018, 11:20:44 AM »
Nicely done! And shows what you can when playing with the output. Thanks for checking with prettyurls
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: 2.0.14 Login Form Fix
« Reply #2 on: January 08, 2018, 11:45:02 AM »
I just wish it had occurred to me to do sooner :( playing with the output like this is not a new trick, SimpleDesk did something similar in its first release in standalone mode.

Pretty URLs was the one mod I wasn't sure it would play nice with, so explicitly had to check :) Did also check the quick login in SP, that seemed to work too.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Snrj

  • Jr. Member
  • **
  • Posts: 301
  • Gender: Male
    • Snrj Forumları
Re: 2.0.14 Login Form Fix
« Reply #3 on: January 30, 2018, 09:03:55 AM »
hello arantor
instead of code after
do not the code need to be replace

I tested at php 7
site view as a visitor
there is a white page fault
problem
if (! $ context ['user'] ['is_guest'])
When I do, the problem is getting up
if (isset ($ context ['user'] ['is_guest']))

I said to report the problem
bad english sorry
Google Translate

Offline phantomm

  • Sophist Member
  • *****
  • Posts: 1,064
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Polish ElkArte community
Re: 2.0.14 Login Form Fix
« Reply #4 on: February 09, 2018, 01:10:48 PM »
just a question, after installation there should be twice ob_start('ob_sessrewrite'); ?
Polskie wsparcie SMF na simplemachines.org

My mods

Offline Rock Lee

  • SMF Hero
  • ******
  • Posts: 1,483
  • Gender: Male
  • Digitalizando un nuevo mundo :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: 2.0.14 Login Form Fix
« Reply #5 on: February 12, 2018, 04:18:19 PM »
In version 2.0.15 this fix was not already introduced?


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,836
  • Gender: Male
    • Kindred-999 on GitHub
Re: 2.0.14 Login Form Fix
« Reply #6 on: February 12, 2018, 04:34:33 PM »
no
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Rock Lee

  • SMF Hero
  • ******
  • Posts: 1,483
  • Gender: Male
  • Digitalizando un nuevo mundo :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: 2.0.14 Login Form Fix
« Reply #7 on: February 12, 2018, 05:00:41 PM »
no

So this goes to bookmarks in case you doubt then, thanks for clarifying my doubt.


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Offline drewactual

  • Jr. Member
  • **
  • Posts: 227
    • College Football Fan Site CFB51
Re: 2.0.14 Login Form Fix
« Reply #8 on: March 07, 2018, 09:32:50 PM »
Q: if the login code has been already altered as advised in threads in the help section, will installing and running this mod cause issues if those hard coded alterations remain?

thanks!
https://www.cfb51.com is a College Football Fan Site, Store, and Publisher, launched in July of 2017

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,739
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: 2.0.14 Login Form Fix
« Reply #9 on: March 08, 2018, 12:48:04 AM »
It shouldn't as it looks for it.
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