PDA

View Full Version : Integration with vBulletin - BritePic Integration


M-Tuning
06-02-2008, 10:00 PM
https://vborg.vbsupport.ru/external/2008/06/15.gif


Britepic is a service from Adbrite which includes ads in your images.
Here's a demo: http://www.britepic.com/

If you want to use this mod you first will need an account with Adbrite/Britepic.

You can make an account here: https://www.adbrite.com/mb/britepic_landing_page.php?refer_source=britepic

Open the file includes/class_bbcode.php
Search the line (~line 1950 ):

return '<img src="' . $link . '" border="0" alt="" />';And replace with:


return '<script>
britepic_id="your_unique_britepic_id";
britepic_src="' . $link . '";
</script>
<script src="http://www.britepic.com/britepic.js"></script>
<noscript>
<img src="' . $link . '" alt="" />
</noscript>';
Do not forget to put your BritePic ID in the Replacement code above.

Credits to veenuisthebest (https://vborg.vbsupport.ru/member.php?u=244848) for the idea & Milad (https://vborg.vbsupport.ru/member.php?u=82891) for the XHTML 1.0 Transitional code change.

Please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=181384)when you like this hack!

M-Tuning
06-03-2008, 01:21 PM
To do:

- Make links working with the images (Linked images don't work yet)
- Image resizing

If anyone want's to help me with these things, I will really appreciate it.

Milad
06-03-2008, 01:30 PM
In order to be XHTML 1.0 Transitional compatible, the code must be like this:

return '<script>
<!--
britepic_id="Your unique BritePic ID";
britepic_src="' . $link . '";
// -->
</script>
<script type="text/javascript" src="http://www.britepic.com/britepic.js"></script>
<noscript>
<img src="' . $link . '" alt="" />
</noscript>';

Give credits to who deserve.

M-Tuning
06-03-2008, 01:36 PM
Thanks, changed it.

Now i only have to see how I can get links and resizing to work with BritePic.

logicuk
06-03-2008, 01:39 PM
If you can do this for guests only this would be an amazing hack!

M-Tuning
06-03-2008, 01:41 PM
If you can do this for guests only this would be an amazing hack!

That shouldn't be too hard.

7lanet
06-03-2008, 02:13 PM
Your unique BritePic ID = site ?? (( www.7lanet.com/vb )) ??

M-Tuning
06-03-2008, 02:14 PM
No, you will get the id ( a number ) when you register on adbrite/BritePic

7lanet
06-03-2008, 02:14 PM
Parse error: syntax error, unexpected T_STRING in /home/joker/public_html/vb/includes/class_bbcode.php on line 1952

M-Tuning
06-03-2008, 02:23 PM
I see, the code for showing only to guests is not ok right now, I will see what's the problem and place the code again when it works.

Tungsten
06-03-2008, 03:17 PM
Just for what it's worth... BritePic stuff seems to be blocked natively with the AdBlock Plus plugin in Firefox. I suspect if your members use the ABP plugin, they may wonder why pics on your site are suddenly not being shown.

CompuJonathan
06-03-2008, 05:20 PM
Just for what it's worth... BritePic stuff seems to be blocked natively with the AdBlock Plus plugin in Firefox. I suspect if your members use the ABP plugin, they may wonder why pics on your site are suddenly not being shown.

Ah, so thats why I couldn't see the demo. :D

Hornstar
06-03-2008, 08:21 PM
I see the two pics on the demo, but both are exactly the same o_O If this is because of FF then i'll wait until it does work in FF

iogames
06-03-2008, 09:38 PM
I don't understand... is this hack affects the pictures uploaded from who?

wWw.Fun2Wii.Com
06-03-2008, 11:51 PM
very nice

maxicep
06-04-2008, 06:17 AM
To do:

- Make links working with the images (Linked images don't work yet)
- Image resizing

Yes if these features are okay than i will appy this hack too.

M-Tuning
06-04-2008, 07:20 AM
I don't understand... is this hack affects the pictures uploaded from who?

all pictures posted with the [img] tag

David_R
06-04-2008, 08:12 AM
getting an account with britepic is very difficult task..

iogames
06-04-2008, 08:35 PM
all pictures posted with the [img] tag

no the uploaded pics in the post?

lasto
06-05-2008, 03:40 AM
be careful with adbrite as it shows ads and even allows trojans to be picked up on it pages.I used adbrite till people started complaining about the full page ads which wanted to infect their computers.

M-Tuning
06-05-2008, 07:52 AM
no the uploaded pics in the post?

The attachments?

No, only images posted with [img]

Mecho
06-05-2008, 11:43 AM
Great idea but as already a user mentioned Firefox blocked those images . also Kaspersky blocked the images in britepic.com too ...

any solution ?

M-Tuning
06-05-2008, 03:53 PM
No, i'm a afraid not.

it has to come from the creator from Adblock Pro and Kaspersky.

iogames
06-05-2008, 08:15 PM
be careful with adbrite as it shows ads and even allows trojans to be picked up on it pages.I used adbrite till people started complaining about the full page ads which wanted to infect their computers.

You tell me now :mad:

Added:

I did everything and it doesn't work :(

and how can I modify the class_bbcode to center all the images on the thread?

lasto
06-06-2008, 03:39 AM
adbrite will never be as good as adsense because it does`nt care what sites it shows as advertisments so long as it gets revenue.

check google for more on the trojan problem.

http://www.google.co.uk/search?source=ig&hl=en&rlz=&q=adbrite+trojan+ads&btnG=Google+Search&meta=

Endurer
06-06-2008, 03:40 PM
Thanks a lot mate.

iogames
06-11-2008, 10:33 PM
Upgrades?

M-Tuning
06-12-2008, 09:15 AM
You can use this code to center all pictures:

return '<center><script>
britepic_id="your_unique_britepic_id";
britepic_src="' . $link . '";
</script>
<script src="http://www.britepic.com/britepic.js"></script>
<noscript>
<img src="' . $link . '" alt="" />
</noscript></center>';Don't have an update for the other functions though

iogames
06-14-2008, 09:35 PM
I just see everything else just the no the Ad :'(

iogames
06-21-2008, 07:44 PM
Works with IE but can't see nothing on FF... now what? :confused:

M-Tuning
06-30-2008, 10:28 AM
It's probably Adblock..

Forum Lover
07-02-2008, 12:16 PM
Tagged. Will install if u can make it only for guest. Will it be possible?

BinaryTechZone
07-04-2008, 07:54 PM
When i installed the mod, the ad shows up fine like in the demo, but when using quick reply only, I get a blank page when i submit the post. i have to hit refresh to see the post. any idea what could cause this? I disabled it for now but would reallly like to use it.

Forum Lover
07-08-2008, 06:22 PM
u post a pic. then if u need to edit it.. u cant. how can i fix it?

Forum Lover
07-20-2008, 06:42 AM
Can any1 support thins mod please? simple bump, if its ok. :p

iogames
08-10-2008, 06:50 PM
IE7 works
FF no

MadK
08-10-2008, 09:31 PM
Ah, that sucks. I wanted to install this.

peterpigman
08-11-2008, 09:55 AM
Could this be modified to work with linkbucks?

Oh didn't read the whole thread.

m0nde
10-06-2008, 02:37 PM
Tagged. Will install if u can make it only for guest. Will it be possible?This is a good way to use this since most users will either be bothered by it showing up on every image inserted with an [img] tag or will have images disappear because of AdBlock.

M Shaker
08-17-2010, 02:37 PM
Thanks :)
Work with 3.8.4 :)

Installed