Rotating Banners Showing Up on Macs but not PCs

Discussion forum for MOD Writers regarding MOD Development.
sportyguy209
Registered User
Posts: 47
Joined: Tue Jul 08, 2008 11:48 pm

Rotating Banners Showing Up on Macs but not PCs

Post by sportyguy209 » Thu Aug 14, 2008 10:23 am

I inserted a javascript for rotating banners into my main forum and they work fine when viewed on my Mac in Safari or Firefox, but the areas for the graphics show up as X's on everyone's pcs.

In the overall_header.html file I put the following script info above other javascripts:

Code: Select all

<!-- Rotating Banner Ads -->

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -

if (document.images) {
ads = new Array(4);
ads[0] = "images/banner1.jpg";
ads[1] = "images/banner2.jpg";
ads[2] = "images/banner3.jpg";
ads[3] = "images/banner4.jpg";
}

newplace = new Array(4);
newplace[0] = "http://skyhoundz.com/wordpress/"
newplace[1] = "https://secure.bluehost.com/~skyhound/cgi-bin/shopper.cgi?preadd=action&key=DDTCG"
newplace[2] = "http://skyhoundz.com/store.html"
newplace[3] = "http://hyperflite.com/"

var timer = null
var	 counter = 0

function banner() {
	    timer=setTimeout("banner()", 8000);
		counter++;
		if (counter >= 4)
		counter = 0;
		document.bannerad.src = ads[counter];
}

function gothere() {
		counter2 = counter;
		window.location.href = newplace[counter2];
}

// - End of JavaScript - -->
</SCRIPT>
Then, in the body of index_body.html I put the following:

Code: Select all

<BODY BGCOLOR="#FFFFFF" onload="banner()">

<a href="javascript:gothere()"><div align="center"><IMG SRC="webnichebanner.jpg" WIDTH="800" HEIGHT="100" BORDER="0" NAME="bannerad"></a></div>

<!-- End Rotating Banner Ads -->
You can view the forum here: http://skyhoundz.com/phpBB3/index.php

Any help would be much appreciated.

TIA

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Rotating Banners Showing Up on Macs but not PCs

Post by Brf » Thu Aug 14, 2008 11:25 am

What is the purpose of this?

Code: Select all

