Active link possible?

OK this information provide below this is pulled from the edit profile fields once entered. The highlighted link I want to have it be an active link can that be done and if it can, can I also change it say Agent Map Link and have that be the link to the link shown below that would be perfect can that be done?

I have about 100 pages to have this done for so I want to be able to replicate this by simply adding the information or link in the field provided when editing their profile.................. 

 

I am open to suggestions on how to accomplish this...................

 

Member ID:

 
1
 
 

Headline:

 
Collective Marketing
 
 

Google Map Link:

 
 

Office Name:

 
IDXRealty Inc.
 
 

Username:

 

Get Global Exposure

 

First Name:

 
Christopher
 
 

Last Name:

 
Sampson
 
Status:
 
Active
 
 

Country:

 
 United States
 
 

City:

 
Orlando
 
 

Zip Code:

 
32835
 
 

 

Csampson
Quote · 11 Nov 2011

You can try this, open file: inc/classes/BxDolProfileFields.php

find function getViewableValue( $aItem, $sValue )

and this code

switch( $aItem['Type'] ) {
            case 'text':

            case 'num':


edit it to

switch( $aItem['Type'] ) {
            case 'text':
                  if ($aItem['Name'] == 'AgentID') {
                    $sValueView = '<a href="' . $site . '/maps/mz/mz_map.html?agent=' . $sValue . '" />Agent Map Link</a>';
                }                 
                return $sValueView;

             case 'num':


-----------

it retrieves information from a text profile fields I have given the name AgentID

...remember to clear cache.

hope it will help you.....

Quote · 12 Nov 2011

OK it deleted the rest of the fields information but the link was there but it didn't work close and proves it can be done..............Any thoughts?  Don't want to loose the Agent information................

Csampson
Quote · 14 Nov 2011

It should work ok, what name have you given the item inside the fields Builder

System Name: ??????????
Caption: ??????????
Type: Text


--------------

I have

System Name: AgentID
Caption: Agent ID
Type: Text


switch( $aItem['Type'] ) {
            case 'text':
                  if ($aItem['Name'] == 'AgentID') {
                    $sValueView = '<a href="' . $site . '/maps/mz/mz_map.html?agent=' . $sValue . '" />Agent Map Link</a>';
                }                
                return $sValueView;

             case 'num':


-------------

if your system name is different, you need to edit my code to your system name on this line

if ($aItem['Name'] == 'AgentID')


...and you shall now only use a number when you edit this on the profile

Quote · 14 Nov 2011

OK I see what you did with the code I misunderstood the only part I need to change is the agent id to a different field.  I changed it to the wrong field but I got it now................I'll test it once I get the map changed as well.......This will work so much better.............I'll let you know...............

 

Thanks as you code made me see a glitch that can be over come by it.................

Csampson
Quote · 15 Nov 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.