Customizing SMF > SMF Coding Discussion

Combine forum jump bar with quick reply bar?

(1/4) > >>

Groovystar:
http://i251.photobucket.com/albums/gg308/wynnyelle/quick-reply-forum-jump-merge.jpg

The two are one on top of the other and it seems like wasted space. Would there be a way to move both to one bar? There's enough room. Or maybe put the forum jump up on the right of those buttons right above it, and squeeze those over a bit. I'm just trying to simplify the layout somehow. Looks crowded in there.

emanuele:
For the default theme, in Display.template.php find:

--- Code: (find) --- // Show the jumpto box, or actually...let Javascript do it.
echo '
<div class="plainbox" id="display_jump_to">&nbsp;</div>';

if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
<a id="quickreply"></a>
<div class="tborder" id="quickreplybox">
<div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft"><a href="javascript:oQuickReply.swap();">
<img src="', $settings['images_url'], '/', $options['display_quick_reply'] == 2 ? 'collapse' : 'expand', '.gif" alt="+" id="quickReplyExpand" class="icon" />
</a>
<a href="javascript:oQuickReply.swap();">', $txt['quick_reply'], '</a>
</span>
</h3>

--- End code ---
and change it to:

--- Code: (replace with) --- if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
<a id="quickreply"></a>
<div class="tborder" id="quickreplybox">
<div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft"><a href="javascript:oQuickReply.swap();">
<img src="', $settings['images_url'], '/', $options['display_quick_reply'] == 2 ? 'collapse' : 'expand', '.gif" alt="+" id="quickReplyExpand" class="icon" />
</a>
<a href="javascript:oQuickReply.swap();">', $txt['quick_reply'], '</a>
</span>
<span class="plainbox" id="display_jump_to">&nbsp;</span>
</h3>

--- End code ---

Or something like that...
Of course you need to style it a bit. ;)

Groovystar:
Thank you!

If I change it in default will that auto-change it in my other 10 themes? Or do I do each one separately?

emanuele:
It depends if the other 10 themes have their own Display.template.php or not.
BTW, taking in consideration that it needs a bit of css work you'll most likely need to change all your css...

Groovystar:
They do have their own, yes.

I'll go do the change in one of them and see how it looks. :)

Navigation

[0] Message Index

[#] Next page

Go to full version