1
Peluco
How to get module content
  • 2007/11/9 13:38

  • Peluco

  • Just popping in

  • Posts: 16

  • Since: 2006/5/29


Hello.

I have a XOOPS site, and I want to be able to show module content on another web page, but *only* the module content, without all the surrounding blocks, headers and footers I have on my main site.

¿Can it be done with Xoops? I'm a programmer, so I can hack the code if necesary, but since I don't know the XOOPS internals, I need some advice.

Thanks in advance.

2
nachenko
Re: How to get module content
  • 2007/11/9 15:38

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Perhaps you could do a flat, blockless theme, and force XOOPS to use it when called from the other site.

3
Peluco
Re: How to get module content
  • 2007/11/21 13:48

  • Peluco

  • Just popping in

  • Posts: 16

  • Since: 2006/5/29


No other solution?

Is there any other way to obtain only the content page of a module? For example, in the news module I want to obtain only the content of one of the news, so that I can put some of them in some DHTML tabbed pane.

4
Peluco
Re: How to get module content
  • 2007/11/21 13:50

  • Peluco

  • Just popping in

  • Posts: 16

  • Since: 2006/5/29


No other solution?

Is there any other way to obtain only the content page of a module? For example, in the news module I want to obtain only the content of one of the news, so that I can put some of them in some DHTML tabbed pane.

5
tom
Re: How to get module content
  • 2007/11/21 16:56

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Could you not consider an RSS feed?

The feed for news can be located at www.yoursite.com/backend.php

Many other modules also support RSS.

This would in my eyes be the easiest without hacking anything.
Kind Regards.
Tom

http://bassmanthemes.com
http://www.xoopslance.com

6
Catzwolf
Re: How to get module content
  • 2007/11/21 17:59

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


The only way you will be able to do what you want is to make a call to the database and get the information that way.

7
Will_H
Re: How to get module content
  • 2007/11/21 18:44

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


could a script be written to strip all unwanted data? This is a pretty widely requested feature.... I too would like to be able to call module output individually without the header/footer/blockloops.

8
Peluco
Re: How to get module content
  • 2007/11/21 21:57

  • Peluco

  • Just popping in

  • Posts: 16

  • Since: 2006/5/29


I've been looking into XOOPS themes and how the pages are constructed. All content is into a div section called 'conten'. When you call a XOOPS page you call a php file that returns the page with all the sections. I think that maybe is possible to write a function that wraps a call to that module's php file, catchs the html output, and strips all but this div section. This will not be very efficient, because XOOPS constructs all the blocks for nothing, as the function discards them later, but it may work. I'll try to do it. Do you know of some php function/library that lets me parse an html file easily? to do the div section extraction.

Login

Who's Online

151 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

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

Latest GitHub Commits