Advertisement:

Author Topic: Pretty URLs  (Read 2330665 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,115
Re: Pretty URLs
« Reply #8020 on: August 26, 2020, 07:14:42 AM »
Which site? It’s almost certainly not the URL but the relevant login form missing the flag that equates to “stay logged in forever”.
No good deed goes unpunished
All helpful urges should be circumvented

Offline jsx

  • Full Member
  • ***
  • Posts: 468
  • Gender: Male
Re: Pretty URLs
« Reply #8021 on: August 27, 2020, 05:18:00 AM »
Which site? It’s almost certainly not the URL but the relevant login form missing the flag that equates to “stay logged in forever”.

I have this modification installed on a test forum. I get this error:

An Error Has Occurred! Unable to verify referring url. Please go back and try again.

when I want to log in via the top login field with the "Forever" function selected.

I already know what was causing it. I use SSL on the forum and in the .htaccess file I had the code to redirect to SSL and after installing this modification, the modification replaces the .htaccess file with its own. I added a code to redirect to SSL to the .htaccess file and this error with logging in no longer occurs and index.php is displayed in the forum address. What do you think about it?
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,115
Re: Pretty URLs
« Reply #8022 on: August 27, 2020, 07:58:32 AM »
So, again, which site? I didn’t ask that for no reason, I wanted to see what the issue was because without seeing the HTML for myself I can’t help you.
No good deed goes unpunished
All helpful urges should be circumvented

Offline lazanet

  • Newbie
  • *
  • Posts: 3
Re: Pretty URLs
« Reply #8023 on: September 22, 2020, 08:09:22 PM »
I have problem mentioned earlier in this thread, on my SMF 2.0.15 forum, however fixes presented in those posts are no longer valid since even with latest tapatalk plugin - 4.5.2  and latest Pretty URLs - 2.1.4b, android-app:// and ios-app:// protocol links are replaced like:
Code: [Select]
"https://playpes.rs/forum/android-app://com.quoord.tapatalkpro.activity/tapatalk/playpes.rs/forum/and
Code: [Select]
"https://playpes.rs/forum/ios-app://307880732/tapatalk/playpes.rs/forum/respectively.

I've tried to move android-app in PrettyUrl-Filters.php to before // Absolutise relative URLs, but to no avail.
Does anyone have idea how could I fix this mess?

FYI regex for // Absolutise relative URLs is wrong since it wouldn't capture protocols with dash in them (such as ios-app and android-app)
Solution is to use this regex
Code: [Select]
~^[a-zA-Z\-]+:|^#|@~instead of
Code: [Select]
~^[a-zA-Z]+:|^#|@~on all occurences in PrettyUrl-Filters.php

Offline SMFHacks.com Team

  • Full Member
  • ***
  • Posts: 438
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
Re: Pretty URLs
« Reply #8024 on: September 23, 2020, 01:05:43 AM »
Update! 2.3.1
!Fixes for tapatalk urls thanks to lazanet
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline SMFHacks.com Team

  • Full Member
  • ***
  • Posts: 438
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
Re: Pretty URLs
« Reply #8025 on: October 17, 2020, 12:53:56 AM »
Updated to include SMF 2.1 RC3 support.
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store