Forum Activity for @michael

michael
@michael
12/05/14 01:56:04AM
7,832 posts

Code Question 3


Using Jamroom

paul:.....Another one I don't get is the answer to the question "What does PHP stand for?"
"PHP stands for PHP: Hypertext Preprocessor."
Huh? And that is from the official PHP docs!!....
Yeah there are a few of those around the linux world. another one is LAME (Lame Aint an MP3 Encoder) but it is......

http://sourceforge.net/p/lame/mailman/lame-dev/?viewmonth=200504
Quote:
LAME (Lame Aint an MP3 Encoder)
A high quality MP3 encoder
michael
@michael
12/05/14 01:45:00AM
7,832 posts

Added a new module: "Site Builder - Construction Kit"


Using Jamroom

Its in the beta channel. Check it out please and see if its understandable.

It is a replacement for the "list of things" option in the widget menu.

You can add a list of things to the editor now via the CONSTRUCTION tab in the embed popup.
updated by @michael: 12/22/16 11:55:59AM
michael
@michael
12/04/14 11:32:18PM
7,832 posts

future feature request ninglike (but better) chat module


Ning To Jamroom

I plan to take a look at chat/irc module once I get the Site Builder done. So there's no beta for that just yet. I'll let you know when there is. Thanks.
updated by @michael: 12/29/14 09:23:54AM
michael
@michael
12/04/14 11:14:39PM
7,832 posts

search all modules for dummies


Ning To Jamroom

Which modules is it not in that you would like to see it in? Thought we got this into most places.
updated by @michael: 12/29/14 09:23:54AM
michael
@michael
12/04/14 11:11:39PM
7,832 posts

Code Question 3


Using Jamroom

Yeah there are lots of confusing things. If you look up the "Why javascript is called javascript?" you'll get a lot of info and opinions.

One quote I like is:
Quote: "Java is to Javascript what Car is to Carpet."

updated by @michael: 12/04/14 11:12:12PM
michael
@michael
12/04/14 11:07:12PM
7,832 posts

how do I choose a random quota_id from a set?


Using Jamroom

The forums are kind of also used for documentation, since the question is "how do I choose a random number from a set?" would it be ok if I renamed this thread that?

Try this:
{$options = [ 'turkey', 'foo','belgum', 'france','wellington','tuesday','northern contennt']}
{$key = array_rand($options)}
{$wanted = $options[$key]}

{$wanted}

$wanted will output one of the items in that list. so you could then use $wanted wherever you needed it.

Change those items to the 7,7,6 then use that as the quota_id
{$options = ['7', '7','6']}
{$key = array_rand($options)}
{$wanted = $options[$key]}

{jrCore_list module="jrAudio" quota_id=$wanted}
michael
@michael
12/04/14 06:40:10PM
7,832 posts

JR PJ - Comments Sort


Using Jamroom

paul:
Wonder if Michael meant that ;-)

Went straight over my head. No fancy multi-meaning stuff here.
michael
@michael
12/04/14 05:47:48PM
7,832 posts

Language and Menu links


Ning To Jamroom

Isleander:.. I was wondering why the Discussions link does not show when added to the header menu.

Is this code correct?... please see image....

Code is a language in the same way english is a language. Its purpose is to communicate with machines.

So to that effect, lets see what that piece of code is saying and translate it into english:
{if jrCore_module_is_active('jrForum') && strlen($_conf.jrNingja_forum_profile) > 0}
<li><a href="{$_conf.jrNingja_forum_profile}">{jrCore_lang skin=$_conf.jrCore_active_skin id="19" default="Discussions"}</a></li>
{/if}

That ^^ is the full code, but if we break it down into bits it will be easier to translate.
So the first bit:
{if jrCore_module_is_active('jrForum').......
anything that is wrapped in something like {if} {/if} means "If the next question is true, then do everything in this block."

So the question we have is jrCore_module_is_active('jrForum') which translates into english as "If the module that provides the forums is activated....."

Then the next part of that is && strlen($_conf.jrNingja_forum_profile) > 0 (so there are 2 questions needed to be true to activate this {if} {/if} block). It reads "and there is a profile name set....."

--------------
So so far we have in english "If the next question is true, then do everything in this block." Q: "If the module that provides the forums is activated.....and there is a profile name set....."

Then the part in the middle of that is the link.

So the full english sentence is:

"If the next question is true, then do everything in this block." Q: "If the module that provides the forums is activated.....and there is a profile name set.....then show this link."
updated by @michael: 12/29/14 09:23:54AM
michael
@michael
12/04/14 01:15:13AM
7,832 posts

Can't Find Forum Template


Design and Skin Customization

Ken_Rich:
Yes, and the profile name box.

The community forum doesn't need to show any of the admin stuff.

Thanks...
Yeah sorry, I wasn't understanding that.
michael
@michael
12/04/14 01:10:28AM
7,832 posts

JR PJ - Comments Sort


Using Jamroom

Champion. ;)

Glad you got it sorted.
  626