if (document.images) {
If that IF is false, it will leave the image names undefined.

sportyguy209
Registered User
Posts: 47
Joined: Tue Jul 08, 2008 11:48 pm

Re: Rotating Banners Showing Up on Macs but not PCs

Post by sportyguy209 » Thu Aug 14, 2008 12:09 pm

Thanks for your reply. Your reply makes sense to me.

This is where I got the script: http://www.webniche.com/rotate_banners/rotate.html

I don't know what the "if" is. I didn't write the script, am a newbie to all of this, but managed to copy and paste it into my forums and it worked on Macs.

Can you let me know what will work?

Thanks.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Rotating Banners Showing Up on Macs but not PCs

Post by Brf » Thu Aug 14, 2008 12:13 pm

Take out the IF line and the "}" following the assignments.

sportyguy209
Registered User
Posts: 47
Joined: Tue Jul 08, 2008 11:48 pm

Re: Rotating Banners Showing Up on Macs but not PCs

Post by sportyguy209 » Thu Aug 14, 2008 2:19 pm

OK, I'm not sure if I did made the modification you suggested correctly, but here is what I did.

In overall_header.html header I used the following script in the head above the body tag:

Code: Select all

<!-- Rotating Banner Ads -->

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -


ads = new Array(4);
ads[0] = "images/banner1.jpg";
ads[1] = "images/banner2.jpg";
ads[2] = "images/banner3.jpg";
ads[3] = "images/banner4.jpg";


newplace = new Array(4);
newplace[0] = "http://skyhoundz.com/wordpress/"
newplace[1] = "https://secure.bluehost.com/~skyhound/cgi-bin/shopper.cgi?preadd=action&key=DDTCG"
newplace[2] = "http://skyhoundz.com/store.html"
newplace[3] = "http://hyperflite.com/"

var timer = null
var	 counter = 0

function banner() {
	    timer=setTimeout("banner()", 8000);
		counter++;
		if (counter >= 4)
		counter = 0;
		document.bannerad.src = ads[counter];
}

function gothere() {
		counter2 = counter;
		window.location.href = newplace[counter2];
}

// - End of JavaScript - -->
</SCRIPT>
And I have inserted inside index_body.html:

Code: Select all

<BODY BGCOLOR="#FFFFFF" onload="banner()">

<a href="javascript:gothere()"><div align="center"><IMG SRC="webnichebanner.jpg" WIDTH="800" HEIGHT="100" BORDER="0" NAME="bannerad"></a></div>

<!-- End Rotating Banner Ads -->
I refreshed the style and template and, while it still works on my Mac, have been told the banners aren't visible on a pc.

The address of the forum is here: http://skyhoundz.com/phpBB3/index.php.

Sorry, but what am I doing wrong?

Thanks.

OBeer-WAN-Kenobi
Registered User
Posts: 38
Joined: Fri Jul 25, 2008 2:22 am

Re: Rotating Banners Showing Up on Macs but not PCs

Post by OBeer-WAN-Kenobi » Thu Aug 14, 2008 2:40 pm

It works fine on PC when using Firefox but not with IE. I'm not sure what the problem is but thought I'd mention that. I'm also interested in what's causing this as I have some rotating ads that have the exact opposite problem. They work fine in IE but not in Firefox. :?
Image

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Rotating Banners Showing Up on Macs but not PCs

Post by Brf » Thu Aug 14, 2008 3:19 pm

Where it says:

Code: Select all

NAME="bannerad">
make it

Code: Select all

NAME="bannerad" ID="bannerad">

OBeer-WAN-Kenobi
Registered User
Posts: 38
Joined: Fri Jul 25, 2008 2:22 am

Re: Rotating Banners Showing Up on Macs but not PCs

Post by OBeer-WAN-Kenobi » Thu Aug 14, 2008 3:25 pm

Ok, I got it to work in IE. I had this exact code pasted into a blank html file.

Code: Select all

<!-- Rotating Banner Ads -->

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript-->

if (document.images) {
ads = new Array(4);
ads[0] = "http://skyhoundz.com/phpBB3/images/banner1.jpg";
ads[1] = "http://skyhoundz.com/phpBB3/images/banner2.jpg";
ads[2] = "http://skyhoundz.com/phpBB3/images/banner3.jpg";
ads[3] = "http://skyhoundz.com/phpBB3/images/banner4.jpg";
}

newplace = new Array(4);
newplace[0] = "http://skyhoundz.com/wordpress/"
newplace[1] = "https://secure.bluehost.com/~skyhound/cgi-bin/shopper.cgi?preadd=action&key=DDTCG"
newplace[2] = "http://skyhoundz.com/store.html"
newplace[3] = "http://hyperflite.com/"

var timer = null
var    counter = 0

function banner() {
       timer=setTimeout("banner()", 8000);
      counter++;
      if (counter >= 4)
      counter = 0;
      document.bannerad.src = ads[counter];
}

function gothere() {
      counter2 = counter;
      window.location.href = newplace[counter2];
}

// - End of JavaScript - -->
</SCRIPT>
<BODY BGCOLOR="#FFFFFF" onload="banner()">

<a href="javascript:gothere()"><div align="center"><IMG SRC="http://skyhoundz.com/phpBB3/images/webnichebanner.jpg" WIDTH="800" HEIGHT="100" BORDER="0" NAME="bannerad"></a></div>

<!-- End Rotating Banner Ads -->
I had to define the paths better because it's obviously not running on your server but my desktop...
the only think I changed besides the pathes was:
Before you had:

Code: Select all

<!-- Beginning of JavaScript -
I changed it to:

Code: Select all

<!-- Beginning of JavaScript-->
Not sure if that was the problem but hey, it works. :D
Image

sportyguy209
Registered User
Posts: 47
Joined: Tue Jul 08, 2008 11:48 pm

Re: Rotating Banners Showing Up on Macs but not PCs

Post by sportyguy209 » Thu Aug 14, 2008 10:24 pm

I'm a newbie with all this coding, but I'm having no luck at all getting the images to appear on my friends' pcs. Here are the addresses I've used: http://skyhoundz.com/test.html, http://skyhoundz.com/test2.html, http://skyhoundz.com/phpBB3/index.php, and http://skyhoundz.com/phpBB3/viewforum.php?f=10. All show up fine on my Mac in Safari, Firefox, and on my iPhone.

Here is the code I'm using:

Code: Select all

<!-- Rotating Banner Ads -->

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript-->


ads = new Array(4);
ads[0] = "http://skyhoundz.com/phpBB3/images/banner1.jpg";
ads[1] = "http://skyhoundz.com/phpBB3/images/banner2.jpg";
ads[2] = "http://skyhoundz.com/phpBB3/images/banner3.jpg";
ads[3] = "http://skyhoundz.com/phpBB3/images/banner4.jpg";


newplace = new Array(4);
newplace[0] = "http://skyhoundz.com/wordpress/"
newplace[1] = "https://secure.bluehost.com/~skyhound/cgi-bin/shopper.cgi?preadd=action&key=DDTCG"
newplace[2] = "http://skyhoundz.com/store.html"
newplace[3] = "http://hyperflite.com/"

var timer = null
var    counter = 0

function banner() {
       timer=setTimeout("banner()", 8000);
      counter++;
      if (counter >= 4)
      counter = 0;
      document.bannerad.src = ads[counter];
}

function gothere() {
      counter2 = counter;
      window.location.href = newplace[counter2];
}

<!-- End of JavaScript -->

</SCRIPT>

<BODY BGCOLOR="#FFFFFF" onload="banner()">

<a href="javascript:gothere()"><div align="center"><IMG SRC="http://skyhoundz.com/phpBB3/images/banner1.jpgg" WIDTH="800" HEIGHT="100" BORDER="0" NAME="bannerad"></a></div>

<!-- End Rotating Banner Ads -->
I've also tried it with this code:

Code: Select all

<!-- Rotating Banner Ads -->

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript-->

if (document.images) {
ads = new Array(4);
ads[0] = "http://skyhoundz.com/phpBB3/images/banner1.jpg";
ads[1] = "http://skyhoundz.com/phpBB3/images/banner2.jpg";
ads[2] = "http://skyhoundz.com/phpBB3/images/banner3.jpg";
ads[3] = "http://skyhoundz.com/phpBB3/images/banner4.jpg";
}

newplace = new Array(4);
newplace[0] = "http://skyhoundz.com/wordpress/"
newplace[1] = "https://secure.bluehost.com/~skyhound/cgi-bin/shopper.cgi?preadd=action&key=DDTCG"
newplace[2] = "http://skyhoundz.com/store.html"
newplace[3] = "http://hyperflite.com/"

var timer = null
var    counter = 0

function banner() {
       timer=setTimeout("banner()", 8000);
      counter++;
      if (counter >= 4)
      counter = 0;
      document.bannerad.src = ads[counter];
}

function gothere() {
      counter2 = counter;
      window.location.href = newplace[counter2];
}

<!-- End of JavaScript -->

</SCRIPT>

<BODY BGCOLOR="#FFFFFF" onload="banner()">

<a href="javascript:gothere()"><div align="center"><IMG SRC="http://skyhoundz.com/phpBB3/images/banner1.jpgg" WIDTH="800" HEIGHT="100" BORDER="0" NAME="bannerad"></a></div>

<!-- End Rotating Banner Ads -->
I've tried it with the javascript in the header as well, but I don't think it has to be located there. And, as you can see from my urls above, I've tried it on a simple page of html as well as in my forum page.

Please tell me I'm missing a comma, or something stupid somewhere...:-)

Thanks for any help you can provide.
Last edited by sportyguy209 on Fri Aug 15, 2008 12:30 am, edited 1 time in total.

sportyguy209
Registered User
Posts: 47
Joined: Tue Jul 08, 2008 11:48 pm

Re: Rotating Banners Showing Up on Macs but not PCs

Post by sportyguy209 » Thu Aug 14, 2008 11:34 pm

I was just told that the two test files http://skyhoundz.com/test.html and http://skyhoundz.com/test2.htmldisplayed the banners on a pc, but not on a pc through aol, but neither worked with my forums.:-(

Any ideas? I'm puzzled, not that takes a great deal of effort here...:-)

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Rotating Banners Showing Up on Macs but not PCs

Post by Brf » Fri Aug 15, 2008 11:21 am

You still didnt try this:
Brf wrote:Where it says:

Code: Select all

NAME="bannerad">
make it

Code: Select all

NAME="bannerad" ID="bannerad">

sportyguy209
Registered User
Posts: 47
Joined: Tue Jul 08, 2008 11:48 pm

Re: Rotating Banners Showing Up on Macs but not PCs

Post by sportyguy209 » Fri Aug 15, 2008 12:27 pm

I thought I tried that yesterday and was told it wasn't working, but to be sure, here is my current banner code all on my index_body.html page at http://skyhoundz.com/phpBB3/:

Code: Select all

<!-- Rotating Banner Ads -->

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript-->

if (document.images) {
ads = new Array(4);
ads[0] = "http://skyhoundz.com/phpBB3/images/banner1.jpg";
ads[1] = "http://skyhoundz.com/phpBB3/images/banner2.jpg";
ads[2] = "http://skyhoundz.com/phpBB3/images/banner3.jpg";
ads[3] = "http://skyhoundz.com/phpBB3/images/banner4.jpg";
}

newplace = new Array(4);
newplace[0] = "http://skyhoundz.com/wordpress/"
newplace[1] = "https://secure.bluehost.com/~skyhound/cgi-bin/shopper.cgi?preadd=action&key=DDTCG"
newplace[2] = "http://skyhoundz.com/store.html"
newplace[3] = "http://hyperflite.com/"

var timer = null
var    counter = 0

function banner() {
       timer=setTimeout("banner()", 8000);
      counter++;
      if (counter >= 4)
      counter = 0;
      document.bannerad.src = ads[counter];
}

function gothere() {
      counter2 = counter;
      window.location.href = newplace[counter2];
}

<!-- End of JavaScript -->

</SCRIPT>

<BODY BGCOLOR="#FFFFFF" onload="banner()">

<a href="javascript:gothere()"><div align="center"><IMG SRC="http://skyhoundz.com/phpBB3/images/banner1.jpgg" WIDTH="800" HEIGHT="100" BORDER="0" NAME="bannerad" ID="bannerad"></a></div>

<!-- End Rotating Banner Ads -->
.

And, here is the code for a different page:

Code: Select all

<!-- INCLUDE overall_header.html -->

<p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF -->



<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
	<!-- IF S_DISPLAY_SEARCH -->
		<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_USER_LOGGED_IN --> &bull; <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> &bull; <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
	<!-- ENDIF -->
	<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
</ul>
<!-- ENDIF -->

</HEAD>

<!-- Rotating Banner Ads -->

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript-->

if (document.images) {
ads = new Array(4);
ads[0] = "http://skyhoundz.com/phpBB3/images/banner1.jpg";
ads[1] = "http://skyhoundz.com/phpBB3/images/banner2.jpg";
ads[2] = "http://skyhoundz.com/phpBB3/images/banner3.jpg";
ads[3] = "http://skyhoundz.com/phpBB3/images/banner4.jpg";
}

newplace = new Array(4);
newplace[0] = "http://skyhoundz.com/wordpress/"
newplace[1] = "https://secure.bluehost.com/~skyhound/cgi-bin/shopper.cgi?preadd=action&key=DDTCG"
newplace[2] = "http://skyhoundz.com/store.html"
newplace[3] = "http://hyperflite.com/"

var timer = null
var    counter = 0

function banner() {
       timer=setTimeout("banner()", 8000);
      counter++;
      if (counter >= 4)
      counter = 0;
      document.bannerad.src = ads[counter];
}

function gothere() {
      counter2 = counter;
      window.location.href = newplace[counter2];
}

<!-- End of JavaScript -->

</SCRIPT>

<BODY BGCOLOR="#FFFFFF" onload="banner()">

<a href="javascript:gothere()"><div align="center"><IMG SRC="http://skyhoundz.com/phpBB3/images/banner1.jpgg" WIDTH="800" HEIGHT="100" BORDER="0" NAME="bannerad" ID="bannerad"></a></div>

<!-- End Rotating Banner Ads -->


<!-- INCLUDE forumlist_body.html -->

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
	<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
	<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
		<fieldset class="quick-login">
			<label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" />  
			<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
			<!-- IF S_AUTOLOGIN_ENABLED -->
				| <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
			<!-- ENDIF -->
			<input type="submit" name="login" value="{L_LOGIN}" class="button2" />
		</fieldset>
	</form>
<!-- ENDIF -->

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
	<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
	<h3>{L_BIRTHDAYS}</h3>
	<p><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <strong>{BIRTHDAY_LIST}</strong><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF NEWEST_USER -->
	<h3>{L_STATISTICS}</h3>
	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->
.

And here is my page and code without the if statement http://skyhoundz.com/phpBB3/viewforum.php?f=10:

Code: Select all

<!-- INCLUDE overall_header.html -->
<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->

</HEAD>
<!-- Rotating Banner Ads -->

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript-->

ads = new Array(4);
ads[0] = "http://skyhoundz.com/phpBB3/images/banner1.jpg";
ads[1] = "http://skyhoundz.com/phpBB3/images/banner2.jpg";
ads[2] = "http://skyhoundz.com/phpBB3/images/banner3.jpg";
ads[3] = "http://skyhoundz.com/phpBB3/images/banner4.jpg";

newplace = new Array(4);
newplace[0] = "http://skyhoundz.com/wordpress/"
newplace[1] = "https://secure.bluehost.com/~skyhound/cgi-bin/shopper.cgi?preadd=action&key=DDTCG"
newplace[2] = "http://skyhoundz.com/store.html"
newplace[3] = "http://hyperflite.com/"

var timer = null
var    counter = 0

function banner() {
       timer=setTimeout("banner()", 8000);
      counter++;
      if (counter >= 4)
      counter = 0;
      document.bannerad.src = ads[counter];
}

function gothere() {
      counter2 = counter;
      window.location.href = newplace[counter2];
}

<!-- End of JavaScript -->

</SCRIPT>

<BODY BGCOLOR="#FFFFFF" onload="banner()">

<a href="javascript:gothere()"><div align="center"><IMG SRC="http://skyhoundz.com/phpBB3/images/banner1.jpgg" WIDTH="800" HEIGHT="100" BORDER="0" NAME="bannerad" ID="bannerad"></a></div>

<!-- End Rotating Banner Ads -->


<h2><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>

<!-- IF FORUM_DESC or MODERATORS or U_MCP -->
<p>
	<!-- NOTE: remove the style="display: none" when you want to have the forum description on the forum body -->
	<!-- IF FORUM_DESC --><span style="display: none">{FORUM_DESC}<br /></span><!-- ENDIF -->
	<!-- IF MODERATORS --><strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->:</strong> {MODERATORS}<!-- ENDIF -->
</p>
<!-- ENDIF -->

<!-- IF S_FORUM_RULES -->
	<div class="rules">
		<div class="inner"><span class="corners-top"><span></span></span>

		<!-- IF U_FORUM_RULES -->
			<a href="{U_FORUM_RULES}">{L_FORUM_RULES}</a>
		<!-- ELSE -->
			<strong>{L_FORUM_RULES}</strong><br />
			{FORUM_RULES}
		<!-- ENDIF -->

		<span class="corners-bottom"><span></span></span></div>
	</div>
<!-- ENDIF -->

<!-- IF S_HAS_SUBFORUM -->
<!-- IF not S_IS_BOT and U_MARK_FORUMS -->
<ul class="linklist">
	<li class="rightside"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></li>
</ul>
<!-- ENDIF -->
	<!-- INCLUDE forumlist_body.html -->
<!-- ENDIF -->

<!-- IF S_DISPLAY_POST_INFO or PAGINATION or TOTAL_POSTS or TOTAL_TOPICS -->
	<div class="topic-actions" <!-- IF S_HAS_SUBFORUM -->style="margin-top: 2em;"<!-- ENDIF -->>

	<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
		<div class="buttons">
			<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->"><a href="{U_POST_NEW_TOPIC}" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->"><span></span><!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF --></a></div>
		</div>
	<!-- ENDIF -->

	<!-- IF S_DISPLAY_SEARCHBOX -->
		<div class="search-box">
			<form method="post" id="forum-search" action="{S_SEARCHBOX_ACTION}">
			<fieldset>
				<input class="inputbox search tiny" type="text" name="keywords" id="search_keywords" size="20" value="{L_SEARCH_FORUM}" onclick="if (this.value == '{LA_SEARCH_FORUM}') this.value = '';" onblur="if (this.value == '') this.value = '{LA_SEARCH_FORUM}';" />
				<input class="button2" type="submit" value="{L_SEARCH}" />
				<input type="hidden" value="{FORUM_ID}" name="fid[]" />
			</fieldset>
			</form>
		</div>
	<!-- ENDIF -->

	<!-- IF PAGINATION or TOTAL_POSTS or TOTAL_TOPICS -->
		<div class="pagination">
			<!-- IF not S_IS_BOT and U_MARK_TOPICS --><a href="{U_MARK_TOPICS}" accesskey="m">{L_MARK_TOPICS_READ}</a> &bull; <!-- ENDIF --><!-- IF TOTAL_TOPICS -->{TOTAL_TOPICS}<!-- ENDIF -->
			<!-- IF PAGE_NUMBER -->
				<!-- IF PAGINATION --> &bull; <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE --> &bull; {PAGE_NUMBER}<!-- ENDIF -->
			<!-- ENDIF -->
		</div>
	<!-- ENDIF -->

	</div>
<!-- ENDIF -->

<!-- IF S_NO_READ_ACCESS -->

	<div class="panel">
		<div class="inner"><span class="corners-top"><span></span></span>
		<strong>{L_NO_READ_ACCESS}</strong>
		<span class="corners-bottom"><span></span></span></div>
	</div>

	<!-- IF not S_USER_LOGGED_IN -->

		<form action="{S_LOGIN_ACTION}" method="post">

		<div class="panel">
			<div class="inner"><span class="corners-top"><span></span></span>

			<div class="content">
				<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>

				<fieldset class="fields1">
				<dl>
					<dt><label for="username">{L_USERNAME}:</label></dt>
					<dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="inputbox autowidth" /></dd>
				</dl>
				<dl>
					<dt><label for="password">{L_PASSWORD}:</label></dt>
					<dd><input type="password" tabindex="2" id="password" name="password" size="25" class="inputbox autowidth" /></dd>
					<!-- IF S_AUTOLOGIN_ENABLED --><dd><label for="autologin"><input type="checkbox" name="autologin" id="autologin" tabindex="3" /> {L_LOG_ME_IN}</label></dd><!-- ENDIF -->
					<dd><label for="viewonline"><input type="checkbox" name="viewonline" id="viewonline" tabindex="4" /> {L_HIDE_ME}</label></dd>
				</dl>
				<dl>
					<dt>&nbsp;</dt>
					<dd><input type="submit" name="login" tabindex="5" value="{L_LOGIN}" class="button1" /></dd>
				</dl>
				</fieldset>
			</div>

			<span class="corners-bottom"><span></span></span></div>
		</div>

		</form>

	<!-- ENDIF -->

<!-- ENDIF -->

<!-- BEGIN topicrow -->

	<!-- IF not topicrow.S_TOPIC_TYPE_SWITCH and not topicrow.S_FIRST_ROW -->
		</ul>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

	<!-- IF topicrow.S_FIRST_ROW or not topicrow.S_TOPIC_TYPE_SWITCH -->
		<div class="forumbg<!-- IF topicrow.S_TOPIC_TYPE_SWITCH --> announcement<!-- ENDIF -->">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt><!-- IF S_DISPLAY_ACTIVE -->{L_ACTIVE_TOPICS}<!-- ELSEIF topicrow.S_TOPIC_TYPE_SWITCH and topicrow.S_TOPIC_TYPE gt 1 -->{L_ANNOUNCEMENTS}<!-- ELSE -->{L_TOPICS}<!-- ENDIF --></dt>
					<dd class="posts">{L_REPLIES}</dd>
					<dd class="views">{L_VIEWS}</dd>
					<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
				</dl>
			</li>
		</ul>
		<ul class="topiclist topics">
	<!-- ENDIF -->

		<li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">
			<dl class="icon" style="background-image: url({topicrow.TOPIC_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
				<dt<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{topicrow.TOPIC_FOLDER_IMG_ALT}"><!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF --><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
					<!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED --><a href="{topicrow.U_MCP_QUEUE}">{topicrow.UNAPPROVED_IMG}</a> <!-- ENDIF -->
					<!-- IF topicrow.S_TOPIC_REPORTED --><a href="{topicrow.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF --><br />
					<!-- IF topicrow.PAGINATION --><strong class="pagination"><span>{topicrow.PAGINATION}</span></strong><!-- ENDIF -->
					<!-- IF topicrow.ATTACH_ICON_IMG -->{topicrow.ATTACH_ICON_IMG} <!-- ENDIF -->{L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL} {L_POSTED_ON_DATE} {topicrow.FIRST_POST_TIME}
				</dt>
				<dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
				<dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
				<dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
					<a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <br />{L_POSTED_ON_DATE} {topicrow.LAST_POST_TIME}</span>
				</dd>
			</dl>
		</li>

	<!-- IF topicrow.S_LAST_ROW -->
			</ul>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

<!-- BEGINELSE -->
	<!-- IF S_IS_POSTABLE -->
	<div class="panel">
		<div class="inner"><span class="corners-top"><span></span></span>
		<strong>{L_NO_TOPICS}</strong>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->
<!-- END topicrow -->

<!-- IF S_SELECT_SORT_DAYS and not S_DISPLAY_ACTIVE -->
	<form method="post" action="{S_FORUM_ACTION}">
		<fieldset class="display-options">
			<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
			<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
			<label>{L_DISPLAY_TOPICS}: {S_SELECT_SORT_DAYS}</label>
			<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
			<label>{S_SELECT_SORT_DIR} <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
		</fieldset>
	</form>
	<hr />
<!-- ENDIF -->

<!-- IF .topicrow and not S_DISPLAY_ACTIVE -->
	<div class="topic-actions">
		<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
		<div class="buttons">
			<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->"><a href="{U_POST_NEW_TOPIC}"><span></span><!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF --></a></div>
		</div>
		<!-- ENDIF -->

		<!-- IF PAGINATION or TOTAL_POSTS or TOTAL_TOPICS -->
		<div class="pagination">
			<!-- IF TOTAL_TOPICS and not S_IS_BOT and U_MARK_TOPICS --><a href="{U_MARK_TOPICS}">{L_MARK_TOPICS_READ}</a> &bull;  <!-- ENDIF -->
			<!-- IF TOTAL_POSTS and not NEWEST_USER --> {TOTAL_POSTS}<!-- ELSEIF TOTAL_TOPICS and not NEWEST_USER --> {TOTAL_TOPICS}<!-- ENDIF -->
			<!-- IF TOTAL_USERS -->{TOTAL_USERS}<!-- ENDIF -->
			<!-- IF PAGINATION --> &bull;  <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a>
			 &bull;  <span>{PAGINATION}</span><!-- ELSE --> &bull; {PAGE_NUMBER}<!-- ENDIF -->
		</div>
		<!-- ENDIF -->
	</div>
<!-- ENDIF -->

<!-- INCLUDE jumpbox.html -->

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3>
	<p>{LOGGED_IN_USER_LIST}</p>
<!-- ENDIF -->

<!-- IF S_DISPLAY_POST_INFO -->
	<h3>{L_FORUM_PERMISSIONS}</h3>
	<p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->
Does either page work on a pc?

Thanks.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Rotating Banners Showing Up on Macs but not PCs

Post by Brf » Fri Aug 15, 2008 1:03 pm

Why is the

Code: Select all

if (document.images) {
back in there?

sportyguy209
Registered User
Posts: 47
Joined: Tue Jul 08, 2008 11:48 pm

Re: Rotating Banners Showing Up on Macs but not PCs

Post by sportyguy209 » Fri Aug 15, 2008 1:25 pm

I have tried getting the ramdom banners to work any way that I can, and unfortunately, not having a pc, trying things is a lengthy process. So, the first page referenced has the "if statement" because that is what was in the original script I copied: http://skyhoundz.com/phpBB3/index.php, however the second page referenced does not have the "if statement": http://skyhoundz.com/phpBB3/viewforum.php?f=10.

I'm just trying to see if anything will work.

Does either page show up the rotating banners? Did I remove the "if statement" correctly?

Thanks.

OBeer-WAN-Kenobi
Registered User
Posts: 38
Joined: Fri Jul 25, 2008 2:22 am

Re: Rotating Banners Showing Up on Macs but not PCs

Post by OBeer-WAN-Kenobi » Fri Aug 15, 2008 5:02 pm

No it's still not working.

I am currently running rotating banner adds on my forum but with a different script. Either way the thing that jumps out at me is that I have them added to overall_header.html

Maybe you can give that a try? Get rid of them out of where you have it now and open overall_header.html
Find:

Code: Select all

<div class="navbar">
And add your script (the one that worked in your test.html files) just above that.
Image

Locked

Return to “[3.0.x] MOD Writers Discussion”