Display all available parameters for JM_Forum? [SOLVED]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Display all available parameters for JM_Forum? [SOLVED]

Post by tophers »

I'm trying to implement JM_Forums, and the documentation is a little sparse, so I'm not sure what control I have over the output. Is the something that will spit out all the available parameters?
Last edited by tophers on Thu Jul 18, 2013 3:39 pm, edited 3 times in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How do I display all available parameters for a module?

Post by calguy1000 »

unfortunately, there is no way, short of reading the code.

parameters, names and types can change for each action
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: How do I display all available parameters for a module?

Post by tophers »

Damn - was hoping there was a way to do that.

Alright, next question then - does anyone have some more info on JM_Forum? I'm not even sure how to call a particular sub-forum… then are are things like action="last_posts", forum="4,6", which are mentioned in the documentation but not explained. Any help is appreciated!
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: How do I display all available parameters for a module?

Post by psy »

Read the code or contact the developer, jomorg.

last time i had a question re jm_forum, he answered it straight away.
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: How do I display all available parameters for a module?

Post by tophers »

Thanks psy, I've sent him a message. In the meantime, any assistance from anyone using JM_Forum is appreciated.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: How do I display all available parameters for a module?

Post by psy »

My tip is to do as Calguy says, look into the code plus, in your template, put {$whatever-the-var-is|print_r} and also {get_template_vars}

Between the three, you'll see what you have to work with.

hth,
psy
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: How do I display all available parameters for a module?

Post by Jo Morg »

To be honest, I was just about to put on my upset face, and start on rant mode... Good thing I went to the module's help just to check on what was all this about before I posted.
I have to say I was surprised to see that the bottom list of parameters was missing altogether from the Help Section.
Being JM_Forum a fork of Forum Made Simple (AKA Forum) I could swear I had left the parameters alone as they are the same as those of the original. Well apparently these were lost during the process...
So... my apologies.
Not that there are many parameters to work with (it is a pretty basic module waiting for me to have a bit more time to work on it).
So:
  • - (optional) action="last_posts" display last posts. Use last_posts smarty template for presentation. You can use forum attribute for limit forum display, p.e. forum="4,6" display last posts of forum ID 4 and 6 only;
  • - (optional) forum="" - Used in forum view to display only forum for the specified items. Multiple forums can be used if separated with a comma. Unset will show all forums. Accept forum name or forum ID. Not use with pretty_url.
  • - (optional) num="5" - Maximum number of items to display for last_posts action. Default is 5.
That's it.
As I said, it's a basic Forum module. It will evolve but I don't have a time frame to release a new version yet.
HTH.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: How do I display all available parameters for a module?

Post by tophers »

Thank Jo Morg - that's exactly what I was looking for. I realize it's a basic forum, but at this point I think it's all my client really needs, despite a fairly extensive wish-list. We'll implement this, let the test it out, and see if they really need all the features they requested.

And thanks for not putting on your upset face!
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: [Solved] Display all available parameters for JM_Forum?

Post by Jo Morg »

tophers wrote:And thanks for not putting on your upset face!
It would be pretty silly of me to do so and be proven wrong, wouldn't it? ;)
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: [Solved] Display all available parameters for JM_Forum?

Post by tophers »

Another question regarding the module (which is working great, by the way!). Can I display sub-topics alongside the parent? I have a Topic, and sub-topics under it, but when you view the main topic all you see are posts directly to it, not the children:

Topic One
Topic One A
Topic One B
Topic Two

When you view Topic One, you do not see see Topic One A or Topic One B. I'd like to use sub-topics to organize the discussion.

[EDIT] It looks like this isn't possible, so for now I've simply listed the parent forum first, then the children under that. The client loves it and is posting furiously! Thanks for the assist.
Post Reply

Return to “Modules/Add-Ons”