Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: What's the quickest way to create a new page?

  1. #11

    Join Date
    Sep 2006
    Posts
    431

    Default

    Yes.

    For example, main.html contains content like this:

    <html>
    <head>
    <%ciss_lma%>
    </head>
    <body>
    Search For <%search_box%>
    blah blah . . lots of more contet just like the line above with <%_%>'s
    </body>
    </head>
    </text>

    When I copy this into my new page_155.html

    All I see is this:

    Search For

    But I don't see the actual search box that should be showing, or any of the other <%> variables
    Anyone who has a banana can eat it!

    From 0 to 6.0 in 3.5

  2. #12
    N9neBlood
    Guest

    Default

    Quote Originally Posted by Ringodestarr
    Yes.

    For example, main.html contains content like this:

    <html>
    <head>
    <%ciss_lma%>
    </head>
    <body>
    Search For <%search_box%>
    blah blah . . lots of more contet just like the line above with <%_%>'s
    </body>
    </head>
    </text>

    When I copy this into my new page_155.html

    All I see is this:

    Search For

    But I don't see the actual search box that should be showing, or any of the other <%> variables
    This is problem was exactly the case I was referring to with my initial question when I asked:
    Quote Originally Posted by N9neBlood
    How can I change this variable
    PHP Code:
    $_page['name_index']     = 13
    so that is points to a file in a different directory?

    Thanks in advance
    The answer is in Smoge's response, but because I still suck at php and I didn't feel confident to start creating new function parameters, I had to find another work around. In my case it worked, but then mine was a something simple, I needed it to point to a script for a games console that was contained in its own folder along with all the games it came with. For what you need I'm not sure. Also remember you need to insert the header and footer parts of your template so that you will see them in the design layout of your page. I myself still need to learn how to create a new function to call from other templates myself as my site expands, work arounds like what I used don't allow for the flexibility for use of other templates such as the one you speak off. Sorry I could help more, but you may find Smoge's response helps depending on your level of experience with php.

  3. #13
    N9neBlood
    Guest

    Default

    Just for further clarity should others need it, this is what you would put in your newly created page - page_newpage.html

    HTML Code:
    __include _header.html__
    
    <div class="db_1_block">
    		<div class="caption">
    			<div class="title">__page_header_text__</div>
    		</div>
    		<div class="container">
    			<div class="clear_both"></div>
    ### In here is where you would add the content of you want to see in 
    your page eg:  <p align=justify>Hello world!!</p>#####
    			</div>
    			<div class="clear_both"></div>
    		<div class="clear_both"></div>
    		</div>
    		<div class="foot">
    </div>
    	</div>
    	<div class="clear_both"></div>
    __include _footer.html__
    			</div>

  4. #14

    Join Date
    Sep 2006
    Posts
    431

    Default

    Thanks! I think there is a lot of good info here. It gives me hope lol.

    I still will need to figure out how to take it that one step further. php is very new to me. Most of what I have learned has been through speed reading on line tutorials and here on modmysite.

    But thanks for taking time to explain all of this, it gives me a good start and an understanding of what is going on.
    Anyone who has a banana can eat it!

    From 0 to 6.0 in 3.5

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. database table ProfileDesc to create a NEW page
    By Diddy in forum Dolphin General Discussion v6.00 and above
    Replies: 2
    Last Post: 07-12-2008, 08:06 PM
  2. Replies: 5
    Last Post: 04-05-2007, 11:45 AM
  3. Does anyone know how to create
    By delirious in forum Language Files / Language Database
    Replies: 1
    Last Post: 11-17-2006, 12:58 AM
  4. create new page that calls another PHP w/ require statement?
    By archinects in forum General Troubleshooting
    Replies: 11
    Last Post: 07-04-2005, 09:51 AM
  5. create new site
    By Jack Kubel in forum General Troubleshooting
    Replies: 1
    Last Post: 06-28-2005, 04:07 AM

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
  •