Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#101 2013-11-24 16:39:02

admi
Member
From: BY
Registered: 2007-12-10
Posts: 145
Website

Re: cbe_frontauth: Connect to (and disconnect from) backend from frontend

Is there any way to redirect to homepage after logout from the regular admin panel (that would be www.site.com/textpattern/index.php?logout=1) ? Or is the work of .htaccess rather than the plugin?

Offline

#102 2013-12-03 04:36:39

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,251
Website

Re: cbe_frontauth: Connect to (and disconnect from) backend from frontend

It seems <txp:cbe_frontauth_whois type="name" /> returns nothing immediately after login. Is there someway to debug this? I am using it in a form, displayed by a dashboard tab. The tab is created via smd_tabber and selected as the “Default admin tab” in Preferences.

Refreshing the page makes it work but I can’t expect users to do so.

Any help you can provide is appreciated. It’s a great plugin.

EDIT : When trying to do further debugging I added the following to my form:

<!-- logged in <txp:cbe_frontauth_if_logged> true <txp:else/> false </txp:cbe_frontauth_if_logged> -->

All the cbe tags after that worked. So a simple fix was to add this line at the begging of my form. So consider this an FYI rather than a call for help. I’m in good shape now.

Last edited by MattD (2013-12-03 04:50:09)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#103 2014-02-25 17:14:17

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: cbe_frontauth: Connect to (and disconnect from) backend from frontend

Hopefully someone can lend a hand in helping me out with some instruction.. I wanted to use the “change password” function, but am not sure how to implement…
This is an example of what I have:

<txp:cbe_frontauth_if_connected>
 <txp:else />

  <h1>Member Login</h1>

   <txp:cbe_frontauth_loginwith value="username" />
  <txp:cbe_frontauth_login invite="">
   <ol class='login'>
    <txp:cbe_frontauth_logname label="Username" wraptag="li" />
    <txp:cbe_frontauth_password label="Password " wraptag="li" />
    <txp:cbe_frontauth_submit label="Login" wraptag="li" class="submit" />
   </ol>
  </txp:cbe_frontauth_login>
</txp:cbe_frontauth_if_connected>


<txp:cbe_frontauth_protect>

 <h1>Welcome to the Member Area</h1>
 <p><txp:cbe_frontauth_link label="Logout" class="btn" link="logout=1" target="_get" /></p>

</txp:cbe_frontauth_protect>


What and were would I insert for the change password feature..??? 
Let me know if any more info is needed in order to explain.. 

Thank you very much......... 
Fiddle

Last edited by fiddle (2014-02-25 17:18:25)

Offline

#104 2014-02-25 18:06:01

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_frontauth: Connect to (and disconnect from) backend from frontend

fiddle wrote #279245:

I wanted to use the “change password” function, but am not sure how to implement…

Just download and activate cbe_members.
It is not highly developed but should do the job without any other manipulation.

Offline

#105 2014-02-25 18:08:51

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: cbe_frontauth: Connect to (and disconnect from) backend from frontend

By activating the plugin, all i get under my login form is “forget password?”, which I believe is the password reset not the change..?

Thanks

Last edited by fiddle (2014-02-25 18:09:04)

Offline

#106 2014-02-25 18:53:11

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_frontauth: Connect to (and disconnect from) backend from frontend

I read too fast, sorry.

A password can be changed by the user only, and (s)he must be connected to perform this action. The “change password” message won’t display as long as the user is not connected.
And… just noticed: use <txp:cbe_frontauth_logout />

Also note that <txp:cbe_frontauth_if_connected> and <txp:cbe_frontauth_protect> are synonyms, so you probably can do something like :

<txp:cbe_frontauth_if_connected>

  <h1>Welcome to the Member Area</h1>
  <txp:cbe_frontauth_logout type="link" class="btn" />

<txp:else />

  <h1>Member Login</h1>

  <txp:cbe_frontauth_login invite="">
   <ol class='login'>
    <txp:cbe_frontauth_logname label="Username" wraptag="li" />
    <txp:cbe_frontauth_password label="Password " wraptag="li" />
    <txp:cbe_frontauth_submit label="Login" wraptag="li" class="submit" />
   </ol>
  </txp:cbe_frontauth_login>

</txp:cbe_frontauth_if_connected>

Last edited by CeBe (2014-02-25 19:00:15)

Offline

#107 2014-02-25 19:01:18

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: cbe_frontauth: Connect to (and disconnect from) backend from frontend

Thank you very much.. It was the missing
<txp:cbe_frontauth_logout />
that was doing it..
And thanks for pointing out the if connected, should simplify the code…
Thanks again, really appreciate it..

Offline

#108 2014-04-04 15:39:51

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: cbe_frontauth: Connect to (and disconnect from) backend from frontend

Loving the plugin….
One question, is there a way to display all users logged in.? or last login for all users at the same time.?
Thanks

Offline

#109 2014-04-04 16:48:43

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_frontauth: Connect to (and disconnect from) backend from frontend

Is it related to forum.textpattern.com/viewtopic.php?pid=280055#p280055 ?
If it is, I confirm that there is something missing : last login date is not set, and it definitely should >_<

Now, more precisely about your question : if you can tell when someone logs in, it’s more difficult to tell when (s)he leaves. If (s)he logs out, you can say that (s)he leaves… but (s)he can leave without logging out and you then have to perform some sort of magic to determine whether (s)he is still here or not.

But let me first fix this stupid last access bug.

Offline

#110 2014-04-04 17:05:05

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: cbe_frontauth: Connect to (and disconnect from) backend from frontend

Hi…
Yes it is, I was trying to find a way around that issue, but if your plugin get the info from the same lace, guess it would not resolve it….
It is weird, it works on some logins, but not others.. I created an account to test it, made sure I logged on and off, multiple times, but never shoes any last logon info…

Not the biggest deal really, wanted to keep tabs on users, but can live without…

Thank you for the help..
Fidel

Offline

Board footer

Powered by FluxBB