Jump to content
TNG Community

New member


billybebob

Recommended Posts

Happy new year 2022 !

Recently a member of TNG and I have a question on how to highlight the option:

"Don't have a login? Register for a new user account" --- which is completely at the bottom of the login interface and not highlighted.

Is a way to add a button for new member to redirect the user to register just like the hyperlink for this? Any help will be appeciated!

Best regars

Robert Poissant
Blainville, Quebec, Canada

new_User.png

Link to comment
Share on other sites

Rob Severijns

Hi Robert,

Funny that you mention this.

Had the same thought 2 days ago.

I noticed that the registering link is often overlooked and that's why I was thinking off a button or link right next to the login button.

I'm hardly able to write the code or mods myself but started to look into it.

Most likely that will take some time so hopefully someone with better skills then me is able to point us in the right direction.

Rob

 

Edit: Happy New Year to you too and welcome to the TNG community.

Edited by Rob Severijns
Added some text.
Link to comment
Share on other sites

Bonne année aussi Rob.

And what about another link in the top menu bar ? register next to login ? That depends too on the template. In Nr 13, there are fields in the template config where you can add whatever link you want.

Link to comment
Share on other sites

Rob Severijns

Found kind af a solution on my own template (GWT template 260)

On the right side there is a link to Registration, Privacy and GDPR. 

I modified the His side / Her side link.

I'm hoping that this is a workable solution and if not I will look into the other options too.

Will check if this a workable solution for template 19 too

@billybebob you think this is suitable workaroun for you too?

 

image.png

Link to comment
Share on other sites

This looks like what you are looking for.  This is in mod format, so you can install and uninstall for upgrades.
 

%name:Register button on login page%
%version:v13.0.0.0%
%description:Add a Register button to the login page.%
%note:<strong><font color=red>Private to me only</font></strong>%

******* loginlib.php *******

%target:loginlib.php%

%location:%
		<input type="submit" class="<?php echo $loginbtnclass; ?>" value="<?php echo $text['login']; ?>" />
%end:%
%insert:after%
<?php
if(!$tngconfig['disallowreg'])
	echo "&nbsp;&nbsp;<a href=\"{$cms['tngpath']}newacctform.php\"><input type=\"button\" class=\"{$loginbtnclass}\" value=\"{$text['regnewacct']}\" onclick=\"location.href = 'newacctform.php';\" />";
?>
%end:%

********************************

 

Link to comment
Share on other sites

Thank You to all, it is great to have such help from all of you

Robert
Blainville, Quebec, Canada

Link to comment
Share on other sites

  • 8 months later...
Rob Severijns

Made a small change to the code in order to make sure the text below isn't treated as a link anymore.

Quote

Forgot your username or password?
Enter your e-mail address below to have your username sent to you.

Enter your e-mail above and your username below to have your password reset (a temporary password will be sent to you).

Don't have a login?

Change your .cfg file accordingly.

New code:

%name:Register button on login page%
%version:v13.0.0.0%
%description:Add a Register button to the login page.%
%note:<strong><font color=red>Private to me only</font></strong>%

******* loginlib.php *******

%target:loginlib.php%

%location:%
		<input type="submit" class="<?php echo $loginbtnclass; ?>" value="<?php echo $text['login']; ?>" />
%end:%
%insert:after%
<?php
if(!$tngconfig['disallowreg'])
	echo "&nbsp;<input type=\"button\" class=\"{$loginbtnclass}\" value=\"{$text['regnewacct']}\" onclick=\"location.href = 'newacctform.php';\" />";
?>
%end:%

********************************

 

Link to comment
Share on other sites

On 9/3/2022 at 6:23 AM, Rob Severijns said:

Made a small change to the code in order to make sure the text below isn't treated as a link anymore.

 

I'm going to add something to this topic that maybe of interest to someone or all. The workaround for the Login is perfect, now what about a Guest Login. As my own Site is Login only, that limits what can be seen. (bad pun, actually nothing can be seen).

Alternatively, something along the lines, where you (the site owner) decide what the guest see's without them viewing your Sites private data etc. I stumbled across this while looking for something else.

https://tng.lythgoes.net/wiki/index.php/Selective_Public_Access_for_Sites_Requiring_Login

I have'nt tried it yet, too see if it will work, but I'm sure it could modified etc. Kudo's to the originators of this Mod.

 

 

Screenshot 2022-09-09 at 09-36-42 Paradise Ohana.png

Link to comment
Share on other sites

11 hours ago, Katryne said:

Drew, there is a mod by Michel Kirsch to show some teasing pages to non-logged visitors. It's called Let see some pages, there : https://tng.lythgoes.net/wiki/index.php/Let_See_Some_Pages

Hi Katryne, yes I saw that some time ago, however it does'nt work with my current setup. There maybe a conflict with a certain Mod that I have installed. It does'nt show as an error or cannot install. The Mod installs fine, just does'nt function.

Drew..

Link to comment
Share on other sites

Katryne, Drew,

I downloaded the mod yesterday with the same results as Drew..

Didn't have time yesterday to have a closer look at a probable cause.

I was looking for a combination of the "Let see some pages" and a third button "Login as guest"'

login.png

Clicking that "Login as guest" button should auto start  the "Let see some pages" or autostart a guest account without any further human input.

In case of an auto start of a guest account I'm not sure yet whether it's more secure to ask for input the old way, by asking for a Username and a Password, or via  a click on the button "Login as guest" where Username and Password are written in the code that executes after clicking the "Login as guest" button.

Link to comment
Share on other sites

Hi Rob, I have looked at Michel's Mod, but cannot understand why it wont work. Maybe I'm missing something.??

I did get the https://tng.lythgoes.net/wiki/index.php/Selective_Public_Access_for_Sites_Requiring_Login working though. Pretty impressed. 😎 😇

There was a hiccup at the beginning, but only because of the way I interpreted the code. After a whack round the head with a frozen tuna, I saw the light.

Easy to setup and easy to use. For a sample, go to Van Peer Project and click on Surnames, Places, Dates, Calendar and Statistics. All other links are secure.!!

Link to comment
Share on other sites

Hi all,

the let_see_some_page works without having to log in.

If you log in, the permission given to the user (guest or else) are set and let_see_some_pages has no visible effect.

To see the mod working, you have to disconnect and try to open pages such as "What's news?" "The most..." or "Places"

Try it on  my site : http://genealogie.mkirsch.be

Michel

Link to comment
Share on other sites

Thx Michel,

I just noticed "Let see some pages" does work on my website.

Options set in the options menu of the mod become visibele via the menubar and not on my homepage itself.

Thought the cloud of names I have on my homepage would be visible too but that's not the case.

This leaves the clicking of "Login as guest" button to autostart a guest account without any further human input.

 

Link to comment
Share on other sites

1 hour ago, Michel KIRSCH said:

Hi all,

the let_see_some_page works without having to log in.

If you log in, the permission given to the user (guest or else) are set and let_see_some_pages has no visible effect.

To see the mod working, you have to disconnect and try to open pages such as "What's news?" "The most..." or "Places"

Try it on  my site : http://genealogie.mkirsch.be

Michel

Hi Michel, even with your Mod installed, I did'nt get an "options" menu, like Rob. Also being logged out, I still could not view any part of my Site. So I guess, there was an issue or conflict. I have though now installed the Selective_Public_Access Mod and everything works as it should. Thks for the reply. Cheers Drew..

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...