Textpattern CMS support forum

You are not logged in. Register | Login | Help

#131 2015-11-20 15:51:46

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 476
Website

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

Hi claire,

I need to allow access to articles only to admins (all admins) and the article author.
I try this

<txp:cbe_frontauth_if_connected level="1" name='<txp:author title="0" />'>
<txp:else />
	<txp:txp_die status="401" />
</txp:cbe_frontauth_if_connected>

but don’t work

I think it’s not possible to combine level attribut with name attribut.
A idea ?

Last edited by sacripant (2015-11-20 15:58:06)

Offline

#132 2015-11-20 20:34:03

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

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

sacripant wrote #296720:

I think it’s not possible to combine level attribut with name attribut.

It should have. Thanks for reporting!

It’s now fixed, download v0.9.7 from GitHub:

Offline

#133 2015-11-21 19:12:23

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 476
Website

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

Cool !
Thx Claire.

Offline

#134 2016-07-27 08:18:41

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,303
Website

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

Hi
I dont know what am i misdoing, but the code below is not working link it should!

<txp:cbe_frontauth_protect level="5">
	<p>Je suis level 5 level du user avec cbe_frontauth_whois : <txp:cbe_frontauth_whois type="privs" /></p><hr>
</txp:cbe_frontauth_protect>
<txp:cbe_frontauth_protect level="6">
	<p>Je suis level 6 level du user avec cbe_frontauth_whois : <txp:cbe_frontauth_whois type="privs" /></p>
</txp:cbe_frontauth_protect>

The result :

Je suis level 5 level du user avec cbe_frontauth_whois : 6
Je suis level 6 level du user avec cbe_frontauth_whois : 6

What am i doing wrong ?
I use txp 4.5.7, php 5.4.45 / MySQL: 5.5.5-10.0.25-MariaDB-cll-lve

Hi, I tryed the 0.9.6 version and it works, i think it s a bug on the new version 0.9.7

Last edited by Dragondz (2016-07-27 09:16:42)

Offline

#135 2017-11-02 00:53:24

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 640
Website

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

cbe_frontauth 0.97 gave me a unregistered_tag error in debug mode on a site updated from 4.4.1 to 4.6.2.

The error goes away at first by adding the following at the top of the plugin code:

if (class_exists('\Textpattern\Tag\Registry')) { Txp::get('\Textpattern\Tag\Registry') ->register('cbe_frontauth') ->register('cbe_frontauth_backend') ->register('cbe_frontauth_box') ->register ('cbe_frontauth_if_connected') ->register('cbe_frontauth_invite') ->register('cbe_frontauth_edit_article') ->register('cbe_frontauth_label') ->register('cbe_frontauth_link') ->register('cbe_frontauth_if_logged') ->register('cbe_frontauth_login') ->register('cbe_frontauth_loginwith') ->register('cbe_frontauth_logname') ->register('cbe_frontauth_logout') ->register('cbe_frontauth_password') ->register('cbe_frontauth_protect') ->register('cbe_frontauth_redirect') ->register('cbe_frontauth_reset') ->register('cbe_frontauth_stay') ->register('cbe_frontauth_submit') ->register('cbe_frontauth_whois') ; }

When the cbe_frontauth-made article EDIT box appears in the frontend i get popup errors indicating, that the article ID in question didn’t make it into the plugin-generated link:

User_Error "'' is not an integer". twice
then
User_Error "Incorrect parameter count in the call to native function 'FROM_UNIXTIME'".
then the whole round again.

I end up with an empty article write window in the backend.

Any idea, what it could be?
The site was updated (not running cbe_frontauth before), because the server provider announced to update PHP from 5.3 to a newer version. In fact they didn’t update yet.
register globals ON in htaccess gives me a security warning in TXP diagnosis about an outdated PHP version used.
Maybe that is the source of error?

Last edited by jayrope (2017-11-02 21:00:07)


a hole turned upside down is a dome, though only when there’s gravity.

Offline

Board footer

Powered by FluxBB