News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Pretty URLs

Started by SMFHacks.com Team, January 31, 2007, 10:56:43 AM

Previous topic - Next topic

mickjav

Backup, Backup

Uninstall old one first

I just upgraded one of my forums to 4 without issue

Gryzor

Quote from: mickjav on January 30, 2024, 08:10:04 AMBackup, Backup

Uninstall old one first

I just upgraded one of my forums to 4 without issue
Thank you, much appreciated! :)

Carlos1903

Hello, every time I install: Pretty URLs I have a small error, what am I using
ed2k://|file|Los.guardianes.de.la.f%C3%B3rmula.(2023).(Spanish.English.Spanishsub).WEB-DL.1080p.HEVC.10b-AAC.by.byp58.mkv |2888845695|C40C115C40BF9BC721B212C469B2E02E|/

And it comes out like this:
fiuxy.lat/ed2k://|file|Los.guardianes.de.la.f%C3%B3rmula.(2023).(Spanish.English.Spanishsub).WEB-DL.1080p.HEVC.10b-AAC.by .byp58.mkv|2888845695|C40C115C40BF9BC721B212C469B2E02E|/

I use the plugins:; ed2k Autolinker

When I uninstall it, Pretty appears like I showed you above.

vbgamer45

fiuxy.lat is your site?forum?
Might require adding ed2k as a skip option in prettyurls code.
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

bluecortex

I get the following error:
8: Undefined index: pretty_enable_filtersHow to repair it?
\\mydomain.cba.pl/Sources/Display.php (Line 43)

Content of Display.php:
42:     //301 redirects
43:     if ((isset($context['pretty']['oldschoolquery']) || (isset($context['pretty']['query_string']['board']) && ($context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]))) && $modSettings['pretty_enable_filters'])
44:     {
45:     $filterData = unserialize($modSettings['pretty_filters']);
46:     if (!empty($filterData['topics']['enabled']))
47:     {
48:         $url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
49:         header('HTTP/1.1 301 Moved Permanently');
50:         redirectexit($url, false);
51:     }
52: }
Type of error: Undefined_vars
I probably have it installed freshly. No settings were changed.

Can someone explain what this is about? Why did this happen and how to fix it?

Bugo

Replace in your code
$modSettings['pretty_enable_filters']
with
!empty($modSettings['pretty_enable_filters'])

bluecortex

Or only on line 34 or in all occurrences of the code?

Why didn't the developers fix this? If this is a global bug then why hasn't it been fixed in future releases?

And what does it do?

Arantor

Probably because as soon as you enable it, the error goes away.

bluecortex

This plugin doesn't work.
I don't know why. I simply installed it.

My addresses look like this:
h44ps://example.cba.pl/index.php?board=3.0

Not:
h44ps://example.cba.pl/boardname

Any idea how to configure it?
I don't know if I have Nginx or Apache, but .htaccess is filled in.

vbgamer45

Did you enable the settings?  under Admin -> Pretty Urls Configuration
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

vbgamer45

Added dutch, french, german, spanish AI assisted translations.
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

Dwev

We are using Pretty URLs on our website and post news-items on a shadow-board (www.xyz.com/test-topics/etc) before we make move them to another board that's visible to everyone (www.xyz.com/news/etc).

Turns pout that Google keeps the first (test-topics) and not the final (news) links.
Is there maybe a way to avoid this?

By the way, Pretty URLs is at this moment set to rewrite the Board URLs and Topic URLs.

vbgamer45

Currently there is not a way to avoid this would be a new feature request
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

Dwev

So this option isn't a part of Pretty URLs Pro either?

(I would definitely be willing to pay for this).

vbgamer45

It is not. Its done this way for seo value/avoiding broken links
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

Advertisement: