vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Forums arranged in columns on forumhome (https://vborg.vbsupport.ru/showthread.php?t=59958)

corsacrazy 04-08-2004 02:00 AM

can some one please release a nicer looking forumhome_forumbit_columncell to include the last poster info/post and thread counts ? PLSSS :)

corsacrazy 04-08-2004 10:53 PM

heres mine all done took me ages ! thanks to m.c for some code :smoke:

jb605 04-09-2004 06:20 PM

Quote:

Originally Posted by Xenon
Shouldn't be hard to do.

actually it works for forums as well as for categories, and the forumdisplay would be an edit of a few lines i think

Hi, Xenon, would you mind give some more details on what you think needs to be done to make it work for forums in forumdisplay?

I have modified forumdisplay.php to add in

PHP Code:

'$forumhome_subforum_columncell'

as well as editing template FORUMDISPLAY within forumdisplay template group, by replacing

PHP Code:

<if condition="$show['forumslist']">
<!-- 
sub-forum list  -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center" style="border-bottom-width:0px">
<
tr>
    <
td class="tcat" width="100%">$vbphrase[subforums]<span class="normal">: $foruminfo[title]</span></td>
    <if 
condition="$show['forumsearch']">
    <
td class="vbmenu_control" id="forumsearch.subforums"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]">$vbphrase[search_this_forum]</a> <script type="text/javascript"vbmenu_register("forumsearch.subforums"); </script></td>
    </if>
</
tr>
</
table>
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
thead>
    <
tr align="center">
      <
td class="thead">&nbsp;</td>
      <
td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <
td class="thead" width="175" nowrap="nowrap">$vbphrase[last_post]</td>
      <
td class="thead" nowrap="nowrap">$vbphrase[threads]</td>
      <
td class="thead" nowrap="nowrap">$vbphrase[posts]</td>
      <if 
condition="$vboptions[showmoderatorcolumn]">
      <
td class="thead" nowrap="nowrap" width="85">$vbphrase[moderator]</td>
      </if>
    </
tr>
</
thead>
$forumbits
</table>
<
br />
<!-- / 
sub-forum list  -->
</if> 

with the part from you code
PHP Code:

<if condition="$childforumbits">
<
tbody id="collapseobj_forumbit_$forumidstyle="{$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>
</
tbody>
</if> 

But I didn't get the subforums to show in column in forumdisplay, instead, my frontpage now has all categories collapsed, and cannot even expand them.

Would mind provide some more details?

Thanks.

Xenon 04-11-2004 03:13 PM

in functions_forumlist.php

you have to remove
Code:

THIS_SCRIPT == 'index' AND
in the modified code, as this prevents the colhumns from appearing on forumdisplay :)

i thin that should be all, except from some design glitches you have to manage in forumdisplay template :)

@Corsa: hey, looking nice :)

deaconxgp 04-17-2004 01:30 AM

Quote:

Originally Posted by M.C.
trying to make same like on http://www.wiredgamers.com/ but can`t.... is any spetial modifyin` was made for that or not?


Can someone install this for me lol

I don't want to screw things up..but I want it to look like the image attached on MC's post

dustyb 04-18-2004 02:34 AM

Hi Xenon, looks like a very popular hack! Quick question here from a new user... my setup has a dozen forums at the top level, in other words no Parent Forum/Category, just 12 forums. I'm looking for a very simple forums home display. I'll probably even take out the table head row and display just the 12 forum name/descriptions and last posts fields. But I'd like to do it in 2 columns, somethign like this:

************************** T A B L E **************************
Forum Decription - Last Post Info || Forum Description - Last Post Info
Forum Decription - Last Post Info || Forum Description - Last Post Info
Forum Decription - Last Post Info || Forum Description - Last Post Info
Forum Decription - Last Post Info || Forum Description - Last Post Info
Forum Decription - Last Post Info || Forum Description - Last Post Info
Forum Decription - Last Post Info || Forum Description - Last Post Info
************************** T A B L E **************************

Any suggestions? Have you seen a hack for this already?

Xenon 04-18-2004 12:22 PM

Well, the easiest way would be to create a Dummy categorie.

So one parent forum for all 12 forums. Then you just have to install my hack here, and then just edit some templates, so the dummy category won't show up anymore (so remove the info lines and such, and just leave the table generation for the subforums :)

deaconxgp 04-19-2004 05:29 PM

so I guess I'm on my own then? No one wants to help me install?

Buddha 04-21-2004 11:37 PM

absolutely beautiful.
still working out all of the images, and i'm hoping to get some help in the custom header thread (for sub-forums instead of just on forum home), but great hack.
thanks a lot xenon. much appreciated.

Buddha 04-22-2004 03:50 AM

correct me if i'm wrong (not much of a php coder)... i pieced together some code from posts here, and was hoping it would workin forumdisplay, but it doesn't... any thoughts?

Code:

<if condition="$subforum['subforumcolumns'] > 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$forumbits
</table>
<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr align="center">
          <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="175">$vbphrase[last_post]</td>
          <td class="thead">$vbphrase[threads]</td>
          <td class="thead">$vbphrase[posts]</td>
          <if condition="$vboptions[showmoderatorcolumn]">
          <td class="thead">$vbphrase[moderator]</td>
          </if>
        </tr>
</thead>
$forumbits
</table>
</if>

basically, if more than one column, don't display the table row with the descriptions. any help would be appreciated. this is for subforums on forumdisplay.

thanks.


All times are GMT. The time now is 11:04 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.02477 seconds
  • Memory Usage 1,781KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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