Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#145 2005-10-27 12:43:01

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

Re: ign_password_protect

not a lot of changes – replace the ign_send_new_password function with the following:

<code> function ign_send_new_password($NewPass,$themail,$name) { global $ign_user, $ign_user_db, $sitename, $txp_user;

$realname = safe_field(‘realname’, $ign_user_db, “name=’$name’”); $message = sprintf(ign_pp_gtxt(‘change_email’),$realname, $name, $NewPass, $sitename, hu);

return ignMail($themail, “[$sitename] “.gTxt(‘your_new_password’), $message); }
</code>

and you’ll take care of the email issue. You can ignore the other fixes if you aren’t planning on using the plugin in page mode (as opposed to inline).

I still plan on improving the localization when I wrap up a couple of projects I’m currently working on. Please feel free to send me any suggestions you might have.


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

Offline

#146 2005-10-27 13:13:52

oldi
Member
Registered: 2005-10-14
Posts: 87

Re: ign_password_protect

the above link doesn’t work for me

Offline

#147 2005-10-27 13:36:27

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

Re: ign_password_protect

sorry – dropped a couple of slashes from the url. fixed now.


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

Offline

#148 2005-10-27 14:48:07

oldi
Member
Registered: 2005-10-14
Posts: 87

Re: ign_password_protect

thanks. resetting passowrds from admin works fine now.

I had a question about hiding some links which would appear only for the registered users. I know i have to use <code><txp:ign_password_protect hide_login=“true”></code>. But i don’t seem to find where the tags or code of the links are. I have found this in a sidebar form

<code><div class=“sidebarbody links”> <h3>Links</h3> <div class=“sidebarin”> <txp:linklist form=“plainlinks” limit=“5” wraptag=“ul” break=“li” /> </div> </div> </div>

</code>

But that includes all my links, while i want only few of them. What should i do in this case?
thanks

Offline

#149 2005-10-27 15:08:38

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

Re: ign_password_protect

hmm, good question. I’d probably do something along the lines of the following:

1. set up a “restricted” or “member” category for links in Content->Organise
2. set up a links form called ‘restricted’ that looks something like
<code>
<txp:if_category name=‘restricted’>
<txp:ign_if_logged_in>
<txp:linkdesctitle /><br />
</txp:ign_if_logged_in>
<txp:else />
<txp:linkdesctitle /><br />
</txp:if_category>
</code>

3. call that form using <txp:linklist form='restricted' limit='5' wraptag='ul' break='li' />

That should do the trick for you – though I didn’t have time to test it to be certain.


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

Offline

#150 2005-11-02 16:06:18

kalius
New Member
From: Madison, WI
Registered: 2005-07-21
Posts: 8

Re: ign_password_protect

Actually no download links on this tread are working, neither the link at txp resources site.

Last edited by kalius (2005-11-02 16:29:16)

Offline

#151 2005-11-03 10:43:24

Hiram
Member
From: Utrecht, Netherlands
Registered: 2004-02-16
Posts: 35
Website

Re: ign_password_protect

Same here. File downloaded contains one character, a letter ‘a’.

Offline

#152 2005-11-04 20:34:48

kalius
New Member
From: Madison, WI
Registered: 2005-07-21
Posts: 8

Re: ign_password_protect

Can somebdoy either provide a working download link or send me the plugin file?

The links to it aren’t working and the author donesn’t respond, I really need this to finish a website.

Offline

#153 2005-11-04 20:46:27

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

Re: ign_password_protect

sorry folks – in the process of moving hosts…seems i missed a few posts over the past couple of days.

link should be working again, let me know if it’s not.


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

Offline

#154 2005-11-08 07:19:42

step21
Member
From: Germany, Black Forest
Registered: 2004-09-03
Posts: 25
Website

Re: ign_password_protect

Normally, as I read it, mem_self_register supports mem_self_edit and mem_password_change with ign_password protect. However, if I put for example mem_password_change on a page which authenticates with ign_password_protect in page mode, (an extra section for editing the password) I see nothing, so I assume, that mem_self_register doesn’t recognize the authentication.
As user database, the normal txp user db is used.
Any ideas? Thx in advance,
step21


Ever/Never Design
Beauty meets Business.

Offline

#155 2005-11-10 13:59:06

darrepac
Member
Registered: 2005-09-26
Posts: 64
Website

Re: ign_password_protect

Crazy behaviour!!!
Let me explain
I am in a very big company and so behind prxy/firewall/router/caches/…. I browse my website and particularly the part which is password protected… I am logged into it’s ok…
A friend, who is working 2 flats below in the same company is able to read the protected area without entering logging info and on its screen he sees that he is logged as me!!! Crazy!!!
Outside my company it works very well….
Do you see where could come the mistake….I was thinking about cache and too permissible cookie, but in fact I do not really know…
If you have ideas

Pascal

Offline

Board footer

Powered by FluxBB