2021-01-25, 12:30 PM
2021-01-25, 12:55 PM
Edit the Header Template "header_welcomeblock_guest":
Take the whole login form (<form>...</form>) and place it to a position of your choice.
Also edit the the templates "header_welcomeblock_guest_login_*" to get rid of the tables/tr/td to make the form elements in a line.
See this example for referenceand inspiration.
[ExiTuS]
Take the whole login form (<form>...</form>) and place it to a position of your choice.
Also edit the the templates "header_welcomeblock_guest_login_*" to get rid of the tables/tr/td to make the form elements in a line.
See this example for referenceand inspiration.
[ExiTuS]
2021-01-25, 12:58 PM
(2021-01-25, 12:55 PM)[ExiTuS] Wrote: [ -> ]Edit the Header Template "header_welcomeblock_guest":
Take the whole login form (<form>...</form>) and place it to a position of your choice.
Also edit the the templates "header_welcomeblock_guest_login_*" to get rid of the tables/tr/td to make the form elements in a line.
See this example for referenceand inspiration.
[ExiTuS]
Could you help me with a code?
2021-01-25, 01:44 PM
Take this one:
[ExiTuS]
<div class="welcome">
<form method="post" action="{$mybb->settings['bburl']}/member.php">
<input type="text" class="textbox" name="username" value="" placeholder="{$lang->username}" />
<input type="password" class="textbox" name="password" value="" placeholder="{$lang->password}" />
<span class="remember_me">
<input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
<label for="quick_login_remember">{$lang->remember_me}</label>
</span>
<input type="submit" class="button" name="loginsubmit" value="{$lang->login}" />
<input type="hidden" name="remember" value="yes" />
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="" />
<input type="hidden" name="quick_login" value="1" />
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
</form>
<a class="button" href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>
</div>
[ExiTuS]
2021-01-25, 02:22 PM
(2021-01-25, 01:44 PM)[ExiTuS] Wrote: [ -> ]Take this one:
<div class="welcome"> <form method="post" action="{$mybb->settings['bburl']}/member.php"> <input type="text" class="textbox" name="username" value="" placeholder="{$lang->username}" /> <input type="password" class="textbox" name="password" value="" placeholder="{$lang->password}" /> <span class="remember_me"> <input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" /> <label for="quick_login_remember">{$lang->remember_me}</label> </span> <input type="submit" class="button" name="loginsubmit" value="{$lang->login}" /> <input type="hidden" name="remember" value="yes" /> <input type="hidden" name="action" value="do_login" /> <input type="hidden" name="url" value="" /> <input type="hidden" name="quick_login" value="1" /> <input type="hidden" name="my_post_key" value="{$mybb->post_code}" /> </form> <a class="button" href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a> </div>
[ExiTuS]
Good, and where should i paste this?
I'm paste for header template , but wrong :/
it shows, it shows that I need to log in even though I am logged in
<div id="container">
<a name="top" id="top"></a>
<div id="header">
<div id="logo"><div class="upper"><div class="welcome">
<form method="post" action="{$mybb->settings['bburl']}/member.php">
<input type="text" class="textbox" name="username" value="" placeholder="{$lang->username}" />
<input type="password" class="textbox" name="password" value="" placeholder="{$lang->password}" />
<span class="remember_me">
<input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
<label for="quick_login_remember">{$lang->remember_me}</label>
</span>
<input type="submit" class="button" name="loginsubmit" value="{$lang->login}" />
<input type="hidden" name="remember" value="yes" />
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="" />
<input type="hidden" name="quick_login" value="1" />
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
</form>
<a class="button" href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>
</div>
None
<div class="wrapper">
<span style="color:#f5f5f500;">-----------------</span>{$welcomeblock}
<!-- </div> in header_welcomeblock_member and header_welcomeblock_guest -->
<!-- </div> in header_welcomeblock_member and header_welcomeblock_guest -->{$halloweenbats}{$halloweenbats}
<div class="wrapper">
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
<ul class="menu top_links">
</ul>
</div>
</div>
<div id="panel">
<ul id="nav">
<li><a href=""><span style="color:#ffa50000;">---------------------------------</span></a>
<li><a href="https://torrent-invites.org/"><img src="images/forum1.png" /></a>
<li><a href="https://torrent-invites.org/search.php"><img src="images/search1.png" /></a>
<li><a href="https://torrent-invites.org/memberlist.php"><img src="images/memberlist1.png" /></a>
<li><a href="https://torrent-invites.org/misc.php?action=help"><img src="images/help1.png" /></a>
<li><a href="https://torrent-invites.org/forumdisplay.php?fid=29"><img src="images/review1.png" /></a>
<li><a href="https://torrent-invites.org/userclasses.php"><img src="images/userclasses1.png" /></a>
<li><a href="https://torrent-invites.org/showthread.php?tid=3832"><img src="images/reviewindex1.png" /></a>
<li><a href="https://torrent-invites.org/memberlist.php?action=staff"><img src="images/staff1.png" /></a>
<li><a href="https://torrent-invites.org/forumdisplay.php?fid=43"><img src="images/tutorialindex1.png" /></a>
</li>
</ul>
<ul id="navi">
<li><a href=""><span style="color:#ffa50000;">----------------------------</span></a>
<li><a href="https://torrent-invites.org/">Forum Home</a>
<li><a href="https://torrent-invites.org/private.php">Private Message</a>
<li><a href="#">Community <img src="images/drop.png"/></a>
<ul>
<li><a href="https://torrent-invites.org/usercp.php?action=editlists">Friends & Contacts</a></li>
<li><a href="https://torrent-invites.org/memberlist.php">Member List</a></li>
</ul>
</li>
<li><a href="#">Forum Actions <img src="images/drop.png"/></a>
<ul>
<li><a href="https://torrent-invites.org/usercp.php">User CP Panel</a></li>
<li><a href="https://torrent-invites.org/usercp.php?action=profile">My Profile Setting</a></li>
<li><a href="https://torrent-invites.org/usercp.php?action=options">Edit My Profile</a></li>
<li><a href="https://torrent-invites.org/search.php?action=results&sid=5833304b29f6d9666e1edf3b8ce3cfd3">View Today's Posts</a></li>
<li><a href="https://torrent-invites.org/search.php?action=results&sid=09fc2502080b75257d3b937358bea63d">View New Posts</a></li>
</ul>
</li>
<li><a href="https://torrent-invites.org/memberlist.php?action=staff">Staff</a>
<li><a href="https://torrent-invites.org/shoutbox.php">Chatbox Full</a>
<li><a href="https://torrent-invites.org/showthread.php?tid=1182">Forum Rules</a>
<li><a href="#">Staff Department <img src="images/drop.png"/></a>
<ul>
<li><a href="https://torrent-invites.org/admin/index.php">Admin Setting Panel</a></li>
<li><a href="https://torrent-invites.org/modcp.php">Mod Setting Panel</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="content">
<div class="wrapper">
{$pm_notice}{$naoardonate_notice}{$naoardonate_bar}
{$remote_avatar_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}
{$awaitingusers}
<navigation>
<br />
2021-01-25, 02:37 PM
It must be included anywhere in the "header_welcomeblock_guest" template. This template is visible for guests (as long as you're not logged on).
After login the templated header_weclomeblock_member is loaded instead.
[ExiTuS]
After login the templated header_weclomeblock_member is loaded instead.
[ExiTuS]