...

View Full Version : Resolved Really simple ads program



Licken
09-09-2009, 11:32 PM
Should be easy for somebody who knows php. It just seems so cluttered to me or something. I dont know. I just cannot make it out for some reason. I'm only a beginner but I've done harder things. This is for forced ads feature on a freehost. The WHM plan name is 5GB100GB and the other plan is 10GB200GB. I want it on all users pages. Email we will say is youremail @ yourdomain.com. header/footer path is /home/thtsite/public_html/tht/includes/ Anyone got the correct finished code? thanks a lot.


<?php
/**
* /scripts/postwwwacct configuaration for mod-layout ...
*/
$config = array(
'admine' => 'youremail@yourdomain.com', # Administration email address, MAKE SURE YOU CAN READ THESE EMAILS, THEY ARE VERY IMPORTANT
'timestamp' => DATE_RFC822, # Date format, for most people default is good
'httpd.conf' => '/usr/local/apache/conf/httpd.conf', # Location of httpd.conf to edit
'plans' => array( # Array of plans you want to apply ads on
'adsplan' # This is the WHM name of the plan(s) you want to put ads on
),
'ads' => array(
'header' => '/home/example/public_html/tht/includes/adsh.html', # HTML file containing the code for header ads - edit these so that they point to your THT directory.
'footer' => '/home/example/public_html/tht/includes/adsf.html' # HTML file containing the code for footer ads - edit these so that they point to your THT directory.
),
);
?>

Zangeel
09-10-2009, 12:00 AM
OK all that is, is a multi-dimensional array, you're going to at least have to say what the problem is, because as of now I have no idea.

Licken
09-10-2009, 12:13 AM
my question was how to fill it in with the info i provided

Licken
09-10-2009, 01:22 AM
the instructions said to edit the /scripts files to do what I just said in the first post.
- emails to go to said email
- show ads on said packages
- path to ads files
I just do not see where to edit the variables like:



'adsplan' # This is the WHM name of the plan(s) you want to put ads on
where would I put the WHM plan name of 5GB100GB and 10GB200GB ?

the header/footer are the only one i can figure out


'header' => '/home/example/public_html/tht/includes/adsh.html', # HTML file containing the code for header ads - edit these so that they point to your THT directory.
'footer' => '/home/example/public_html/tht/includes/adsf.html' # HTML file containing the code for footer ads - edit these so that they point to your THT directory.
just change example to my site username



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum