MyBB Hacks

Full Version: Halp! Trying to add side column
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Ah, that is part of my problem

the banners are added to the forum description with html.

ETA:  OK, I made the new global and copied the right temp this time!  Added the prefix to one of the forums and did a test with success!!  Biggrin

How did you split your layout up like that?  Here is my code now: (mp_forumbit_depth2_forum)

Code:
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.png" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong> <a href="newthread.php?fid={$forum['fid']}" title="Post new thread in {$forum['name']}"><img src="images/cnti.png" alt="New Thread" /></a>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>

</tr>


Is there a way to put the name across the top with the posts,threads and views?  And then have the description on the bottom row?

Great. Now, you only need to style it Smile
Do you know of any examples posted that I can study to get a similar layout as what you posted?  I'd like to do it my self, but I have no idea where to start to obtain the effect!  Erf
Here is the basic templates for the screenshot, just modify it as your needs:

HTML Code
<tr>
	<td class="{$bgcolor}" align="center" valign="top" width="1" rowspan="2">
		<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
	</td>
	<td class="{$bgcolor}" valign="top">
		<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}
		<div class="smalltext">{$modlist}{$subforums}</div>
	</td>
	<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
	<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
	<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
<tr><td class="{$bgcolor}" colspan="4">{$forum['description']}</td></tr>

Thanks!  That will give me a reference!

I'll post my results when finished!  Biggrin
OK, I think I got it working well!  

http://www.7173mustangs.com/forum-market-place

I just can't figure out how to drop the forum icons down to center?  Other wise...it looks good!

XThreads is amazing!  And so is RateU for helping to think up uses for it! Biggrin
mp_forumbit_depth2_forum (forum icons)

Code:
<td class="trow2" align="center" valign="top" width="1" rowspan="2">

		<img src="images/bluegrey_ky/on.png" alt="Forum Contains New Posts" title="Forum Contains New Posts" class="ajax_mark_read" id="mark_read_48" />

	</td>

You have them valign to top...change it to valign="middle"

Code:
<tr><td class="trow2" colspan="4"><p><div align="left"><a href="http://www.cjponyparts.com/Default.aspx?utm_source=7173mustangs&amp;utm_medium=forum&amp;utm_campaign=forums" target="_blank"><img src="http://www.7173mustangs.com/banners/cjpony.jpg"></a></div></td></tr>

In the same template, just add a valign=middle to your banners.

Excellent!  That did the trick!

Biggrin

Thanks!!

Any suggestions as to what else I can add in my new side bar?
maybe latest posts? OR a list of your best posts (based on rating or whatever) or maybe links to the "Archive" - threads in months x, y z. Thats a plugin I have been thinking about.
Random Member's cars, Random Members, any ad you want to put there, affiliates.
Pages: 1 2 3
Reference URL's