Ads in vBulletin

Status
Not open for further replies.

HawtSauce

New Member
Messages
72
Reaction score
0
Points
0
I added the x10 ad advanced ad code into the footer template of my vBulletin skin, but it doesn't show up on the page anywhere. If somebody could teach me how to do it or do it for me, that would be awesome. Also, I have less that 48 hours to do this so, I would appreciate some speedy help.
 

HawtSauce

New Member
Messages
72
Reaction score
0
Points
0
Hrrrm, I must be really dumb or I am just missing something. I added that line of code, for the Advanced thing before the ad code where I want the adds to appear on my board. Here is what my footer template looks like.

Code:
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />
<?php include('http://staff.x10hosting.com/adCode.php?ad=advanced'); ?> 
<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script> <script language='JavaScript' type='text/javascript'> <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language='JavaScript' type='text/javascript' src='"); document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random); document.write ("&amp;what=zone:3&amp;target=_blank"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer)); document.write ("'><" + "/script>"); //--> </script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a915c788' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:3&amp;n=a915c788' border='0' alt=''></a></noscript>
$spacer_close
<!-- /content area table -->

<form action="$vboptions[forumhome].php" method="get">
	
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
	<if condition="$show['quickchooser']">
		<td class="tfoot">
			<select name="styleid" onchange="switch_id(this, 'style')">
		    	<optgroup label="$vbphrase[quick_style_chooser]">
					$quickchooserbits
				</optgroup>
			</select>
		</td>
	</if>
	<if condition="$show['languagechooser']">
		<td class="tfoot">
			<select name="langid" onchange="switch_id(this, 'lang')">
		    	<optgroup label="$vbphrase[quick_language_chooser]">
					$languagechooserbits
				</optgroup>
			</select>
		</td>
	</if>
	<td class="tfoot" align="$stylevar[right]" width="100%">
		<div class="smallfont">
			<strong>
		    	<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
		    	<a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
		    	<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
		    	<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
		    	<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
		    	<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
		    	<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
			</strong>
		</div>
	</td>
</tr>
</table>

<br />

<div align="center">
	<div class="smallfont" align="center">
	<!-- Do not remove this copyright notice -->
	$vbphrase[powered_by_vbulletin]
	<!-- Do not remove this copyright notice -->
	</div>
	
	<div class="smallfont" align="center">
	<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
	$cronimage
	<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
	
	$vboptions[copyrighttext]
	</div>
</div>

</form>

<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php" method="post" name="dstform">
	<input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
	var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
	var utcOffset = new Date().getTimezoneOffset() / 60;
	if (Math.abs(tzOffset + utcOffset) == 1)
	{	// Dst offset is 1 so its changed
		document.forms.dstform.submit();
	}
//-->
</script>
<!-- / auto DST correction code -->

</if>
<script type="text/javascript">
<!--
	// Main vBulletin Javascript Initialization
	vBulletin_init();
//-->
</script>
 
Last edited by a moderator:

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Opps I edited your post.. My bad.. Haha

Anyways use this:

Code:
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />

<?php include('http://staff.x10hosting.com/adCode.php?ad=advanced'); ?> 

$spacer_close
<!-- /content area table -->

<form action="$vboptions[forumhome].php" method="get">
	
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
	<if condition="$show['quickchooser']">
		<td class="tfoot">
			<select name="styleid" onchange="switch_id(this, 'style')">
		    	<optgroup label="$vbphrase[quick_style_chooser]">
					$quickchooserbits
				</optgroup>
			</select>
		</td>
	</if>
	<if condition="$show['languagechooser']">
		<td class="tfoot">
			<select name="langid" onchange="switch_id(this, 'lang')">
		    	<optgroup label="$vbphrase[quick_language_chooser]">
					$languagechooserbits
				</optgroup>
			</select>
		</td>
	</if>
	<td class="tfoot" align="$stylevar[right]" width="100%">
		<div class="smallfont">
			<strong>
		    	<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
		    	<a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
		    	<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
		    	<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
		    	<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
		    	<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
		    	<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
			</strong>
		</div>
	</td>
</tr>
</table>

<br />

<div align="center">
	<div class="smallfont" align="center">
	<!-- Do not remove this copyright notice -->
	$vbphrase[powered_by_vbulletin]
	<!-- Do not remove this copyright notice -->
	</div>
	
	<div class="smallfont" align="center">
	<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
	$cronimage
	<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
	
	$vboptions[copyrighttext]
	</div>
</div>

</form>

<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php" method="post" name="dstform">
	<input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
	var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
	var utcOffset = new Date().getTimezoneOffset() / 60;
	if (Math.abs(tzOffset + utcOffset) == 1)
	{	// Dst offset is 1 so its changed
		document.forms.dstform.submit();
	}
