[Beta] Translate topic URL's

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

[Beta] Translate topic URL's

Post by Merlin Sythove »

Another useful and simple mod from Merlin's Software:

Translate topic urls that point to topics on your own forum, into their proper topic title.

It automatically changes this:
http:///www.yourdomain.com/forum/viewtopic.php?t=1234

into this:
The topic title

which makes references to topics so much more legible.

It is a very easy mod, just two small changes in posting.php and one new function in includes/functions_post.php.

Download

EDIT: It translates all viewtopic urls now, both to topics and to posts, also with more variables in the url.
Last edited by Merlin Sythove on Thu Oct 11, 2007 11:53 am, edited 1 time in total.
Need custom work done? Pimp My Forum!
User avatar
zuker
Registered User
Posts: 214
Joined: Tue Jun 27, 2006 2:30 pm
Location: BA
Contact:

Re: [Beta] Translate topic URL's

Post by zuker »

it's not working for me

i tryed to use

http://www.turiver.com.ar/foro/viewtopi ... 547#189547

or

http://www.turiver.com.ar/foro/viewtopic.php?p=189547

and it shows the same on the board
Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Re: [Beta] Translate topic URL's

Post by Merlin Sythove »

No that is correct, at the moment is does not translate POST urls, only TOPIC urls.

If someone has tips on how to use regular expressions to find the viewtopic parts, please mail me!
Need custom work done? Pimp My Forum!
Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Re: [Beta] Translate topic URL's

Post by Merlin Sythove »

zuker wrote:it's not working for me

i tryed to use

http://www.turiver.com.ar/foro/viewtopi ... 547#189547

or

http://www.turiver.com.ar/foro/viewtopic.php?p=189547

and it shows the same on the board
I've extended the mod so it will do links to posts as well as links to topics now. Try again!!
Need custom work done? Pimp My Forum!
User avatar
zuker
Registered User
Posts: 214
Joined: Tue Jun 27, 2006 2:30 pm
Location: BA
Contact:

Re: [Beta] Translate topic URL's

Post by zuker »

i'll try it, thanks
bmgbmg
Registered User
Posts: 23
Joined: Wed Jan 04, 2006 12:55 am

Re: [Beta] Translate topic URL's

Post by bmgbmg »

Merlin Sythove wrote:
zuker wrote:it's not working for me

i tryed to use

http://www.turiver.com.ar/foro/viewtopi ... 547#189547

or

http://www.turiver.com.ar/foro/viewtopic.php?p=189547

and it shows the same on the board
I've extended the mod so it will do links to posts as well as links to topics now. Try again!!
hello,
How can i modify translate only TOPIC urls?
thank you!!
Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Re: [Beta] Translate topic URL's

Post by Merlin Sythove »

In the mod, find this

Code: Select all

		case  POST_POST_URL:
Add after:

Code: Select all

			return $url;
so as not to process the post-version of the code any further.
Need custom work done? Pimp My Forum!
User avatar
zuker
Registered User
Posts: 214
Joined: Tue Jun 27, 2006 2:30 pm
Location: BA
Contact:

Re: [Beta] Translate topic URL's

Post by zuker »

did u make any progress on this merlyn?
Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Re: [Beta] Translate topic URL's

Post by Merlin Sythove »

I will have a look next week if I changed the code in any way, but it worked fine for me earlier, so I have no idea why it didn't work for you. I certainly cannot find errors when there are no errors at my end, I need more information about how you installed it etc.
Need custom work done? Pimp My Forum!
User avatar
zuker
Registered User
Posts: 214
Joined: Tue Jun 27, 2006 2:30 pm
Location: BA
Contact:

Re: [Beta] Translate topic URL's

Post by zuker »

it's working fine for me, but i was just wondering because it's still a beta :P
Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Re: [Beta] Translate topic URL's

Post by Merlin Sythove »

No, in that case I'm not having another look. The amount of extra work that is needed to make it into a proper mod and submit it, is not what I usually have time for. Besides, even though 2.0.22 is still used extensively, I have a feeling that it doesn't really pay to invest time in creating proper mods for this version anymore.
Need custom work done? Pimp My Forum!
Post Reply

Return to “[2.0.x] MODs in Development”