Phorum3Links module (restore your old Phorum3 links!)
Posted by sheik
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
phorum3links-1.1.0.tar.gz | 1.7 KB | open | download | sheik | 01/03/2007 | Read message |
phorum3links-1.1.0.zip | 2.4 KB | open | download | sheik | 01/03/2007 | Read message |
January 30, 2005 02:57PM |
Registered: 21 years ago Posts: 687 |
Thanks to some helpful comments by Thomas, this module is now ready.
***
This module detects old Phorum 3 style URLs and redirects in a search-engine friendly way, to the new Phorum 5 link. This module will only work if you upgraded to Phorum 5 using the script which stores the new offset values.
To check if you have these, look in your phorum_settings table, for a field called 'conversion_offsets'. If it contains data, you are in luck and this module should
do what you want.
***
Related thread: [phorum.org]
This is my first module, so any feedback or corrections are welcomed.
I removed my "Settings" for this module by the way as I only used it for debugging.
/\dam
Edit by Maurice
I did some changes to the module and added the downloadable packages to this message. Here's the changelog for it:
Edited 4 time(s). Last edit at 01/03/2007 08:40AM by mmakaay.
***
This module detects old Phorum 3 style URLs and redirects in a search-engine friendly way, to the new Phorum 5 link. This module will only work if you upgraded to Phorum 5 using the script which stores the new offset values.
To check if you have these, look in your phorum_settings table, for a field called 'conversion_offsets'. If it contains data, you are in luck and this module should
do what you want.
***
Related thread: [phorum.org]
This is my first module, so any feedback or corrections are welcomed.
I removed my "Settings" for this module by the way as I only used it for debugging.
/\dam
Edit by Maurice
I did some changes to the module and added the downloadable packages to this message. Here's the changelog for it:
2006-09-27 v1.1.0, rewrite by Maurice Makaay <maurice@phorum.org> - Added README and Changelog to the module. - Also support SSL HTTP links (https://). - Fixed some undefined index warnings. - Handle index and list pages as well. - Use phorum_get_url() to construct URLs to Phorum 5 pages. 2005-01-30 v1.0, Adam Sheik (www.cantonese.sheik.co.uk) - Initial release.
Edited 4 time(s). Last edit at 01/03/2007 08:40AM by mmakaay.
Re: Phorum3Links module (restore your old Phorum3 links!) January 30, 2005 04:21PM |
Registered: 20 years ago Posts: 683 |
Hi Adam,
Congratiolations, great stuff!
Works just fine so far - the only thing not working are old Links to a search result like this:
[phorum.org]
But that's shurely a different matter...
Thanx
pat
Congratiolations, great stuff!
Works just fine so far - the only thing not working are old Links to a search result like this:
[phorum.org]
But that's shurely a different matter...
Thanx
pat
January 30, 2005 04:23PM |
Registered: 21 years ago Posts: 687 |
Yes, I've only written it to parse old incoming links - as these are likely to exist in search-engine, external sites and within the phorum itself.
Also, I've been told by some of my users that they bookmarked their favourite threads.
I'm glad the module is working for you.
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
Also, I've been told by some of my users that they bookmarked their favourite threads.
I'm glad the module is working for you.
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz

January 30, 2005 04:25PM |
Registered: 21 years ago Posts: 687 |
On a related note, old profiles and links to actual forums won't work either.
I may fix this if there is a demand for it. Personally I was 95% concerned with links to posts.
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
I may fix this if there is a demand for it. Personally I was 95% concerned with links to posts.
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz

Re: Phorum3Links module (restore your old Phorum3 links!) January 30, 2005 07:10PM |
Registered: 20 years ago Posts: 16 |
Re: Phorum3Links module (restore your old Phorum3 links!) January 31, 2005 03:10AM |
Admin Registered: 22 years ago Posts: 9,240 |
May 01, 2005 02:22PM |
Registered: 22 years ago Posts: 793 |
I tried this module.
It does not seem to work for me at all.
For instance. my old thread link was:
/forums/read.php?f=25&i=782&t=782
the new one is:
/forums/read.php?25,24730,24730
I believe this is due to the fact that all messages are now kept in one table?
how is this module supposed to work?
Re: Phorum3Links module (restore your old Phorum3 links!) May 01, 2005 02:25PM |
Admin Registered: 22 years ago Posts: 9,240 |
May 02, 2005 09:27PM |
Registered: 22 years ago Posts: 793 |
Re: Phorum3Links module (restore your old Phorum3 links!) May 03, 2005 02:27AM |
Admin Registered: 22 years ago Posts: 9,240 |
Sorry, only registered users may post in this forum.