News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Need to add a button to ClanWars

Started by djoos5, November 22, 2008, 04:32:53 PM

Previous topic - Next topic

djoos5

I have recently updated my SMF software to version 2.0 beta 4. I have also decided to make my forum default theme ClanWars (which is written for the new beta update). I love the new theme, but I have run into a challenge with it.

Here is my problem:

The Reply link (tab) is only at the top of each page of posts. If a person wishes to reply, they need to return to the top of the page to do so. Creates a lot of inconvenience.



I have tried to contact the theme's creator, but haven't heard anything. If anyone knows any easy fix here, I'd love some help.

Thanks

[SiNaN]

Try this:

Display.template.php

Find:

<td class="middletext">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><b>' . $txt['go_up'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="0">
<tr><td>


</td></tr>


Replace:

<td class="middletext">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><b>' . $txt['go_up'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($mod_buttons, 'bottom') , '
</tr>


And I'm sure you can get better answers in theme's support topic. ;)
Former SMF Core Developer | My Mods | SimplePortal

djoos5

Hey Blue Dream! Thanks for the help.

I will say that it did not work, but it effected the area of the template that I have been wanting to work with - in other words, you helped me isolate the file that changes these features.

As far as your suggested change, it made the bar disappear completely from the top and not show up on the bottom.

Needless to say, I am going to print out what you gave me and see if I can figure out what I need to type in there to add the control links.

Thanks again and if you have any other tips, I am very appreciative.

DJ

djoos5

#3
Blue Dream,

Thanks again for your assistance, I have figured it out and added the bar. The only question I have now is:

What do I need to look for in the template that defines how the graphic sits behind the links?

The first image is the top of my threads page, as it was created by the theme writer.






This image is of the command bar that I just added, but how do I invert the graphic behind so it would appear as the top one (only inverted)?




Thanks in advance!

DJ

Advertisement: