billybebob Posted January 1, 2022 Report Share Posted January 1, 2022 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 Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 1, 2022 Report Share Posted January 1, 2022 (edited) 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 January 1, 2022 by Rob Severijns Added some text. Quote Link to comment Share on other sites More sharing options...
Katryne Posted January 1, 2022 Report Share Posted January 1, 2022 Hello ! I think it depends on the template in use. With Nr13, both links (login and Register) have the same visibility. Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 1, 2022 Report Share Posted January 1, 2022 Hi Katryne, Bonne année. Thx for the info. Didn't think of looking at other templates. Will check it out Rob Quote Link to comment Share on other sites More sharing options...
Katryne Posted January 1, 2022 Report Share Posted January 1, 2022 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. Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 1, 2022 Report Share Posted January 1, 2022 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? Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 1, 2022 Report Share Posted January 1, 2022 Just noticed that this doesn't work for template 19 for there is no His side / Her side on the top menubar. Quote Link to comment Share on other sites More sharing options...
bhemph Posted January 1, 2022 Report Share Posted January 1, 2022 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 " <a href=\"{$cms['tngpath']}newacctform.php\"><input type=\"button\" class=\"{$loginbtnclass}\" value=\"{$text['regnewacct']}\" onclick=\"location.href = 'newacctform.php';\" />"; ?> %end:% ******************************** Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 1, 2022 Report Share Posted January 1, 2022 Thx Brent, That was quick and the mod works like a charm. Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 1, 2022 Report Share Posted January 1, 2022 Brent, One slight thingy I can certainly live with. Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 1, 2022 Report Share Posted January 1, 2022 @billybebob In case you don't know how to make the a cfg file out of the code above I will PM you the cfg file. Rob Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 1, 2022 Report Share Posted January 1, 2022 Brent, Made a small adaptation to the config file. Thx again for the mod 👍 Quote Link to comment Share on other sites More sharing options...
billybebob Posted January 1, 2022 Author Report Share Posted January 1, 2022 Thank You to all, it is great to have such help from all of you Robert Blainville, Quebec, Canada Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted September 2, 2022 Report Share Posted September 2, 2022 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 " <input type=\"button\" class=\"{$loginbtnclass}\" value=\"{$text['regnewacct']}\" onclick=\"location.href = 'newacctform.php';\" />"; ?> %end:% ******************************** Quote Link to comment Share on other sites More sharing options...
edglimited Posted September 8, 2022 Report Share Posted September 8, 2022 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. Quote Link to comment Share on other sites More sharing options...
Katryne Posted September 9, 2022 Report Share Posted September 9, 2022 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 Quote Link to comment Share on other sites More sharing options...
edglimited Posted September 9, 2022 Report Share Posted September 9, 2022 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.. Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted September 10, 2022 Report Share Posted September 10, 2022 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"' 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. Quote Link to comment Share on other sites More sharing options...
edglimited Posted September 10, 2022 Report Share Posted September 10, 2022 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.!! Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted September 10, 2022 Report Share Posted September 10, 2022 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 Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted September 10, 2022 Report Share Posted September 10, 2022 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. Quote Link to comment Share on other sites More sharing options...
edglimited Posted September 10, 2022 Report Share Posted September 10, 2022 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.. Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted January 2, 2023 Report Share Posted January 2, 2023 For those using the register button mod. Here's one that installs in TNG 14 It's a private mod initialy created by @bhemph register_btn_tng14.cfg Quote Link to comment Share on other sites More sharing options...
billybebob Posted January 2, 2023 Author Report Share Posted January 2, 2023 It work fine, install perfect. Thank you Rob and also to @bhemph Regards Robert Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.