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

symon

Just to be clear...So downloading the mod from the mod page is just half of it. I need to download the rest from another site to make it work?

I got it from your google site :) I was just confused to why it's in two parts spread across different areas.

I'm gonna tackle this when I get home as I use Babylon and I'll need to manually install.

It looks extensive ;)

Dannii

Quote from: symon on April 13, 2007, 09:15:43 AM
I read this and presumed it was an error in this package :)
Quote from: eldʌkaː on April 08, 2007, 06:04:33 AM
There's a minor bug in QueryString.php:
Code (find) Select
$url['replacement'] = preg_replace(array('\"', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Code (replace) Select
$url['replacement'] = preg_replace(array('~\"~', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Ahh yes, that is still required. It's only two extra characters though ;)

Quote from: symon on April 13, 2007, 09:18:11 AM
Just to be clear...So downloading the mod from the mod page is just half of it. I need to download the rest from another site to make it work?

I got it from your google site :) I was just confused to why it's in two parts spread across different areas.
Well the Mod Site only really allows one download, and this way its a little simpler. You can download the other packages through the package manager...

QuoteI'm gonna tackle this when I get home as I use Babylon and I'll need to manually install.

It looks extensive ;)
There aren't any theme changes, you won't need to do that.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

symon

#282
Nice one...I'm gonna try it :D

Can I just paste the contents of the htaccess file into my current one?

symon

It took literally 2 seconds to do on my test forum (clone) but it say it can't do it on my live forum as some of the files are writeable!!!! It's exactly the same permission wise. All the folders seem to be too. Totally typical. lol

symon

After I by pass via the ftp prompt I get:

QuoteFatal error: packageinstall() [function.require]: Failed opening required '/***/***/public_html//Packages/temp/./install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /***/***/public_html/Sources/Packages.php on line 552

It worked in second on my other version and now this mission on the real one!!! I'm so peeved.

symon

OK...

I've just spent the last 2 hours manually installing it (thanks for using replaces btw...makes it much easier :) )

But I have a big problem :(

One of the boards doesn't now work and it's one of the most important ones. A link to the post inside is fine but trying to get to it via the homepage link gives the following:

QuoteNot Found
The requested URL /thetrex600forum\'s-monthly-competition/0/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

And the URL in the address bar reads:

Quotehttp://www.thetrex600forum.com/thetrex600forum%5C's-monthly-competition/0/

For some reason the (') in thetrex600forum's has knacked it up. All the other (') in titles are fine. Where did the %5C come from?

How do I fix this as it's the bread and butter board?

symon

On the clone forum that installed via package manager flawlessly also had the above issue with that thread with the (') but when going to modify or post a message it works fine.

The real forum is screwed! I can not edit or modify a post with out errors of pages not found.

Luckily I had backed up the sources files and I've just put them all back and I'm now back to normal. (I left index.php and SSI as they not effecting it now)

How can to identical forums have stark different results?

Dannii

I don't know where that %5C came from.
Can you please post up the pretty_board_urls setting data please?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

symon

Quote from: eldʌkaː on April 13, 2007, 10:31:26 PM
Can you please post up the pretty_board_urls setting data please?

What's that?

This all seems to be because the unpacker couldn't right to certain files but because it doesn't tell me which ones...I have no idea what permissions to alter. But all of the files and folders have the same permissions as the clone site which worked flawlessly apart from that one url.

I was so chuffed when it installed without trouble on the test site. I couldn't believe it didn't on the clone!


Dannii

Using phpMyAdmin or a similar tool, go to the smf_settings table, and find the valude for 'pretty_board_urls'. The quotes are proving to be a problem, and I still musn't have escaped them properly.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

symon

#290
Thanks for the attention :)

On the clone it is as follows:

pretty_enable_filters     1
pretty_filter_callbacks    a:0:{}
pretty_board_urls    a:96:{i:31;s:7:"welcome";i:27;s:23:"the-rules-of-this-forum";i:35;s:18:"newsletter-archive";i:12;s:9:"off-topic";i:13;s:30:"site-suggestions-and-site-news";i:28;s:6:"events";i:15;s:5:"clubs";i:50;s:12:"syndications";i:33;s:33:"downloads-for-the-align-t-rex-600";i:108;s:33:"downloads-for-the-align-t-rex-450";i:109;s:33:"downloads-for-the-align-t-rex-500";i:110;s:38:"downloads-for-the-align-t-rex-600-b110";i:34;s:26:"the-arcade-t-rex-600-games";i:30;s:38:"thetrex600forum\'s-monthly-competition";i:49;s:38:"want-your-logo-at-the-top-of-our-pages";i:1;s:8:"chat-600";i:63;s:8:"chat-450";i:64;s:8:"chat-500";i:65;s:12:"chat-600-b65";i:6;s:27:"problems-with-the-t-rex-600";i:66;s:27:"problems-with-the-t-rex-450";i:67;s:27:"problems-with-the-t-rex-500";i:68;s:31:"problems-with-the-t-rex-600-b68";i:32;s:31:"safety-first-things-to-remember";i:26;s:47:"t-rex-600-beginner-(or-just-beginner-full-stop)";i:69;s:18:"t-rex-450-beginner";i:70;s:18:"t-rex-500-beginner";i:71;s:18:"t-rex-600-beginner";i:17;s:26:"pictures-of-your-t-rex-600";i:72;s:26:"pictures-of-your-t-rex-450";i:73;s:26:"pictures-of-your-t-rex-500";i:74;s:30:"pictures-of-your-t-rex-600-b74";i:18;s:24:"videos-of-your-t-rex-600";i:76;s:24:"videos-of-your-t-rex-450";i:75;s:24:"videos-of-your-t-rex-500";i:77;s:28:"videos-of-your-t-rex-600-b77";i:16;s:11:"flight-sims";i:11;s:6:"stores";i:2;s:18:"t-rex-600-building";i:78;s:18:"t-rex-450-building";i:79;s:18:"t-rex-500-building";i:80;s:22:"t-rex-600-building-b80";i:3;s:20:"t-rex-600-setting-up";i:81;s:20:"t-rex-450-setting-up";i:82;s:20:"t-rex-500-setting-up";i:83;s:24:"t-rex-600-setting-up-b83";i:5;s:23:"t-rex-600-modifications";i:84;s:23:"t-rex-450-modifications";i:85;s:23:"t-rex-500-modifications";i:86;s:27:"t-rex-600-modifications-b86";i:4;s:18:"t-rex-600-upgrades";i:87;s:18:"t-rex-450-upgrades";i:88;s:18:"t-rex-500-upgrades";i:89;s:22:"t-rex-600-upgrades-b89";i:44;s:21:"t-rex-600-flight-data";i:90;s:21:"t-rex-450-flight-data";i:91;s:21:"t-rex-500-flight-data";i:92;s:25:"t-rex-600-flight-data-b92";i:48;s:24:"t-rex-600-scale-projects";i:93;s:24:"t-rex-450-scale-projects";i:94;s:24:"t-rex-500-scale-projects";i:95;s:28:"t-rex-600-scale-projects-b95";i:7;s:5:"lipos";i:96;s:15:"t-rex-450-lipos";i:97;s:15:"t-rex-500-lipos";i:98;s:15:"t-rex-600-lipos";i:10;s:10:"radio-gear";i:105;s:20:"t-rex-450-radio-gear";i:106;s:20:"t-rex-500-radio-gear";i:107;s:20:"t-rex-600-radio-gear";i:8;s:13:"escs-and-becs";i:99;s:23:"t-rex-450-escs-and-becs";i:100;s:23:"t-rex-500-escs-and-becs";i:101;s:23:"t-rex-600-escs-and-becs";i:9;s:6:"motors";i:102;s:16:"t-rex-450-motors";i:103;s:16:"t-rex-500-motors";i:104;s:16:"t-rex-600-motors";i:36;s:15:"align-t-rex-450";i:47;s:39:"thunder-tiger-raptor-e325-e550-and-e620";i:37;s:16:"century-swift-16";i:38;s:16:"hirobo-lepton-ex";i:43;s:11:"mikado-logo";i:55;s:11:"micro-helis";i:54;s:21:"align-t-rex-600-nitro";i:40;s:13:"thunder-tiger";i:39;s:12:"hirobo-nitro";i:42;s:9:"knight-50";i:41;s:10:"synergy-n9";i:22;s:11:"helicopters";i:23;s:11:"electronics";i:24;s:5:"other";i:25;s:6:"wanted";i:45;s:32:"moderator-and-admin-private-area";i:46;s:23:"sy\'s-private-test-area";i:56;s:25:"sy\'s-private-test-area-2";}

On the live site:

pretty_enable_filters     1
pretty_filter_callbacks    a:0:{}
pretty_board_urls    a:99:{i:31;s:7:"welcome";i:27;s:23:"the-rules-of-this-forum";i:35;s:18:"newsletter-archive";i:12;s:9:"off-topic";i:13;s:30:"site-suggestions-and-site-news";i:28;s:6:"events";i:113;s:16:"toledo-expo-2007";i:15;s:5:"clubs";i:50;s:12:"syndications";i:33;s:33:"downloads-for-the-align-t-rex-600";i:108;s:33:"downloads-for-the-align-t-rex-450";i:109;s:33:"downloads-for-the-align-t-rex-500";i:110;s:38:"downloads-for-the-align-t-rex-600-b110";i:34;s:26:"the-arcade-t-rex-600-games";i:30;s:38:"thetrex600forum\'s-monthly-competition";i:49;s:38:"want-your-logo-at-the-top-of-our-pages";i:1;s:8:"chat-600";i:63;s:8:"chat-450";i:64;s:8:"chat-500";i:65;s:12:"chat-600-b65";i:6;s:27:"problems-with-the-t-rex-600";i:66;s:27:"problems-with-the-t-rex-450";i:67;s:27:"problems-with-the-t-rex-500";i:68;s:31:"problems-with-the-t-rex-600-b68";i:32;s:31:"safety-first-things-to-remember";i:26;s:47:"t-rex-600-beginner-(or-just-beginner-full-stop)";i:69;s:18:"t-rex-450-beginner";i:70;s:18:"t-rex-500-beginner";i:71;s:18:"t-rex-600-beginner";i:17;s:26:"pictures-of-your-t-rex-600";i:72;s:26:"pictures-of-your-t-rex-450";i:73;s:26:"pictures-of-your-t-rex-500";i:74;s:30:"pictures-of-your-t-rex-600-b74";i:18;s:24:"videos-of-your-t-rex-600";i:76;s:24:"videos-of-your-t-rex-450";i:75;s:24:"videos-of-your-t-rex-500";i:77;s:28:"videos-of-your-t-rex-600-b77";i:16;s:11:"flight-sims";i:11;s:6:"stores";i:2;s:18:"t-rex-600-building";i:78;s:18:"t-rex-450-building";i:79;s:18:"t-rex-500-building";i:80;s:22:"t-rex-600-building-b80";i:3;s:20:"t-rex-600-setting-up";i:81;s:20:"t-rex-450-setting-up";i:82;s:20:"t-rex-500-setting-up";i:83;s:24:"t-rex-600-setting-up-b83";i:5;s:23:"t-rex-600-modifications";i:84;s:23:"t-rex-450-modifications";i:85;s:23:"t-rex-500-modifications";i:86;s:27:"t-rex-600-modifications-b86";i:4;s:18:"t-rex-600-upgrades";i:87;s:18:"t-rex-450-upgrades";i:88;s:18:"t-rex-500-upgrades";i:89;s:22:"t-rex-600-upgrades-b89";i:44;s:21:"t-rex-600-flight-data";i:90;s:21:"t-rex-450-flight-data";i:91;s:21:"t-rex-500-flight-data";i:92;s:25:"t-rex-600-flight-data-b92";i:48;s:24:"t-rex-600-scale-projects";i:93;s:24:"t-rex-450-scale-projects";i:94;s:24:"t-rex-500-scale-projects";i:95;s:28:"t-rex-600-scale-projects-b95";i:111;s:28:"t-rex-600-aerial-photography";i:7;s:18:"lipos-and-chargers";i:96;s:15:"t-rex-450-lipos";i:97;s:15:"t-rex-500-lipos";i:98;s:15:"t-rex-600-lipos";i:10;s:10:"radio-gear";i:105;s:20:"t-rex-450-radio-gear";i:106;s:20:"t-rex-500-radio-gear";i:107;s:20:"t-rex-600-radio-gear";i:8;s:13:"escs-and-becs";i:99;s:23:"t-rex-450-escs-and-becs";i:100;s:23:"t-rex-500-escs-and-becs";i:101;s:23:"t-rex-600-escs-and-becs";i:9;s:6:"motors";i:102;s:16:"t-rex-450-motors";i:103;s:16:"t-rex-500-motors";i:104;s:16:"t-rex-600-motors";i:36;s:15:"align-t-rex-450";i:47;s:39:"thunder-tiger-raptor-e325-e550-and-e620";i:37;s:16:"century-swift-16";i:38;s:16:"hirobo-lepton-ex";i:43;s:11:"mikado-logo";i:55;s:11:"micro-helis";i:54;s:21:"align-t-rex-600-nitro";i:40;s:13:"thunder-tiger";i:39;s:12:"hirobo-nitro";i:42;s:9:"knight-50";i:41;s:10:"synergy-n9";i:112;s:8:"avant-rc";i:22;s:11:"helicopters";i:23;s:11:"electronics";i:24;s:5:"other";i:25;s:6:"wanted";i:45;s:32:"moderator-and-admin-private-area";i:46;s:23:"sy\'s-private-test-area";i:56;s:25:"sy\'s-private-test-area-2";}

Is that any help? :)

symon

It does it to the end URLs too...

'Sy's private area'

:)


Dannii

Hmm thanks for that. I'm not sure what the problem is. I'll have a look at it when I have the time. This should fix your board urls at least:
a:99:{i:31;s:7:"welcome";i:27;s:23:"the-rules-of-this-forum";i:35;s:18:"newsletter-archive";i:12;s:9:"off-topic";i:13;s:30:"site-suggestions-and-site-news";i:28;s:6:"events";i:113;s:16:"toledo-expo-2007";i:15;s:5:"clubs";i:50;s:12:"syndications";i:33;s:33:"downloads-for-the-align-t-rex-600";i:108;s:33:"downloads-for-the-align-t-rex-450";i:109;s:33:"downloads-for-the-align-t-rex-500";i:110;s:38:"downloads-for-the-align-t-rex-600-b110";i:34;s:26:"the-arcade-t-rex-600-games";i:30;s:36:"thetrex600forums-monthly-competition";i:49;s:38:"want-your-logo-at-the-top-of-our-pages";i:1;s:8:"chat-600";i:63;s:8:"chat-450";i:64;s:8:"chat-500";i:65;s:12:"chat-600-b65";i:6;s:27:"problems-with-the-t-rex-600";i:66;s:27:"problems-with-the-t-rex-450";i:67;s:27:"problems-with-the-t-rex-500";i:68;s:31:"problems-with-the-t-rex-600-b68";i:32;s:31:"safety-first-things-to-remember";i:26;s:47:"t-rex-600-beginner-(or-just-beginner-full-stop)";i:69;s:18:"t-rex-450-beginner";i:70;s:18:"t-rex-500-beginner";i:71;s:18:"t-rex-600-beginner";i:17;s:26:"pictures-of-your-t-rex-600";i:72;s:26:"pictures-of-your-t-rex-450";i:73;s:26:"pictures-of-your-t-rex-500";i:74;s:30:"pictures-of-your-t-rex-600-b74";i:18;s:24:"videos-of-your-t-rex-600";i:76;s:24:"videos-of-your-t-rex-450";i:75;s:24:"videos-of-your-t-rex-500";i:77;s:28:"videos-of-your-t-rex-600-b77";i:16;s:11:"flight-sims";i:11;s:6:"stores";i:2;s:18:"t-rex-600-building";i:78;s:18:"t-rex-450-building";i:79;s:18:"t-rex-500-building";i:80;s:22:"t-rex-600-building-b80";i:3;s:20:"t-rex-600-setting-up";i:81;s:20:"t-rex-450-setting-up";i:82;s:20:"t-rex-500-setting-up";i:83;s:24:"t-rex-600-setting-up-b83";i:5;s:23:"t-rex-600-modifications";i:84;s:23:"t-rex-450-modifications";i:85;s:23:"t-rex-500-modifications";i:86;s:27:"t-rex-600-modifications-b86";i:4;s:18:"t-rex-600-upgrades";i:87;s:18:"t-rex-450-upgrades";i:88;s:18:"t-rex-500-upgrades";i:89;s:22:"t-rex-600-upgrades-b89";i:44;s:21:"t-rex-600-flight-data";i:90;s:21:"t-rex-450-flight-data";i:91;s:21:"t-rex-500-flight-data";i:92;s:25:"t-rex-600-flight-data-b92";i:48;s:24:"t-rex-600-scale-projects";i:93;s:24:"t-rex-450-scale-projects";i:94;s:24:"t-rex-500-scale-projects";i:95;s:28:"t-rex-600-scale-projects-b95";i:111;s:28:"t-rex-600-aerial-photography";i:7;s:18:"lipos-and-chargers";i:96;s:15:"t-rex-450-lipos";i:97;s:15:"t-rex-500-lipos";i:98;s:15:"t-rex-600-lipos";i:10;s:10:"radio-gear";i:105;s:20:"t-rex-450-radio-gear";i:106;s:20:"t-rex-500-radio-gear";i:107;s:20:"t-rex-600-radio-gear";i:8;s:13:"escs-and-becs";i:99;s:23:"t-rex-450-escs-and-becs";i:100;s:23:"t-rex-500-escs-and-becs";i:101;s:23:"t-rex-600-escs-and-becs";i:9;s:6:"motors";i:102;s:16:"t-rex-450-motors";i:103;s:16:"t-rex-500-motors";i:104;s:16:"t-rex-600-motors";i:36;s:15:"align-t-rex-450";i:47;s:39:"thunder-tiger-raptor-e325-e550-and-e620";i:37;s:16:"century-swift-16";i:38;s:16:"hirobo-lepton-ex";i:43;s:11:"mikado-logo";i:55;s:11:"micro-helis";i:54;s:21:"align-t-rex-600-nitro";i:40;s:13:"thunder-tiger";i:39;s:12:"hirobo-nitro";i:42;s:9:"knight-50";i:41;s:10:"synergy-n9";i:112;s:8:"avant-rc";i:22;s:11:"helicopters";i:23;s:11:"electronics";i:24;s:5:"other";i:25;s:6:"wanted";i:45;s:32:"moderator-and-admin-private-area";i:46;s:21:"sys-private-test-area";i:56;s:23:"sys-private-test-area-2";}
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

symon

Thanks.

I did the tweak on the 's in the clone one but on closer inspection if I go to edit, modify, unread anything I get errors.

I also get this everywhere:

QuoteNotice: unserialize() [function.unserialize]: Error at offset 496 of 3158 bytes in /home/*****/public_html/site/index.php on line 78

I'm going to leave this for now as it's still far from being beta ready.

I can't wait till it's good to go as it will rock :)

Cheers

SY

Dannii

Hmm, uninstall the mod, and remove those database settings. Remove all apostrophese and install it again, that should fix the error. You can change your board titles without changing the database settings so it should work.
But yes, it's not completely ready ;)
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

schled

Quote from: eldʌkaː on April 11, 2007, 07:15:27 AM
Quote from: schled on April 11, 2007, 07:04:01 AMAnother possible issue... could this mod be interfering with spell check and post preview in IE7? Similar to this issue?
I doubt it, but I can't test as I don't have IE7.

I have just resolved my issue of spell check and preview not working by updating the QueryString.php code in Base 0.5 to the latest trunk code. :)

Dannii

Great to hear of it :) I found that problem because quotes weren'r working, but it would apply to the spell checker too. Basically it was building bad database queries when there weren't any URLs in a page, like a quote or spell check page.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

PixieWAttitude

Hi there

Just installed this and went good. Just wanted to see if this is normal

http://mysite.com/rules/hello/0/

The 0 at the end?

Dannii

Yes it's normal, just as this topic's url is http://www.simplemachines.org/community/index.php?topic=146969.0
The last number is a page/post number.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

PixieWAttitude

Perfect. Can't believe I got this to install (manuially at that), lol.

Advertisement: