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)

sabret00the 03-24-2004 08:40 PM

a few posts above that one, i point to the vbT thread :)

cerebro 03-24-2004 09:47 PM

Install en Vb3 Gold...Works Fine.

Later post my Custom Template..i have to work on it.

Vb-Hispano 03-25-2004 12:41 PM

Quote:

Originally Posted by Vb-Hispano
error

Fatal error: Cannot redeclare construct_forum_columns() (previously declared in /home/httpd/vhosts/dominio.com/httpdocs/foros/includes/functions_forumlist.php:287) in /home/httpd/vhosts/dominio.com/httpdocs/foros/includes/functions_forumlist.php on line 287

No Solution? :ermm:

lasto 03-25-2004 01:13 PM

anybody find that installing this makes all the other sections on the board misaligned to one another.

Like where u have the section and over other side last post ect they dont run straight down the full board.

Maybe me dunno but they deffo out of alignment

Xenon 03-25-2004 09:34 PM

@lasto: the split up template modification is producing that problem, not the col forum hack.

@vb-hisp: obviously you just made something wrong while installing.
Just restart from an unhacked file and it will work :)

lasto 03-25-2004 09:49 PM

Quote:

Originally Posted by Xenon
@lasto: the split up template modification is producing that problem, not the col forum hack.

@vbdev: obviously you just made som,ething wrong while isntalling.
Just restart from an unhacked file and it will work :)


yep u right xenon as this hack worked flawless on vb2

cheers anyway for good hack will find a way to put everything back in line :)

Xenon 03-25-2004 10:04 PM

it has something to do with not fixed cell width's.

I know we had that problem on vb.org as well, just don't know exactly anymore what i did to solve it ;)

Vb-Hispano 03-25-2004 11:03 PM

Quote:

Originally Posted by Xenon

@vbdev: obviously you just made som,ething wrong while isntalling.
Just restart from an unhacked file and it will work :)

one talks about my? :speechless:

cerebro 03-25-2004 11:43 PM

im working in the templates...but dont find the problem

Sometimes the board expand to 250% and sometimes works fine...mmm i cant find what is the problem.

joeychgo 03-29-2004 08:25 AM

I got it to work, sort of. It basically closed all of my catagory headers?

I suspect im suppose to customize the code in the instructions somehow. Yes? And if so -- please explain.

Im new at all this and learning more and more every day - so please be gentle.

Xenon 03-29-2004 03:13 PM

Hmm, sorry, but i don't really understand what you're asking me.

But regarding this:
Quote:

It basically closed all of my catagory headers?
That sounds like you have made a mistake while installing. Maybe missed a template edit or such, as this is not the standardbehaviour ;)

lasto 03-29-2004 03:47 PM

Quote:

Originally Posted by joeychgo
I got it to work, sort of. It basically closed all of my catagory headers?

I suspect im suppose to customize the code in the instructions somehow. Yes? And if so -- please explain.

Im new at all this and learning more and more every day - so please be gentle.


yeah is what happened to me

all u gotto do is go to admin select any forum from the forum moderators link and select 1 for the numbers of columns

any number will do but as long as u input a number the columns are fine from then on it just happens after install thats all.

Xenon 03-29-2004 04:01 PM

Hmm, wierd, as i've entered 1 as the default value within the query ;)

0 columns means no columns at all of course :)

lasto 03-29-2004 04:08 PM

Quote:

Originally Posted by Xenon
Hmm, wierd, as i've entered 1 as the default value within the query ;)

0 columns means no columns at all of course :)


thing is Xenon your hack works fine :)

i just need to fix the alignment problem and i be even happier

:nervous:

Xenon 03-29-2004 04:15 PM

juse enter specific width values to all except one col on the normal forumhome_bit templates, that should fix it (or did it here ;))

joeychgo 04-01-2004 05:27 AM

ok -- please remember im quite new at all this, and although im learning as I go, I still need a little hand-holding. Ill explain whats confusing me...

What im trying to do - is have the child forums of first 4 forum catagories stay as they are - single column

- the child forums of the next 2 catagories to be in 2 columns, and the child forums for the last 2 catagories to remain single column.

Question is: Where do I make these settings changes?

IN the txt file instructions under edit template forumhome_forumbit_level1_nopost is says
"if your columnized forums should be below open for post categories, you also have to change level1_post that way.."

What does that mean in english?

And in the "Ending Step" is says "now you have to edit the category, which's subforums should be in columns and change the value into
the ammount of columns, you want to have.
"

Again - how about an english translation for those of us who are learning this stuff? THanks for being patient with me. Im sure this is all obvious but I need a little nudge to comprehend it all.

Xenon 04-01-2004 05:36 PM

Quote:

the child forums of the next 2 catagories to be in 2 columns, and the child forums for the last 2 catagories to remain single column
very easy, edit the two categories and change the subforum value to 2, then click on save and all is fine.

you won't need the _post changes if you do not have categories, where posting is allowed :)

it's hard to explain that more detailed, it may help to read through the vb3 manual, to learn some of the terms (and i think the template scheme will be posted on vb.com soon as well)

jb605 04-07-2004 02:54 PM

