1
verias
Continuing Issues (custom template)
  • 2004/12/1 21:27

  • verias

  • Just popping in

  • Posts: 9

  • Since: 2004/12/1


Following m0nty's advice I started writing a blank template to display my already XOOPS wrapped comic page as a main index page.

All the wrap info is in the comic/index.php
so I made a little module, very basic, with a logo/language files/ and an index.php
since all the required things for the wrap are already in the comic's php file, I thought, 'well, simple fix, just make the module index include the comics php file and spit it out.' Simple, right? wrong.

this is what i have in my module index.php

<?php

include("../../comic/index.php");//has to be done this way, because the wrap code cannot come before the genpage function in the comic code

?>

When run, this is what I get

Warning: main(../mainfile.php): failed to open stream: No such file or directory in /home/nowhere/html/comic/index.php on line 91

Warning: main(../mainfile.php): failed to open stream: No such file or directory in /home/nowhere/html/comic/index.php on line 91

Warning: main(): Failed opening '../mainfile.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/nowhere/html/comic/index.php on line 91

Warning: main(XOOPS_ROOT_PATH/header.php): failed to open stream: No such file or directory in /home/nowhere/html/comic/index.php on line 92

Warning: main(XOOPS_ROOT_PATH/header.php): failed to open stream: No such file or directory in /home/nowhere/html/comic/index.php on line 92

Warning: main(): Failed opening 'XOOPS_ROOT_PATH/header.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/nowhere/html/comic/index.php on line 92

Warning: main(XOOPS_ROOT_PATH/footer.php): failed to open stream: No such file or directory in /home/nowhere/html/comic/index.php on line 103

Warning: main(XOOPS_ROOT_PATH/footer.php): failed to open stream: No such file or directory in /home/nowhere/html/comic/index.php on line 103

Warning: main(): Failed opening 'XOOPS_ROOT_PATH/footer.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/nowhere/html/comic/index.php on line 103


If I explicitly put the mainfile.php, header/footer into the module index, I get a blank page (this is due to how the comic code I'm using is written. It must be put around the genpage function inside the comic's php file)

Any help on figuring this out would be greatly appreciated.

Here's What I'm referring to

Working Page.

Unworking page



2
verias
Re: Ok, really bad newbie DB question
  • 2004/12/1 19:42

  • verias

  • Just popping in

  • Posts: 9

  • Since: 2004/12/1


Good point, but anyway, here's what I'm talking about

Two sites on one server, 2 different XOOPS installs, both using the same DB. Here's what they look like.

PowerTrip
Welcome to Nowhere



3
verias
Re: Using an existing nonxoops page as default index
  • 2004/12/1 19:39

  • verias

  • Just popping in

  • Posts: 9

  • Since: 2004/12/1


it was basically a hack that I picked up from reading the FAQ, on skinning html pages (i just modified it to apply to a php script)

I am fiddling with freecontent now, and I have it all customized, but when I try to get it to wrap the page and show it, all I get is a blank page.



4
verias
Re: Ok, really bad newbie DB question
  • 2004/12/1 19:27

  • verias

  • Just popping in

  • Posts: 9

  • Since: 2004/12/1


Between the 2 sites I have different modules, one has a custom theme I made, and different users/overall settings, and I'm running them both from the same DB. so, I don't think that's entirely correct as you say that they have the same settings (they aren't sharing tables, the tables for site 2 are prefixed different)



5
verias
Re: Ok, really bad newbie DB question
  • 2004/12/1 19:25

  • verias

  • Just popping in

  • Posts: 9

  • Since: 2004/12/1


apparently so
I'm now running two completely different sites from one DB with different options and whatnot (and all I did was what he said, I made a new prefix for the second site)



6
verias
Re: Using an existing nonxoops page as default index
  • 2004/12/1 19:00

  • verias

  • Just popping in

  • Posts: 9

  • Since: 2004/12/1


Alright, I'll show you what I mean.
Here's my hacked iStrip index file
Here

I have it skinned to use XOOPS themes, I just want to make it my default index.



7
verias
Using an existing nonxoops page as default index
  • 2004/12/1 18:45

  • verias

  • Just popping in

  • Posts: 9

  • Since: 2004/12/1


Ok, last question, i think.

I've hacked up a version if iStrip for my webcomic to work inside the XOOPS environment.

However, I would like the comic from the iStrip files to be the default thing on the main page when you go to the site. (xoops is in my main web directory, istrip is in /comic/ using it's own index.php file inside xoops)

Can this be done? and how.



8
verias
Re: Ok, really bad newbie DB question
  • 2004/12/1 17:34

  • verias

  • Just popping in

  • Posts: 9

  • Since: 2004/12/1


Awesome
Thanks
Works like a charm
Saves on having my admin getting involved to make me more DBs :)



9
verias
Ok, really bad newbie DB question
  • 2004/12/1 16:07

  • verias

  • Just popping in

  • Posts: 9

  • Since: 2004/12/1


I've just recently started using XOOPS, and for some reason my mind has failed me.

I'm running two sites, on one server. Would it be possible to run two XOOPS installations from one database on the server? Or does it require having 2 separate ones?

(Like I said, dumb question, everything I know about programming is screaming I'm an idiot)

Verias




TopTop



Login

Who's Online

231 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 231


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