Advertisement:

Author Topic: Pretty URLs  (Read 2333547 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
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: 471
  • 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,189
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: 440
    • 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: 440
    • 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

Offline statusjpn

  • Semi-Newbie
  • *
  • Posts: 32
Re: Pretty URLs
« Reply #8026 on: November 28, 2020, 04:55:10 PM »
Dear SMFHacks team,

Been using this mod on 2 of my sites and have been working great without issues so far.

1 thing i've noticed however is the HUGE amount of space it uses in the MySQL database.

i.e. On one of my sites, the entire DB is 8.2Gb large and the pretty_urls_cache table is 7.3Gb on its own.

I've gone into the Pretty URLs setting and checked the box "Use caching instead of database table for PrettyUrls".

Question is:

1) Does checking this box make it work any better and do i have to do anything else?
2) Can i safely drop the table prefix_pretty_urls_cache so that i can clear up 7.3Gb of space?

Thanks in advance!

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,537
  • We were all equal in the end.
Re: Pretty URLs
« Reply #8027 on: November 28, 2020, 05:11:56 PM »
Empty the table, I believe it will remain empty once you change the setting.  It's caused problems on forums I've worked on, some servers will choke on a table that large, and makes it difficult to export a complete backup.
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline SoftAid

  • Semi-Newbie
  • *
  • Posts: 61
  • Gender: Male
  • 19 years happy working with SMF: Thanks
    • Oplossing.be
Re: Pretty URLs
« Reply #8028 on: December 01, 2020, 07:06:33 AM »
Dear Helpers,

Ran into the same problem as statusjpn here above.
Our small SMF site 2.0.17 (Dutch version) is a free Computer-Help-site and has a tiny little Database of 500 MB.
As we run this on our host for free, and the site doesn't generate income, I can not affort to buy more space.
Of the 500 MB, there is only 90 MB free, for this moment, and decreasing rapidly.
The table smf-Messages is the biggest table with 189 MB. The second largest is smf_pretty_url_cache with 138 MB

My question, can I de-install the pretty_url_mod (Ver. 2.1) safely, and regain those 138 MB by empty the smf_pretty_url_cache-table?
Can I ran into errors with the rest of the database/forum?

When I can do this, can I also empty the smf_pretty_topic_urls and smf_pretty_topics_url_bak tables?

Thanks for your wise advise and help.

Softaid :)
SMF forum 2.0.17
Dutch free computer help forum
Always welcome on Oplossing.be :-)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,059
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #8029 on: December 01, 2020, 02:39:03 PM »
You can empty the tables via phpmyadmins smf_pretty_topics_url_bak  is not a standard table and can probably be removed.
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 SoftAid

  • Semi-Newbie
  • *
  • Posts: 61
  • Gender: Male
  • 19 years happy working with SMF: Thanks
    • Oplossing.be
Re: Pretty URLs
« Reply #8030 on: December 01, 2020, 02:41:59 PM »
Hello vbgamer45,

thank you for your quick response.

I supose I can then empty these tables each time it's neccesary?

SoftAid
SMF forum 2.0.17
Dutch free computer help forum
Always welcome on Oplossing.be :-)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,059
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #8031 on: December 01, 2020, 02:55:30 PM »
Just use this setting instead "Use caching instead of database table for 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 SoftAid

  • Semi-Newbie
  • *
  • Posts: 61
  • Gender: Male
  • 19 years happy working with SMF: Thanks
    • Oplossing.be
Re: Pretty URLs
« Reply #8032 on: December 01, 2020, 02:58:20 PM »
Hi vbgamer45.

I tried to find that setting, as I did read it in this topic. Can't find it (and I'm grey, not blond  ;D)

Thanks

SoftAid
SMF forum 2.0.17
Dutch free computer help forum
Always welcome on Oplossing.be :-)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,059
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #8033 on: December 01, 2020, 03:11:57 PM »
You might need a newer version. You can upgrade on topic if you can't uninstall the old version.
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 SoftAid

  • Semi-Newbie
  • *
  • Posts: 61
  • Gender: Male
  • 19 years happy working with SMF: Thanks
    • Oplossing.be
Re: Pretty URLs
« Reply #8034 on: December 01, 2020, 03:25:27 PM »
Hi vbgamer45,

found the setting and emptyed the tables.

Thanks a lot.

Greetings,

SoftAid
SMF forum 2.0.17
Dutch free computer help forum
Always welcome on Oplossing.be :-)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,059
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #8035 on: December 01, 2020, 03:42:14 PM »
Glad to help
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