Loading...
 
Skip to main content

Features / Usability


use of the since_last_visit_new module to generate wider output

posts: 55

I am using

{MODULE(module=>since_last_visit_new)}{MODULE} on my tikiwiki's font page to show what has been changed since the person last logged in. It is working really well and has greatly increased the level of community in the site.

BUT the display is still only 30 or 40 characters wide even though it could fill the whole center section. I can see that you can pass options to the module but I can't find where they are documented.

Is the an option for the module to use the full width of the display?

Where are these options documented?

Peter

posts: 4664 Japan

> Is the an option for the module to use the full width of the display?
>
> Where are these options documented?

Generally speaking, the module widths are specified by CSS. Modules are contained by the div.box class, which is usually given a pixel width. This can be over-ridden by any new properties specified for the particular module (check the source of a complete Tiki page to see how Tiki gives each module its own div designation), and/or for use in a particular page area such as the center column (i.e., in the wiki page). You can add something like this after the default div.box lines in the theme's CSS file:

Copy to clipboard
td#centercolumn div.box-since_last_visit_new { width: 100%; }


This says that when the Since Last Visit New module appears within the center column td, it is to have 100% width. Any other style property can be designated the same way, like if you want to change the font size, take off the border, or whatever, by using CSS styles accordingly.

-- Gary - themes.tw.o

posts: 55

Gary,

Thanks, you have given me enough to find a workable solution. I don't have access to the themes but I can embed the relevant CSS in the page to get the result I want.

Peter

===8< - snip here -
td#centercolumn div.box{width: 260px } td#centercolumn div.box-title{width: 260px; } td#centercolumn div.box-data{width: 260px; }


===8< - snip here -

> > Is the an option for the module to use the full width of the display?
> >
> > Where are these options documented?
>
> Generally speaking, the module widths are specified by CSS. Modules are contained by the div.box class, which is usually given a pixel width. This can be over-ridden by any new properties specified for the particular module (check the source of a complete Tiki page to see how Tiki gives each module its own div designation), and/or for use in a particular page area such as the center column (i.e., in the wiki page). You can add something like this after the default div.box lines in the theme's CSS file:

>
Copy to clipboard
> td#centercolumn div.box-since_last_visit_new { > width: 100%; > }

>
> This says that when the Since Last Visit New module appears within the center column td, it is to have 100% width. Any other style property can be designated the same way, like if you want to change the font size, take off the border, or whatever, by using CSS styles accordingly.
>
> — Gary - themes.tw.o
>