disable registration

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

disable registration

Post by jazcyk »

I want to hide the link 'do you want to register?' in the FAQ entry page. I intend to wrap it in HTML comments (and rename register.tpl), but I cannot find the place. It does not seem to be in index.tpl. Can you point to it? Or do you have a better way to do it?

Background is that we do not use the FAQ interactively (we have also a Forums, a support ticket system and a CRM system, so that is enough!). But since upgrade to 2.6 we get requests for user registration every day and we will have to mail the person that the request will not be approved and (s)he should use our Forums to interact with us instead.

FAQ visitors will still be able to comment, propose new FAQs and translations. That we do not change.
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: disable registration

Post by Thorsten »

Hi,

you can remove the template variable

Code: Select all

{msgRegisterUser}
in the file template/default/loginbox.tpl

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

Re: disable registration

Post by jazcyk »

worked like a charm! thanks!
rav
Posts: 37
Joined: Thu Oct 20, 2005 7:23 am

Re: disable registration

Post by rav »

Thorsten wrote: Tue Oct 19, 2010 7:27 pm you can remove the template variable

Code: Select all

{msgRegisterUser}
in the file template/default/loginbox.tpl
I'm updated to version 2.9.11 and want disable "Registration" as described.
Is that still valid? I tried, but it seems not to work (File: template/default/loginbox.tpl).
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: disable registration

Post by Thorsten »

Hi,

in 2.9 it's in index.tpl:

Code: Select all

<li>{msgRegisterUser}</li>
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rav
Posts: 37
Joined: Thu Oct 20, 2005 7:23 am

Re: disable registration

Post by rav »

I modified index.tpl

But visitors can still register here:
http://www.myfaqsomewere.com?action=login

How disable there?
I tried on file

Code: Select all

..../template/loginbox.tpl
--> Removed {msgRegisterUser}

But resister-link still visible.
Post Reply