MyBB Hacks

Full Version: "Floating Table"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
What he wanted was a table that appears at the top of the page where we were going down the same page. If it were possible with the function + and - to hide or show this table leaving only the threaded or not.
I'm not quite sure what you meant. Can you explain it more?
Yeah, leefish but with a button to hide.
For a button hide, you can use a table structure like this:

HTML Code
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
	<tbody>
		<tr>
			<td class="thead">
				<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['ftable']}.gif" id="ftable_img" class="expander" alt="[-]" title="" /></div>
				<div><strong>Title Here</strong></div>
			</td>
		</tr>
	</tbody>
	<tbody style="{$collapsed['ftable_e']}" id="ftable_e">
		<tr>
			<td class="trow1" align="center">
				Contents Here
			</td>
		</tr>
	</tbody>
</table>


For the "float" thing, as an alternative, you can use CSS for that.

Aque code shown by the leefish does not work: S
You can use position css properties to make it "float" if you don't want to use javascript.
How I do that? I want on Upper right corner.
Try something like this:

HTML Code
<div style="width: 200px; position: fixed; right: 5px; top: 5px;">
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
		<tbody>
			<tr>
				<td class="thead">
					<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['ftable']}.gif" id="ftable_img" class="expander" alt="[-]" title="" /></div>
					<div><strong>Title Here</strong></div>
				</td>
			</tr>
		</tbody>
		<tbody style="{$collapsed['ftable_e']}" id="ftable_e">
			<tr>
				<td class="trow1" align="center">
					Contents Here
				</td>
			</tr>
		</tbody>
	</table>
</div>

(06-17-2010 05:09 AM)Minnemann Wrote: [ -> ]Aque code shown by the leefish does not work: S

Sorry, I did not check the code, nor was it my intention to recommend it. I was just trying to clarify what you wanted. It always helps when asking for advice/help on a mod/plugin etc to give a link to an example or a screenshot. That way we can see what you want which can help with language barriers as not all of us speak English as a first language Smile
Pages: 1 2 3 4
Reference URL's