Advertisement:

Author Topic: Pretty URLs  (Read 2306344 times)

Offline Xpresskonami

  • Jr. Member
  • **
  • Posts: 243
  • Gender: Male
Re: Pretty URLs
« Reply #7900 on: February 03, 2020, 06:01:07 PM »
If you are on SMF 2.0.
Copy this file to Sources folder and see if it helps...

Thanks Vbgamer45, The file works for my forum. No more "Error" when i added attachment to post

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,956
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7901 on: February 03, 2020, 06:36:31 PM »
Great will push the change out for next update.
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 SMFHacks.com Team

  • Full Member
  • ***
  • Posts: 421
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
Re: Pretty URLs
« Reply #7902 on: February 03, 2020, 07:28:03 PM »
2.2
!Added a fix for attachment memory limit. We no longer process prettyurl filters on post2 action
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 Poshnjari

  • Jr. Member
  • **
  • Posts: 120
    • GreekNeaTech on Facebook
    • @GreekNeaCom on Twitter
    • Free Full Software
Re: Pretty URLs
« Reply #7903 on: February 14, 2020, 07:05:01 AM »
Try this.

Code: (Subs-PrettyUrls.php) [Select]
'-' => array ('-', ' ', '.', ',', "'", '"', '`', '(', ')', '[', ']'),
'_'   =>   array ('_'),
'!'   =>   array ('!'),
'~'   =>   array ('~'),
'*'   =>   array ('*'),
"\x12"   =>   array ("'", '"'),
// '('   =>   array ('(', '{', '['),
// ')'   =>   array (')', '}', ']'),
How to add this please?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,956
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7904 on: February 14, 2020, 08:50:19 AM »
Add it to your Sources/Subs-PrettyUrls.php file
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 magicbus

  • Newbie
  • *
  • Posts: 5
Re: Pretty URLs
« Reply #7905 on: Yesterday at 08:50:09 AM »
I'm sure this has already been answered amongst the 396 pages of comments on this mod - but so far I've not found it. hope someone can help, or link me to a previous answer

My main webpage (not my forum) shows a section of 'latest forum posts' to direct people to the forum. Easy enough before using pretty urls. I just looked up latest message posts with MySQL and created links on the fly, using the usual format.

But now I am using pretty urls this seems less easy. Obviously the old links still work, but from an seo point of view, i'd like the correct pretty link to show on my webpage rather than the 'topic= ' method.

I see the 'smf_pretty_urls_cache' table in the database. But how would I go about joining that data to the messages table? thanks in advance


Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,956
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7906 on: Yesterday at 10:41:15 AM »
Generally this PHP code rewrites the urls. If you include SMF's SSI
Code: [Select]
// Rewrite the buffer with Pretty URLs!
if (!empty($modSettings['pretty_enable_filters']))
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$buffer = pretty_rewrite_buffer($buffer);
}
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