Jump to content

Your Opionon Please

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
byronwells

byronwells

    Learning Programmer

  • Members
  • PipPipPip
  • 58 posts
Alright Guys

I need a little bit of advice please... I am using a membership script called simplememberpro. At the moment I am in the process of chaning the layout and look of each page..

Here is what the original script looks like:
Simple Member Pro Membership System -

And here is what I have done so far:
Untitled Document

My first question is there any way that I can create a generic template page, so that the left side, and right sidebar parts are always displayed no matter what I am looking, no matter what page I go to..

At the moment each page that I go to has go it different layout. I dont mind creating the same page again and again.. But is there any way that I can save time

My second question if that can't be done.. I need to changed the following page to read the contactus.php and then have the contactus displayed correctly using the code, but have it in the right place.. In the middle underneath the red header..

<?php

include_once ("header.php");


// get contact page info from database

$q = "select * from ".$prefix."site_settings";
$v = $db->get_a_line($q);

$contact_page = $v['contact'];
$contact_page = stripslashes($contact_page);

// display contact page
$returncontent = preg_replace ("/\[\[(.*?)\]\]/e", "$$1", $contact_page);
$returncontent = preg_replace("/[$]/","$",$returncontent);
echo $returncontent;

include_once ("footer.php");

?>



Edited by James.H, 21 January 2010 - 04:21 AM.


#2
James.H

James.H

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 866 posts
You can have the same layout on every page by using PHP, HTML won't be able to do that.

What files are the left and right hand side bar in ? You need to call them in the code just like your doing with the header and footer.

#3
byronwells

byronwells

    Learning Programmer

  • Members
  • PipPipPip
  • 58 posts

James.H said:

You can have the same layout on every page by using PHP, HTML won't be able to do that.

What files are the left and right hand side bar in ? You need to call them in the code just like your doing with the header and footer.

There are in

L_sidebar.php
R_sidebar.php