How do I remove the I.M. buttons in the user profile?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   How do I remove the I.M. buttons in the user profile?
Bladerunner
CZ Newbie
Bladerunner has been a member for over 20 year's 20 Year Member
usa.gif oklahoma.gif
Occupation: Network Engineer
Fav. Sports Team: The good Guys
Website:
Status: Offline
Joined: Jan 26, 2004
0.00 posts per day
Posts: 28
Points: 74
  MSN Messenger 
I am trying to replace all of the I.M. buttons on the left hand side of the user profile box with information from the user information page... phone numbers to be exact. I have already edited the needed language file to show the description that I want, but I am stuck on trying to changed the buttons. The correct information is there... if you hold you pointer over the buttons, you can see the number listed in the string at the bottom of the page, but I just want it to be listed, like the location.

I also need to replace the website link on the right side of the profile box with information added from the information paged as well.

HELP!!! I have been to several other nuke support sites with no luck.



Back to top Reply with quote
#2   re: How do I remove the I.M. buttons in the user profile?
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Look in the includes/usercp_viewprofle.php.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: How do I remove the I.M. buttons in the user profile?
Bladerunner
CZ Newbie
Bladerunner has been a member for over 20 year's 20 Year Member
usa.gif oklahoma.gif
Occupation: Network Engineer
Fav. Sports Team: The good Guys
Website:
Status: Offline
Joined: Jan 26, 2004
0.00 posts per day
Posts: 28
Points: 74
  MSN Messenger 
Thanks... I think that was the only place that I hadn't looked for the code yet (LOL)

Now, I am still a nuke N00B. I see where the links are located in the code, but how do I change it to reflect the simple text?

Here is the code that I think I need to change... I'm just not certain HOW I need to change it


if (( $profiledata['user-website'] == "http:///") || ( $profiledata['user_website'] == "http://")){
    $profiledata['user_website'] =  "";
}
if (($profiledata['user_website'] != "" ) && (substr($profiledata['user_website'],0, 7) != "http://")) {
    $profiledata['user_website'] = "http://".$profiledata['user_website'];
}

$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : ' ;;';
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww">' . $profiledata['user_website'] . '</a>' : ' ;;';

if ( !empty($profiledata['user_icq']) )
{
   $icq_status_img = '<a href="http://wwp.icq.com/' . $profiledata['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $profiledata['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
   $icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
   $icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '">' . $lang['ICQ'] . '</a>';
}
else
{
   $icq_status_img = ' ;;';
   $icq_img = ' ;;';
   $icq = ' ;;';
}

$aim_img = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&amp;message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : ' ;;';
$aim = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&amp;message=Hello+Are+you+there?">' . $lang['AIM'] . '</a>' : ' ;;';

$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' ;;';
$msn = $msn_img;

$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&amp;.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
$yim = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&amp;.src=pg">' . $lang['YIM'] . '</a>' : '';



Back to top Reply with quote
#4   re: How do I remove the I.M. buttons in the user profile?
Bladerunner
CZ Newbie
Bladerunner has been a member for over 20 year's 20 Year Member
usa.gif oklahoma.gif
Occupation: Network Engineer
Fav. Sports Team: The good Guys
Website:
Status: Offline
Joined: Jan 26, 2004
0.00 posts per day
Posts: 28
Points: 74
  MSN Messenger 
Thanks again to Telli, for pointing me in the right direction.

I have figured out the code changes needed to perform my mod and, although I doubt anyone else will need to make such changes (this site had to be adjusted to fit the need of the client) I thought I would go ahead and post the code changes.

In the previous post I attached the original code, and here is how you need to change it... keep in mind that you will need to edit all of the associated language files as well.

This is an excerpt from the usercp_veiwprofile.php file, find in the includes/ directory (from your nuke root)



$www_img = ( $profiledata['user_website'] ) ? $profiledata['user_website'] : ' ;;';

$icq_img = ( $profiledata['user_icq'] ) ? $profiledata['user_icq'] : ' ;;';

$aim_img = ( $profiledata['user_aim'] ) ? $profiledata['user_aim'] : ' ;;';

$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' ;;';

$yim_img = ( $profiledata['user_yim'] ) ?  $profiledata['user_yim'] : ' ;;';




I would still be very interested in any suggestions that anyone might have as far as a different or better way to achieve the same outcome


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum