The Arcive of vBulletin Modifications Site. |
|
BritePic Integration Details »»
|
|||||||||||||||||||||||||
![]() 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="" />'; 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>'; Credits to veenuisthebest for the idea & Milad for the XHTML 1.0 Transitional code change. Please click Install when you like this hack! Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
In order to be XHTML 1.0 Transitional compatible, the code must be like this:
PHP Code:
|
|
#4
|
||||
|
||||
|
Thanks, changed it.
Now i only have to see how I can get links and resizing to work with BritePic. |
|
#5
|
|||
|
|||
|
If you can do this for guests only this would be an amazing hack!
|
|
#6
|
||||
|
||||
|
That shouldn't be too hard.
|
|
#7
|
||||
|
||||
|
Your unique BritePic ID = site ?? (( www.7lanet.com/vb )) ??
|
|
#8
|
||||
|
||||
|
No, you will get the id ( a number ) when you register on adbrite/BritePic
|
|
#9
|
||||
|
||||
|
Parse error: syntax error, unexpected T_STRING in /home/joker/public_html/vb/includes/class_bbcode.php on line 1952
|
|
#10
|
||||
|
||||
|
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.
|
![]() |
|
|