1
faheja
How to put Html in xoops?
  • 2005/12/4 21:36

  • faheja

  • Just popping in

  • Posts: 11

  • Since: 2005/11/16


Hey, I would like to add a html page into XOOPS in a way. Its kinda hard to explain so to make it easy heres a pic :)

HERE!

How would i go about doing something like this?

2
dickinsd
Re: How to put Html in xoops?
  • 2005/12/4 21:47

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


If you do a search on this site you should find links to modules which can wrap HTML for you.

However, if you don't want another module for a single or a couple of html pages you can do this:

include("/mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");
?>

[b]HTML GOES HERE[/b]

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


Save as whatever.php and then link to it with the main menu or however you plan to link to it.

Dave

EDIT:

I know you didn't ask, but whilst on the subject, here is how you would edit your main menu:

First you need to have a cloned template set, then in the cloned template set you need to go to system and then system_block_mainmenu.html and you will see something like this:
Quote:





You add your own links like so:

<table cellspacing="0">
<
tr>
<
td id="mainmenu">
<
class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}>a>

<{foreach 
item=module from=$block.modules}>
<
class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}>a> <{foreach item=sublink from=$module.sublinks}>
<
class="menuSub" href="<{$sublink.url}>"><{$sublink.name}>a>
<{/foreach}>
<{/foreach}>

[
b]<class="menuMain" href="<{$xoops_url}>/">yourtexta>[/b]
[
i][b]<class="menuMain" href="<{$xoops_url}>/whatever.php">Whatevera>[/b][/i]
tdtr>
table>

3
faheja
Re: How to put Html in xoops?
  • 2005/12/4 21:49

  • faheja

  • Just popping in

  • Posts: 11

  • Since: 2005/11/16


THANKS DAVE! second time you have heled me :) heh

4
faheja
Re: How to put Html in xoops?
  • 2005/12/4 22:04

  • faheja

  • Just popping in

  • Posts: 11

  • Since: 2005/11/16


Wow, right when i came back on to ask. BAM! its already there! haha



THX!

5
faheja
Re: How to put Html in xoops?
  • 2005/12/4 22:15

  • faheja

  • Just popping in

  • Posts: 11

  • Since: 2005/11/16


Last question, Where would the whatever.php file go?

6
faheja
Re: How to put Html in xoops?
  • 2005/12/4 22:51

  • faheja

  • Just popping in

  • Posts: 11

  • Since: 2005/11/16


I seem to get this error.

Warningmain(/mainfile.php): failed to open streamNo such file or directory in /home/faheja/public_html/faheja/test.php on line 7

Warning
main(/mainfile.php): failed to open streamNo such file or directory in /home/faheja/public_html/faheja/test.php on line 7

Warning
main(): Failed opening '/mainfile.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php'in /home/faheja/public_html/faheja/test.php on line 7

Warning
main(XOOPS_ROOT_PATH/header.php): failed to open streamNo such file or directory in /home/faheja/public_html/faheja/test.php on line 8

Warning
main(XOOPS_ROOT_PATH/header.php): failed to open streamNo such file or directory in /home/faheja/public_html/faheja/test.php on line 8

Warning
main(): Failed opening 'XOOPS_ROOT_PATH/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php'in /home/faheja/public_html/faheja/test.php on line 8

TEST

Warning
main(XOOPS_ROOT_PATH/footer.php): failed to open streamNo such file or directory in /home/faheja/public_html/faheja/test.php on line 14

Warning
main(XOOPS_ROOT_PATH/footer.php): failed to open streamNo such file or directory in /home/faheja/public_html/faheja/test.php on line 14

Warning
main(): Failed opening 'XOOPS_ROOT_PATH/footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php'in /home/faheja/public_html/faheja/test.php on line 14

7
FruityB
Re: How to put Html in xoops?
  • 2005/12/8 23:18

  • FruityB

  • Not too shy to talk

  • Posts: 161

  • Since: 2005/5/19


I'm getting the same errors as faheja, It'll show my custom page but no links and all that text before and after my pictures.

Also, how would I go about adding a block on the left or right side of my site and having just links to my customed pages?
http://www.fruitybids.2babe.com
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
My xoops server is focked! using this for now!

Login

Who's Online

359 user(s) are online (307 user(s) are browsing Support Forums)


Members: 0


Guests: 359


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