The Usage section of the SigGen documentation has an .htaccess snippet that allows users to reference a more friendly URL to their signature and avatar images.
Taking this idea a step further, I added a few lines to the .htaccess example to allow people to use a more friendly URL to access or link their profile, as well.
- Code: Select all
RewriteEngine on
RewriteRule ^(sig|av)/(.*).png$ ./addons/siggen/$1.php?member=$2
RewriteBase /roster/
RewriteRule ^char/(.*)/$ ./char.php?name=$1&server=ServerName [R]
The "RewriteBase" directory will need to be changed to the location of your Roster installation. In my site's case, it is simply http://sitename.com/roster/, so the RewriteBase is /roster/.
The name of your server/realm will also need to be changed at the end of the final RewriteRule.
Placing that .htaccess file in your base roster directory will allow you to replace these links:
- Code: Select all
http://sitename/roster/addons/siggen/sig.php?member=CharacterName&saveonly=0
http://sitename/roster/addons/siggen/av.php?member=CharacterName&saveonly=0
http://sitename/roster/char.php?name=CharacterName&server=ServerName
With these:
- Code: Select all
http://sitename/roster/sig/CharacterName.png
http://sitename/roster/av/CharacterName.png
http://sitename/roster/char/CharacterName/
The trailing slash after your CharacterName in the third URL is important.
Nothing earth shattering here, but I thought others may find it useful. Moderators, feel free to delete or move this post as you see fit. Thanks.
MOD: Post edited for newer version of SigGen (v0.2.4 and higher)