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: MMS using picture link  (Read 4728 times)

0 Members and 1 Guest are viewing this topic.

sundgaard

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Mindscope
MMS using picture link
« on: January 06, 2006, 11:40:49 am »

I have a well working coppermine gallery at www.mindscope.dk/coppermine (version 1.3.2)

I would like to use our MMS service within coppermine. To use it i have to open a link like this:
Code: [Select]
<a href="#" onClick="OpenMobilpic('http://www.website.com/coppermine/albums/album1/image.jpg');">Bestil</a>
I need to change the url with the picture that is currently being viewed. The service i use need me to insert some code in the template, and this already work for me.



In this post: http://forum.coppermine-gallery.net/index.php?topic=6217.0 there is a suggestion about how to do it, but i cant figure out how to change the hack, so that it suit my needs.

I would like to insert it below the picture like in the other mod wich is like this:

Find this code
Code: [Select]
       $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
        $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title; //added by gaugau
        $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
        $pic_html .= "</a>\n";
    } else {
        $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
    }

Insert this after:
Code: [Select]
$pic_html.= "<center>
<a href=\"#\" onClick=\"javascript: window.open('http://mpush.msolutions.cc/req.php?account=wellcoolstuff&image="
.$CONFIG["ecards_more_pic_target"].
'/'.
$picture_url .
"&caption=".$CURRENT_PIC_DATA['title'].$CURRENT_PIC_DATA['caption'].
"','_MPUSH','width="
.$CURRENT_PIC_DATA['pwidth']
.", height="
.$CURRENT_PIC_DATA['pheight']
.", titlebar=1, resizable=1, scrollbars=1');\">
Send to my mobile
</a>
</center>";



Thank you in advance.

Bo Sundgaard
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: MMS using picture link
« Reply #1 on: January 08, 2006, 12:29:11 pm »

I have a well working coppermine gallery at www.mindscope.dk/coppermine (version 1.3.2)
Then why didn't you post on the support board that corresponds to your version of coppermine instead of posting in the sub board "General discussion (no support!)"? Moving your thread accordingly. Coppermine doesn't come with built-in MMS support, however there are several mods that deal with MMS stuff. Search the mods board for them.
You already posted replies both to the mods as well as a thread on the paid support board. Double-posting is not a very bright idea, it only causes extra moderation work and makes supporters reluctant to look into your questions.
Logged

sundgaard

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Mindscope
Re: MMS using picture link
« Reply #2 on: January 09, 2006, 09:47:42 am »

Sorry about it, i didn't mean to make any trouble. And thank you for moving the topic to the correct sub board.

I didn't think of it as a support question because it isn't a standard feature in coppermine.

I have read the mods and i have tried to change them without luck. My question is about how to change the mod to work with the MMS service that i use. So i was just hoping that someone would help me, i'm not very good at PHP.



Regards.

Bo Sundgaard




Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: MMS using picture link
« Reply #3 on: January 09, 2006, 10:18:26 am »

all MMS-related mods depend on your cell phone provider's setup, policy and capabilities, so it's hard for users outside of Denmark to advice or trouble-shoot.
Logged

sundgaard

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Mindscope
Re: MMS using picture link
« Reply #4 on: January 09, 2006, 11:06:06 am »


My task is to change insert the link to the picture instead of the url in this code:

Code: [Select]
<a href="#" onClick="OpenMobilpic('http://www.website.com/coppermine/albums/album1/image.jpg');">Bestil</a>

The HEAD contain a script that does the rest.

I would think that the following code could be modified to do the job, but i am very bad at PHP, so it would be very nice with a little helt, i'm sure that it is very easy for a PHP guro to solve, but it would require a lot of trial and error search for me to work.

Code: [Select]
$pic_html.= "<center>
<a href=\"#\" onClick=\"javascript: window.open('http://mpush.msolutions.cc/req.php?account=wellcoolstuff&image="
.$CONFIG["ecards_more_pic_target"].
'/'.
$picture_url .
"&caption=".$CURRENT_PIC_DATA['title'].$CURRENT_PIC_DATA['caption'].
"','_MPUSH','width="
.$CURRENT_PIC_DATA['pwidth']
.", height="
.$CURRENT_PIC_DATA['pheight']
.", titlebar=1, resizable=1, scrollbars=1');\">
Send to my mobile
</a>
</center>";


Regards.

Bo Sundgaard

Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.