Send link to all the Yahoo Messenger contacts Send link to all the Yahoo Messenger contacts
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Send link to all the Yahoo Messenger contacts

Started by blackmamba, June 19, 2006, 02:00:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blackmamba

Send link to all the Yahoo contacts
I really wanna give the visitors the opportunity to send the viewed page link to all the contacts in Yahoo Messenger.
It will create a link inside the displayimage.php's INFO field specially crafted to pop-up "Send an instant message" window in Yahoo Messenger.
You need this mod as a source of free & effective advertising for your gallery.

so, here is the little mod:

Quote
open:
displayimage.php

find:
// with subdomains the variable is $_SERVER["SERVER_NAME"] does not return the right value instead of using a new config variable I reused $CONFIG["ecards_more_pic_target"] no trailing slash in the configure

after add:
//send link to all yahoo contacts
$info['Yahoo'] = '<a href="'. "ymsgr:im?+&msg=". $CURRENT_PIC_DATA[title] ."+http://www.yourdomain.com/displayimage.php?pos=-" . $CURRENT_PIC_DATA[pid] . '">' . "<b>send this pic to Yahoo Messenger contacts!</b>" . '</a>';


Important notice:
do remember to replace www.yourdomain.com from the obove line with the propper URL

That's it!

sample:
http://www.pozehaioase.ro/displayimage.php?pos=-2665


trippinsweet

You could edit displayimages.php and find the code line which begins with " $info[$lang_picinfo['URL'] =  < something here about the picture info to display > "

then add this after that

    $info[$lang_picinfo['URL']] .= <<<EOT
   <a href='ymsgr:im?+&msg=Photo+title+http://www.mydomain.com/displayimage.php?pos=-$CURRENT_PIC_DATA[pid]'>Send your link to your Yahoo contacts</a>
EOT;

Then you'll have a line saying "send this link to your friends" appear anytime they click for more info on the picture

I tried it out, and it did open up a yahoo messenger window and tried to send a message to my contacts, but it didn't send the message.
If you could tell me the proper way to make yahoo send messages, then I'll be able to help more.

blackmamba

#3
I've found a way to make it work and I've updated the first post.
10x trippinsweet for your help.

Paver

Please do *not* post support questions on the "Features Requests" board. 

Moving thread to support board.

blackmamba


Paver

@blackmamba: Please start a new thread with the mod you are contributing.  The first post looks good - it's just that the rest of this thread is a mess now.  It's difficult to follow historically.

You shouldn't modify posts (only for typos or security issues).  In this case, your request was on the support board.  You received assistance.  Then you should start a new thread with your contribution.  The support thread (this one) would be marked "solved".

I'll mark this thread "solved" now and it will stay here.  Start the new thread and that one can be moved to the Mods board.

Paver

As noted in the Mod thread based on this support thread, you can also do this with a theme customization so you don't have to modify the core script.