Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Send link to all the Yahoo Messenger contacts  (Read 3502 times)

0 Members and 1 Guest are viewing this topic.

blackmamba

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
Send link to all the Yahoo Messenger contacts
« on: June 19, 2006, 02:00:11 pm »

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:
Code: [Select]
// 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:
Code: [Select]
//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
« Last Edit: June 30, 2006, 04:36:29 am by Paver »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Logged

trippinsweet

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 27
Re: Send link to all Yahoo contacts
« Reply #2 on: June 22, 2006, 06:10:52 am »

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.
Logged

blackmamba

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
Re: Send link to all Yahoo contacts
« Reply #3 on: June 22, 2006, 05:20:30 pm »

I've found a way to make it work and I've updated the first post.
10x trippinsweet for your help.
« Last Edit: June 29, 2006, 08:37:00 pm by blackmamba »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Send link to all Yahoo contacts
« Reply #4 on: June 22, 2006, 09:58:19 pm »

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

Moving thread to support board.
Logged

blackmamba

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
Re: Send link to all the Yahoo Messenger contacts
« Reply #5 on: June 29, 2006, 09:06:13 pm »

Asking the moderators:

Is it possible to move this topic on the  coppermine-gallery.net > No Support > Modifications/Add-Ons/Hacks > Mods: Miscellaneous as a mod for CPG 1.4.x ?
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Send link to all the Yahoo Messenger contacts
« Reply #6 on: June 29, 2006, 09:48:42 pm »

@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.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Send link to all the Yahoo Messenger contacts
« Reply #7 on: June 30, 2006, 04:39:29 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.