MyBB Community Forums

Full Version: Quick Reply Button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Ok, I've made a Quick Reply button, for opening the quick reply. I need it on a certain theme to remove the quick reply BOX but leave the button, and when you click the BUTTON, the quick reply box pops up, and when you click it again, it drops out of sight.

Please help! I've already put the button in the template, but it won't work unless the quick reply is there.

Any thoughts?
Isn't there already an button to show/hide the quick reply box? 0o
Collapse buttons?
Yes but thats not what I mean. I made a BUTTON! Like the New reply/new thread buttons at the bottom of the posts. And it says Quick Reply.
See the animated gif to see what I mean. Mainly watch the parts outlined in red Smile


[attachment=3674]
Open jscripts/general.js
add this to the bottom
function expandquickreply(id) {
	if(expandedItem.style.display == "none") {
		showDiv(id);
		//saveCollapsed(id); // Only if you want it to save (not sure if it will work)
	} else {
		hideDiv(id);
		//saveCollapsed(id, 1); // Only if you want it to save (not sure if it will work)
	}
}
Go to your showthread_quickreply template and add
<div id="qr" style="display: none">
before <form
and
</div>
after </form>

Then you can add your button wherever you want like.
<a href="#" onclick="expandquickreply('qr'); return false;"><img src="images/english/<image>.gif" border="0" alt="Fast Reply" /></a>

And read the comments.

NOTE: Not been tested.
Ok, I'll try it.
Nope, it didn't work CraKteR Sad

Another question! How would I add the images beside Board Stats & Who's online like in the pic below?

Thanks! Big Grin

[attachment=3675]
FirefoxWiz Wrote:Another question! How would I add the images beside Board Stats & Who's online like in the pic below?

Thanks! Big Grin

Try this: http://community.mybboard.net/showthread.php?tid=7062
Like the ones I got on my forum? -> http://mcdcpp.net/forum/
Well easy.
Go to Admin CP > Templates > Modify / Delete > Exapnd > Index page templates > index_stats
Find:
<td class="tcat">
Change to:
<td class="tcat" colspan="2">
Find:
<td class="trow1">
add over:
<td class="trow2"><a href="stats.php"><img src="images/stats.gif" alt="$lang->boardstats" border="0" /></a></td>

Then go to Admin CP > Templates > Modify / Delete > Exapnd > Index page templates > index_whosonline
Find:
<td class="tcat">
Change to:
<td class="tcat" colspan="2">
Find:
<td class="trow1">
add over:
<td class="trow2"><a href="online.php"><img src="images/whos_online.gif" alt="$lang->complete_list" border="0" /></a></td>

Then go to Admin CP > Templates > Modify / Delete > Exapnd > Index page templates > index_birthdays
Find:
<td class="tcat">
Change to:
<td class="tcat" colspan="2">
Find:
<td class="trow1">
add over:
<td class="trow2"><img src="image.jpg" alt="" border="0" /></td>

Then go to Admin CP > Templates > Modify / Delete > Exapnd > Index page templates > index

Find:
$forums
<br />
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<thead>
<tr>
<td class="thead">
Change to:
$forums
<br />
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">

If you got any custom fields you might have to change something else aswell.
FirefoxWiz Wrote:Ok, I'll try it.
Nope, it didn't work CraKteR Sad
Didn't work as in nothing happend or what?
Okey, link?
*too late for my other answer aswell*.
Ok, just finished your code, and now my stats look like this:
[attachment=3680]

Now what?
Pages: 1 2