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.6
Author Message
tangoman
Involved
Involved



Joined: Aug 06, 2005
Posts: 301

PostPosted: Tue Sep 20, 2005 1:06 pm Reply with quote

Hi All,

I have the same problems as described in the following 2 postings:

http://www.ravenphpscripts.com/posts938-highlight-msnm.html

AND

http://www.ravenphpscripts.com/posts5125-highlight-msnm.html

However I am using PHP-Nuke 7.6, (more details below) and wonder if either of these would be the solution/fix for me to use.

Also, as Chatserv pointed out in the aformentioned postings, I do note that if you click the MSNM icon in the forums, (which, unlike the actual registered user profiles, IS presently visible), you land on the users profile page. This is different to clicking on any of the other messenger icons, (eg Yahoo Mesenger), because if you click them, you arrive on the actual messenger page.

What is the point of the MSNM icon directing you to the users profile when you click it? There is already a Profile icon that does this when clicked?

_________________
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
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Tue Sep 20, 2005 1:29 pm Reply with quote

Hi Tangoman,

I think these solutions will resolve your problem, too. Backup the files before changing, and give it a test...

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
tangoman







PostPosted: Tue Sep 20, 2005 1:31 pm Reply with quote

Thanks Kevin,

But what is the point of the MSNM icon directing you to the users profile when you click it? There is already a Profile icon that does this when clicked?
 
kguske







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

Sorry, I thought it was obvious that the point is...well, it's a bug. The fact that it went so long without being noticed and / or corrected is a testament to the popularity of MSN Messenger... ROTFL

Fix it and be happy...
 
tangoman







PostPosted: Tue Sep 20, 2005 1:54 pm Reply with quote

Kevin,

Your wisdom never ceases to amaze me!!! Rolling Eyes

There are 2 more questions about this matter though.

Firstly, as well as substituting the current text/MSNM ID for the MSNM icon, will these fixes also make you land on the MSNM page when you click the icon, (like when you click the Yahoo IM icon)?

Also, when you click the Users website icon, the external site opens in a new window. When you click the Users Yahoo IM icon, a new window does not open. Is there a fix for this?
 
kguske







PostPosted: Tue Sep 20, 2005 2:13 pm Reply with quote

I am glad you are so easily impressed... Wink

If you look at those posts, you will notice that Raven's MSN icon does what you want, including opening in a new window.

I believe Only registered users can see links on this board! Get registered or login! has what you need.

I haven't searched for a change to open Yahoo in a new window, but it's probably not much different than what Chatserv posted for MSN.
 
tangoman







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

Kevin,

I just checked Chatserv's fixes at:

http://www.ravenphpscripts.com/posts938-highlight-msnm.html

AND

http://www.ravenphpscripts.com/posts5125-highlight-msnm.html


I notice they are different coding, so I know not, which one to use?
 
kguske







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

The link I Only registered users can see links on this board! Get registered or login! is the one I would use. It's a later date and appears to have everything you want in the fix.
 
tangoman







PostPosted: Tue Sep 20, 2005 4:44 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'] : ' ';
$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 in the above code change/modification, the 3rd step is to make changes to the file named viewtopic.php

I am using PHP-Nuke Version 7.6 and do not have a file with this name?
 
tangoman







PostPosted: Fri Sep 23, 2005 11:42 am Reply with quote

Ok So the Mod has been carried out and indeed an MSNM icon is now displayed where before there was simply a text 'description'.

However, when the MSNM icon is clicked, the page that pops up is of the persons MSNM profile akin to the following link:

http://members.msn.com/default.msnw?guids=7bbw58ECFExnLaAStpyynfl6nqBqdMohPwSnNHokzHYm*Nhc6LPxGa3LKCDo3PiCBU



This is different to the Yahoo IM icon, because when the Yahoo IM icon is clicked, you arrive at a log in page profile akin to the following link:

http://login.yahoo.com/config/login?.src=pg&.intl=&.done=http%3A%2F%2Fmessenger.yahoo.com%2Fedit%2Fsend%2F%3F.target%3Dtest%40yahoo.com%26.src%3Dpg



So the fundamental question here, 'is the page/URL that opens when I click the MSNM icon, correct?...I do not think it is. If it is not, how do I change this?
 
chatserv
Member Emeritus



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

PostPosted: Fri Sep 23, 2005 12:13 pm Reply with quote

What should it be opening then? You could edit the link in the files you edited to make the icon appear, one of them has the link.
 
View user's profile Send private message Visit poster's website
tangoman







PostPosted: Fri Sep 23, 2005 12:35 pm Reply with quote

I assumed that akin to the Yahoo IM icon taking you to a 'sign in' page when a person clicks it, the MSNM IM icon should also do the same.

Once specific reason for me thinking this is that, although a user profile IS displayed, there are no actual details of the persons MSNM 'name' on the page that currently resolves.

I do not understand what you are refering to when you write, 'You could edit the link in the files you edited to make the icon appear, one of them has the link.'?
 
chatserv







PostPosted: Fri Sep 23, 2005 1:14 pm Reply with quote

The link is here:

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>' : '';



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>' : '';

As set by default it points to http://members.msn.com/usermsnid
if you know what url it should really point to you can edit it in that viewtopic.php and usercp_viewprofile.php code, i hardly ever use msn so i wouldn't know much about it.
 
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.6

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 ©