MMS using picture link MMS using picture link
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

MMS using picture link

Started by sundgaard, January 06, 2006, 11:40:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sundgaard

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:
<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
       $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:
$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

Joachim Müller

Quote from: sundgaard on January 06, 2006, 11:40:49 AM
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.

sundgaard

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





Joachim Müller

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.

sundgaard


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

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

$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