Results 1 to 2 of 2

Thread: Add a new page to @proxy script

  1. #1
    Join Date
    Jul 2009
    Location
    ProxySites.ca
    Posts
    241

    Add a new page to @proxy script

    Hey guys,

    I am looking to setup my advertising page on the @proxy script. I want the same layout and everything just different text within the body.

    How can I do this?

    Thank you

  2. #2

    Instruction for adding new pages to the @proxy script.

    Lets assume that you want a page called advertise.php on your site so the url would be proxysites.ca/advertise.php

    First you need to make a file advertise.php with your prefered editor (notepad/frontpage/dreamweaver etc.) and the content should be:
    Code:
    <?php
    require('./includes/config.php');
    require('./includes/functions.php');
    require('./includes/template.php');
    require('./includes/database.php');
    $db = new Database();
    if (!$db->connect($db_host, $db_user, $db_pass, $db_name))
        pretty_death($db->error);
     
    $tpl = new Template('templates/advertise');
    $cats = get_categories();
    print_categories_in_menu($cats);
     
    $tpl->parse_and_out(
        '_root_',
        array(
            'title' => ' - Advertise',
            )
        );
    ?>
    This should be saved/copied to your "public_html" (base) directory.


    Then you need to make another file advertise.tpl and it's content should be:
    Code:
    <!-- INCLUDE header.tpl -->
     
    Your page content goes here
     
    <!-- INCLUDE footer.tpl -->
    (replace "Your page content goes here" with the required page content)
    This file should be saved/copied to the "public_html/templates" directory. Then just link to it as normal and you have your new page which will display in the same style as your whole site. Job done

    This will work for any new pages that are needed, just change the bolded text as appropriate, i.e. privacy policy, terms page etc.
    (Copied from this post, credit to OP)
    If I can't be a good example, I'll just have to be a terrible warning...

Similar Threads

  1. [WTT] Proxy List Submission Page / Home Page Trade
    By vectro in forum Links
    Replies: 2
    Last Post: 8 December, 2010, 05:13 AM
  2. How to place ads on proxified page of php proxy script
    By Will.Spencer in forum Web Proxies
    Replies: 8
    Last Post: 31 December, 2008, 02:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

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