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.5
Author Message
Jolanta
New Member
New Member



Joined: Apr 03, 2005
Posts: 8

PostPosted: Sun Apr 03, 2005 10:27 pm Reply with quote

Hi

in 7.5 the msn icon is missing in the user profile... I tracked down theis code in Modules/Forums/viewtopic.php lines 1028 thru 1036


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

                $aim = ( $postrow[$i]['user_aim'] ) ? '<a href="aim:goim?screenname=' . $postrow[$i]['user_aim'] . '&amp;message=Hello+Are+you+there?">' . $lang['AIM'] . '</a>' : '';

                $temp_url = append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$poster_id");
                $msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
                $msn = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';

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


This looks ok to me, but there must be something missing... can anybody advise

Thanks

Jolanta
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Apr 04, 2005 8:11 pm Reply with quote

It's missing in mine too. I never noticed it because until about a week ago I never used msm. We'll have to look into it. Thanks!
 
View user's profile Send private message
chatserv
Member Emeritus



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

PostPosted: Mon Apr 04, 2005 9:34 pm Reply with quote

Try using this fix/mod (author listed as oc5iD):


Image


Code:
OPEN: /includes/usercp_viewprofile.php


------------ [FIND ] ---------------------------

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

#
#------------ [ REPLACE WITH ] -------------------
#

$msn_img = ( $profiledata['user_msnm'] ) ? '<a href="http://members.msn.com/' . $profiledata['user_msnm'] . '" target="_blank"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';

#
#------------ SAVE AND CLOSE --------------
#

OPEN: /templates/Your_Template/profile_view_body.tpl  or themes/Your_Theme/forum/profile_view_body.tpl

#
#------------- [ FIND ] -----------------------
#

<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_MESSENGER}:</td>
<td>{MSN}</td>
</tr>

#
#------------ [ REPLACE WITH ] ------------------
#

<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_MESSENGER}:</td>
<td>{MSN_IMG}</td>
</tr>

#
# ------- SAVE AND CLOSE -----------
#

OPEN /viewtopic.php

------------- [ FIND ] --------------

      $msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';

-------------- [ REPLACE WITH ] -------------------

$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="http://members.msn.com/' . $postrow[$i]['user_msnm'] . '" target="_blank"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';

#
# --------- SAVE AND CLOSE -------------
#

Upload icon_msnm.gif to /templates/Your_Template/images or themes/Your_Theme/forum/images
 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Mon Apr 04, 2005 10:36 pm Reply with quote

As always, works like a charm!Now if I can just figure out my msnm id Confused
 
chatserv







PostPosted: Mon Apr 04, 2005 11:40 pm Reply with quote

oh boy... ROTFL
 
Jolanta







PostPosted: Tue Apr 05, 2005 1:15 am Reply with quote

Hi Guys

Worked like a charm for me too...

chatserv does it again... THANK YOU CHATSERV

Thank you also to Raven for the fantastic ravenphpscripts.com

and most of all a big THANK YOU to the original fix author oc5iD

Jolanta
 
tangoman
Involved
Involved



Joined: Aug 06, 2005
Posts: 301

PostPosted: Tue Sep 20, 2005 4:42 pm Reply with quote

chatserv wrote:
Try using this fix/mod (author listed as oc5iD):


Image


Code:
OPEN: /includes/usercp_viewprofile.php


------------ [FIND ] ---------------------------

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

#
#------------ [ REPLACE WITH ] -------------------
#

$msn_img = ( $profiledata['user_msnm'] ) ? '<a href="http://members.msn.com/' . $profiledata['user_msnm'] . '" target="_blank"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';

#
#------------ SAVE AND CLOSE --------------
#

OPEN: /templates/Your_Template/profile_view_body.tpl  or themes/Your_Theme/forum/profile_view_body.tpl

#
#------------- [ FIND ] -----------------------
#

<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_MESSENGER}:</td>
<td>{MSN}</td>
</tr>

#
#------------ [ REPLACE WITH ] ------------------
#

<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_MESSENGER}:</td>
<td>{MSN_IMG}</td>
</tr>

#
# ------- SAVE AND CLOSE -----------
#

OPEN /viewtopic.php

------------- [ FIND ] --------------

      $msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';

-------------- [ REPLACE WITH ] -------------------

$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="http://members.msn.com/' . $postrow[$i]['user_msnm'] . '" target="_blank"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';

#
# --------- SAVE AND CLOSE -------------
#

Upload icon_msnm.gif to /templates/Your_Template/images or themes/Your_Theme/forum/images




But I am using PHP-Nuke version 7.6 and am not able to make the 3rd code change because I do not have a file named, viewtopic.php

_________________
I am using PHPNuke Version 7.6 with patch 3.0, CNB YA 4.4.2, NukeSentinel(tm) 2.3.2 and Nuke Royal. 
View user's profile Send private message
Raven







PostPosted: Tue Sep 20, 2005 5:21 pm Reply with quote

v7.6 come stock and standard (as has every version since 6.5 Smile ) with modules/Forums/viewtopic.php
 
tangoman







PostPosted: Tue Sep 20, 2005 5:42 pm Reply with quote

Aaaaaaah...Thanks Raven,

Of course you are quite correct. As I do now see, modules/Forums/viewtopic.php is indeed a file I have, but the instructions only advised of viewtopic.php hence I was lost.

I have now made all changes however there does appear to be a problem.

The MSNM new window does appear, but it just stays blue for about 20 seconds before displaying any information.

Because the page is just the color blue and it appears nothing is actually downloading, the user thinks nothing is happening and could well think there is a fault. Do you have any idea about this delay? Is it usual/normal etc?
 
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.5

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 ©