MyBB Community Forums

Full Version: RulesPage plugin link in header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using the RulesPage plugin but when i add the following code to my header of my custom template the button and text link does not align good (it seems there's no space between them):

<li class="rules_link"><a href="{$mybb->settings['bburl']}/misc.php?action=rules"><img src="{$theme['imgdir']}/toplinks/rules.gif" border="0" alt="" />Rules</a></li>

However, if i add the following code to my header all is displaying as it shoot but with the help button:

<li><a href="{$mybb->settings['bburl']}/misc.php?action=rules"  class="help">Rules</a></li>

How can i display the icon that comes with RulesPage as in the screenshot with the help buttom?

Sorry, i cannot give a link because i'm testing on a local server.

[attachment=26270]

[attachment=26271]
Do you have the photo 'rules.gif' uploaded to your /images/toplinks directory ?
Thanks, for your response.

Yes, i uploaded the rules.gif to /images/toplinks but when i link to it within the header from my custom template the button and link displays as there is no space between them no matter what button i use.

<li class="rules_link"><a href="{$mybb->settings['bburl']}/misc.php?action=rules"><img src="{$theme['imgdir']}/toplinks/rules.gif" border="0" alt="" />Rules</a></li>

The strange thing is that when i change the link in my header into:

<li><a href="{$mybb->settings['bburl']}/misc.php?action=rules"  class="help">Rules</a></li>

the button and text link displays as it shoot. So, i think it has something to do with the class="" setting. In the default template that comes with MyBB 1.6 everything is displaying good.
Sorry, I must have misread your original post the first time lol.

As far as I can tell, it's a very simple solution. What you need to do is change this:

<li class="rules_link"><a href="{$mybb->settings['bburl']}/misc.php?action=rules"><img src="{$theme['imgdir']}/toplinks/rules.gif" border="0" alt="" />Rules</a></li>

To this:

<li class="rules_link"><a href="{$mybb->settings['bburl']}/misc.php?action=rules"><img src="{$theme['imgdir']}/toplinks/rules.gif" border="0" alt="" /> Rules</a></li>

Please let me know if this works or not Smile

Garf
I had already thought of this myself but thought there must be a way to do this correctly as with the other standard links. I use your suggestion as long as there is no better solution.

Thanks for your help. I appreciate this very much.