MyBB Community Forums

Full Version: Add buttons to Welcome Back?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay. How do I change the text and make it a button/image?
[Image: fEtM9s9.png]
How do I make them a image?
Edit header_welcomeblock_member template to suit your needs.
A single example:

<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a>

Make it:

<a href="{$mybb->settings['bburl']}/search.php?action=getnew"><button type="button">{$lang->welcome_newposts}</button></a>

Do the same for all instances ...
(2013-04-03, 05:42 AM)effone Wrote: [ -> ]A single example:

<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a>

Make it:

<a href="{$mybb->settings['bburl']}/search.php?action=getnew"><button type="button">{$lang->welcome_newposts}</button></a>

Do the same for all instances ...
Wow dude thanks! Is there away I can change the color of the button?
Make a class .button in global.css and define properties. Thats it.

Example: just place this at the end of your global.css and save. Your buttons will be changed:

.button {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #ffa200;
	padding: 10px 20px;
	background: -moz-linear-gradient(
		top,
		#ffffff 0%,
		#ffffff 50%,
		#b3b3b3);
	background: -webkit-gradient(
		linear, left top, left bottom, 
		from(#ffffff),
		color-stop(0.50, #ffffff),
		to(#b3b3b3));
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	border: 3px solid #0069a1;
	-moz-box-shadow:
		0px 1px 3px rgba(000,000,000,0.5),
		inset 0px 0px 3px rgba(255,255,255,1);
	-webkit-box-shadow:
		0px 1px 3px rgba(000,000,000,0.5),
		inset 0px 0px 3px rgba(255,255,255,1);
	box-shadow:
		0px 1px 3px rgba(000,000,000,0.5),
		inset 0px 0px 3px rgba(255,255,255,1);
	text-shadow:
		0px -1px 0px rgba(000,000,000,0.1),
		0px 1px 0px rgba(255,255,255,1);
}