Pages: [1]   Go Down
  Print  
Author Topic: Tip: How to add a new page in aurora script!  (Read 875 times)
cARRIE
Administrator
Hero Member
*****
Offline Offline

Posts: 1458



View Profile WWW
« on: July 31, 2010, 02:44:04 PM »

This has already been asked several times, and here's how it goes

1st
Create a page, eg page1.php, and put it in templates/myteme folder.

Page content goes like this

Code:
<?
$includes[content]="

eg "my funny games"

";
?>


2nd
Open includes/modules.php and find this line.
Code:
$module['home'] = array("Welcome To $settings[site_title]!","templates/$settings[template]/home.php",0);


Below this line create a new line such as this.

Code:
$module['page1'] = array("Welcome To PAGE1","templates/$settings[template]/page1.php",0);


That's it!

$module['page1'] = page id
"Welcome To PAGE1" = page title
templates/$settings[template]/page1.php = path to the page & page name

number at the end
0 = means the members and guests.
1 = if only for members.
7 = if only for the administrator.


If you want to add a new page in the root of the script or for example members folder, just change the path to page1.php.

Logged

Upgrade to an SDR 3
757jterrell
Administrator
Hero Member
*****
Offline Offline

Posts: 1637



View Profile WWW
« Reply #1 on: July 31, 2010, 03:18:35 PM »

There is also some brief explanations here:

http://auroraadmintraining.info/index.php/topic,373.0.html
Logged

gsbux
Full Member
***
Offline Offline

Posts: 185


View Profile
« Reply #2 on: July 31, 2010, 04:50:27 PM »

Very good explanations in both of the topics dear JT and Carrie,  thanks to both of you Smiley
Logged
sew77williams
Full Member
***
Offline Offline

Posts: 108


AuroraPlus


View Profile WWW
« Reply #3 on: November 11, 2011, 11:00:58 PM »

If I have more then one template can I list them right there?



like :google  $module['google']         =      array("Welcome To google","templates/$settings[template]/layout.php",0);

like :yahoo  $module['yahoo']         =      array("Welcome To yahoo","templates/$settings[template]/layout.php",0);

like :myspace  $module['myspace']         =      array("Welcome To PAGE1","templates/$settings[template]/layout.php",0);


like :goodnew  $module['goodnew']         =      array("Welcome To goodnew","templates/$settings[template]/layout.php",0);
Logged

Get a SDR 3 NOW at http://ptcfactory.info

The best and most up to date Aurora script in the market!!
Pages: [1]   Go Up
  Print  
 
Jump to: