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 ??....
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&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";
}
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
my gallery link if you need it
www.congland.com
can any body help me ??
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.
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.
Change
$pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&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&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.
That seems to have worked. Thank you!
Do you have a "tip jar" somewhere?
Quote from: Scott O on August 30, 2008, 04:36:46 AM
Do you have a "tip jar" somewhere?
Yes, sort of: see We need your help (http://forum.coppermine-gallery.net/index.php/topic,14227.0.html)
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 (http://www.wizzsim-simulations.com/modules.php?name=coppermine)
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.