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 » Tue Oct 19, 2010 12:49 pm

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: 14615
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: disable registration

Post by Thorsten » Tue Oct 19, 2010 7:27 pm

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 » Tue Oct 19, 2010 9:25 pm

worked like a charm! thanks!

rav
Posts: 33
Joined: Thu Oct 20, 2005 7:23 am

Re: disable registration

Post by rav » Thu May 10, 2018 4:04 pm

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: 14615
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: disable registration

Post by Thorsten » Fri May 11, 2018 2:52 pm

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: 33
Joined: Thu Oct 20, 2005 7:23 am

Re: disable registration

Post by rav » Thu Aug 09, 2018 7:15 pm

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

Who is online

Users browsing this forum: Bing [Bot] and 2 guests