Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0
Author Message
dark-dude
Worker
Worker



Joined: Jun 29, 2003
Posts: 146
Location: Oklahoma

PostPosted: Fri Feb 06, 2004 3:18 pm Reply with quote

I have tried with several failure attempts to get the msn image to show up in a profile
I tried puting in my msn email....msn username....even a hotmail address....and all i ver see is whatever i enter. No image. I tried editing includes files and still nothin. How can I make this link work and the image show?

_________________
DaRk-DuDe 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Feb 06, 2004 3:39 pm Reply with quote

Post the code (using bbcode tags) that you are trying to use.
 
View user's profile Send private message
dark-dude







PostPosted: Fri Feb 06, 2004 4:28 pm Reply with quote

ok I am editing includes/usercp_viewprofile.php and all it has is this.
Code:
$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' ';

$msn = $msn_img;
and I have been changing it to
Code:
$msn_img = ( $profiledata['user_msn'] ) ? '<a href="' . $profiledata['user_msn'] . 

'"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSN'] . '" title="' .
$lang['MSN'] . '" border="0" /></a>' : '&nbsp;';
$msn = ( $profiledata['user_msn'] ) ? '<a href="' . $profiledata['user_msn'] .
'">' . $lang['MSN'] . '</a>' : '&nbsp;';

and the file shows below there...
Code:
'MSN_IMG' => $msn_img, and this 'MSN' => $msn, and 'L_MESSENGER' => $lang['MSNM'],
so dunno where to fix it at I have went back to original file for now.
 
dark-dude







PostPosted: Fri Feb 06, 2004 7:53 pm Reply with quote

I noticed when I updated my profile here.....same thing...MSNM image don't show....must be in nuke?
 
Raven







PostPosted: Fri Feb 06, 2004 7:55 pm Reply with quote

?? I see your msnm image just fine.
 
dark-dude







PostPosted: Fri Feb 06, 2004 8:07 pm Reply with quote

i don't....i see all of em but msn
MSN Messenger: dark-dude
 
Raven







PostPosted: Fri Feb 06, 2004 8:13 pm Reply with quote

You don't see msnm in-between YIM and ICQ?


Image
 
dark-dude







PostPosted: Fri Feb 06, 2004 8:27 pm Reply with quote

yes i see it here....but look at online and click on my nick and preview my profile...it just says dark-dude
 
Raven







PostPosted: Fri Feb 06, 2004 11:00 pm Reply with quote

The link is not filled in because I don't use msn, nor do I know how to directly call it, but this will fix it.
Code:
$msn_img = ( $profiledata['user_msnm'] ) ? '<a href="#?screenname=' . $profiledata['user_msnm'] . '&amp;message=Hello+Are+you+there?"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '&nbsp;';
 
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Fri Feb 06, 2004 11:06 pm Reply with quote

In profile_view_body.tpl find something similar to (varies with each theme):
Code:
        <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_MESSENGER}:</span></td>

        <td class="row1" valign="middle"><span class="gen">{MSN}</span></td>

Change to:
Code:
        <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_MESSENGER}:</span></td>

        <td class="row1" valign="middle"><span class="gen">{MSN_IMG}</span></td>


Then in includes/usercp_viewprofile.php find:
Code:
$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : '&nbsp;';

$msn = $msn_img;

Change to:
Code:
$msn_img = ( $profiledata['user_msnm'] ) ? '<a href="forum-userprofile-.html' .$profiledata['user_id'] . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSM'] . '" title="' . $lang['MSM'] . '" border="0" /></a>' : '';

$msn = $msn_img;


I believe it displays your msn handle instead of the image in the profile by default because in the forums the image will take you to the user's profile, not much sense in having a link to the profile within the profile, but since you want the image i provide the code for it.
 
View user's profile Send private message Visit poster's website
chatserv







PostPosted: Fri Feb 06, 2004 11:09 pm Reply with quote

Guess Raven and i posted about the same time Razz
 
Raven







PostPosted: Fri Feb 06, 2004 11:14 pm Reply with quote

I'll happily defer to you Wink . BTW, can you take a look at this one [ Only registered users can see links on this board! Get registered or login! ] ?
 
Lateron
Worker
Worker



Joined: May 10, 2003
Posts: 119
Location: Katoomba, NSW, Australia.

PostPosted: Sat Feb 07, 2004 9:26 pm Reply with quote

Just for interest's sake I have been visiting a few phpBB boards in the last hour and noticed that they all display msn this way in the profiles.

Ron.....
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©