• Welcome to Simple Machines Community Forum. Please login or sign up.
January 28, 2022, 01:33:55 AM

News:

Wondering if this will always be free?  See why free is better.


Pretty URLs

Started by Dannii, November 14, 2006, 08:42:05 AM

Previous topic - Next topic

Dannii

November 14, 2006, 08:42:05 AM Last Edit: December 26, 2006, 04:02:51 AM by eldʌkaː
Home page: http://code.google.com/p/prettyurls/
Source code: http://prettyurls.googlecode.com/svn/trunk/
Download: http://code.google.com/p/prettyurls/downloads/list
Example/dev forum: http://dev.eldacar.com/prettyurls/

I've uploaded what I'm working on. I won't be providing support yet, but feel free to try it for yourselves, and also report any bugs.

Please post and spam anything you like in the dev forum, especially if it uses funky characters.
"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."

kL

sorry for being stupid but how do i install it?

Dannii

You can make packages out of the files in the Base and ext-none directories, installing Base before ext-none. You will have to add 'pretty_board_urls' to the settings table first though.
And you'll need a .htaccess file, you can use the one here as an example.
"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."

Daniel Hofverberg

How does it work, and how would URLs look after installing this? For those of us, who can't quite make sense of the code...

Dannii

You can see an example at http://ftgforums.com/private/pretty/
Only boards are done, and only on a few topics, so far.. I'll be working to get the others working too ;)
"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."

iamvedau

i was upload chmod to 666 and cmod /source but i can install it i have arlet :
You cannot download or install new packages because the Packages directory or one of the files in it are
not writable!
i luv it can u tell me how to install it ?

Dannii

Please search around, there have been a thousand topics answering that before.
As I said above, I don't really want to provide support for this until it is at a really usable stage. Use at you own expense! :)
"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."

Dannii

Okay, it's a working stage now. Please install the base package first, rename example.htaccess to .htaccess (edit it if you want to) and then install the ext-none package. Enjoy.

This version does only pretty URLs for boards, and only on certain templates.
"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."

apc

This looks very promising and much needed!

Do you intend to take it the the status of a full blown mod installed through Admin?

Dannii

I'll probably keep it roughly the same as it is now. I'm using multiple packages for two reasons: it's harder to screw everything up because you can test whether your new urls will work before you actually change the urls outputted by your forum, and because you can then have multiple formats. I prefer to have extentionless urls (/board/topic/0/) but some might want other formats (/board/topic.0.html for example).
"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."

Daniel Hofverberg

Sounds good to me. Do you have an estimate when pretty URLs will work for topics too, and not just boards?

Dannii

Not yet. The boards are quite easy as it's all done through an array stored in the settings table. The topic urls won't be. I'm still trying to decide which way would be best to store them.
"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."

Dannii

December 13, 2006, 05:32:55 AM #12 Last Edit: December 13, 2006, 05:41:40 AM by eldʌkaː
Guess what? Topic URLs are done already :)

This is the proper 0.1 release.

Again, please install the base package first, rename example.htaccess to .htaccess (edit it if you want to) and then install the ext-none package. Enjoy.

[Edit] Just installed it on my 30907 posts, 1332 topics forum, and it seems to be working perfectly! I was worried it might time out PHP, but it would probably only do that on huge forums.
"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."

Daniel Hofverberg

How does topic URLs look like with this mod? I couldn't quite make that out from the code...

Dem0n

Quote from: eldʌkaː on December 13, 2006, 05:32:55 AM
Guess what? Topic URLs are done already :)

This is the proper 0.1 release.

Again, please install the base package first, rename example.htaccess to .htaccess (edit it if you want to) and then install the ext-none package. Enjoy.

[Edit] Just installed it on my 30907 posts, 1332 topics forum, and it seems to be working perfectly! I was worried it might time out PHP, but it would probably only do that on huge forums.

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Dannii

http://ftgforums.com/serious/judaism/msg30990/?topicseen#msg30990
IE: http://forum root/board name/topic name/message number/?everything else

Dem0n, it is only for SMF 1.1. What are you using?
"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."

Dem0n

Quote from: eldʌkaː on December 13, 2006, 06:02:22 AM
http://ftgforums.com/serious/judaism/msg30990/?topicseen#msg30990
IE: http://forum root/board name/topic name/message number/?everything else

Dem0n, it is only for SMF 1.1. What are you using?

Oh, well that explains it. Im using RC3 right now, maybe I shall upgrade.

Niteblade

affiliate blog

Niteblade

Quote from: eldʌkaː on December 13, 2006, 06:02:22 AM
http://ftgforums.com/serious/judaism/msg30990/?topicseen#msg30990

When I go to this link, ... which puts me on page 2, ... Pages 1 [2] ...I get an error when I scroll down and click on page 1 ... Page [1] 2 ... . http://ftgforums.com/serious/judaism/msg30990/0/
affiliate blog

Dannii

December 13, 2006, 09:21:51 AM #19 Last Edit: December 13, 2006, 09:30:09 AM by eldʌkaː
Hmm, thanks for spotting that :)
I've actually found a few errors, that release wasn't as bugfree as I had hoped. :(
"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."

Advertisement: