1
oomingmak
How do I add a simple webpage to a xoops themed site?
  • 2007/8/16 14:03

  • oomingmak

  • Just popping in

  • Posts: 16

  • Since: 2006/11/3


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!!!

2
lintu
Re: How do I add a simple webpage to a xoops themed site?
  • 2007/8/16 15:06

  • lintu

  • Not too shy to talk

  • Posts: 103

  • Since: 2005/9/18


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

3
Northern
Re: How do I add a simple webpage to a xoops themed site?
  • 2007/8/16 20:08

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


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

4
oomingmak
Re: How do I add a simple webpage to a xoops themed site?
  • 2007/9/1 20:36

  • oomingmak

  • Just popping in

  • Posts: 16

  • Since: 2006/11/3


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!

5
oomingmak
Re: How do I add a simple webpage to a xoops themed site?
  • 2007/9/1 20:37

  • oomingmak

  • Just popping in

  • Posts: 16

  • Since: 2006/11/3


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

6
Northern
Re: How do I add a simple webpage to a xoops themed site?
  • 2007/9/2 5:15

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


Not a problem,

7
oomingmak
Re: How do I add a simple webpage to a xoops themed site?
  • 2007/9/8 16:24

  • oomingmak

  • Just popping in

  • Posts: 16

  • Since: 2006/11/3


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!

8
icepick66
Re: How do I add a simple webpage to a xoops themed site?
  • 2007/10/23 23:51

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


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?

9
oomingmak
Re: How do I add a simple webpage to a xoops themed site?
  • 2008/1/23 15:39

  • oomingmak

  • Just popping in

  • Posts: 16

  • Since: 2006/11/3


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

10
blackrx
Re: How do I add a simple webpage to a xoops themed site?
  • 2009/11/7 0:45

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


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 ?

Login

Who's Online

182 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 182


more...

Donat-O-Meter

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

Latest GitHub Commits