solved Events missing from Top Nav - and home page

Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Activating other modules and importing content meant that a navigation link appeared in the top nav and the content was displayed in a panel on the home page.

I see events on my profile page.

I see the block in index.tpl. Nothing is turned off that I can see. I'd like to display only future events, up to 7 with a page turner.
updated by @claygordon: 02/12/15 11:23:26PM
paul
@paul
10 years ago
4,335 posts
Its not easy including everything on the homepage without it getting cluttered and difficult to use. We've compromised and included what we think are the most frequently used Ning features, and events wasn't one of them.
Your site doesn't have audio items so might I suggest you swap the front page audio menu and panel for events?


--
Paul Asher - JR Developer and System Import Specialist
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Understand. Happy to do the work. Are there instructions for modifying the top nav this way? (On a related note, for consistency's sake, should Video be Videos in the top nav)?

I have hidden the row on the home page that contains profiles, audio, and video. I would end up modifying it (and displaying the row) to include profiles, groups, and events.
paul
@paul
10 years ago
4,335 posts
Take a look at the two skin 'header_menu_*.tpl' template files for how to build menu items.
To change the menu text strings, use the appropriate module language editors in the ACP
hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
10 years ago
3,603 posts
Chocolate, are you using the jr beta Site Builder, or not? Just curious, thanks.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
@Strumelia:

I am not using the Site Builder. I started out using it but was having problems with it and was told not to use it until the developer could get back from holidays.

@Paul:

I found the top nav menu text in the Ningja skin language files. Video appeared once and Videos appeared twice so it was pretty easy to figure out what was what without context. There was only one Discussions, so finding the right context was not an issue.
updated by @claygordon: 01/03/15 07:58:00AM
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
paul:
Take a look at the two skin 'header_menu_*.tpl' template files for how to build menu items.
To change the menu text strings, use the appropriate module language editors in the ACP
hth
Pa

Paul - I can insert an Events menu using the following code, using the examples found in the header_menu_desktop.tpl file

{* Add additional menu categories here *}
Events

This is the best compromise WRT location I can find. This inserts the Events link after ACP (as I am logged in as admin). If the user is not logged in, or is logged in as a member of the regular member group, then the ACP link does not appear and so the Events link appears immediately after Pages.

I can deal with this as admin, but what if I wanted the link to appear between Videos and Profiles? Much of the code in the template uses if_logged_in and sub-tests so it's not immediately apparent - to me - where I would do this.

On a related note, how would I go about adding a link to MY profile (i.e., the currently logged-in member) as a sub-item to the Profiles link - the same way there are sub-menus under Videos for Vimeo and YouTube? There was an editor for adding sub-items to menus - called Tabs in Ning. Again, I am happy to do the work, I just need to know where to find the code.

I think the shortcut link to MY profile (for the currently logged-in member) is something every user of Ningja would appreciate - I know my members did
updated by @claygordon: 01/03/15 08:28:56AM
paul
@paul
10 years ago
4,335 posts
In the header_menu_desktop.tpl template, about line 113 see the code
                <li{if isset($_post._uri) && $_post._uri == '/profile'} class="menu_active"{/if}><a href="{$jamroom_url}/{jrCore_module_url module="jrProfile"}">{jrCore_lang skin=$_conf.jrCore_active_skin id="16" default="Profiles"}</a></li>

                {if jrCore_module_is_active('jrVideo') ||  jrCore_module_is_active('jrVimeo') ||  jrCore_module_is_active('jrYouTube')}

Add the events menu item there -
                <li{if isset($_post._uri) && $_post._uri == '/profile'} class="menu_active"{/if}><a href="{$jamroom_url}/{jrCore_module_url module="jrProfile"}">{jrCore_lang skin=$_conf.jrCore_active_skin id="16" default="Profiles"}</a></li>

                {if jrCore_module_is_active('jrEvent')}
                    <li{if isset($_post.module) && $_post.module == 'jrEvent'} class="menu_active"{/if}><a href="{$jamroom_url}/{jrCore_module_url module="jrEvent"}">{jrCore_lang skin=$_conf.jrCore_active_skin id="28" default="Events"}</a></li>
                {/if}

                {if jrCore_module_is_active('jrVideo') ||  jrCore_module_is_active('jrVimeo') ||  jrCore_module_is_active('jrYouTube')}

A link to the member's profile when logged in is already there where you see 'ChocLifeRoot'
hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Paul -

It was inside the {if} for Site Builder, which I am not using, so I overlooked it.

Duh. Of course there is a link to my profile when I am logged in. Was over-thinking things.
paul
@paul
10 years ago
4,335 posts
Yeah - Its in the {else} bit of that Site Builder {if} statement.


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
10 years ago
3,603 posts
paul:
To change the menu text strings, use the appropriate module language editors in the ACP

FWIW, I am able to CHANGE current wording in my language strings, but I have yet to find where I can actually ADD a term or phrase to a module language string in the ACP.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
paul
@paul
10 years ago
4,335 posts
Strumelia:
paul:
To change the menu text strings, use the appropriate module language editors in the ACP

FWIW, I am able to CHANGE current wording in my language strings, but I have yet to find where I can actually ADD a term or phrase to a module language string in the ACP.

Yeah. You can't at the moment. We were talking about how to do that the other day. I'll raise it again.
Thanks


--
Paul Asher - JR Developer and System Import Specialist
brian
@brian
10 years ago
10,148 posts
paul:
Yeah. You can't at the moment. We were talking about how to do that the other day. I'll raise it again.

We have a ticket on this, but it's not a "quick add" so will take some time. We will get to it, but for now you just want to add your text string in to your template where needed (since you are going to have to modify the template anyway as you would have to add the {jrCore_lang} call in to pull in your custom lang string). So it's not super high priority.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
@Paul -

I understand that's it's not a high priority on your end to make this change. I am just happy to know that I can incorporate a workaround without having to pay an extra $70/month to get API access to make trivial changes.
Strumelia
Strumelia
@strumelia
10 years ago
3,603 posts
brian:
paul:
Yeah. You can't at the moment. We were talking about how to do that the other day. I'll raise it again.

We have a ticket on this, but it's not a "quick add" so will take some time. We will get to it, but for now you just want to add your text string in to your template where needed (since you are going to have to modify the template anyway as you would have to add the {jrCore_lang} call in to pull in your custom lang string). So it's not super high priority.
Thanks!

Yes, understood!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

Tags