xoops forums

oomingmak

Just popping in
Posted on: 2007/8/16 14:03
oomingmak
oomingmak (Show more)
Just popping in
Posts: 16
Since: 2006/11/3
#1

How do I add a simple webpage to a xoops themed site?

I know this is an insanely simple question and I'm sorry if it's been covered before. I've done searches and can't seem to find what I'm looking for.

I need to add a webpage, that doesn't show up on the front page menu, but exists using my current theme (with top menu, header, footer).

Do I add a custom module? I tried changing the index.php, renaming it, and cutting out everything exept the includes. No luck.

Can someone help? Thank you so much!!!

lintu

Not too shy to talk
Posted on: 2007/8/16 15:06
lintu
lintu (Show more)
Not too shy to talk
Posts: 103
Since: 2005/9/18
#2

Re: How do I add a simple webpage to a xoops themed site?

You can download and use the 'Content' Module for this. It has a good WYSIWYG Editor.

Click here for more info and the download link.
JigJak.com - A social Bookmarking & Blogging site.

ProjectMgr.net - Online Project Management Software

Northern

Just can't stay away
Posted on: 2007/8/16 20:08
Northern
Northern (Show more)
Just can't stay away
Posts: 420
Since: 2004/12/26
#3

Re: How do I add a simple webpage to a xoops themed site?

name it whatever you want, but end it in .php

<?php
if (file_exists("mainfile.php")) {
    include(
"mainfile.php");
}
elseif(
file_exists("../mainfile.php")) {
    include(
"../mainfile.php");
}
else {
    include(
"../../mainfile.php");
}
include(
XOOPS_ROOT_PATH "/header.php");
$xoopsTpl->assign('xoops_showrblock'0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock'0); // 1 display right blocks
?>
///////
Your code in html 
///////
<?php
include(XOOPS_ROOT_PATH "/footer.php");
?>


or

in full php


<?php
if (file_exists("mainfile.php")) {
    include(
"mainfile.php");
}
elseif(
file_exists("../mainfile.php")) {
    include(
"../mainfile.php");
}
else {
    include(
"../../mainfile.php");
}
include(
XOOPS_ROOT_PATH "/header.php");
$xoopsTpl->assign('xoops_showrblock'0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock'0); // 1 display right blocks

echo "Your code";

include(
XOOPS_ROOT_PATH "/footer.php");
?>


Marc

oomingmak

Just popping in
Posted on: 2007/9/1 20:36
oomingmak
oomingmak (Show more)
Just popping in
Posts: 16
Since: 2006/11/3
#4

Re: How do I add a simple webpage to a xoops themed site?

Thanks for the suggestion. I'll give it a shot. This may come in handy when I farm out some of the work to users.

Thanks!

oomingmak

Just popping in
Posted on: 2007/9/1 20:37
oomingmak
oomingmak (Show more)
Just popping in
Posts: 16
Since: 2006/11/3
#5

Re: How do I add a simple webpage to a xoops themed site?

Marc,
For my immediate purposes, this is EXACTLY what I needed. Thanks!!!

Northern

Just can't stay away
Posted on: 2007/9/2 5:15
Northern
Northern (Show more)
Just can't stay away
Posts: 420
Since: 2004/12/26
#6

Re: How do I add a simple webpage to a xoops themed site?

Not a problem,

oomingmak

Just popping in
Posted on: 2007/9/8 16:24
oomingmak
oomingmak (Show more)
Just popping in
Posts: 16
Since: 2006/11/3
#7

Re: How do I add a simple webpage to a xoops themed site?

For anyone else viewing this thread. That method worked perfectly and displays menus, banner, theme, exactly as is presented on the rest of the site. What a life-saver!

icepick66

Just popping in
Posted on: 2007/10/23 23:51
icepick66
icepick66 (Show more)
Just popping in
Posts: 20
Since: 2004/9/25
#8

Re: How do I add a simple webpage to a xoops themed site?

include(XOOPS_ROOT_PATH "/header.php");
$xoopsTpl->assign('xoops_showrblock'0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock'0); // 1 display right blocks


I'm interested in what blocks does the page show, does it inherit from the module folder its in?
Or does it just display the global blocks?

oomingmak

Just popping in
Posted on: 2008/1/23 15:39
oomingmak
oomingmak (Show more)
Just popping in
Posts: 16
Since: 2006/11/3
#9

Re: How do I add a simple webpage to a xoops themed site?

It displays the main menu blocks, the header, footer, and menu bar. It also uses the theme CSS.

blackrx

Quite a regular
Posted on: 2009/11/7 0:45
blackrx
blackrx (Show more)
Quite a regular
Posts: 227
Since: 2008/2/5 1
#10

Re: How do I add a simple webpage to a xoops themed site?

what if i want to restrict view of this page by user ID or by group ?


I don't want anonymous visitor or any other registered user to visit this page

how do i do this ?