News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Dead links in code for yahoo messenger

Started by spiros, December 11, 2016, 04:04:22 PM

Previous topic - Next topic

spiros

From load.php.

'href' => 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['yim']),
'link' => '<a class="yim" href="http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['yim']) . '" title="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '"><img src="http://opi.yahoo.com/online?u=' . urlencode($profile['yim']) . '&amp;m=g&amp;t=0" alt="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '" /></a>',
'link_text' => '<a class="yim" href="http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['yim']) . '" title="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '">' . $profile['yim'] . '</a>'

Kindred

Yes... we know.   It's been mentioned several times :P

Yahoo went and changed their system...  which, once again, proves the smf point that, using third party sites invites nothing but trouble
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

change <img src="http://opi.yahoo.com/online?u=' . urlencode($profile['yim']) . '&amp;m=g&amp;t=0" alt="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '" /> to a local image stored on your server. just leave the alt text part replace the rest.

spiros

#3
Thanks, this is what I did and fixed:

<img src="https://www.translatum.gr/forum/Themes/citiez_20a/images/yim.gif" alt="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '" />

Is it possible to give a relative path for the image? What should it be like?

Illori

you could possibly use $themedir or similar but that really does not change much. why do you want to change to a relative path?

spiros

I thought it would be better not to make an extra call every time a page with yahoo is loaded...

rosewillrnx

So this fixes part of the problem for the yahoo image but it is defined for profile in another place: see attached.

What file contains this callout?



Kindred

All  of the references draw from the array in Load.php --- unless you have mod which violates those standards...


'yim' => $profile['yim'] != '' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => $profile['yim'],
'href' => 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['yim']),
'link' => '<a class="yim" href="http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['yim']) . '" title="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '"><img src="http://opi.yahoo.com/online?u=' . urlencode($profile['yim']) . '&amp;m=g&amp;t=0" alt="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '" /></a>',
'link_text' => '<a class="yim" href="http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['yim']) . '" title="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '">' . $profile['yim'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),

Quote from: Illori on December 11, 2016, 04:53:57 PM
change <img src="http://opi.yahoo.com/online?u=' . urlencode($profile['yim']) . '&amp;m=g&amp;t=0" alt="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '" /> to a local image stored on your server. just leave the alt text part replace the rest.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

rosewillrnx

Thanks Kindred,

Didn't think about mods interfering here. It could be ultimate profile, I have changed load.php and yahoo icon is working in memberlist. Ill figure out where the problem is.

Illori

search your source for opi.yahoo.com and change all locations of it.

rosewillrnx

Thanks Illori,

I'll do that shortly, I am sure it will fix the problem.

Advertisement: