Advertisement:

Author Topic: Pretty URLs  (Read 28107 times)

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Pretty URLs
« on: November 14, 2006, 08:42:05 AM »
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.
« Last Edit: December 26, 2006, 04:02:51 AM by eldʌkaː »
"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."

Offline kL

  • Jr. Member
  • **
  • Posts: 224
  • kanYeLive.com
    • kanYe West
Re: Pretty URLs
« Reply #1 on: November 15, 2006, 08:03:05 AM »
sorry for being stupid but how do i install it?

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Re: Pretty URLs
« Reply #2 on: November 15, 2006, 08:11:38 AM »
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."

Offline Daniel Hofverberg

  • Senior Translator
  • Sr. Member
  • *
  • Posts: 981
  • Gender: Male
    • Dubbningshemsidan
Re: Pretty URLs
« Reply #3 on: November 15, 2006, 08:15:09 AM »
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...

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Re: Pretty URLs
« Reply #4 on: November 15, 2006, 08:18:55 AM »
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."

Offline iamvedau

  • Newbie
  • *
  • Posts: 5
    • http://vnrockworld.net
Re: Pretty URLs
« Reply #5 on: November 15, 2006, 08:51:42 AM »
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 ?

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Re: Pretty URLs
« Reply #6 on: November 15, 2006, 09:08:05 AM »
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."

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Re: Pretty URLs
« Reply #7 on: December 09, 2006, 02:09:35 AM »
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."

Offline apc

  • Semi-Newbie
  • *
  • Posts: 79
Re: Pretty URLs
« Reply #8 on: December 09, 2006, 11:05:43 AM »
This looks very promising and much needed!

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

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Re: Pretty URLs
« Reply #9 on: December 09, 2006, 09:38:55 PM »
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."

Offline Daniel Hofverberg

  • Senior Translator
  • Sr. Member
  • *
  • Posts: 981
  • Gender: Male
    • Dubbningshemsidan
Re: Pretty URLs
« Reply #10 on: December 10, 2006, 12:17:50 PM »
Sounds good to me. Do you have an estimate when pretty URLs will work for topics too, and not just boards?

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Re: Pretty URLs
« Reply #11 on: December 10, 2006, 08:56:33 PM »
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."

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Re: Pretty URLs
« Reply #12 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.
« Last Edit: December 13, 2006, 05:41:40 AM by eldʌkaː »
"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."

Offline Daniel Hofverberg

  • Senior Translator
  • Sr. Member
  • *
  • Posts: 981
  • Gender: Male
    • Dubbningshemsidan
Re: Pretty URLs
« Reply #13 on: December 13, 2006, 05:54:50 AM »
How does topic URLs look like with this mod? I couldn't quite make that out from the code...

Offline Dem0n

  • Full Member
  • ***
  • Posts: 520
  • Gender: Male
  • Word Lyfe!
    • TheTVStop
Re: Pretty URLs
« Reply #14 on: December 13, 2006, 06:00:33 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.

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

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Re: Pretty URLs
« Reply #15 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?
"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."

Offline Dem0n

  • Full Member
  • ***
  • Posts: 520
  • Gender: Male
  • Word Lyfe!
    • TheTVStop
Re: Pretty URLs
« Reply #16 on: December 13, 2006, 06:03:52 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.

Offline Niteblade

  • Full Member
  • ***
  • Posts: 662
  • Gender: Male
    • Prosperent Ads
Re: Pretty URLs
« Reply #17 on: December 13, 2006, 09:17:37 AM »
Nice.
affiliate blog

Offline Niteblade

  • Full Member
  • ***
  • Posts: 662
  • Gender: Male
    • Prosperent Ads
Re: Pretty URLs
« Reply #18 on: December 13, 2006, 09:19:47 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

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,211
  • Mind the volcano!
    • My homepage
Re: Pretty URLs
« Reply #19 on: December 13, 2006, 09:21:51 AM »
Hmm, thanks for spotting that :)
I've actually found a few errors, that release wasn't as bugfree as I had hoped. :(
« Last Edit: December 13, 2006, 09:30:09 AM by eldʌkaː »
"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."