how to integrate intermediat (resized) picture with BritePic how to integrate intermediat (resized) picture with BritePic
 

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

how to integrate intermediat (resized) picture with BritePic

Started by cong, May 11, 2007, 11:35:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cong

hello

first BritePic is ads system by adbrite company

this ads system enable you to make ads on pictures on your site

how to make this script to be applied on intermediate pictures

to be obvious to you :

The old way to put an image on your site
http://www.yoursite.com/yourpic.jpg

----------------------------------------------------------

The BritePic way to put an image on your site
<script>
  britepic_src="http://www.yoursite.com/yourpic.jpg";
  britepic_id="342343";
</script>
<script src='http://www.britepic.com/britepic.js'>
</script>
<noscript>
  <img src="http://www.yoursite.com/yourpic.jpg">
</noscript>



and you can visit this link to understand britepic
http://www.britepic.com/

qustion now how to apply this ads system on intermediat (resized) picture with BritePic ??....


Nibbler

Copy the theme_html_picture() function from the sample theme inot your theme.php and modify the img tags here


            $pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $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\" alt=\"\" /><br />\n";
        }

cong

i am under beginner level in php language so plz explain the solve of this problem in details by ( find & replace and copy & paste ) way plz
i am sorry but i cant modify the code so please explain it to me and thank you very much

cong


cong


wickeddivine

I could use some help with this, too.  I understand how to edit the files and all, I'm just not sure of the format because of the way all the html is separated in the function posted.  Would anyone be willing to post the edited function they way it should look with the adbrite code in it?  There's no way I'd get it right on my own.

Scott O

First, thank you Nibbler for attempting to answer this question.

Unfortunately, I'm still confused.

I'm wondering if either Nibbler or one of the other Coppermine gurus could take a look at see if 1) it's even possible to put BritePic ads into Coppermine, and 2) if it is, how would that be implemented?

I'm not a complete newb, but I am enough of one to know that I need really simple, step-by-step directions.

If someone were to post those directions here, I would gladly put a donation in their tip jar if they have one. 

Thank you in advance.

Nibbler

Change


            $pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $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\" alt=\"\" /><br />\n";
        }


to



$adbrite = <<< EOT

<script>
  britepic_src="{$CONFIG['site_url']}$picture_url";
  britepic_id="342343";
</script>
<script src='http://www.britepic.com/britepic.js'>
</script>
<noscript>

EOT;

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


I think.

Scott O

That seems to have worked.  Thank you!

Do you have a "tip jar" somewhere?

Joachim Müller


614cooker

hi does anyone know how to do this in coppermine 1.3.1c which is used in phpnuke here is my link.

http://www.wizzsim-simulations.com/modules.php?name=coppermine

Joachim Müller

That version does not go supported any longer. You're not allowed to clutter this board with such irrelevant questions. Support for that dinosaur has run out. Locking. Don't post at all about your outdated version - the word "unsupported" means exactly what it says.