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)
-   -   Arrange Sub-Forums in columns (https://vborg.vbsupport.ru/showthread.php?t=63498)

tamarian 05-04-2004 11:37 PM

Quote:

Originally Posted by ph03nIX
Hi!
What could be the reason for this? It had never had a problem before finding code that was there. Has the code changed or something?

What version of vB are you using?

Smike 05-05-2004 07:37 AM

Great hack ! thx

Erwin 05-11-2004 11:45 AM

No need any template changes for smallfont. :)

In functions_forumlist.php, in the code you added, replace:

PHP Code:

$output .= "<td width=50%>" construct_subforum_bit($forumid$cancontainthreads$subforum$depthmark '--'$depth 1) . "</td>"

with

PHP Code:

                $output .= "<td width=50%><span class=smallfont>" construct_subforum_bit($forumid$cancontainthreads$subforum$depthmark '--'$depth 1) . "</span></td>"

You basically put the <span class=smallfont> </span> in the php file rather than the template. Why not? You've put the <td> tags there already. This way, you don't have to modify the template.

GamerJunk.net 05-23-2004 11:17 PM

How would I stop this from doing it to certain forums?

what would the coding be? I want it for all my forums except ID46 because that forum is going to have over 100 sub forums lol

tamarian 05-25-2004 03:04 AM

Quote:

Originally Posted by RasMasta
How would I stop this from doing it to certain forums?

what would the coding be? I want it for all my forums except ID46 because that forum is going to have over 100 sub forums lol

Should be easy to do with a hard coded if statement just berfore the subforum stuff.

Post in the request forum, and I (or anyone else is welcome) can take a crack at it. I just don't to confuse others at to which code to use :)

Michael2 05-25-2004 09:28 PM

Installed, thanks! I do have one question...

Rather than having the sub-forums in two columns, how can I have them all in the same column? Something like this...

http://www.veggieboards.com/exchange/cats.gif

tamarian 05-25-2004 09:40 PM

Quote:

Originally Posted by Michael2
Installed, thanks! I do have one question...

Rather than having the sub-forums in two columns, how can I have them all in the same column? Something like this...

http://www.veggieboards.com/exchange/cats.gif

That should be easy, and you don't even need this hack to do it :) Just use <br \> as a seperator instead of a comma.

That would be in the "forumhome_subforumseparator_" templates.

jcr 05-25-2004 10:56 PM

Thank you for a great hack btw!!

Now i just have one simple questions, how can I remove the header like you have done on the demo site?

See screenshot

( for some reason I cannot upload gif files to this forum btw )

tamarian 05-25-2004 11:03 PM

Quote:

Originally Posted by jcr
Thank you for a great hack btw!!


Now i just have one simple questions, how can I remove the header like you have done on the demo site?

See screenshot

( for some reason I cannot upload gif files to this forum btw )


https://vborg.vbsupport.ru/showpost....3&postcount=38

:)

jcr 05-25-2004 11:18 PM

Quote:

Originally Posted by tamarian

Thank you! :D , this was exactly what i was looking for! *installed*

Michael2 05-26-2004 01:13 AM

Quote:

Originally Posted by tamarian
That should be easy, and you don't even need this hack to do it :) Just use <br \> as a seperator instead of a comma.

That would be in the "forumhome_subforumseparator_" templates.

Duh! *lol* I guess that was too obvious! Thanks!

Shoebuddy 05-27-2004 01:03 AM

Great Hack :banana:
How can I change the icon infront of the subforum list and make the subforum list bold?

Aurous 05-27-2004 04:03 AM

Thanks, exactly what I was looking for!

Installed

tamarian 05-27-2004 01:20 PM

Quote:

Originally Posted by Shoebuddy
Great Hack :banana:
How can I change the icon infront of the subforum list and make the subforum list bold?

To change the icons, just upload the images you want as subforum_old.gif and subforum_new.gif replacing what's there.

For bold or any other HTML you can do something like what Erwin suggested here:

https://vborg.vbsupport.ru/showpost....2&postcount=43

Or through templates and/or CSS

alfaowner 06-01-2004 10:35 PM

Superb hack, worked first time, its transformed my web site, I so appreciate these easy and very efective additions. Thank you coder!

AO

Lee Wilde 06-06-2004 08:13 PM

Hi, I don't have need for this hack at present, however I just wanted to say what an attractive site you have. Colours/layout...all very nice. Well done.

EvilCrow 06-16-2004 11:31 PM

OMG.... I love this... Thanks I've been looking for this for ages!!!!
Not only clicks install, also kiss's the person that did it... (No I'm not gay, just happy)

dpkm 06-24-2004 04:09 AM

There is a slight rendering issue with Mozilla. Some of the subforums displayed in columns will occasionally lose underlining. I suspect this can be resolved rather easily with CSS. I see it both on the forums I run and on the hack author's forums using Moz 1.5.

This isn't a problem in IE 6.

Very nice hack, btw.

tamarian 06-27-2004 06:33 PM

Quote:

Originally Posted by dpkm
There is a slight rendering issue with Mozilla. Some of the subforums displayed in columns will occasionally lose underlining. I suspect this can be resolved rather easily with CSS. I see it both on the forums I run and on the hack author's forums using Moz 1.5.

