Forum Activity for @xephius

Xephius
@xephius
12/21/16 10:18:03AM
93 posts

Multi-lingual workflow


Design and Skin Customization

Hi all,

I am doing some research on how to support multiple languages on Jamroom, and it looks to be well supported from a technical stand point. I am struggling to fully wrap my head around how to build my workflow for the site. I will try and state my objective, then specific questions on individual tasks.

Objective - To have a language selection flag in the menu bar such that all text entry's on the site will reference a string that is translated into the selected language.

-REFERENCE-
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/783/jrcore-lang

1) How do I setup a language index page with the Sting ID, and the variations in languages each string has. EXAMPLE- I want to create a new "About Us" paragraph that I want to use in multiple places on the site. Where/how can I create and add a string that can be later called?

2) The following example code calls the data in string id 33, but also gives option for a default value in the string. If I do not include the "default" value, will it still work? Is this a best practice? I am concerned about having hard coded language. Is there a way to instead indicate a default language rather than a hard entry?
 {jrCore_lang module="jrEvent" id="33" default="Updated an Event"} 

3) Is there a document explaining how I can make a button that will allow users to change the selected language?

Clear skies,
John
updated by @xephius: 03/27/17 01:55:46PM
Xephius
@xephius
12/11/16 06:35:57AM
93 posts

Home Icon/link action


Design and Skin Customization

Gotcha. Thanks for the direction. I saw the mobile call in the header and was concerned about its impact :)
II got it working after a few syntax errors and a few resets, thanks.
Xephius
@xephius
12/10/16 10:17:57AM
93 posts

Home Icon/link action


Design and Skin Customization

Thanks for all that. I will start working through the Handbook and make suggestions.

Back to the questions at hand. Will both the mobile client and the desktop client direct users to the same page with the code below, and if not, how do I fix it?

<ul>
<li class="mobile" id="menu_button"><a href="#menu2"></a></li>
<li class="desk">
  {if jrUser_is_logged_in()}
                <a href="{$jamroom_url}/home">{jrCore_image image="logo.png" width="147" height="40" class="jlogo" alt=$_conf.jrCore_system_name custom="logo"}</a>
   {else}
                <a href="{$jamroom_url}/publiclanding">{jrCore_image image="logo.png" width="147" height="40" class="jlogo" alt=$_conf.jrCore_system_name custom="logo"}</a>
   {/if} 
</li>
</ul>

Also, Thanks Ultrajam. :)
updated by @xephius: 12/10/16 10:18:30AM
Xephius
@xephius
12/09/16 06:36:04AM
93 posts

Home Icon/link action


Design and Skin Customization

Thanks.
So looking at these docs is very helpful. I imagine I will get to know jrCore_list better over time. And thanks for the code support. I simply have not written or read HTML in years and forgotten more than I know.

A couple of things that I didn't see, maybe I just didn't get it..

What if we have two elephants.tpl that need to live in different places? Is there a subfolder setup (that I can't see in the web browsing tool) in the templates directory that mirrors the URL browsing directory?

Also, those code snips help a lot. Here is what I think I should do with it, but it raised the questions of how will 'mobile' handle this vs. 'desk'. It appears it asks for the type of browser before it asks about the logged in status of the uses.

Here is the 'stock' header code from FollowMe:
<ul>
<li class="mobile" id="menu_button"><a href="#menu2"></a></li>
<li class="desk"><a href="{$jamroom_url}">{jrCore_image image="logo.png" width="147" height="40" class="jlogo" alt=$_conf.jrCore_system_name custom="logo"}</a></li>
</ul>

I believe that this will solve my problem for desktop, but not mobile:

<ul>
<li class="mobile" id="menu_button"><a href="#menu2"></a></li>
<li class="desk">
  {if jrUser_is_logged_in()}
                <a href="{$jamroom_url}/home">{jrCore_image image="logo.png" width="147" height="40" class="jlogo" alt=$_conf.jrCore_system_name custom="logo"}</a>
   {else}
                <a href="{$jamroom_url}/publiclanding">{jrCore_image image="logo.png" width="147" height="40" class="jlogo" alt=$_conf.jrCore_system_name custom="logo"}</a>
   {/if} 
</li>
</ul>

I can see that mobile is getting directed to a menu_button and referencing #menu2, but I don't understand how that directs to a template. Sorry that I maybe lacking some programming fundamentals to fill the gap, but I am doing my best to work this out on my own. I am having trouble working with developers because I lack the understanding of the system to tell a coder specifically what to do to get a result I want and end up paying them to learn JR rather than write my code. And with multiple ways to get to any one solutions in JR, it gets even more complicated. This has happened a couple times, so I am just trying to get my head around this so I 'own' the design and be better skilled to direct development.

Also, I am using the {* *} here to isolate the code, how do I make the cool grey box for code snips?

Finally, I really to appreciate the help. I completely understand the challenge of trying to give me a direct answer to a question. So not only do I suck at asking accurate questions, but your probably feeling the frustration I have at not being able to make it 'work'. I am doing my best to not direct it at you guys, I know your doing your best to answer the questions. :) If there is something I can do to make this process easier for us both, please let me know.
updated by @xephius: 12/10/16 10:04:44AM
Xephius
@xephius
12/08/16 10:17:58PM
93 posts

