View Single Post
Old 25.05.2005, 13:34   #1 (permalink)
cheaman1
Baby Mamber
 
Join Date: Jun 2004
Posts: 2
cheaman1 is on a distinguished road
Default Community builder link generator

Code:
<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not
allowed.' );

$link = "http://mysite.com/index.php?option=com_comprofiler&amp;task=userProfile&amp;user=$my->id";



print ("<a href=\"$link\">Click Here to See My profile</a>");

?>


The following refers to a community builder profile link generator module.

I am trying to write a simple module that displays the html code link to a users profile on my site. For example, in the code above, the module displays the actual link because it is interpreted as a link. However, I want to display the RAW link code so that a user can copy this code, and paste it into their AIM profile for instance. The problem is that the link is actually being generated as a link when the module is published. How do I go about displaying the raw link, while still maintaining the ability to grab the user's profile id # like demonstrated above? I could have them just copy and paste the actual URL of their profile, but I want to make it as easy and simple as possible. What i'm trying to accomplish is more user memembership, and i expect more people to visit and join, if they see their friends CB profile advertised through their AOL or AIM profile.

So is someone with even basic php/html knowledge can help me, that would be great!

Thanks
cheaman1 is offline   Reply With Quote
Sponsored Links