Ads.... UNCLE UNCLE!

Status
Not open for further replies.

sabbok

New Member
Messages
12
Reaction score
0
Points
0
Ok UNCLE, I can't get these stupid links to work. I've tried the .zip php lines, I get a syntax error. I try the single line php code, syntax error, I've tried putting both the coporate and the advanced on there, nothing, tried pretty much everything within my scope of ability and can't get that thing to work worth beans.

I'm just trying to put that code directly into some pre-existing code for the main template of my site so I can hit 90% of the public pages.

Any idea's anyone? I'm using e107 CVS.
 

sabbok

New Member
Messages
12
Reaction score
0
Points
0
Parse error: syntax error, unexpected T_STRING in /backup/home/sabbok/public_html/e107_plugins/googleAdsense_menu/googleAdsense_menu.php on line 13

Sorry, no dice. No matter if I create a page with just this on it, or inbed the advanced or coporate code in it, I get some form of syntax error, unexpected T_STRING.

in this case:

document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

is the Line of code that it's freaking out about. In others its:

if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

So I'm kinda lost:( :dunno:
 

sabbok

New Member
Messages
12
Reaction score
0
Points
0
Full code is here for this block:

<?php
$head = "HEADER";
$code = "
<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>



<BR><BR>
";
$ns -> tablerender($head, $code);
?>


 

Chris S

Retired
Messages
2,055
Reaction score
1
Points
38
try this

PHP:
<?php
$head = "HEADER";
$code = '
<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>



<BR><BR>
';
$ns -> tablerender($head, $code);
?>
 

sabbok

New Member
Messages
12
Reaction score
0
Points
0
Thanks for the java code, but for some reason now I can't see my site lol

Can anyone tell me if they can see http://heroic.exofire.net ?

I can get this from work just fine, but from home it's just a white page. Tried IE and Firefox.
 

Marko

New Member
Messages
90
Reaction score
0
Points
0
sabbok said:
Thanks for the java code, but for some reason now I can't see my site lol

Can anyone tell me if they can see http://heroic.exofire.net ?

I can get this from work just fine, but from home it's just a white page. Tried IE and Firefox.
F**k! this happened to mee too on many PHP enabled pages
 

Marko

New Member
Messages
90
Reaction score
0
Points
0
Hmmmm... I had some problems on php pages, but I just found how to resolve this

1. Copy address in Address box (in this window)
2. Open Tools / Manage Add-ons...
3. Disable all add-ons that you think you do not need or try to disabling them 1 by 1 to find out the fool
4. If you cannot find try to switch in Show: box to " add-ons that have been used by internet exlorer" and disable them ALL
5. Open new internet explorer window an paste the address to go back to this page
I hope this helps (All the credit goes to me lol)
 

sabbok

New Member
Messages
12
Reaction score
0
Points
0
Damn,

Well it was a good suggestion, unfortunately it didn't do anything, and I suspected it wouldn't cause I can see this page ok:(

Disabled all in there, nothing, reset browser settings, notta, deleted all cache, nothin, reset DNS cache, nothin. Just hope I don't get suspended before monday:( Almost had my advertising thing figured out.
 
Last edited:
Status
Not open for further replies.
Top