11
fishspon
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/17 21:09

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


problem is... the URL will then be in the "modules/" directory.

i need the URL to be at the root level (e.g. "XOOPS_ROOT/advertising", not "XOOPS_ROOT/modules/advertising").

Any other suggestions?

Thanks again!
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]

12
wizanda
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/17 21:36

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


A Second page in the XOOPS version doesn't need to go in the modules folder, the main would be /module/name/index.php....

The next page you could direct to a diffrent folder...why i said....about that way...

plus the html will load faster if done as smarty template....

Really its easy

13
fishspon
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/18 8:47

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


i know it's not hideously difficult, but compared to just puttin two includes into an HTML file, it is complex.

Also, how can the HTML possibly load faster than a flat HTML file by being in a smarty template?
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]

14
wizanda
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/18 9:22

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


It harder then it sounds to make a module...I learned like this also, so it must be easy....

The reason it will load faster is like in the XOOPS dev post we made....

Smarty handles the html within PHP faster then PHP...

Xoops its self when told display this page, will be given a page ready to load from an ID...else it has to work out the html first each time by first searching though the php file...

Also all you need to do, to add this page is this in XOOPS version....
$modversion['sub'][1]['name'] = 'Advertising';
$modversion['sub'][1]['url'] = XOOPS_ROOT_PATH.'/advertising/index.php';


Within the /advertising/index.php include the Template file as html in Smarty and thats it done....

15
Mithrandir
Re: Adding a single page to Xoops under a specific URL

Quote:

fishspon wrote:
problem is... the URL will then be in the "modules/" directory.

i need the URL to be at the root level (e.g. "XOOPS_ROOT/advertising", not "XOOPS_ROOT/modules/advertising").

Any other suggestions?

Thanks again!

Mod_rewrite, if using Apache webserver.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

16
fishspon
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/18 13:09

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


thanks for all the help, people, but all this just to get the right-hand side bar to appear?

i think not... at least not for the moment.

i might come back to this at some point, but for now it's just too much work for one single page!
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]

17
wizanda
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/18 13:27

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Your funny All you have to do was copy and paste the module, add the html you have to a smarty (=html files) page and it is hard?
It took longer explaining it to you then it would have taken, it is like 5 mins, including upload...

The Reason with the faulty side block is normally coding...and something is not closed...

18
fishspon
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/18 13:31

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


ok, i know it's not that complex, but i don't have the time at the moment to start fiddling around with it.

Also, the side block is not faulty, it's because of this:

Quote:

fishspon wrote:
in order to get the right-hand side bar to appear on my custom page, i have to enable each of the right-hand blocks for "All Pages".

BUT, the problem is that once i do that, they appear on pages i don't want them to.

So, is there a way to exclude certain modules from a block's display properties, instead of include certain modules?

In other words, i want everything *except* the forum, but the only way to do that currently is to select "Top Page", "Contact Us", "Web Links", "News", "Members" etc... which then excludes my custom pages.


I now know that this can be solved by creating a module, but at the moment, today, i can't be arsed! lol

As i said though... i will tackle this when i have more time, because until you've done it once, it's *not* simple.
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]

19
wizanda
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/18 13:40

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


True, feel free to download any of the modules we have made and change them
Painting has a second page in

20
Peekay
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/18 14:50

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


JMorris's PageWrap module will allow you to add a single HTML or PHP page and will put a link to it in the XOOPS main menu. The index page will need to be in the module folder, but the page can contain an iFrame or PHP-include to a file in your root dir.

I believe the 'show_rblock' line in index.php is the solution to the right blocks problem.
include("../../mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>

Your page stuff goes here. 
Or... an iFrame to your root directory page. 

include(XOOPS_ROOT_PATH."/footer.php");
?>
A thread is for life. Not just for Christmas.

Login

Who's Online

354 user(s) are online (296 user(s) are browsing Support Forums)


Members: 0


Guests: 354


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