Language and Menu links

Isleander
Isleander
@isleander
11 years ago
558 posts
I see that there are three different language refs for Discussions. I.E. 12, 19 & 26.
Which one, if any, actually links to the site Discussions?
Or are none of these now relevant since Discussions appear to be integrated with groups?

Thank you for your help.
updated by @isleander: 07/09/16 09:21:02AM
michael
@michael
11 years ago
7,793 posts
12 is Discuss
19 is Discussions
26 is Discussions

19 is in the header_menu_desktop.tpl file so its coming out in the menu bar when the forum module is active. Its also used in profile_index_discussion.tpl as the title for the page.

26 is used in index.tpl in the discussions section on the front page and also in the activity timeline.

I suspect its an oversight that its been entered twice, or originally there were different text strings for those locations that got changed to be the same string.
updated by @michael: 12/29/14 09:23:54AM
douglas
@douglas
11 years ago
2,804 posts
Michael is right, its an oversight, I'll get that fixed for the next release.

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 12/29/14 09:23:54AM
Isleander
Isleander
@isleander
11 years ago
558 posts
Thanks.. I was wondering why the Discussions link does not show when added to the header menu.

Is this code correct?... please see image.
disscussion_code.png
disscussion_code.png  •  108KB


updated by @isleander: 12/29/14 09:23:54AM
douglas
@douglas
11 years ago
2,804 posts
Make sure you've added the URL to the Admin forum in your ACP > System Tools > Skin Settings > Site Index > Forum Profile URL field.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 12/29/14 09:23:54AM
michael
@michael
11 years ago
7,793 posts
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