vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - BritePic Integration (https://vborg.vbsupport.ru/showthread.php?t=181384)

M-Tuning 06-02-2008 10:00 PM

BritePic Integration
 

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_...ource=britepic

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

Code:

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

Code:

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 for the idea & Milad for the XHTML 1.0 Transitional code change.

Please click Install 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:

PHP Code:

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

Quote:

Originally Posted by logicuk (Post 1539704)
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

Quote:

Originally Posted by Tungsten (Post 1539779)
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

Quote:

Originally Posted by M-Tuning (Post 1539691)
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

Quote:

Originally Posted by iogames (Post 1540045)
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

Quote:

Originally Posted by M-Tuning (Post 1540383)
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

Quote:

Originally Posted by iogames (Post 1540987)
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

Quote:

Originally Posted by lasto (Post 1541223)
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?sourc...e+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:

Code:

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

Quote:

Originally Posted by Forum Lover (Post 1564769)
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


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01538 seconds
  • Memory Usage 1,790KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete