The following warnings occurred:
Warning [2] Undefined array key "sourceeditor" - Line: 718 - File: inc/plugins/rineditor.php PHP 8.3.25 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/rineditor.php 718 errorHandler->error_callback
/inc/plugins/rineditor.php 776 rineditor_inserter_quick
/inc/class_plugins.php 142 rineditor
/showthread.php 471 pluginSystem->run_hooks



effone   31-12-2020, 02:51 PM
#1
Some admins find the Registration Agreement annoying and wants to get rid of it. So here is a little trick. This will place a Register button at header, clicking on which users will get Registration page directly.

Go to template header_welcomeblock_guest and find this line of code:
<a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a>

and replace with:

<form action="member.php" method="post" style="display: inline-block;">
<input type="hidden" name="step" value="agreement" />
<input type="hidden" name="action" value="register" />
<input type="submit" class="button" name="agree" value="{$lang->welcome_register}" />
</form>

Save the template, done.
This post was last modified: 23-03-2021, 05:33 AM by effone.
  
Users browsing this thread: 1 Guest(s)
Powered By MyBB, © 2002-2025 MyBB Group.
Made with by MattyWjeisz of Curves UI.