Loading...
 
Skip to main content

Features / Usability


Making embedded modules wider.

Whenever I use the {MODULE(module=>foo)}{MODULE} syntax to embed a module in a wiki page, it works, but is always the exact same width as it would be if it was in the sidebar. This wastes space and looks ugly. Does anybody know what parameters to send the module so that it would take up the whole width of the central column?

I don't know if it matters but the module I'm trying to embed is since_last_visit_new. The width isn't hard coded into every module is it? That would be just silly, wouldn't it?

I found a reference to a plugin named since_last_visit_new, which would be another way to solve this problem... but the page was talking about it like you're supposed to already know where to download this plugin, and I haven't been able to find it since. D'oh!

Is there some kind of central repository for plugin and/or mod downloads and the accompanying documentation?

Thanks in advance.

Update... a clue is to be found on the ModuleCreation page. I'm not sure yet till I try it, but it seems like a module is made out of a .php file which contains the logic and a .tpl file which contains the Smarty formatting. The Smarty formatting probably is what wraps the useful stuff inside a class. The CSS theme renders it as that annoying narrow column even when it's not on the sidebar.

I suspect that if I create a new plugin and copy the guts of the .php part of the module into it, I might get it to be page-wide.

There is no mention of variably sized modules anywhere, so none of the people who know how to hack modules ever considered that a module might be useful anyplace outside a vertical column... yet went out of their way to create a mechanism for rendering them outside the sidebar.

Furthermore, I've seen a few sites that do display modules in the central space, and just stack them up next to each other like columns in a newspaper. This tells me that the people who have this need don't know how to hack modules.

But what's most surprising is that these two groups of people apparently have never run into each other!

Okay, done expressing amazement. I'll post again once I know whether the above approach works.