Hi, Xenon, do you have any plan to make this work for forumdisplay and make it work for forum in addition to categories?

Thanks.

Xenon 04-07-2004 08:42 PM

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

jb605 04-07-2004 10:44 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

I have tried, but looks like it does not work for forumdisplay, or at least not working when the upper level is forum instead of category. I edited forumdisplay.php and Forum Display template.

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.

ixian 04-22-2004 05:35 AM

Quote:

Originally Posted by Buddha
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?


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.

I banged my head on this for a little while myself, so I'm gonna help you out here buddy. This does exactly what you want, as you can see from my site.

At the bottom of forumhome_forumbit_level1_nopost

PHP Code:

<if condition="$childforumbits">
<
tbody id="collapseobj_forumbit_$forumidstyle="{$collapseobj_forumid}">
<if 
condition="$forum['subforumcolumns'] > 1">
    <
tr align="center">
      <
td colspan="2" class="thead" width="43%" align="$stylevar[left]">$vbphrase[forum]</td>
          <
td class="thead">$vbphrase[posts]</td>
          <
td class="thead" width="43%" align="$stylevar[left]">$vbphrase[forum]</td>
      <
td class="thead">$vbphrase[posts]</td>
      </
tr>
    <
tr>
        <
td class="alt1" colspan="5">
<
table style="border: none; width: 100%;">
            
$childforumbits
</table>
        </
td>
    </
tr>
<else />
<
tr align="center">
      <
td class="thead">&nbsp;</td>
      <
td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <
td class="thead" width="200">$vbphrase[last_post]</td>
          <
td class="thead">$vbphrase[threads]</td>
      <
td class="thead">$vbphrase[posts]</td>
      
    </
tr>


    
$childforumbits
</if>
</if>
</
tbody

And your forumhome_forumbit_columncell should look like this:

PHP Code:

<td colspan="1">
<
img src="$stylevar[imgdir_statusicon]/forums/forum_$forum[forumid].gif" alt="forum_$forum[statusicon].gif" title="">
</
td>
<
td colspan="40">
        <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>

<
div class="smallfont">$forum[description]</div>


<if 
condition="$show['lastpostinfo']">
<
div class="smallfont" align="$stylevar[left]">
    <
div class="smallfont">
        <
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>$lastpostuser[trimthread]</strong></a>

        <
phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]2="$lastpostinfo[lastposter]">last post <strong>$vbphrase[by_x]</strong></phrase>
    </
div>
    
<
div align="$stylevar[right]">
        
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>

        <
a href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$lastpostinfo[lastthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]border="0"></a>
    </
div>
</
div>

<else />

    
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostuser[lastpostuser]</span></if>
</if>
<
td class="alt2" colspan="15" border="0"><center>$forum[replycount]</center></td

Note this is for a liquid style, which you appear to be using. If you want to use it with fixed width, replace the percentages with your fixed px values (315 is a good start for the "forum" cell). Play around with it.

You may also want to play around with the "width" percentages a little to tweak it to your specific style. I did mine 1% at a time until it was juuuuust right.

Enjoy.

Buddha 04-22-2004 01:39 PM

thanks ixian... but i notice you have columns set up on your forumhome... this is for forumdisplay (subforums). will this work in my case?
thanks.

Buddha 04-22-2004 02:38 PM

tried and as i thought, it doesn't work for the subforums on forumdisplay.
Code:

<if condition="$forum['subforumcolumns'] > 1">
this is the problem line... i just don't know what it should be to reflect subforums displayed on forumdisplay (not forumhome).

deaconxgp 04-23-2004 04:58 PM

okay i installed it and it's cool...but on the subforums that are arranged in columns..how do you get it to show how many posts have been made and who made the last post? it doesn't show any of that info on the subforums arranged in columns.

deaconxgp 04-23-2004 05:56 PM

one more thing...for the status icon on/off images...how would you identify how the code knows which forums to use which status icon?

Buddha 04-23-2004 06:06 PM

deaconxgp, this
Code:

<img src="$stylevar[imgdir_statusicon]/forum_$forum[forumid]_$forum[statusicon].jpg" alt="" border="0" />
will allow you to have different images for each forum in these columns (name images forum_xx_old.jpg and forum_xx_new.jpg ... you can easily change .jpg to .gif or .png. this was posted in this thread by xenon.

as for the last post info, look at the top of this page... ixian posted instructions on doing that.

deaconxgp 04-23-2004 06:11 PM

^nevermind that one...

I got the images to work but the forum titles are aligned to the bottom left of the image..how would i align the status icons to the the top left of the images...valign="top" but i'm not sure what template to adjust to get the forums aligned properly with the images.

deaconxgp 04-23-2004 06:12 PM

thanks Buddha lol...posted at the same time dude. :)

deaconxgp 04-23-2004 06:23 PM

and i tried the code at the top of the page and it didnt' work right...it listed last post information on top of the actual subforums...

deaconxgp 04-23-2004 06:37 PM

for some reason the code doesn't recognize $stylevar[top]

i wonder why.


All times are GMT. The time now is 05:06 PM.

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.01868 seconds
  • Memory Usage 1,917KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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