vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Code Not Working (https://vborg.vbsupport.ru/showthread.php?t=238006)

gemmagy 03-11-2010 11:20 AM

Code Not Working
 
I had a problem and most is back to working order with the exception of my banner ads.
Could someone please take at look at the code below and maybe tell me why they are not showing up.
They were originally in the top right hand corner and rotated. However, it's not showing anything at all now.
Any help anyone could give would be GREATLY appreciated. Thanking you so much in advance.....

<!-- logo -->
<a name="top"></a>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="left"><a href="index.php?"><img src="images/misc/ScribbleTalk.gif" border="0" alt="Scribble Talk" /></a></td>
<td align="right">
<script LANGUAGE="JavaScript">
<!-- Begin
var how_many_ads = 2;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
url=\"http://www.dpbolvw.net/click-1651344-805533\";
alt=\"www.++++Blick.com - Online Art Supplies\";
banner=\"http://www.afcyhf.com/image-1651344-805533\";
width=\"468\";
height=\"60\";
}
if (ad==2) {
url=\"http://www.arlenesteinberg.com\";
alt=\"www.arlenesteinberg.com - Beautiful Colored Pencil Paintings\";
banner=\"images/banners/ArleneSteinbergbanner.jpg\";
width=\"468\";
height=\"60\";
}
document.write('<right>');
document.write('<a href=\\\"' + url + '\\\" target=\\\"_blank\\\">');
document.write('<img src=\\\"' + banner + '\\\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\\\"' + alt + '\\\" border=0><br>');
document.write('</right>');
// End -->
</script>
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

kh99 03-11-2010 01:01 PM

Try this:

Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="left"><a href="index.php?"><img src="images/misc/ScribbleTalk.gif" border="0" alt="Scribble Talk" /></a></td>
<td align="right">
<script LANGUAGE="JavaScript">
<!-- Begin
var how_many_ads = 2;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
url="http://www.dpbolvw.net/click-1651344-805533";
alt="www.++++Blick.com - Online Art Supplies";
banner="http://www.afcyhf.com/image-1651344-805533";
width="468";
height="60";
}
if (ad==2) {
url="http://www.arlenesteinberg.com";
alt="www.arlenesteinberg.com - Beautiful Colored Pencil Paintings";
banner="images/banners/ArleneSteinbergbanner.jpg";
width="468";
height="60";
}
document.write('<right>');
document.write('<a href=\"' + url + '\" target=\"_blank\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('</a>');
document.write('</right>');
// End -->
</script>
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]


gemmagy 03-11-2010 01:24 PM

You Are The Best !!!!!!!!!!!!!
That Totally Worked...
Thank You Thank You Thank You..


All times are GMT. The time now is 03:35 AM.

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.00942 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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