Hi,
mediaguru wrote:I'd eventually like to add controls in the backend for diplay and text preferences...
I'd like to make a plug that displays the user's URL in his profile eventually. shouldn't be too hard.
I installed this mod, works very nicely thankyou.
I found one issue though. The "mod_yourcustomurl.php" file was Windows encoded with all the "CTRL-M"'s everywhere, although it still worked under Linux, they really should be removed. Windows has "dos2unix" software for download, or you can use dos2unix after installing cygwin for Windows to clean that up.
From there you can re-distribute the zip (updated zip).
Another suggestion that may be worth mentioning, can you add to the section:
echo '<a href="',$mosConfig_live_site,'/',$name,'">',$mosConfig_live_site,'/',$name,'</a></div>';
where it also works for:
username.example.com
?
Since Trail's userhome rewriting contribution allows this to work to. So basically, one can specify:
username.example.com
or
www.example.com/username
to display and let the user choose.
This may require a bit more php coding in the hp file (to cut the hostname off the domain name and then have something like:
$name, $cut_mosConfig_live_site,'/' etc
but it may be worth it.
The other thing I noted was that you had:
echo "<div align='center'><b>Your Custom URL:</b><br>";
when the "Show title" feature of the module allows this anyway (and is edittable from the module page). I changed this to:
echo "<div align='center'>";
and used the title of the Module to show a modified title instead of editting your php file to change the title.
The only other thing I can suggest is a feature to "tell others about my link" like the "invite module", maybe add that to your mod?
Personally, I can't wait for this to work as a tab on the profile, which will make it much nicer.
Thanks for the great mod though, if you have karma, I'm going to up it by one
Michael.