//-->
</script>
<!-- / auto DST correction code -->

</if>
<script type="text/javascript">
<!--
	// Main vBulletin Javascript Initialization
	vBulletin_init();
//-->
</script>
 

tuan302

New Member
Messages
58
Reaction score
0
Points
0
NedreN said:
Opps I edited your post.. My bad.. Haha

Anyways use this:

Code:
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />

<?php include('http://staff.x10hosting.com/adCode.php?ad=advanced'); ?> 

$spacer_close
<!-- /content area table -->

<form action="$vboptions[forumhome].php" method="get">
	
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
	<if condition="$show['quickchooser']">
		<td class="tfoot">
			<select name="styleid" onchange="switch_id(this, 'style')">
		    	<optgroup label="$vbphrase[quick_style_chooser]">
					$quickchooserbits
				</optgroup>
			</select>
		</td>
	</if>
	<if condition="$show['languagechooser']">
		<td class="tfoot">
			<select name="langid" onchange="switch_id(this, 'lang')">
		    	<optgroup label="$vbphrase[quick_language_chooser]">
					$languagechooserbits
				</optgroup>
			</select>
		</td>
	</if>
	<td class="tfoot" align="$stylevar[right]" width="100%">
		<div class="smallfont">
			<strong>
		    	<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
		    	<a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
		    	<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
		    	<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
		    	<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
		    	<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
		    	<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
			</strong>
		</div>
	</td>
</tr>
</table>

<br />

<div align="center">
	<div class="smallfont" align="center">
	<!-- Do not remove this copyright notice -->
	$vbphrase[powered_by_vbulletin]
	<!-- Do not remove this copyright notice -->
	</div>
	
	<div class="smallfont" align="center">
	<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
	$cronimage
	<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
	
	$vboptions[copyrighttext]
	</div>
</div>

</form>

<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php" method="post" name="dstform">
	<input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
	var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
	var utcOffset = new Date().getTimezoneOffset() / 60;
	if (Math.abs(tzOffset + utcOffset) == 1)
	{	// Dst offset is 1 so its changed
		document.forms.dstform.submit();
	}
//-->
</script>
<!-- / auto DST correction code -->

</if>
<script type="text/javascript">
<!--
	// Main vBulletin Javascript Initialization
	vBulletin_init();
//-->
</script>
Login to ACP
Click Templates manager /
Chose the skin which U want get Ads then Chose Edit templates then open Header inclu....
Paste code ads to top.
Save.
Done
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Or just save what I gave him..

Hmm.

Did you get it to work yet?
 

HawtSauce

New Member
Messages
72
Reaction score
0
Points
0
Well, NendreN, I took out the old stuff and put the new thing that you gave me into the footer box and it still doesn't work.
 

HawtSauce

New Member
Messages
72
Reaction score
0
Points
0
Don't mean to double post, but, by done I meant that I made you an admin, I didn't mean that I got the ads done. Sorry if you misunderstood, I DO still need your help.
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
*sigh*

I forgot all about this. I'm sooo sorry. I have to go now, as I'm being "told harshly" to get off the computer. I will do it in the morning tomorrow at school, if not, RIGHT after school. Sorry.
 

HawtSauce

New Member
Messages
72
Reaction score
0
Points
0
Don't worry, I don't mind if you forgot and thanks for offerering to do it torrorow. :)
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
I don't see where to edit the template/theme/style..

Which of these is it under?

Announcements

Announcement Manager
Add New Announcement


Moderation

Moderate Threads
Moderate Posts
Moderate Attachments
Moderate Events
Moderate Users


Statistics & Logs

Statistics
Control Panel Log
Moderator Log
Scheduled Task Log
Log Manager
 

HawtSauce

New Member
Messages
72
Reaction score
0
Points
0
Did you log in to the Admin Panel? I made you an admin so at the bottom right of the page, you should see an "admin" link. Click that and go to the styles manager and search around for the edit templates thingy.
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
NedreN said:
I don't see where to edit the template/theme/style..

Which of these is it under?

Announcements

Announcement Manager
Add New Announcement


Moderation

Moderate Threads
Moderate Posts
Moderate Attachments
Moderate Events
Moderate Users


Statistics & Logs

Statistics
Control Panel Log
Moderator Log
Scheduled Task Log
Log Manager

There is no styles editer.
 

HawtSauce

New Member
Messages
72
Reaction score
0
Points
0
Hrmmm, I made you an admin, I can't seem to figure out why you can't see the styles stuff. I PMed you my account for the forum, so you can use those login details and hopefully be able to fix it from my admin panel.
 
Status
Not open for further replies.
Top