MyBB Community Forums

Full Version: Adding Css buttons help?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys. I recently generated some Css buttons using css button generator and I tried putting it on my forum, but it wouldn't work. ALL the links went that way. Can anyone post a tutorial for putting them on? I have the code, just need to know where to put it and what template html to edit.

thanks.Blush
Create a css class for the button. Let's take that you name the css class as "buttons".

Now you should change the HTML of each buttons in templates like postbit templates, showthread templates, etc. Let's change the New reply button for example.

Visit Showthread Templates -> showthread_newreply

You can see that we used the button image inside a link.

Change it to something like this.

Quote:<a href="newreply.php?tid={$tid}" title="New Reply" class="buttons" />New Reply</a>
Ahh awesome, so for the navigation links i'd go to header> Header

And put:
Quote:<a href="/index" title="Forum" class="buttons" />New Reply</a>

?
Yeah! And it should be like this.

Quote:<a href="/index" title="Forum" class="buttons" />New Reply</a>