Results 1 to 2 of 2

Thread: Add a new page to @proxy script

  1. #1
    ProxySites.ca's Avatar
    ProxySites.ca is offline Newbie Net Builder
    Join Date
    Jul 2009
    Location
    ProxySites.ca
    Posts
    241
    Thanks
    29
    Thanked 3 Times in 3 Posts

    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
    UncleP's Avatar
    UncleP is offline The perfect face for radio
    Join Date
    Nov 2009
    Location
    Blighty
    Posts
    218
    Thanks
    20
    Thanked 91 Times in 61 Posts

    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...

  3. Thanked by:

    jakki (6 August, 2010), ProxySites.ca (3 May, 2010), Will.Spencer (9 May, 2010)

Similar Threads

  1. [WTT] Proxy List Submission Page / Home Page Trade
    By vectro in forum Links
    Replies: 2
    Last Post: 8 December, 2010, 04: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, 01: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
  •