MyBB Community Forums

Full Version: Want to add a registration button...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The theme I'm using doesn't have a register link or button. How do I add that into the Header_Welcomeblock_Guest template. This is what is there now.

<div id="login">
<form action="member.php" method="post">
<input type="hidden" name="action" value="do_login" />
<input class="input"name="username" type="text" value="username" onfocus="if (this.value == 'username') this.value = '';" /><br />
<input class="input" name="password" type="password" value="password" onfocus="if (this.value == 'password') this.value = '';" />
<input name="Image1" type="image" alt="Login" src="images/underworld_images/login_button.gif"  /> 
</form>
</div><!-- /login -->
Enter this code after </form> or </div> tag

<a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a>
Thanks for that, Mark! I can use what you gave me, but I was hoping I could match my button login image with a register button. This is the code for the login button. Can you tell me how to re-write this to make it match... only for registering. I tried some different things, but it keeps taking me back to login. Confused (I understand how to change the src... just not sure about what to do for the rest of the code.)

<input name="Image1" type="image" alt="Login" src="images/underworld_images/login_button.gif"  />  


(2010-07-24, 02:36 PM)mark-in-dallas Wrote: [ -> ]Enter this code after </form> or </div> tag

<a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a>
Not sure from the code you provided, but how about just replacing {$lang->welcome_register} with your image src?

Rewritten:

<a href="{$mybb->settings['bburl']}/member.php?action=register" class="register"><img src="PATH-TO-YOUR-BUTTON" /></a>
Thank you again, Mark! This now looks so much more professional. I appreciate you! Smile

(2010-07-24, 05:44 PM)mark-in-dallas Wrote: [ -> ]Not sure from the code you provided, but how about just replacing {$lang->welcome_register} with your image src?

Rewritten:

<a href="{$mybb->settings['bburl']}/member.php?action=register" class="register"><img src="PATH-TO-YOUR-BUTTON" /></a>