Loading...
 
Features / Usability

Features / Usability


passing parameter to a module (top 20 users)

posts: 55

We have a 1.9.2 site which is generally going very well.

The font page displays a number of modules displaying things that have changed, top forums etc

I would like to pass a parameter to the module but I can't see any documentation for doing this e.g. display the top 20 users rather than the top 10

{MODULE(module=>users_rank)}{MODULE}

 Failed to execute "users_rank" module
Missing dependencies


How would I display the top 20 users in the page?

Any help gratefully received.

Peter

posts: 3636 United States

Use the max parameter. See the docs for details.

HTH,

-Rick

> We have a 1.9.2 site which is generally going very well.
>
> The font page displays a number of modules displaying things that have changed, top forums etc
>
> I would like to pass a parameter to the module but I can't see any documentation for doing this e.g. display the top 20 users rather than the top 10
>
> {MODULE(module=>users_rank)}{MODULE}
>

>
 Failed to execute "users_rank" module
Missing dependencies

>
> How would I display the top 20 users in the page?
>
> Any help gratefully received.
>
> Peter

posts: 55

Thanks.

{MODULE(module=>users_rank,max=>20)}{MODULE} works for us

Peter

> Use the max parameter. See the docs for details.
>
> HTH,
>
> -Rick
>
> > We have a 1.9.2 site which is generally going very well.
> >
> > The font page displays a number of modules displaying things that have changed, top forums etc
> >
> > I would like to pass a parameter to the module but I can't see any documentation for doing this e.g. display the top 20 users rather than the top 10
> >
> > {MODULE(module=>users_rank)}{MODULE}
> >

> >
 Failed to execute "users_rank" module
Missing dependencies

> >
> > How would I display the top 20 users in the page?
> >
> > Any help gratefully received.
> >
> > Peter