1
robertico
Custom block with content and menus.
  • 2005/8/24 11:16

  • robertico

  • Just popping in

  • Posts: 51

  • Since: 2005/7/11


(My excuses, but earlier i posted this question to the beginners corner. But i'm still busy with it. )

I try to explain my problem.

I'd like to create some php pages (custom blocks or put some php pages in a directory) and make them visible at the center block within XOOPS. Not as a new page outside XOOPS and not as a sequence of blocks.
BUT, i'd like to make them available through some menus at the left side block (some for Anonymous Users and some for Registered Users) like the main- or user menu.
I tried multiMenu to create the menus. But if the menu is in the left side block, it isn't possible to show the content in the center block.
I tried some modules (such as cjaycontent, that comes closes to my request) but that's not exactly what i need.
(BTW cjaycontent shows the pages in the center block !!)

IMO therefore it must be possible to show a page in the center block.

But the main question is, how can i do this ?

Every advice's welcome.
Regards,

Robertico

(greetings from the Netherlands)

2
bjarkekr
Re: Custom block with content and menus.
  • 2005/8/24 13:01

  • bjarkekr

  • Just popping in

  • Posts: 24

  • Since: 2005/8/10


put this in top of your php file:

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



And this in bottom:

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



Thats it.. :)

then you will also be able to call XOOPS functions and vars from your php page.. F.x. username's and such.

3
robertico
Re: Custom block with content and menus.
  • 2005/8/25 6:36

  • robertico

  • Just popping in

  • Posts: 51

  • Since: 2005/7/11


Thanks !
My first impression is that it works great (need some further testing)

You mentioned XOOPS functions and vars, where can i find them. Is there a list or some documentation abour these ?
Regards,

Robertico

(greetings from the Netherlands)

4
heffizzle
Re: Custom block with content and menus.
  • 2005/8/25 18:00

  • heffizzle

  • Just popping in

  • Posts: 4

  • Since: 2005/8/25


I'd be interested in this as well...

5
monique
Re: Custom block with content and menus.
  • 2005/8/29 23:13

  • monique

  • Just popping in

  • Posts: 62

  • Since: 2005/5/23


I'm interested in this as well and it would be wonderful to get someone to write up a FAQ. Here is another thread that might be useful:

XOOPS thread

6
adrock
Re: Custom block with content and menus.
  • 2005/8/29 23:46

  • adrock

  • Quite a regular

  • Posts: 291

  • Since: 2004/12/7


The MyPage module available from this site is the simplest way to accomplish adding something to the menu, assigning group permissions, and displaying your own html/php content.

http://www.xoops-tips.com has some good info on creating 'custom' menus in custom blocks....

Turning on the Smarty Debug in the prefs of the admin area will generate a list of all of the vars used on each page, so you can see working examples of how they are implemented into the module you are viewing.

There are LOTS of topics here about them, where to find them, how to define new ones, etc.

Happy Xoopsing!
Affordable Web Hosting - Family - Fun!...and not always in that order!

Login

Who's Online

457 user(s) are online (357 user(s) are browsing Support Forums)


Members: 0


Guests: 457


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