Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#571 2008-04-09 18:49:35

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

Re: ign_password_protect

Thank you!! This is exactly what I wanted to know!!

Offline

#572 2008-04-10 00:11:01

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: ign_password_protect

Can this plugin be modified so the use of this tag: <txp:ign_usr_online /> can show the names of the commentators rather those logged in on admin side? Also, have those commentator names be linked to their sites.

Last edited by Ruhh (2008-04-10 00:13:05)


<txp:Ruhh />

Offline

#573 2008-04-25 20:08:43

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: ign_password_protect

I can’t get the logout link to go to my root page with return_path used within 0.5b9 ???

<txp:ign_logout_link return_path=”/vg”>abmelden</txp:ign_logout_link>

thanks


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#574 2008-04-26 21:03:23

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: ign_password_protect

I’m having little troubles :)

I use the plugin to have privilege levels across my site. I programmed several functions myself to include them into txp. What I now needed was the Id of the current logged in user in my function.

I tried the following:

<txp:ign_if_logged_in privs=“1,3,4” >

<txp:php>
$user=<txp:ign_user_info />; //for sql_query SELECT user_id FROM ign_users WHERE name=$user
include(“php/article_show.php”);
</txp:php>

<txp:else />

<p class=“fehler”>Sie haben keine Rechte diese Funktion zu benutzen.</p>

</txp:ign_if_logged_in>

the problem is that the txp tag won’t be interpreted which I wanted to use to get the user_id from the ign_users table.

How can I transfer the ID of the currently logged user to my included php function??


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#575 2008-04-26 22:19:11

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: ign_password_protect

I use your cookie now to get the user_id :) … still no forwarding with return_path ;)


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#576 2008-05-05 17:28:26

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: ign_password_protect

hi … it’s me again ;)

do you think it would somehow be possible to inlcude the users privilege into the cookie so that something like <txp:ign_user_info type=“priv”/> would then output the set privilege level

:) thx

Markus


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#577 2008-05-06 03:59:12

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: ign_password_protect

markusfalk wrote:

do you think it would somehow be possible to inlcude the users privilege into the cookie so that something like <txp:ign_user_info type=“priv”/> would then output the set privilege level

No need to add it into cookie, as it already is stored inside the database. Actually all info is pull from the db, based on the cookie. In example the priv level can be output by:

<txp:php>
	global $ign_user, $ign_user_db, $txp_user, $ign_levels, $ign_levels;
	$name = ($ign_user) ? $ign_user : $txp_user;
	$privs = safe_field('privs', $ign_user_db, "name='$name'"); // Now $privs is number
	echo $ign_levels[$privs]; // Now it should be text, based on $ign_levels inside the plugin
</txp:php>

Last edited by Gocom (2008-05-06 04:02:15)

Offline

#578 2008-05-06 22:06:45

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: ign_password_protect

indeed :)

thanks


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#579 2008-05-21 23:28:42

idoremus
Member
From: NW United States
Registered: 2008-04-16
Posts: 19

Re: ign_password_protect

Hello all,
I am an extremely new user to Textpattern. I am still trying to get my head around the forms and tags. I am designing a member website which will be password protected. My idea is to have a front welcome page, a join page, about page, and picture page unprotected. In the navbar I would have a sign-in form which would give the viewer access to the Members Home page, and five or so other sections. Someone recommended ign_password_protect so I have it installed.

I apologize for asking such a basic question, I have searched high an low for a “Dummies Guide” to get ign_password_protect to work. I have read the info page several times but I just don’t get it. I figure if I can get this piece to work, I can start designing the content and work on my tag/form training as I go. If I can’t get it to work, I would be concerned about building the site.

Can someone give me simple steps to get this working? Can this plugin be setup to protect entire sections in TXP? Am I working with the right plugin? My other option was to have all my open content in flat files and link to a password protected install of TXP. Any help would be appreciated.

Cheers,
Ian

Offline

#580 2008-05-22 01:11:03

garbo
Member
From: Montreal, Canada
Registered: 2007-01-02
Posts: 28
Website

Re: ign_password_protect

@idoremus

Welcome to Textpattern. I’ve been using it for more than a year and it does get easier over time. The ign_password_protect plug-in can be used in discreet locations throughout your site. For example, if you have a template page for your photos, you can put the content that needs to be protected between the {txp:ign_if_logged_in} and {/txp:ign_if_logged_in} tags with an optional {txp:else /} tag that shows up when the person is not logged in.

This tag alone logs in users that are added in the Admin section of the backend (writers, publishers, etc.), so if you need to have members register themselves, you may need to add the mem_self_register plug-in.

I admit, I haven’t quite figured it all out myself, but I’m currently working on a client site that requires membership access. Unfortunately, the documentation for this plug-in is a little scant and needs more examples, but all these plug-in authors have busy lives outside of this community, so patience is sometimes required.

If you want to stay in touch, I can help walk you through as I get it up and running myself.

Offline

#581 2008-05-22 06:32:25

idoremus
Member
From: NW United States
Registered: 2008-04-16
Posts: 19

Re: ign_password_protect

Gary,

Thank you for the help, it makes sense. I would be interested in hearing how your project turns out.

I took a look at your website, I love the clean design — very easy to navigate.

Ian

Offline

#582 2008-05-28 21:53:35

yatil.de
Archived Plugin Author
From: Vienna/Austria
Registered: 2004-02-26
Posts: 14
Website

Re: ign_password_protect

Hello,

the plugin doesn’t work for me on my MAMP development server. I get authorized, but there is no cookie set and every reload (form interaction, link) forces me to reenter my credentials. There are no TXP errors, even in Debug Mode. (cookies are allowed, credentials are right)

Any Idea?

Thanks for your help,
Eric


Eric Eggert
Textpattern-Sites: yatil! | Snookerblog | Schachfreunde Ruhbank

Offline

#583 2008-05-28 22:18:06

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

@yatil.de – how are you accessing the site? by IP or a URL?


And then my dog ate my badger, and the love was lost.

Offline

#584 2008-05-29 06:22:37

yatil.de
Archived Plugin Author
From: Vienna/Austria
Registered: 2004-02-26
Posts: 14
Website

Re: ign_password_protect

igner wrote:

@yatil.de – how are you accessing the site? by IP or a URL?

By URL: http://localhost:9100/

Edit:
Version 0.4.2d works like a charm and does everything I need at the moment.

Last edited by yatil.de (2008-05-29 06:40:11)


Eric Eggert
Textpattern-Sites: yatil! | Snookerblog | Schachfreunde Ruhbank

Offline

#585 2008-05-29 14:53:54

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

ah – yes. I can see where the fix I added to address multiple top-level domains might have an issue with that url. Hmm. I’ll look at options to improve that.


And then my dog ate my badger, and the love was lost.

Offline

Board footer

Powered by FluxBB