Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: phpads.  (Read 4484 times)

0 Members and 1 Guest are viewing this topic.

ohnine

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
phpads.
« on: June 06, 2006, 02:32:46 am »

before i get a 'omfg search the board you stupid a$'

i have.

i am using the 'noggin2' (i think sp is proper) theme and i still can't seem to add a banner to my page.

following the instructions i've found (there's two different sets, and one totally different for phpads: per my search) i can add the js code i wish to use in template.html in either:

a)right below 'body'
b)under 'custom header'

doesn't work. no banners show.

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{LANG_DIR}">
<head>

<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/noginnskins1/style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head><body>

<!--Wrapper begin -->
{CUSTOM_HEADER}
<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://www.chemikalsites.com/ads/adjs.php?n=" + phpAds_random);
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referer)
      document.write ("&amp;referer=" + escape(document.referer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.chemikalsites.com/ads/adclick.php?n=a97e6a1d' target='_blank'><img src='http://www.chemikalsites.com/ads/adview.php?n=a97e6a1d' border='0' alt=''></a></noscript>

is what i've added.. again .. per the 'instructions' i've been able to find via search.

any idea/help/non-omfg you are so stupid i'm going to smarta$ insult you (like i've seen in the other 3 billion 'banner?' threads) ??

any assistance is certainly appreciated.

and remember!

'read. comprehend. post.'

not

'read. i know everything, i'm not wasting my time. post some bullshit'

tnks

dave
« Last Edit: June 06, 2006, 05:34:26 am by TranzNDance »
Logged

ohnine

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: phpads.
« Reply #1 on: June 06, 2006, 02:55:38 am »

btw.. i apologize for my 'tone' but most of the respones i find fall into the 'you're so stupid, i'm so smart figure it out yourself dumbass' category.

i am a dumbass on this stuff.

and this is the 'support forum'

so. yea.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: phpads.
« Reply #2 on: June 06, 2006, 03:16:20 am »

Have you looked at the source code for a web page on your site to see if the JavaScript shows up?

A link to your site might be useful.
Logged

ohnine

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: phpads.
« Reply #3 on: June 06, 2006, 03:33:01 am »

the code shows up:

Code: [Select]
<link rel="stylesheet" href="themes/noginnskins1/style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head><body>


<center><?php

    
if (@include(getenv('DOCUMENT_ROOT').'/ads/phpadsnew.inc.php')) {

        if (!isset(
$phpAds_context)) $phpAds_context = array();

        
$phpAds_raw view_raw (''1'''''0'$phpAds_context);

        echo 
$phpAds_raw['html'];

    }

?>

</center>

the path should be correct (i don't even get an 'error' so i'm assuming so)

link: (this is an adult site) http://www.chemikalsites.com/gallery/
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: phpads.
« Reply #4 on: June 06, 2006, 03:52:38 am »

I don't understand the code you pasted.  Where did you see that code?

Looking at your main site's HTML, I don't see the phpads code on there.  Do you have it "live" right now?
Logged

ohnine

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: phpads.
« Reply #5 on: June 06, 2006, 04:28:34 am »

i guess what i'm really asking here is:

"where can i find a phpads integration bit on here that actually works."

there's tons of threads with smartass answers (not you paver, i thank you for your assistance already) .. and some others with code that doesn't work

Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: phpads.
« Reply #6 on: June 06, 2006, 04:53:09 am »

I have never used PHPads, so I don't know how it works.  And most Coppermine supporters will not help with non-Coppermine questions since that's beyond our call.

If I add this code after {CUSTOM_HEADER} in template.html (similar to what you did):
Code: [Select]
<script type="text/javascript">alert("Greetings, Hu-man.");</script>
I get a pop-up box when I load any page on my site, as I coded, and if I look at my HTML, I see the code in the correct place.

So that's how you add any JavaScript to your site.

Basically, if the code you add works on a regular HTML page, it will work in Coppermine's template.html.

You might check topics discussing Google Adsense since I believe it uses similar code (although I don't really know, not having used that myself as well).
Logged

ohnine

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: phpads.
« Reply #7 on: June 06, 2006, 05:33:15 am »

badman!

worked.

Code: [Select]
<SCRIPT language=JavaScript>
/*
 +---------------------------------------------------------+
 | Ad Simple                 Copyright www.YugDesign.com   |
 +---------------------------------------------------------+
 | This program may be used and hosted free of charge by   |
 |anyone for personal purpose as long as this copyright    |
 |notice remains intact.                                   |
 +---------------------------------------------------------+
*/

var img_width = "468";
var img_height = "60";
var img_title = "Click Here";


var ad=new Array()
//insert here your images src
ad[0]='http://www.fiveonetree.org/chemikalsites/banners/bustybt_480x80_02.gif';
ad[1]='http://www.fiveonetree.org/chemikalsites/banners/sexyjj_480x80_02.gif';
ad[2]='http://www.fiveonetree.org/chemikalsites/banners/wb_468x80_01.gif';


var links=new Array()
//insert here your links
links[0]='http://clicktrack.wnu.com/clicktrack.php?co_code=m49&rs_code=XXX&target=ww2.bustybrandytaylor.com/epoch1/';
links[1]='http://clicktrack.wnu.com/clicktrack.php?co_code=m49&rs_code=XXX&target=ww2.sexyjelenajensen.com';
links[2]='http://clicktrack.wnu.com/clicktrack.php?co_code=m49&rs_code=XXX&target=http://www.wbgirls.com/affiliates/index69.php';


var xy=Math.floor(Math.random()*ad.length);
document.write('<a href="'+links[xy]+'" target="_blank"><img src="'+ad[xy]+'" width="'+img_width+'" height="'+img_height+'" alt="'+img_title+'"></a>');
</SCRIPT>

thank you very much for your patience and assistance! :)

dave
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.