Home Icon/link action


Design and Skin Customization

Hey Michael, sorry for throwing you a curve. I think Brain is got me set on the right track. I am trying to change the redirect of the home icon located in the upper left corner of the page based on the user login status. But, unfortunately, before I started this thread, I couldn't articulate that any better.

I am now catching up on the template system and how they work, again, still late to the party on this.

So I understand I can technically copy the contents of one template into another, but I don't know how to just make a new one, or where it lives so to speak. Do I need to move files with FTP and create them with a text editor or does JR have a specific way of doing that? I also don't know how to create a fresh new one, and direct a specific URL to that template. Not trying to be obtuse, I just don't know what to do.

I am guessing that if I can figure out how to directly edit the templates, and how to direct pages to them, the corrected code above living on a new index.tpl will actually 'solve' my problem. And that is I want my logged in community to go directly to www.domain.com/home and the visitors to go to www.domain.com/publiclanding.

FWIW, Nate got me mostly straightened out on how each skin has a sample index.tpl that is not editable via Page Builder. Because I didn't know it existed, I didn't know what I was asking for, and it wasn't until he told me how to get 'back' to the sample index.tpl that everything clicked.
Xephius
@xephius
12/08/16 07:48:23PM
93 posts

Home Icon/link action


Design and Skin Customization

Slightly different, but overlapping. I was having issues with getting some sliders to work in the various skins. Turns out the reason was they "sliders" were baked into the index.tpl files of the respective skins. And as soon as I active the site builder, it blows away all those cool sliders. And there is no widget to create a slider. So I was confused trying to get the slider to appear, not understanding the relationship of the 'samples' shown in the skins sections and the index.tpl holding that info. That said, Nate said I could copy the contents of Index.tpl into another .tpl file, but he didn't specify _how_ to do that..

So, yep, de-ja-vu, but I am trying to engage on your public forums whenever possible as requested. Sorry if this breaks the thread.
Xephius
@xephius
12/08/16 03:13:06PM
93 posts

Home Icon/link action


Design and Skin Customization

Will do on the quotas. I foresee a couple challenges you might be able to help me with.

First will be to duplicate the existing landing page index.tpl to a new template called publiclanding.tpl and make it available at 'www.domain.com/publiclanding'. This is a challenge because I am using the default landing page code until I can figure that out. So I need it to be replicated the index page onto a new page in a different location, and I am unsure on how to do that.

Second, can you suggest how can I turn the following into useable code to put in my 'new' index.tpl? I lack the syntax to be able to construct the loop. Or if you have a better path, I am open to it!

{if jrUser_is_logged_in()}
goto-www.domain.com/home
{else}
goto-www.domain.com/publiclanding
{/if}
Xephius
@xephius
12/08/16 01:29:21PM
93 posts

Home Icon/link action


Design and Skin Customization

Hi all,
I have setup my landing page to be an advertisement for my community, with a login or register button. This is great, easy for anyone to find.

I have all quotas set to redirect after login to www.domain.com/home. This seems to work about 80% of the time, about 20% they are direct to their profile page. (reports from the community)
Currently, if someone clicks the home icon in the upper left corner it goes to the top level domain. This is frustrating for my community to have to click login again, and often get directed to the profile instead of the /home page. So...

Can I change the action of the upper left icon link based on the profile status or logged in/logged out status? Thanks!
updated by @xephius: 03/11/17 05:38:42PM
Xephius
@xephius
11/12/16 07:15:39PM
93 posts

User profile page Timeline widget displaying "no items found"


Installation and Configuration

Every Timeline widget on evert profile page on the site is empty, even when they have items in the Timeline on their profile. The same behavior happens as an admin, or as a standard user.
Xephius
@xephius
11/11/16 04:07:57AM
93 posts

User profile page Timeline widget displaying "no items found"


Installation and Configuration

Maybe?
It seems that the Timeline display module that sits on the profile page can not find the list of Timeline items to be displayed. This could be related to the items not getting tagged to be displayed on the Timeline, but I am not sure how to check that. I don't see any (obvious) global check boxes or setting that seem to effect this.
  5