Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Really simple ads program

    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 Code:
    <?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.
        
    ),
    );
    ?>
    Last edited by Licken; 09-10-2009 at 12:38 AM.

  • #2
    Regular Coder Zangeel's Avatar
    Join Date
    Oct 2007
    Location
    public_html/
    Posts
    638
    Thanks
    17
    Thanked 79 Times in 79 Posts
    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.
    PHP Code:
    $aString is_string((string)array()) ? true false// true :D 
    [/CENTER]

  • #3
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    my question was how to fill it in with the info i provided

  • #4
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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:

    Code:
    '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
    Code:
            '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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •