Forum Activity for @michael

michael
@michael
09/12/16 12:32:55AM
7,826 posts

Is it possible in Site Builder how do I show the latest images posted OR commented on?


Using Jamroom

The way the {jrCore_list} function works is it retrieves information stored in the modules datastore. One limit it has is that it needs you to select which datastore to retrieve the information from.

Images are stored in the Gallery datastore, while comments are stored in the Comments datastore. This makes it difficult to combine them into a single search.

From memory, I can remember setting up a system which listened for new comments being added to a datastore item and updated the _updated key for that item.

That again as an example to illustrate the concept: When a new comment gets added to a gallery image item, that gallery image item has its _updated time updated.

So its possible to do, but suspect it would require a module to behave like that. Easier would be to have 2 lists. "Latest images" and "Latest Comments"

Another option is to look at the "Item List (combined)" Site Builder widget provided by the "Seamless" module, then order by _updated on the Gallery and Comment modules. That would provide a list ordered by updated time, but would show a gallery image when it was a gallery, or a comment list item when it was a comment.
michael
@michael
09/12/16 12:23:10AM
7,826 posts

Tag cloud widget is only displaying 9 tags even though the limit is 30


Using Jamroom

Try setting it to 1 to see what happens. It should limit it to only show 1 tag. If it doesn't my suspicions go to the cache to start with.

Try
ACP -> MODULES -> CORE -> SYSTEM CORE -> TOOLS -> RESET CACHE

to see if that makes a difference.
michael
@michael
09/12/16 12:20:48AM
7,826 posts

How do I get Site Builder to display Forum topics, not forum posts?


Using Jamroom

Each Forum has a 'forum_group_id' that is common to all the posts in that forum. You can use the "Group By " List option for the Item LIst widget that you create to group by that.

So:
* Add a widget that is an "Item List" widget type
* LIST MODUE: Forum
* GROUP BY: forum_group_id

That should get you what your after. If you wanted to do it in with a "Template Code" widget, that would work too, the code for that would be:
{jrCore_list module="jrForum" limit="5" group_by="forum_group_id"}

If you want to, add the "Order By" _updated to get the newest ones to the top.
michael
@michael
09/11/16 09:43:45PM
7,826 posts

Stymied by Site Builder


Using Jamroom

Much better idea to throw each question into its own thread with a descriptive title about the goal otherwise things get so long and convoluted that nobody reads the thread and even those following get confused.

Topics I can see in your question:
* "How do I get Site Builder to just display Forum topics, not forum posts"
* "In Site Builder, how do I show the latest images posted OR commented on"
* "Tag cloud widget is only displaying 9 tags even though the limit is 30"

I love it when I can click the 'solved' button, this thread is past being solvable.
michael
@michael
09/11/16 07:46:26PM
7,826 posts

Modifying the Login form


Installation and Configuration

FYI: comments in the template editor show up in yellow so they're easy to spot.
screenshot_comments.png screenshot_comments.png - 243KB

updated by @michael: 09/11/16 07:46:45PM
michael
@michael
09/11/16 07:43:36PM
7,826 posts

Modifying the Login form


Installation and Configuration

Yep, thats it. comment out the login line, 122 and if you're going to build you're own signup page too, then comment out that too.

The communication issues in this thread probably arose because there are many ways to set things up and i wasn't sure how yours was set up so my instructions weren't specific enough. I've got it now.

In ACP -> SKINS -> NINGJA -> TEMPLATES -> header_menu_desktop.tpl, down near line 117 you will see this section:
            {if !jrUser_is_logged_in()}
                {jrCore_module_url module="jrUser" assign="uurl"}
                {if $_conf.jrCore_maintenance_mode != 'on' && $_conf.jrUser_signup_on == 'on'}
                    <li><a id="user-create-account" href="{$jamroom_url}/{$uurl}/signup">{jrCore_lang skin=$_conf.jrCore_active_skin id="4" default="create account"}</a></li>
                {/if}
                <li><a href="{$jamroom_url}/{$uurl}/login">{jrCore_lang skin=$_conf.jrCore_active_skin id="5" default="login"}</a></li>
            {/if}

