1
keenedge
Can someone tell me how add pages
  • 2004/1/24 7:29

  • keenedge

  • Just popping in

  • Posts: 3

  • Since: 2004/1/24


How do I just add a new html page to xoops.

I jsut want to cut/paste some some html into a page and have it linked off the main menu. Seem so simple but I just cannot figure it it.

Thanks

2
Chado
Re: Can someone tell me how add pages
  • 2004/1/24 7:43

  • Chado

  • Not too shy to talk

  • Posts: 113

  • Since: 2003/6/6 7


There are several ways of doing it: Check out this entry on the Wiki for some answers. http://wiki.xoops.org/wakka.php?wakka=XoopsStaticContent

3
CBlue
Re: Can someone tell me how add pages

You can use cjay content, tiny content or free content to add html pages to xoops. Then you go into the templates manager and clone the default templates. Go to preferences > general settings afterward and make your default templates be the new cloned set (you will name the new set when you clone them). Then go to blocks admin and click on the main menu block and then click on edit template.

Add in your new link like this:
<a class="menuTop" href="http://yoursite.com/modules/freecontent/index.php?id=7"> Your Page </a>

at the end of the main menu before the:
</td>
</tr>
</table>

You could also just take any html page and add php includes into it and change the html page to a php page.

Here are the includes:

<?php
include('mainfile.php');
include('header.php');
$xoopsOption['show_rblock'] = 1;
?>
<html>
<head>
<title>Your Page Title</title>
</head>
<body>
Your Page content
</body></html>
<?php
include('footer.php');
?>

This page code above is for pages that you add to the XOOPS root only.

*Remember that the page must be saved using "all files", and saving as php, in Windows.

4
Rigrunner
Re: Can someone tell me how add pages
  • 2004/1/24 16:41

  • Rigrunner

  • Just popping in

  • Posts: 11

  • Since: 2002/10/12


i want to have a folder within XOOPS that holds pages certain members will have access to and others wont.

how would i go about having the other pages fit in with my current XOOPS structure.

right now i use
<?php
include('..mainfile.php');
include('..header.php');
$xoopsOption['show_rblock'] = 1;
?>
<html>
<?php
include('..footer.php');
?>


As the page would be /xoops/folder/page.php
for any extra pages I add.

Now i want /xoops/folder/folder2/page.php
I thought it might have went ...mainfile.php in the include but that doesnt work.

any help would be great

Login

Who's Online

177 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

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

Latest GitHub Commits