Thread: [TUT] Making a new PAGE [TUT]

Results 1 to 5 of 5
  1. #1 [TUT] Making a new PAGE [TUT] 
    Web Devloper Dimitry's Avatar
    Join Date
    Apr 2009
    Age
    28
    Posts
    607
    Thanks given
    10
    Thanks received
    10
    Rep Power
    27
    Go into your Admincp, klick Styles & Templates, klick Style Manager, klick your template that your'e working with, hover your mouse to the dropdown menu and klick, klick Add Template

    Give your template a name:
    Like (dimitryisawesome)
    and add this code to it:

    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    <title>$vboptions[bbtitle]</title>
    $headinclude
    </head>
    <body>
    $header
    $navbar
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
     <td class="tcat">Tutorials</td>
    </tr>
    <tr>
     <td class="alt1">
    <!-- html code here -->
    PUT THE HTML CODE YOU WANT HERE
    <!-- end of html code -->
    </td>
    </tr>
    </table>
    $footer
    </body>
    </html>
    Search For:

    Code:
    <!-- html code here -->
    Then add stuff like:

    Code:
    <p>Hello, this is my gallery</p><br>
    <img src="yourimages" border="0"></img><br>
    <p>^^My favorite picture^^
    You can allways do anything else

    Now save it, were nothing with that
    Now we are going to make the PHP file
    Open notepad
    add this code in it:

    Code:
    <?php  
      
    // ####################### SET PHP ENVIRONMENT ###########################
    error_reporting(E_ALL & ~E_NOTICE);  
      
    // #################### DEFINE IMPORTANT CONSTANTS #######################
    define('NO_REGISTER_GLOBALS', 1);  
    define('THIS_SCRIPT', 'privacy'); // change this depending on your filename 
      
    // ################### PRE-CACHE TEMPLATES AND DATA ######################  
    // get special phrase groups  
    $phrasegroups = array(  
      
    );  
      
    // get special data templates from the datastore  
    $specialtemplates = array(  
      
    );  
      
    // pre-cache templates used by all actions  
    $globaltemplates = array(  
        'privacytemplate',  
    );  
      
    // pre-cache templates used by specific actions  
    $actiontemplates = array(  
      
    );  
      
    // ######################### REQUIRE BACK-END ############################  
    require_once('./global.php');  
      
    // #######################################################################
    // ######################## START MAIN SCRIPT ############################
    // #######################################################################
      
    $navbits = array();  
    $navbits[$parent] = 'name';  
      
    $navbits = construct_navbits($navbits);  
    eval('$navbar = "' . fetch_template('navbar') . '";');  
    eval('print_output("' . fetch_template('templatename') . '");'); 
      
    ?>
    Note: Allways put this on the root directory of the forum otherwise you will have problems with the images
    Find:

    Code:
    define('THIS_SCRIPT', 'scriptname'); // change this depending on your filename
    Change privacy (keep the ' ') to the name of your file (without .php after it)

    Find:

    Code:
    $navbits[$parent] = 'name';
    Change name (keep the ' ') to whatever you want

    Find:

    Code:
    eval('print_output("' . fetch_template('templatename') . '");');
    Change templatename (keep the ' ') to the template you just made

    Save it to whatever you want (Make sure its the same name as in edit 1 (scriptname) and with .php after it)

    Upload it to your webserver and your'e done!

    Need a forum or custom mod/skin? Go Here!
    Reply With Quote  
     

  2. #2  
    Mops the streets
    Streetwave's Avatar
    Join Date
    Mar 2009
    Age
    29
    Posts
    3,445
    Thanks given
    481
    Thanks received
    1,114
    Rep Power
    5000
    You can also add a page via the Make new module/page

    Spoiler for Love:







    Reply With Quote  
     

  3. #3  
    Web Devloper Dimitry's Avatar
    Join Date
    Apr 2009
    Age
    28
    Posts
    607
    Thanks given
    10
    Thanks received
    10
    Rep Power
    27
    Yes, but alot of people dont know how to code from just scratch so..

    Need a forum or custom mod/skin? Go Here!
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Oct 2010
    Posts
    31
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Nice job.
    Reply With Quote  
     

  5. #5  
    Web Devloper Dimitry's Avatar
    Join Date
    Apr 2009
    Age
    28
    Posts
    607
    Thanks given
    10
    Thanks received
    10
    Rep Power
    27
    Thanks Hopefully people will use this and thank my post

    Need a forum or custom mod/skin? Go Here!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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