That is the menu block that is showing to users who are not logged in. We can either delete that section or comment it out. (Term: "comment it out" means to leave it showing in the code, but not have that section actually run. Programmers often leave comments in code to let others know what they are thinking. I know you know this elise, but others might not.)

The comment format in smarty templates is to wrap the section in {* this is a comment *}

So if we want to comment out the login link, it becomes:
            {if !jrUser_is_logged_in()}
                {jrCore_module_url module="jrUser" assign="uurl"}
                {if $_conf.jrCore_maintenance_mode != 'on' && $_conf.jrUser_signup_on == 'on'}
                    <li><a id="user-create-account" href="{$jamroom_url}/{$uurl}/signup">{jrCore_lang skin=$_conf.jrCore_active_skin id="4" default="create account"}</a></li>
                {/if}
                {* <li><a href="{$jamroom_url}/{$uurl}/login">{jrCore_lang skin=$_conf.jrCore_active_skin id="5" default="login"}</a></li> *}
            {/if}
michael
@michael
09/11/16 07:21:37PM
7,826 posts

Modifying the Login form


Installation and Configuration

The extra item in the menu issue. Goal: remove the "Login" link that points to /user/login from the menu OR change it to point to our new page.

How we do that depends on what system is generating our menu. If its the Site Builder menu system, then open the MENU EDITOR and change the destination URL from there.

If its the default system for the skin, then change it in the header_menu_desktop.tpl file
ACP -> SKINS -> NINGJA -> TEMPLATES -> header_menu_desktop.tpl -> MODIFY

The line you're after is line 122 which reads:
<li><a href="{$jamroom_url}/{$uurl}/login">{jrCore_lang skin=$_conf.jrCore_active_skin id="5" default="login"}</a></li>

Adjust that to point to just the login url, the text can stay the same:
<li><a href="{$jamroom_url}/login">{jrCore_lang skin=$_conf.jrCore_active_skin id="5" default="login"}</a></li>
michael
@michael
09/11/16 07:16:49PM
7,826 posts

Modifying the Login form


Installation and Configuration

Another way to do it would be to alter the header.tpl file and add a URL specific div to the page
ACP -> SKINS -> NINGJA -> TEMPLATES -> header.tpl -> MODIFY

At the bottom of that file:
        {if $_post._uri == '/user/login'}
        <div>
        THIS IS AN EXTRA BIT added to just the login page
        </div>
        {/if}

Would add a block of code that just showed on the /user/login page.

Docs: "Using the Template Editor"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/3183/using-the-template-editor
michael
@michael
09/11/16 06:41:31PM
7,826 posts

Modifying the Login form


Installation and Configuration

The suggestion was not to put the login form on your home page, but rather make a login page setup however you want to set it up.

Currently the login page is here:
http://empathcommunityeliselebeaucom.jamroomhosting.com/user/login

on the /user/login url. With Site Builder you can add a new url anywhere and either add it to the menu, or don't.

By visiting a url that doesnt exist, say:
http://empathcommunityeliselebeaucom.jamroomhosting.com/login

You can create a NEW page there with site builder. You can add the login widget to the page and that will replicate the setup that exists on '/user/login' now, then add extra bits to the page via the site builder system.

Is what I was thinking. Programatically you could alter the /user/form page with events and listeners, but Im pretty sure thats not the question.

#2 Yes if you wanted to turn Site Builder on on your index page, the current content of the index page would be hidden, so you'd have to recreate it. We've heard the good suggestion about making that stuff already exist as Site Builder content and have it on our TODO list.
michael
@michael
09/11/16 06:22:52PM
7,826 posts

Modifying the Login form


Installation and Configuration

What you could do is create a page with Site Builder and use the 'Login and Signup' widget. Add a login form to the page in the right column and as much text/instructions as you like in the left.

There are some instructions on howto in this doc:

Docs: "Make the site visible to members only : Create the Login box "
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/4357/howto-make-the-site-visible-to-members-only#create-the-login-signup-box

And if you wanted to add extra Form Fields for the members to enter when they sign up, you're probably thinking of the Form Designer.

Docs: "Using the Form Designer"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/1275/using-the-form-designer
  356