View Full Version : Google Ads
shadey
02-06-2007, 06:03 AM
I hadn't been paying attention, but all of a sudden starting Feb 1 my adsense is not showing up. Does this mean they deleted it without notice or is something in my code not working....how and where do I add my own Yahoo or something.
Thanks!
shadey
02-07-2007, 07:15 AM
anyone else having this problem????
shadey
02-12-2007, 09:23 PM
So Google wrote me back and said it was because of Adult material....is there a way I can remove the adult videos from the site?
NetworkTown.Net
02-14-2007, 05:54 AM
Use adult filter? Try some querys like DELETE FROM * media WHERE title LIKE sexy
Im not exactly sure that will work but the code is something like that try a google search for something like that.
shadey
02-14-2007, 12:29 PM
Use adult filter? Try some querys like DELETE FROM * media WHERE title LIKE sexy
Im not exactly sure that will work but the code is something like that try a google search for something like that.
Thanks, do you know which files to find this in? Google will reinstate me as long as no ads show in the 'babe' 'sexy' group.
klavixs
02-14-2007, 11:27 PM
yah that suggesttion "DELETE FROM * media WHERE title LIKE sexy " is not an effitient one cuase it very well may delete videos without actuall sexual content and not get all sex content.
i would suugest the following
DELETE FROM media WHERE adult = '1'
that will delete all adult material and none of the nonadult.
HOPE i helped
peace
.:klavixs:.
shadey
02-15-2007, 06:38 AM
I really do not want to delete the adult/sexy content, I just need to not have the adsense show.
is there anyway to add an "if or else" like with the category or something? Maybe in the template file.
If someone could create this sort of mod, I would gladly give them a small donation. Though I am surprised
this has not happened to anyone else yet.
aseaofflames
02-22-2007, 10:04 PM
open play.php
find
$resultconfig = @mysql_query("SELECT mName, mDescription, location, mviews, mId, mCategory1 FROM media WHERE mId = $id LIMIT 1");
change it to
$resultconfig = @mysql_query("SELECT mName, mDescription, location, mviews, mId, mCategory1, adult FROM media WHERE mId = $id LIMIT 1");
find
$game_name5 = "$row[0]";
$description = "$row[1]";
$location = "$row[2]";
$plays = "$row[3]";
$id = "$row[4]";
$categoryid = "$row[5]";
?>
change it to
$game_name5 = "$row[0]";
$description = "$row[1]";
$location = "$row[2]";
$plays = "$row[3]";
$id = "$row[4]";
$categoryid = "$row[5]";
$adult = "$row[6]";
?>
open templates/play_content.tpl
find
<?php include 'ads/120x240.tpl'; ?>
change it to
<?php if($adult!=='1') include 'ads/120x240.tpl'; ?>
find
<?php include 'ads/120x240.tpl'; ?>
change it to
<?php if($adult!=='1') include 'ads/120x240.tpl'; ?>
find
<?php include 'ads/468x60.tpl'; ?>
change it to
<?php if($adult!=='1') include 'ads/468x60.tpl'; ?>
Done :)
shadey
02-23-2007, 08:27 AM
Thank you, going to give it a whirl :)
shadey
03-01-2007, 05:51 AM
Thank you for this, I just tried it, does it not show the video or is it just not show the ad? When I did it it just does not show the video.....anyway to get it to not show the ad? Or did I do something wrong?
aseaofflames
03-02-2007, 10:46 AM
it should just not show the ad...
if you haven't modified your pages in any other way the code for the should look like this:
play.php
<?php
///////////////
// FastFreeMedia Free Edition Copyright Martin Krohn V.6
///////////////
$ip = $_SERVER['REMOTE_ADDR'];
$querynumber = "0";
require_once("config.php");
$time3 = time();
ob_start("ob_gzhandler");
session_start();
require_once("functions/cookie.php");
require_once("functions/cache_update.php");
$id = $_GET['id'];
$id2 = $_GET['id'];
if(@mysql_num_rows(mysql_query("SELECT Date FROM gamestoday WHERE Date = '".date("dmy")."'")) < 1){
@mysql_query("INSERT INTO gamestoday VALUES ('".date("dmy")."', 0)") ; }
@mysql_query("UPDATE gamestoday SET GamesPlayed = (GamesPlayed+1) WHERE Date = '".date("dmy")."'");
@mysql_query("UPDATE media SET mviews = (mviews+1) WHERE mId = '".$id."'");
$resultconfig = @mysql_query("SELECT mName, mDescription, location, mviews, mId, mCategory1, adult FROM media WHERE mId = $id LIMIT 1");
$row = @mysql_fetch_row($resultconfig);
$game_name5 = "$row[0]";
$description = "$row[1]";
$location = "$row[2]";
$plays = "$row[3]";
$id = "$row[4]";
$categoryid = "$row[5]";
$adult = "$row[6]";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- Script for select box changes -->
<script type="text/javascript">
<!--<![CDATA[
function switchme(){
if(document.getElementById('games').value != ''){
window.location = document.getElementById('games').value;
}
}
//]]>-->
</script>
<title>
<?php echo "$site_title - $game_name5"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="<?php $template_path?>styles.css" rel="stylesheet" type="text/css">
<?php
include("templates/header.tpl");
include("templates/play_content.tpl");
include("templates/footer.tpl");
?>
</body></html>
templates/play_content.tpl
<table align="center" class="page" cellspacing="0" cellpadding="0" width="97%">
<tr valign="top">
<?php include 'top_videos.tpl';
include 'latest_videos.tpl';
// include 'top_rated.tpl';
include 'stats.tpl'; ?>
</td>
<td width="15"><img alt="" src="templates/images/clear.gifclear.gif" width="10" /></td>
<td valign="top"> <table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="100%" id="table2">
<thead>
<tr>
<td class="tcat"> <span class="smallfont"><strong>» <?php echo"$game_name5"; ?></strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_5" style="">
<tr>
<td class="alt1"> <strong>Title:</strong> <?php echo"$game_name5"; ?> <br>
<strong>Player:</strong> You are player number <?php echo"$plays"; ?> <br />
<strong>Description:</strong> <?php echo"$description"; ?> <br>
<br>
<strong>
<form action="rating.php" method="post">
Rate this game on a scale of 1-5 : </strong>
<input type=hidden name=gameid value=<?php echo"$id2"; ?>>
<select name="score" id="score">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5" selected>5</option>
</select>
<input type="submit" name="submit" value="Rate!" />
</form></td>
</tr>
</tbody>
</table>
<div><img src="templates/images/clear.gif" height="10" alt="" />
<table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="100%" id="table3">
<thead>
<tr>
<td class="tcat"> <span class="smallfont"><strong>» Random Videos</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_16" style="">
<tr>
<td class="alt1"> <table border="0">
<tr>
<td width="120" rowspan="3" align="center"> <?php if($adult!=='1') include 'ads/120x240.tpl'; ?>
<br>
<?php if($adult!=='1') include 'ads/120x240.tpl'; ?> </td>
<td align="center"> </td>
<td width="80" rowspan="3" align="center"> </td>
</tr>
<tr>
<td width="500" align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="400">
<param name="movie" value="<?php echo"$location"; ?>">
<param name="quality" value="high">
<embed src="<?php echo"$location"; ?>" width=500
height=400 align="center" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
<form name="mycopy" action="">
<br>
<b>Blog Code: </b>
<input name="block" type="text" class="text" id="block" value='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="400"><param name="movie" value="<?php echo"$location"; ?>"><param name="quality" value="high"> <embed src="<?php echo"$location"; ?>" width=500 height=400 align="center" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object> Tons of FREE videos at <a href=<?php echo"$site_url"?>><?php echo"$site_title"?></a>' size="50" onclick="this.select();">
<br>
<b>Link Code: </b>
<input name="link" type="text" class="text" id="link" value='<?php echo"http://$site_url/play-$id2.html";?>' size="50" onclick="this.select();">
</form>
</center> </td>
</tr>
<tr>
<td align="center"> <?php if($adult!=='1') include 'ads/468x60.tpl'; ?> </td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<div><img src="templates/images/clear.gif" height="10" alt="" /><br>
<table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="100%" id="table9">
<thead>
<tr>
<td class="tcat"> <span class="smallfont"><strong>» Random Videos</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_17" style="">
<tr>
<td class="alt1"> <?php include 'play_random.tpl'; ?>
<td width="15"><img alt="" src="templates/images/clear.gif" width="10" /></td>
</tr>
</table>
<p> <br />
</div>
</div>
</div>
btw does just the video not show up or does the whole player not show up?
shadey
03-02-2007, 11:06 AM
Hi.
The video doesn't show, but the ads showed. I will redo it and see what happens and leave it that way :)
Thanks for your help!
shadey
03-04-2007, 08:08 AM
is this for the free version?
shadey
03-04-2007, 08:09 AM
see this is what it is doing
http://www.fdyz.com/play-1987.html
I copied your code from above..... actually, it does it on all videos.....
aseaofflames
03-04-2007, 10:24 PM
hmm it worked on my site when i tested it (yes it is the free version) if you are using the beta version ill work on something as soon as i get in.
shadey
03-05-2007, 05:21 AM
Hi aseaofflames....that is the free version :)
aseaofflames
03-05-2007, 11:15 AM
you could try making the ads not show in your adult catagory (cat. 25)
if this is what you want, start with the original pages (without the changes i gave you)
change templates/play_content.tpl to:
<table align="center" class="page" cellspacing="0" cellpadding="0" width="97%">
<tr valign="top">
<?php include 'top_videos.tpl';
include 'latest_videos.tpl';
// include 'top_rated.tpl';
include 'stats.tpl'; ?>
</td>
<td width="15"><img alt="" src="templates/images/clear.gif" width="10" /></td>
<td valign="top"> <table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="100%" id="table2">
<thead>
<tr>
<td class="tcat"> <span class="smallfont"><strong>» <?php echo"$game_name5"; ?></strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_5" style="">
<tr>
<td class="alt1"> <strong>Title:</strong> <?php echo"$game_name5"; ?> <br>
<strong>Player:</strong> You are player number <?php echo"$plays"; ?> <br />
<strong>Description:</strong> <?php echo"$description"; ?> <br>
<br>
<strong>
<form action="rating.php" method="post">
Rate this game on a scale of 1-5 : </strong>
<input type=hidden name=gameid value=<?php echo"$id2"; ?>>
<select name="score" id="score">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5" selected>5</option>
</select>
<input type="submit" name="submit" value="Rate!" />
</form></td>
</tr>
</tbody>
</table>
<div><img src="templates/images/clear.gif" height="10" alt="" />
<table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="100%" id="table3">
<thead>
<tr>
<td class="tcat"> <span class="smallfont"><strong>» Random Videos</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_16" style="">
<tr>
<td class="alt1"> <table border="0">
<tr>
<td width="120" rowspan="3" align="center"> <?php if($categoryid!=="25") include 'ads/120x240.tpl'; ?>
<br>
<?php if($categoryid!=="25") include 'ads/120x240.tpl'; ?> </td>
<td align="center"> </td>
<td width="80" rowspan="3" align="center"> </td>
</tr>
<tr>
<td width="500" align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="400">
<param name="movie" value="<?php echo"$location"; ?>">
<param name="quality" value="high">
<embed src="<?php echo"$location"; ?>" width=500
height=400 align="center" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
<form name="mycopy" action="">
<br>
<b>Myspace Code: </b>
<input name="myspace" type="text" class="text" id="block" value='<embed src="<?php echo"$location"; ?>" width=500 height=400 align="center" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> <br>Tons of FREE videos at <a href=<?php echo"$site_url"?>><?php echo"$site_title"?></a>' size="50" onclick="this.select();">
<br>
<b>Blog Code: </b>
<input name="block" type="text" class="text" id="block" value='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="400"><param name="movie" value="<?php echo"$location"; ?>"><param name="quality" value="high"> <embed src="<?php echo"$location"; ?>" width=500 height=400 align="center" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object><br> Tons of FREE videos at <a href=<?php echo"$site_url"?>><?php echo"$site_title"?></a>' size="50" onclick="this.select();">
<br>
<b>Link Code: </b>
<input name="link" type="text" class="text" id="link" value='<?php echo"http://$site_url/play-$id2.html";?>' size="50" onclick="this.select();">
</form>
</center> </td>
</tr>
<tr>
<td align="center"> <?php if($categoryid!=="25") include 'ads/468x60.tpl'; ?> </td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<div><img src="templates/images/clear.gif" height="10" alt="" /><br>
<table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="100%" id="table9">
<thead>
<tr>
<td class="tcat"> <span class="smallfont"><strong>» Random Videos</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_17" style="">
<tr>
<td class="alt1"> <?php include 'play_random.tpl'; ?>
<td width="15"><img alt="" src="templates/images/clear.gif" width="10" /></td>
</tr>
</table>
<p> <br />
</div>
</div>
</div>
examples:
with ads (cat. 27): http://www.aseaofflames.com/videos/play.php?id=1252test
without ads (cat. 25): http://www.aseaofflames.com/videos/play.php?id=695test
shadey
03-05-2007, 11:36 AM
Thank you so much! Pefect!
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.