Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

My first module: Display user's URL

  • mediaguru
  • mediaguru
  • OFFLINE
  • Posts: 365
  • Thanks: 1
  • Karma: 70
18 years 5 months ago #15560 by mediaguru
Replied by mediaguru on topic Re:My first module: Display user's URL
micoots wrote:

Just as another suggestion, the module only seems to show my URL when I view my profile, but when I view another users profile it doesn't show me their URL.

I'm baffled, why is that?

It would be good to show the users URL when any user views another users profile, so they can bookmark it etc.

Any ideas how this can be done (or is there anything I'm doing wrong why this isn't working this way?).

Thanks.

Michael.


No you're not doing anything wrong. It is only meant to show you YOUR URL. I'd like to make a CB plug which shows the URL of the user whose profile you are viewing. That will be the "next" project I suppose!

:huh:

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in or Create an account to join the conversation.

  • mediaguru
  • mediaguru
  • OFFLINE
  • Posts: 365
  • Thanks: 1
  • Karma: 70
18 years 5 months ago #15561 by mediaguru
Replied by mediaguru on topic Re:My first module: Display user's URL
micoots wrote:

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.


Any "windows" encoding by me is certainly both unintentional and unknown since I'm doing everyting on a mac! So perhaps it's dreamweaver doing it...

On the editable title, yes I had thoughts about that but I chose in my implementation NOT to have the module title listed. SO if I was to do a rev of this, I'd make it customizable and have the ability to turn it on/off.

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in or Create an account to join the conversation.

  • henmar
  • henmar
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
18 years 1 month ago #22302 by henmar
Replied by henmar on topic Re:My first module: Display user's URL
How did you used this module to display your url

Golf Space URL: www.thegolfspace.com/Tony

inside your profile.

Please Log in or Create an account to join the conversation.

  • mediaguru
  • mediaguru
  • OFFLINE
  • Posts: 365
  • Thanks: 1
  • Karma: 70
18 years 1 month ago #22313 by mediaguru
Replied by mediaguru on topic Re:My first module: Display user's URL
henmar wrote:

How did you used this module to display your url

Golf Space URL: www.thegolfspace.com/Tony

inside your profile.


All users at my site have their URL in their profiles but it's not my module. It's a hack you can find here if you search the forums.

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum