Help - Search - Members - Calendar
Full Version: Invision Gallery media types and thumbnails
ieXbeta Board > Tech > Developer Center
TristanAnderson
Hiya guys, I was wondering if i could pick over the php knowledge of any of you.

I have install the Invision Gallery mod on my forum, and ideally want it to work with Adbrite's "britepics"

In the media types section of the CP, the default code to show a jpeg is
CODE

<#IMAGE#>


I have changed this to fit Adbrite's code, so it now looks like this

CODE

<script>
britepic_id="BRITEPICID";
britepic_src="{FILE}";
</script>
<script src="http://www.britepic.com/britepic.js"></script>
<noscript><img src="{FILE}"></noscript>


This works fine, the image is being shown and the adverts are nicely displayed on them. The only trouble is that IP Gallery dosent seem to like creating/displaying thumbnails now.

Does any body have any ideas?

many thanks in advance
Tan
Scott
And it probably won't because it's a script and it won't be able to create a pic out of it. I'll look around and see what I can find.
TristanAnderson
Thanks Scott, Any help with this would be appreciated so much

::edit::

A quick correction, the script to display the ad image but without the thumbnail is as follows
CODE

?>
<script>
britepic_id="BRITEPICID";
britepic_src="{FILE}";
</script>
<script src="http://www.britepic.com/britepic.js"></script>
<noscript><img src="{FILE}"></noscript>
<?php
TristanAnderson
I always seem to be posting questions on here, And I'm rarely able to help rather than ask, so having found a (kind of) solution, I thought I'd post it.

On my Google travels Ive found alot of people asking for help with Britepic's in image gallerys, so here goes.

The script I've tinkered with is called 4images (Free for download at 4homepages.de in English and german)

The file that you need to alter is \4images\templates\templatename\media\jpg.html

This file only changes the way that an image is shown, not handeled, so the thumbnail generator still works.

Delete the contents of this file and replace it with the following

CODE

<!-- Template file for JPG Files -->
<script>
britepic_id="Your_code";
britepic_src="{media_src}";
</script>
<script src="http://www.britepic.com/britepic.js"></script>
<noscript><img src="{media_src}"></noscript><br />


Obviously you need to replace "your_code" with,,,, your code.


As I said I have seen alot of people asking for help with this so I hope that it is of use to somebody:)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.