Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#211 2006-05-25 03:17:53

cabanadigital
Member
Registered: 2006-05-25
Posts: 11

Re: ign_password_protect

Hi there. I’m working on a commercial site and my client requested me a protected area for the company’s clients, which allow them to access some exclusive files. I downloaded and installed ign_password_protect successfully. I think it’s a great tool. Here’s the issue: although I could placed the contact form in the home page, I wasn’t be able to achieve that the logging directed me into a specific category.
I wonder if what I need is possible through this plugging, or if I just have to follow another way.

Thanks Jeremy for this plugging… and thanks everybody.

Jose

p.s. sorry for my bad english

Offline

#212 2006-05-25 03:36:03

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: ign_password_protect

Jose, I think you should

  • Create a new section and password-protect the whole section with ign_password_protect.
  • Create a link to all files within this section on your homepage that is visible only after the clients logged in. – This is easy to achieve.

As far as I know, you cannot redirect users to another category/section/whatsoever immediately after login.

Offline

#213 2006-05-25 03:51:41

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

Re: ign_password_protect

no – the plugin currently does not do any sort of redirecting on login. Depending on your PHP skills, it could feasibly be added (I don’t have the time to do it myself at the moment).

also, it’s important to note that the plugin doesn’t technically secure file downloads that are uploaded to the Files tab – the best it’ll currently do is to obscure file listings, but a user could guess at the download URLs and download files anyway. (The plugin also doesn’t protect content in search results or feeds, so bear that in mind.)


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

Offline

#214 2006-05-25 03:56:06

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: ign_password_protect

Concerning the file downloads and the feed, I have to agree with the master, concerning the search results, not: You can hide search results with the plugin hidden in the used form in an <txp:if_search> – Tag.

Offline

#215 2006-05-25 04:06:49

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

Re: ign_password_protect

Michael wrote:

Concerning the file downloads and the feed, I have to agree with the master, concerning the search results, not: You can hide search results with the plugin hidden in the used form in an <txp:if_search> – Tag.

well, that’s partially true – if you want to password protect all the result listings. Depending on what / how you’re protecting content, you could conceivably build some tricky logic using if_category and if_section to selectively apply protection (though I’m not 100% sure that’d really work – I’d have to take another look at how search results are generated). And I’m WAY too tired to do it now :)


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

Offline

#216 2006-05-25 04:10:34

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: ign_password_protect

I no longer use TXP’s search-function, but I could even selectively protect parts of my website, since it is working right now similar to flickr: There is a “friends & family”-section and the “public” one. If you are logged in – everything, even the search results are different.

And igner: Go to bed now! ;-)

Offline

#217 2006-05-25 14:39:06

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

Re: ign_password_protect

Michael wrote:

I no longer use TXP’s search-function, but I could even selectively protect parts of my website, since it is working right now similar to flickr: There is a “friends & family”-section and the “public” one. If you are logged in – everything, even the search results are different.

not to derail my own thread, but what are you using for search, or are you using anything?
and can you provide some details on how you’re determining context for protecting content on the search?

And igner: Go to bed now! ;-)

i did – but not for nearly long enough.


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

Offline

#218 2006-05-25 21:46:54

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: ign_password_protect

If you search – at least in my case – txp uses the default page template and displays a specific form for displaying articles (in my case: title with permalink and date published and some lines of text).

If you add an if_search-option into your default page and determine whether so is logged in or not, you can filter which sections the search results should show up! In my case the section “private” did not, when someone was not logged in.

Offline

#219 2006-05-29 10:33:04

stem
New Member
Registered: 2004-11-02
Posts: 6

Re: ign_password_protect

Hi and thanx for the great plugin.

One question: How do I achieve to change the ‘admin privs’. I just want to let a staff writer see the ‘ign_user_mgmt’. I already tried changeing the privs in the plugin code, but nothing happens. And can the tab be displayed below the ‘content’ tab.

Any idea? Thank you.

Offline

#220 2006-05-30 12:00:39

uncalau
New Member
Registered: 2006-05-30
Posts: 3

Re: ign_password_protect

I have installed ing_password_protect and have been testing it for a few days. I mus tsay Igner did a really nice plugin.

However, my problem is:

The ‘name’ is not display when login. Anyone with any idea what might have cause this problem?

Besides, I wish to some how personalise the website – example:
when a user login,
A text “Welcome [username]” appears.
How can that be done?

I am very new at textpattern and my knowledge of PHP and MySQL is very limitted. I welcome suggestion and guidance.

Thank you.

Offline

#221 2006-05-30 16:12:28

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

Re: ign_password_protect

stem wrote:

One question: How do I achieve to change the ‘admin privs’. I just want to let a staff writer see the ‘ign_user_mgmt’. I already tried changeing the privs in the plugin code, but nothing happens. And can the tab be displayed below the ‘content’ tab.

It’s possible, there are a few different places that code has to be changed.

to change the tab location, change the line that reads:

register_tab('extensions', 'ign_user_mgmt', 'ign_user_mgmt'); to register_tab('content', 'ign_user_mgmt', 'ign_user_mgmt');

You will also need to add privileges to that tab – add the following line:
add_privs('ign_user_mgmt', '1,2,3,4'); //grant privs to publisher, editor, copy editor, staff writer

However, this will only allow the non-publishers to see the list of users, not actually edit them. To do that, you’d have to change the ign_admin function (starts around line 715) – change the lines that read

<notextile><code> echo ($myprivs 1) ? ign_new_user_form(): ''; echo ($myprivs 1) ? ign_reset_user_pass_form() : ‘’;</code></notextile>

to

<code>echo ign_new_user_form();
echo ign_reset_user_pass_form();</code>

This will strip out ANY permissions restrictions within the tab – if the user can see the tab, they can make any necessary changes.

I’ll probably work out a more elegant way of handling this in future versions.


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

Offline

#222 2006-05-30 18:30:05

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

Re: ign_password_protect

uncalau wrote:

The ‘name’ is not display when login. Anyone with any idea what might have cause this problem?

Whoops – look like that’s broken in the 0.4.2d release; must have gotten distracted at some point. I’ll have a fix out in a day or so.


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

Offline

#223 2006-05-31 12:37:37

stem
New Member
Registered: 2004-11-02
Posts: 6

Re: ign_password_protect

Perfekt.! The permission question is solved. It works without problems.

Thank you very much, IGNER!

Offline

#224 2006-06-07 14:18:02

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: ign_password_protect

Hi Jeremy,

Its been a while since I posted here. Hope things are fine with you. The website I was going to launch never saw light because I got occupied with a lot of other things like my new job and a load of other things. Neverthless, I’m still using it in my companies intranet to allow employees post feedback using txp’s comment form. Therefore your effort is highly appreciated. I am especially happy about the fact that you have continued to support the community.

I’m also using your plugin in <a href=“http://www.naamasankeerthana.com”>one of my sites</a>. Unfortunately, the logout link results in a 404 when using messy urls. Can you extend this plugin to support messy urls? Because my host does not support mod_rewrite.

Thank you

Regards,
Vasanth

Last edited by creativesplash (2006-06-07 14:24:16)


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#225 2006-06-07 14:49:50

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

Re: ign_password_protect

Off the top of my head, I can’t think of a reason that wouldn’t work with messy URLs, but I can take a look and make it work. It’ll likely be a couple days, though.


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

Offline

Board footer

Powered by FluxBB