[TYPO3-dev] short URLs and realurl support for sr_feuser_register
Steve Webster
steviewebsite at msn.com
Mon Mar 6 13:29:01 CET 2006
Hi All,
I have created a mod for sr_feuser_register that greatly reduces the
length of URL's within the e-mails that are sent, and also made it
compatible with real URL.
I'd like to share it with everyone but not sure of the best way:
- Upload a number of patches in the form of .diff files to the bugtracker?
- Make a t3x file available with all of the code contained within it.
I also plan to e-mail the extension developers directly.
Please let me know if people are interested in this and how best they
think I should share.
------how it works----------
To explain how it works... before I started I could have the following
link to activate an account:
(243 chars for the parameters)
http://www.mysite.com/confirm/?tx_srfeuserregister_pi1%5BrU%5D=77&tx_srfeuserregister_pi1%5Bcmd%5D=setfixed&tx_srfeuserregister_pi1%5BsFK%5D=APPROVE&fD%5B_FIELDLIST%5D=uid%252Cpid%252Cusergroup&fD%5Busergroup%5D=1&fD%5Bdisable%5D=0&tx_srfeuserregister_pi1%5BaC%5D=12955c7c
With my modification I can reduce that to 67 characters
http://www.mysite.com/confirm/?tx_srfeuserregister_pi1%5BrU%5D=27eaee6d70bfad3d416d2da75cb61ff7/
With real URL configuration I can reduce it even further:
(39 chars)
http://www.mysite.com/confirm/user/27eaee6d70bfad3d416d2da75cb61ff7/
How does it work?
- I create a seperate table in the DB to hold a serialised version of
the "long" GET parameter string
- This is referenced via a md5 hash key which is then passed instead
I have also made it so that this feature can be disabled/enabled via TS.
The main modifications where made within
class.tx_srfeuserregister_pi1.php by adding a few custom methods and
modifying some existing code.
/Steve
More information about the TYPO3-dev
mailing list