This isn't a problem in IE 6.

Very nice hack, btw.

Could you post a screenshot for this?

I don't doubt that this might be the case, but hopefully the screenshot will help some of the HTML guru here recognize the problem and post a solution for it. In which case, I'll gladly update the instructions acordingly :)

dpkm 06-28-2004 04:51 PM

Here's the screenshot. I've thought about it a bit, and I think it doesn't have anything to do with the hack, but either rendering in Mozilla (because I can scroll up and down and the problem can disappear or reappear in different places) or the css.

The Realist 06-28-2004 05:47 PM

Working fine.

Thanks

tamarian 06-28-2004 06:12 PM

Quote:

Originally Posted by dpkm
Here's the screenshot. I've thought about it a bit, and I think it doesn't have anything to do with the hack, but either rendering in Mozilla (because I can scroll up and down and the problem can disappear or reappear in different places) or the css.

Yes, I've noticed that before. It's just the undelining of the links, right? So it's not the table cells or width... I'm not sure what's causing that, I've written it off as an old mozilla bug.

dpkm 06-28-2004 06:22 PM

Right, just the underlining of the links. I only fretted about it because the audience for my forums skew toward people with less experience with the Internet, and I try to maintain a consistent (and clear) interface. Your hack certainly helps with the clear, and by adjusting the CSS a bit, I don't have much problems with the underlining now.

tamarian 06-29-2004 12:56 AM

Quote:

Originally Posted by dpkm
by adjusting the CSS a bit, I don't have much problems with the underlining now.

Let me know what changes you've made to your CSS, I might implement those, just to make things better for my users with older moz browsers :)

Bulent Tekcan 07-03-2004 12:19 AM

It is not work in 3.0.2 ... :disappointed: :disappointed:

Any idea ?

Bulent Tekcan 07-04-2004 01:02 PM

Any idea for that ??? Or any trick ?

tamarian 07-04-2004 02:25 PM

Quote:

Originally Posted by turkeyforum
It is not work in 3.0.2 ... :disappointed: :disappointed:

Any idea ?

I have not installed 3.0.2 yet, so I'm not sure. But the file has not changed in this update, so I think it should work fine.

Did you enable sub-forums as explained in the first post?

Visibility 07-06-2004 01:28 AM

Nice work, tamarian. Really cleaned up a messy layout, and seems to work fine in 3.0.3.

Thanks.

tamarian 07-07-2004 01:50 AM

Quote:

Originally Posted by Visibility
seems to work fine in 3.0.3.

That's great to hear, thanks for letting me know, as I may not upgrade for a while.

Lonny 07-07-2004 10:11 AM

I followed all te instructions and for some reason I get it displayed only in 1 column...


Here is the code that I have there


Code:


eval('$subforum = "' . fetch_template("forumhome_subforumbit_$canpost") . '";');
                //sub-forum hack
                if ($depth < $vboptions['subforumdepth'])
                {
                    $cols++;
                    if ($cols==3)
                        {
                        $cols = 1;
                        $output .=  "</tr><tr>";
                        }
                $output .= "<td width=50%>" . construct_subforum_bit($forumid, $cancontainthreads, $subforum, $depthmark . '--', $depth + 1) . "</td>";
                }
            }
        }
    }
    $output.="</tr></table>";
    return $output;
// end sub-forum hack
}


Lonny 07-07-2004 11:00 AM

works ok now thanks anyway :) Excellent hack!!!

platnum 07-09-2004 02:19 PM

Working on my 303 board.

2 thumbs up! Thanks :D

Vman 07-21-2004 08:57 PM

Just installed it on 3.0.3 Works great so far....

jancarlo 07-25-2004 08:55 AM

@ tamarian

cannot be had the modification in a txt? who has Mac does not succeed to copy in php code.

thanks
jancarlo

tamarian 07-25-2004 11:45 AM

Quote:

Originally Posted by jancarlo
@ tamarian

cannot be had the modification in a txt? who has Mac does not succeed to copy in php code.

thanks
jancarlo

Sure, try this.

jancarlo 07-25-2004 11:55 AM

thanks much kind one :D

ciao
jancarlo

CMerritt 07-28-2004 04:46 PM

Quote:

Originally Posted by tamarian
Should be easy to do with a hard coded if statement just berfore the subforum stuff.

Post in the request forum, and I (or anyone else is welcome) can take a crack at it. I just don't to confuse others at to which code to use :)

Was this ever figured out as a possible option? I also have one main forum that I'd to exclude, while showing the others with subforums as this hack lists them. Thanks for your help.

-C

RetroDreams 07-29-2004 02:49 PM

Has anyone successfully ported this to work alongside Xenon's hack?

chrisvonc 07-30-2004 10:39 AM

Can this be adapted for catagories on the forumhome?

ivanmcp 07-30-2004 06:24 PM

Simple yet very effective. Thanks for that.

I installed it on my 3.0.3 forum and it works fine. Only issue - I could not find second lot of code in my template as included in here, but after performing a search on just a first line of code, I found the whole block.


All times are GMT. The time now is 09:40 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.01501 seconds
  • Memory Usage 1,829KB
  • 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
  • (2)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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