PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Jolanta
New Member
New Member


Joined: Apr 03, 2005
Posts: 8

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

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: 15235
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

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

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
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

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

As always, works like a charm!Now if I can just figure out my msnm id Confused
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

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

oh boy... ROTFL
View user's profile Send private message Visit poster's website
Jolanta
New Member
New Member


Joined: Apr 03, 2005
Posts: 8

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

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
View user's profile Send private message
tangoman
Involved
Involved


Joined: Aug 06, 2005
Posts: 301

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

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
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

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

v7.6 come stock and standard (as has every version since 6.5 Smile ) with modules/Forums/viewtopic.php
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
tangoman
Involved
Involved


Joined: Aug 06, 2005
Posts: 301

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

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?
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum