21
mrgym
Re: module admin preferences
  • 2003/10/15 12:43

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


Ahhhhh! There it is. I should have seen it! (sorry -- I must have been asleep in my seat yesterday) That's a very clever way of injecting variables at install.

Thank you!!!

I now have a valid db schema, xoops_version for install, dynamically placing submenu items, and am querying variables and placing them into xoopsTpl forms.

On to XOOPS forms!



22
mrgym
module admin preferences
  • 2003/10/14 19:01

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


I think I've spotted module preferences in the xoops_config table (conf_modid is modules.mid, conf_name, conf_value?).

Where do the values come from that are inserted into this table? I've searched wffaq,news, etc for examples and don't see these prefs in xoops_version. admin/menu.php contains obvious menu entries but NOT preferences.

thanks!



23
mrgym
Re: Same old netpbm issue
  • 2003/10/13 16:37

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


do you have command-line access to this server? You can test netpbm in this way before trying to use gallery. If you don't have command-line access, you could look at execution permissions within the server environment.




24
mrgym
Re: dynamic sub-menus - proposal to change xoops menus
  • 2003/10/6 13:25

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


Thanks very much! People are very helpful here.

I had worked-through this with code that fetched the menu arrays, and then a module-specific .css file (like the ones I see for agendax and xCal) to provide offset and color context.

Correcting the mistake I made above.....
The xoopsDB object was located under $GLOBALS, so everyone can refer to it as $GLOBALS['xoopsDB'] .






25
mrgym
Re: dynamic sub-menus - proposal to change xoops menus
  • 2003/10/5 13:08

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


Exactly! I want the ability to dynamically place submenu items under my appname in the lblock menu. I COULD place this submenu in "my" module cblock space, but that would be confusing from a usability standpoint AND take-up valuable screen space in the module area.

Specifically, I suggest moving the logic related to assembling the lblock menu to footer.php. The module could either declare an array of submenu URL's ($xoopsModule['vars']['submenu']?), or create a submenu array in xoopsTpl to be picked-up in the footer.php logic.

I can "hack" a solution where I declare a xoopsDB object in xoops_version.php and then unset() it, but the ability to create lblock submenus would be a great functionality to offer any module developer.






26
mrgym
Re: dynamic sub-menus - proposal to change xoops menus
  • 2003/10/4 18:59

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


(I can't find WF-Channel after looking here and modules.xoops2)

Unless I declare my own xoopsDB object this won't work.

modname/xoops_version.php is called early in header.php. So early that there isn't a xoopsDB object to use for a submenu!

IMO there should be a change in the way XOOPS menus are done. Options;
- header.php reads modname/xoops_version.php last(?)
- allow the module to add/ change xoopsTpl variables that represent menu sub-items. Change these into html (xoopsTpl->_tpl_vars.lblock[x].content) in footer.php




27
mrgym
Re: dynamic sub-menus
  • 2003/10/3 13:11

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


Thanks very much! I'll look into it.



28
mrgym
dynamic sub-menus - proposal to change the xoops menu?
  • 2003/10/2 19:33

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


How do I insert sub-menu options under my module name in the left menu WITHOUT using a non-standard module or shoveling globals before mainfile or header?

All I see is xoopsTpl->_tpl_vars[1] which contains html for the entire menu.



thanks!!!!




TopTop
« 1 2 (3)



Login

Who's Online

128 user(s) are online (62 user(s) are browsing Support Forums)


Members: 0


Guests: 128


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