emanuele45 / prettyurls

Automatically exported from code.google.com/p/prettyurls
Other
0 stars 0 forks source link

Help me here please! #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I just want to change the way that the Pretty Url make the URL's.
I want to add the topic ID for all pretty urls, not just in the repeated
ones...
For example , i want that my urls be like this:
http://www.sitename.com/boardname/12/topicname/
the "12" is the topic id.
I just want it like that, instead of:
http://www.sitename.com/boardname/topicname/

How can I do that?
I've tried to do it modifying PrettyUrls-Filter.php but i couldn't...

Help me please!

Original issue reported on code.google.com by rhand...@outlook.com on 17 Jun 2009 at 2:46

GoogleCodeExporter commented 8 years ago
Why? That's not pretty!

Anyways, edit the filters if you want to do that, both the callback functions 
and the
rewrite rules. See the wiki page for more info.

Original comment by curiousdannii on 17 Jun 2009 at 3:00

GoogleCodeExporter commented 8 years ago
Yes I know but i want it like this...

Original comment by rhand...@outlook.com on 17 Jun 2009 at 3:23

GoogleCodeExporter commented 8 years ago
Can you help me here please?
It's hard for me...

Original comment by rhand...@outlook.com on 17 Jun 2009 at 3:33

GoogleCodeExporter commented 8 years ago
Well learn a bit of PHP and experiment. It's not that hard.

Original comment by curiousdannii on 17 Jun 2009 at 4:02

GoogleCodeExporter commented 8 years ago
I just want to add this:
http://www.sitename.com/boardname/topicname/post/15/
15 = topic name

Normally is like this

http://www.sitename.com/boardname/topicname/

And for repeated posts:

http://www.sitename.com/boardname/topicname-1/

I want that all says the "/post/15/"
to avoid the "-"...

Help me please.
This is pretty confusing for me...

Thanks!

Original comment by rhand...@outlook.com on 17 Jun 2009 at 4:33

GoogleCodeExporter commented 8 years ago
Or at least, can you tell me where to modify it?

Database
.htaccess
PrettyUrls-Filter

Where?

Original comment by rhand...@outlook.com on 17 Jun 2009 at 4:42

GoogleCodeExporter commented 8 years ago
Yes that seems right.

But I'm not going to do it for you. Have a look at the functions that are there
already, and have a look at the Filters wiki page.

And if you need more help, ask on the simplemachines forum.

Please don't make another issue here. thanks

Original comment by curiousdannii on 17 Jun 2009 at 11:12