Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » ign_password_protect

#109 2005-09-14 10:50:56

davidraine
Member
Registered: 2005-08-25
Posts: 15

Re: ign_password_protect

@skoggy – if you display the login form and view source, you can just use that html and style it yourself directly.

Offline

#110 2005-09-16 14:20:06

richards
Member
From: Johnson City, TN
Registered: 2005-01-30
Posts: 10
Website

Re: ign_password_protect

Hi I’m having trouble with logging into the system with username and password. When I submit the log in button, a blank screen is displayed, as well when I view source, the form action attribute is empty. Any special settings that I need to fill in?

Offline

#111 2005-09-30 01:16:07

gregmay
Member
Registered: 2005-09-29
Posts: 12

Re: ign_password_protect

Hi! I have a question about how ign_password_protect will interact with other plugins. I’ve created a NSFW section, set it to use a form where I have the proper tags inserted, added an article using that form. When they aren’t logged in, the nsfw article disappears. When they are logged in, though, the article appears properly but the category heading does not.

I’m using some templates and the upm_section_title plugin to post the section info above each post. All of the other posts are fine, but the NSFW posts have a section/author area that just says “article” and links to “/article” instead of the appropriate page for the post. The section info also doesn’t use the CSS info for some reason. I’m also using some excerpt plugins as well, but the culprit seems to be that the article info (and author, date, and time) are being hidden somehow from upm_section_title and the CSS doesn’t think it applies. Any ideas?

Thanks!

Last edited by gregmay (2005-09-30 01:26:19)

Offline

#112 2005-09-30 01:36:50

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

Re: ign_password_protect

Depends on how you’ve set it up. Basically anything between the <txp:ign_password_protect> tags will only get parsed if the user is logged in. One option is to use <txp:ign_if_logged_in> and <txp:else /> to return an alternate article form that doesn’t actually have any article related content.

On the page use
<code>
<txp:ign_if_logged_in>
<txp:article form=“regular-form” />
<txp:else />
<txp:article form=“nsfw” />
</txp:ign_if_logged_in>
</code>

Then for the “nsfw” form:

<code>
<p>Sorry, you must be logged in to see the naughty bits.</p>
</code>

By using a separate form, you’ll be hitting the database with <txp:article /> and therefore get the values I assume upm_section_title’s looking for.

Make sense?


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

Offline

#113 2005-10-03 19:56:20

joana
Member
Registered: 2005-09-16
Posts: 11

Re: ign_password_protect

Has anyone have this happen?

- I’m using the <code><txp:ign_usr_online></code> tag, but I only see who’s online once I reload the page…

<br />
Another thing:

- How do I use the <code><txp:ign_self_edit></code>? Is it a self-closing tag? Cause it didn’t work on my page…

Offline

#114 2005-10-05 09:53:48

jordi
Member
From: Barcelona
Registered: 2005-09-14
Posts: 94
Website

Re: ign_password_protect

I’ve just installed the ign_password_protect plugin (very useful!) for a non-English language website and now I’d like to translate the field names that the user sees in the login form (“name” and “password”).

I’ve searched for these values but I’ve not found them in the editable section of the plugin. Any idea about where to find them?

Offline

#115 2005-10-05 12:48:47

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

Re: ign_password_protect

> joana wrote:

Has anyone have this happen?
I’m using the <code><txp:ign_usr_online></code> tag, but I only see who’s online once I reload the page…

Hmm – I can see this happening, particularly if you’re the only one “logging” in. I have to admit that I haven’t really tested that function particularly thoroughly, so there could be an issue. I’ll take a look at the code.

Another thing:
How do I use the <code><txp:ign_self_edit></code>? Is it a self-closing tag? Cause it didn’t work on my page…

it is a self-closing tag, though it only works if you are using the alternate database option. I would recommend using mem_self_register for public user administration, as it works quite well with ign_password_protect and provides much more flexibility for those administrative tasks.

@jordi -

I’ve just installed the ign_password_protect plugin (very useful!) for a non-English language website and now I’d like to translate the field names that the user sees in the login form (“name” and “password”).

I’ve searched for these values but I’ve not found them in the editable section of the plugin. Any idea about where to find them?

unfortunately, it’s currently hardcoded into the form. if you scroll down to around line 413, you’ll find the function ign_doLoginForm. Find the lines
<code> graf(‘<label>name<br />’.fInput(‘text’,‘p_userid’,’‘,‘edit’).’</label>’). graf(‘<label>password<br />’.fInput(‘password’,‘p_password’,’‘,‘edit’).’</label>’).
</code>

and replace ‘name’ and ‘password’ with the appropriate content. I’ll add these to the text that can be localized when I get some time to work on this again.

Last edited by igner (2005-10-05 12:51:23)


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

Offline

#116 2005-10-05 14:23:40

jordi
Member
From: Barcelona
Registered: 2005-09-14
Posts: 94
Website

Re: ign_password_protect

Thanks Igner, that’s what I needed.

Offline

#117 2005-10-14 09:44:02

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: ign_password_protect

Hello,
when I try to reset an user password, I get this notices :

=====
Notice: Undefined index: ign_login in /………../textpattern/lib/txplib_misc.php(455) : eval()’d code on line 825

Notice: Undefined offset: 2 in /………………./textpattern/lib/txplib_misc.php(455) : eval()’d code on line 825
=====

I use alternate database, TXP last revision.

I get the mail without the name of the user :

=====
Dear ,

Your password has been changed. Your new password is: dyh7bm09
………
=====

Site is on Dreamhost. I use the mem_selfregister plugin.

Offline

#118 2005-10-14 12:39:03

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

Re: ign_password_protect

Are you trying to reset the password in the admin section, or using one of the front facing tags (and if so, which one)?

Diagnostics would help too.


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

Offline

#119 2005-10-14 13:29:48

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: ign_password_protect

I reset in the admin section.

Diagnostic :

Version de Textpattern: 4.0.1 (r1028)
last_update: 2005-10-14 09:26:49/2005-10-14 09:25:32
Document racine: /home/ampmultimedia/56tti.info (/home/.navy/ampmultimedia/56tti.info)
$path_to_site: /home/.navy/ampmultimedia/56tti.info
Chemin d’accès à Textpattern: /home/.navy/ampmultimedia/56tti.info/textpattern
Format des URL: section_id_title
open_basedir: /dh/web/phpmyadmin:/tmp:/usr/local/tmp:/dh/solidclient:/usr/local/lib/php:/home/ampmultimedia:/home/.navy/ampmultimedia
Répertoire temporaire: /usr/local/tmp
URL du site: 56tti.info
Version de PHP: 4.3.10
Register globals PHP: 1
server_time: 2005-10-14 06:28:43
MySQL: 4.1.14-Debian_3-log
Locale: fr_FR.UTF-8
Serveur: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
Version d’Apache: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e

contenu du fichier .htaccess:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule> ————————————

Offline

#120 2005-10-14 13:46:53

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

Re: ign_password_protect

hmm, a quick test locally has it working fine with the current revs – what version of ign_password_protect are you using?


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

Offline

  1. Index
  2. » Archives
  3. » ign_password_protect

Board footer

Powered by FluxBB