Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > General Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
HowTo: Add Adbrite ads to a sidebar
Langly
Join Date: Dec 2005
Posts: 115

 

Show Printable Version Email this Page Subscription
Langly Langly is offline 02-11-2006, 10:00 PM

I use the https://vborg.vbsupport.ru/showthread.php?t=91888 for the left column and add the code to the style. I use Extremepixels iskin black so it might be in a different place than it is located in iskin black. I put the code at the beginning of the 'header' part of the style. Be sure to adjust the location of the code so it will show up right on your page. It is located in the first two lines.

Code:
<div style="position:absolute; width:145px; height:240px; left:40px; top:300px; text-align:center;">
				 <TABLE cellpadding="0" cellspacing="0" width="100%" height="100%">
				 <TR>
					<TD  width="100%" height="100%" valign="middle" align="center">

					<script type="text/javascript" src="http://4.adbrite.com/mb/jscript_array.php?sid=123456"></script>
					<script type="text/javascript">
					if (window.AdBrite)
					{
					if (AdBrite.length > 4) 
					{ 
						a = 4;
					}
					else
					{
						a = AdBrite.length
					}
					for ( x = 0; x < a; x++ ) {
					var AdBriteURLArray = AdBrite[x][0].split('/');

					document.write('<a  class="adHeadline2"  onmouseover="window.status=\' ' + AdBriteURLArray[2] + ' \'; return true;" onmouseout="window.status=\' \'; return true;"  href="' + AdBrite[x][1] + '" target="_blank"><b><span class="adHeadline2">' + AdBrite[x][2] + '</span></b></a><br><a  class="adText2"  onmouseover="window.status=\' ' + AdBriteURLArray[2] + ' \'; return true;" onmouseout="window.status=\' \'; return true;"  href="' + AdBrite[x][1] + '" target="_blank"><span class="adText2">' + AdBrite[x][3]  + '</span></a><br><br>');
					}
					}
					</script>
					
					</TD>
				 </TR>
				 </TABLE>
				</div>
				</div>
				<script>
				var a=50;
				pos = 5;
				TO = null;
				function shake(object,speed)
				{ 
				  obj = eval(object)
				 
				  if (pos == 5)
				  {
					pos = -5;
				  }
				  else
				  {
					pos = 5;
				  }  
				  obj.style.left = parseInt(obj.style.left) + pos;
				  obj.style.top = parseInt(obj.style.top) + pos;
				  obj = object
				  sp = speed
				  TO = setTimeout("shake(obj,sp)",speed);
				}
				function stopshake()
				{
					clearTimeout(TO);
					document.getElementById("floatingbox").style.top = '82';
					document.getElementById("floatingbox").style.left = '381';
				}
				function closefloating()
				{
				   document.getElementById("floatingbox").style.display = 'none';
				}
				function show_oio()
				{
				   document.getElementById("floatingbox").style.display = '';
				   shake(document.getElementById("floatingbox"),75);
				   setTimeout("stopshake()",1000);
				}
				Drag.init(document.getElementById("floatingbox"));
				</script>
I hope this helps and people find it of use.


Reply With Quote
  #2  
Old 07-19-2006, 12:14 PM
saree saree is offline
 
Join Date: Aug 2002
Location: AbUdHaBi
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the help great way to use adbrite.

thanks and keep up the good work.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08349 seconds
  • Memory Usage 2,198KB
  • Queries Executed 15 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete