1
Snitz
creating custom pages
  • 2006/8/6 23:00

  • Snitz

  • Just popping in

  • Posts: 1

  • Since: 2006/1/24


how can I create custom pages (html enabled) and link them in the menu?

2
Swain
Re: creating custom pages
  • 2006/8/7 0:23

  • Swain

  • Not too shy to talk

  • Posts: 198

  • Since: 2006/6/27


This gets a bit detailed, but the easiest way is to create them as a module. To do that you need to do the following (remove all //:

1) Create a file xoops_version.php called in a php or text editor such as Notepad as follows:

////$modversion['name'] = pagename;
//$modversion['version'] = 1.00;
//$modversion['description'] = page descripyion;
//$modversion['credits'] = "your name";
//$modversion['author'] = "Syour name";
//$modversion['dirname'] = "name of folder you will put it in //under /modules/";

//$modversion['hasAdmin'] = 0;
//$modversion['adminmenu'] = '';

//$modversion['hasMain'] = 1;

//?>

2) Create a file called index.php and place the following in it:

//require('header.php');

//include(XOOPS_ROOT_PATH.'/header.php');


?>

//print '';

//include(XOOPS_ROOT_PATH.'/footer.php');

?>

3) Create header.php:

//?php
//
//include "../../mainfile.php";

//?>

4) Create a folder named the same as you listed in step 1. Then put these files in it. Next go install it as a module.

Or you could get the modules Content, Tiny Content, Page Wrap, or a number of others.

3
shadow214
Re: creating custom pages
  • 2006/8/7 3:04

  • shadow214

  • Just popping in

  • Posts: 2

  • Since: 2006/7/20


i followed step by step but it doesnt appear in the module administration, did miss something?


1) Create a file xoops_version.php called in a php or text editor such as Notepad as follows:

$modversion['name'] = pagename;
$modversion['version'] = 1.00;
$modversion['description'] = page descripyion;
$modversion['credits'] = "your name";
$modversion['author'] = "Syour name";
$modversion['dirname'] = "home";

$modversion['hasAdmin'] = 0;
$modversion['adminmenu'] = '';

$modversion['hasMain'] = 1;

?>

2) Create a file called index.php and place the following in it:

require('header.php');

include(XOOPS_ROOT_PATH.'/header.php');


?>

print '';

include(XOOPS_ROOT_PATH.'/footer.php');

?>

3) Create header.php:


include "../../mainfile.php";

?>

4) Create a folder named the same as you listed in step 1. Then put these files in it. Next go install it as a module.

4
Swain
Re: creating custom pages
  • 2006/8/7 4:53

  • Swain

  • Not too shy to talk

  • Posts: 198

  • Since: 2006/6/27


Did you make sure that the directory was under modules? That is the only thing I think could go wrong.

Login

Who's Online

442 user(s) are online (372 user(s) are browsing Support Forums)


Members: 0


Guests: 442


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits