vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forums arranged in columns on forumhome (https://vborg.vbsupport.ru/showthread.php?t=99829)

Blackheart_72 01-14-2009 06:54 PM

Try this in your nopost template:

Code:

<if condition="!$show['collapsable_forums']">
<tbody>
</if>
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                        <if condition="$childforumbits">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                        </if>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </td>
        </tr>
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
        <tr>
                <td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<table style="border: none; width: 100%;">
                        $childforumbits
</table>
                </td>
        </tr>
<else />
        $childforumbits
</if>


<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if>


KevinL 01-14-2009 07:54 PM

Veccy 150 Got this all wrapped up for me! The code above worked mint!

Thanks

GlamRockTalk 01-14-2009 08:54 PM

Veccy is a good person...he's trying to help me with my custom icons issue too! Thanks Veccy! :D

KevinL 01-14-2009 09:10 PM

Yeah he is.

I got the icons set up no problem.

Check my sig :)

GlamRockTalk 01-14-2009 09:47 PM

Looks good Kevin! :D

By the way, did you use the prefix field within the forum manager for the icons? Or, did Veccy help you with that as well?

KevinL 01-14-2009 10:04 PM

Did this here... it's another mod on here :) I don't feel like looking for the thread but here is the attachment. I hope this is ok

Quote:

Styles & Templates > Style Manager > Edit templates

Forum Home Templates > forumhome_forumbit_columncell

Select all and delete

================================================
Add This Code In Window:
================================================


<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="$column_width">
<div>
<table border="0" cellpadding="1" cellspacing="5">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/$forumid.png" alt="" class="ForumImages" /></td>
<td>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">
<div style="clear:both">
Last Post: <a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
</div>
<div<if condition="is_browser('ie', 6)"> style="float:$stylevar[left]"</if>>
Posted <phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>

-$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']">-<span class="time">$lastpostinfo[lastposttime]</span></if></div><BR>
Forum Info: Topic: $forum[threadcount]
Post: $forum[replycount]
</if>
</td>
</table>
</td>

==============================================
Click SAVE
==============================================


Now go to your style options ( Styles & Templates > Style Manager > All style Options) and add the following into additional css:


/* Forum Images next to the Description for every Forum */
.ForumImages {
float: left;
margin-right: 8px;
margin-top: 2px;
}



Save your style options and you are done.

Now you simply need to create images called:

ForumID.png

for each forum you want to have an image and put it into /images/statusicon/
Example: 22.png


TIP: You can upload .gif images and just rename it in your FTP client as .png (works for me).

IMPORTANT NOTE: Dont forget to edit ur catagorys and select the number of columns at the end of the edit page.


You are done!

Enjoy!

GlamRockTalk 01-14-2009 10:09 PM

Thanks Kevin.

I'll wait to see if Veccy helps me get it working so that I can use the built in vB custom category icon field. If he can't get it to work, then I'll try your method as a backup. :D

KevinL 01-15-2009 01:07 AM

Cool beans :)

Just be aware that this is far from XHTML valid. I went from 1 error to 80! haha

So if you're big on validating your site you're going to have some work cut out for you after using this :D hahah

Reece^B 01-15-2009 10:50 AM

Veccy what are you using in your columncell template?
It's very neat and what not. Mind sharing lol?

Reece^B 01-15-2009 10:54 AM

On another note, when you have the columnised forums how did you remove the last post, threads, posts bit @ the top?

Could people share their template? I've spent got knows how long trying to make this look good, but it's not happening lol.

Also, anyone got that image prefix in the forum manager to work?


All times are GMT. The time now is 02:48 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01495 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete