<![CDATA[ No login fields visible - My Forums]]> https://forums.modx.com/thread/?thread=99762 <![CDATA[No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539615
Maybe it has to do with the following: I checked if the registration page exists, which it does. But registering does not work: nothing happens when submitting the form.

I checked everything again and again, but I can't find what's wrong.]]>
handjes Mar 15, 2016, 07:34 AM https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539615
<![CDATA[Re: No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539931
What was happening was the login part was gone but the actual user panel was working, so when I was already logged in I could see the panel.

It seems the panel code will not work in the snippet, but it was already working anyway. So, I left it there and only changed the second clause, which wasn't working. The snippet returns nothing if the user is logged in, and returns the login box when not.

Wrapper.tpl:
Cut out everything within these brackets (line 74):

                    [[+discuss.user.id:is=``:then=`

                    `]]


And place the inside portion into the snippet, and then call the snippet in wrapper.tpl in place of the above
[[!LoginOrNothing]]


The snippet's got my slightly customized code, you should use precisely what you have in your wrapper.tpl

Snippet:
<?php
/* LoginOrNothing snippet */
if ($modx->user->hasSessionContext('web')) {
   return '';
} else {
   return '<div class="masthead-login m-login_box h-group" style="margin-top:5px; margin-left:25%;">
                 <div class="masthead-title">Login below or <a href="[[~[[++discuss.register_resource_id]]]]">create an account!</a></div>
                     <form class="m-login_block" method="post" action="[[~[[++discuss.login_resource_id]]]]">
                         <input type="hidden" name="service" value="login" />
                         <input type="hidden" name="discussPlace" value="[[+discuss.place]]" />
                         <div class="f9-f12">
<p style="white-space: nowrap;">
                                 <input type="text" name="username" id="login-username">
                                 <label class="loginUsernameLabel">Username</label><label class="loginPasswordLabel">/ Password</label>
 
                         <br />
 
                                 <input type="password" name="password" id="login-password">
          
                             </p>
                <p style="white-space: nowrap;"><input class="alt-1-cta" type="submit" value="Login">  <a href="[[~11]]">Reset Password</a></p>
                         </div>';
}
]]>
nuan88 Mar 25, 2016, 12:05 AM https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539931
<![CDATA[Re: No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539913
https://forums.modx.com/thread/99793/one-bit-of-discuss-code-works-while-another-doesn-t-how-to-check-if-there-is-a-current-user-logged

Its very odd that the one part of the code stopped working.

Modx is weak in forums, but does have a number of extras that provide various functionality, and also can be integrated with other systems. But everyone wants something different of course, and has different coding ability, money or time. I picked up Discuss simply because the other options were not attractive to me at all for forums. With most, there is no easy way to customize very much, but a basic system is easy enough to do.

This particular bug was not that hard to fix, so the core of Discuss is not really damaged. But, its hard to pick up a solution that is not being supported at all, which points to an uncertain future.]]>
nuan88 Mar 24, 2016, 12:24 PM https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539913
<![CDATA[Re: No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539909
Right now, it's looks like I'll have to search for an alternative solution. MODX does not really help me here.]]>
handjes Mar 24, 2016, 09:31 AM https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539909
<![CDATA[Re: No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539783
I have an independent login on my front page, that still works, and so I am able to see that when i am logged in the user links are still visible, no new PMs and so on...how about you?

So I stand corrected, it seems you did do everything right. Well, one way around this would be to stick in an independent login code.

The reason I think its the newest Revo is we just upgraded and I guess this got broken by the upgrade. Can't say for sure but probably.

I should have moved on to a good solution already, sorry about that. Being lazy these days. We can just stick some basic login code in the discuss code to get this working, but styling will be a problem as it will only have default login styling unless you want to make a new tpl.

So i am using a tpl I made before, here is the normal login code, and I will put it in the code I originally pasted. [[!Login? &preHooks=`preHook.DiscussLogin` &loginResourceId=`20` &loginTpl=`lgnNewFrontTpl` &postHooks=`postHook.DiscussLogin` ]]]]>
nuan88 Mar 18, 2016, 11:15 PM https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539783
<![CDATA[Re: No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539668
There are an enormous number of extras. Articles may be what you need: http://modx.com/extras/package/articles]]>
nuan88 Mar 16, 2016, 08:48 AM https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539668
<![CDATA[Re: No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539662 If MODX wants to survive (or is it dead yet?) these things need fixing.

Maybe SMF is an alternative. In fact I don't need a classic forum, but need to build a community where members can discuss, offer skills and talents, update their profile, etc.]]>
handjes Mar 16, 2016, 06:17 AM https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539662
<![CDATA[Re: No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible#dis-post-539660
Actually, I'm not a programmer. Discuss for me is already kind of difficult. Instructions are poor for me to work with.

Hard coding system settings is also a no go area for me.

I hope Discuss 2 will be far more intuitive and well documented.

Ok, back to business.

You mention wrapper.tpl: what about that file? The instructions don't mention that file.

This is my Login resource (just copied it from the instructions):
[[!Login? &loginTpl=`disLoginTpl` &logoutTpl=`disLogoutTpl` &preHooks=`preHook.DiscussLogin` &postHooks=`postHook.DiscussLogin`]]

]]>
handjes Mar 16, 2016, 06:12 AM https://forums.modx.com/thread/99762/no-login-fields-visible#dis-post-539660
<![CDATA[Re: No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible#dis-post-539650
But yeah, you are right, Discuss is reaching the end of its life-cycle without a doubt. I am hoping to build some support for Discuss2, which has been released to the community and was built just about a year ago (maybe 2) by Petri, and my info is that its quite close to production-quality or near enough that with some support and testing the community could use it. I would love to help document that system, it looks really cool. Maybe over the summer I will ask my dev to try and get it set up on my server.

I don't think SMF is really a replacement for Discuss to be honest, Vanilla too. Discuss gives users real control over their forum style, even with the limitations of the theme. SMF looks very basic (can't open github because I am in China, can't wait to get out of this backward country) from what I can see. Vanilla requires you to be a serious coder (and dig deeply into the Smarty library, which one dev told me is just terrible) just to do the simplest stuff, and in the forums they are nice but its clear they are not encouraging DIY people. Vanilla is like the wordpress of forums, easy to get started but seriously limited in the control you have.

That's why I think Discuss2 could do very well, the options that I have seen are all lacking in one way or another. Many people want control of their systems and most options are unable to provide that.]]>
nuan88 Mar 16, 2016, 01:41 AM https://forums.modx.com/thread/99762/no-login-fields-visible#dis-post-539650
<![CDATA[Re: No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible#dis-post-539649
I would use SMF and and https://github.com/bezumkin/MODX-SMF for user integration and SSO.]]>
sottwell Mar 16, 2016, 12:40 AM https://forums.modx.com/thread/99762/no-login-fields-visible#dis-post-539649