vb.org Archive

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

Xenon 07-25-2002 10:00 PM

Forums arranged in columns on forumhome
 
As requested several times, this hack allows you to arrange forums on forumhome in xx columns instead of just one per row as it now.

You have to set up a new category(s). All direct subforums to this category(s) will be arranged in columns.
It can be very usefull if you have very much Subforums, so you haven't to scroll as much as you have before

Newest Version: 1.21
Known Bugs: none

Screenshots below.

Design can be changed in templates..

Xenon 07-25-2002 11:26 PM

screenshot columned forums below all others:

Xenon 07-25-2002 11:27 PM

<a href="https://vborg.vbsupport.ru/attachment.php?s=&postid=278267" target="_blank">Screenshot with multiple columned categories</a>

columns between other categories

Xenon 07-25-2002 11:28 PM

admin cp

as you can see you can change the ammount of cols.
desing of columns can be changed in templates

DrkFusion 07-25-2002 11:30 PM

Nice hack xenon, but is tehre a way not to repeat the forum, posts, threads moderator, table again if you put catagories after the colums?

Nice hack by the way, Installing right now

Drk

Xenon 07-25-2002 11:35 PM

it's template based so you can take out the forum, posts, threads moderator, table.
it's just to design the below categories as the first ones ;)

Link14716 07-25-2002 11:37 PM

I will install this later tonight!

Thanks!

Kumaro 07-25-2002 11:48 PM

this is an excellent hack. don't need it myself, but a good hack i've seen made in a long time. These other recent releases seem useless....

DrkFusion 07-26-2002 12:01 AM

Ah, thanks Xenon, looks great.

Drk

Jeremy W. 07-26-2002 01:12 AM

I'll install this on RingQuest later :)

Neo 07-26-2002 02:36 AM

very very nice man.

Velocd 07-26-2002 03:34 AM

Ah! This is going against the generic rules of all forums, it's always a ladder going down. This is why I like it though ;)

Logician 07-26-2002 05:30 AM

great hack pal! :)

Lionel 07-26-2002 06:33 AM

but that step is conflicting with another hack.

find:
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\";");

if ($depth<$forumhomedepth) {
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
}


I have (am using 2.21):



if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_ sponsor")."\";");
} else {
if ($forum['link']) {
eval("\$forumbits .= \"".gettemplate("forumdisplay_linkbit_level$depth" )."\";");
} else {
eval("\$forumbits .= \"".gettemplate("forumdisplay_forumbit_level$depth $tempext")."\";");
}
}
if ($depth<$forumhomedepth) {
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
}
} // END if can view


Is there a way around it?

Xenon 07-26-2002 10:45 AM

no problem
just replace the line
PHP Code:

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";"); 

in my hack with that:
PHP Code:

if ($forum['sponsorimg'] && $forum['cancontainthreads']==&& $depth==1) {
eval(
"\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_sponsor")."\";");
} else {
if (
$forum['link']) {
eval(
"\$forumbits .= \"".gettemplate("forumdisplay_linkbit_level$depth")."\";");
} else {
eval(
"\$forumbits .= \"".gettemplate("forumdisplay_forumbit_level$depth$tempext")."\";");


i think it should work

Chris M 07-26-2002 10:47 AM

Very Nice hack Xenon - I will use this to save Space on my forums!!

Just a quick Q : Can multiple Category ids be entered? If so, how? "1,5" or "1 5"?

Satan

Xenon 07-26-2002 10:55 AM

no, not possible by now, but i thought about it for next version

Chris M 07-26-2002 11:07 AM

Oh right ok:)

No problems:) It would be a good addon:)

Im installing this when I get home onto my new vB - I would here, but my domain hasnt been transferred yet, so I can only do it from home :(

Satan

Lionel 07-26-2002 03:02 PM

wouldn't that affect the category sponsored hack?

Xenon 07-26-2002 03:13 PM

if you applay the changes i've told you it shouldn't affect it

just test it out

Lionel 07-26-2002 03:25 PM

it removed the category image in forumhome and did not display the columns... :(

Xenon 07-26-2002 03:34 PM

hmm, intresting, does your code look like that?

PHP Code:

        if($forum['parentid']!=$columnparent) {
          if(
$colsdone==1) {
            
$colsdone=0;
            eval(
"\$forumbits .= \"".gettemplate("colforumtablefooter")."\";");
          }
        if (
$forum['sponsorimg'] && $forum['cancontainthreads']==&& $depth==1) {
          eval(
"\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_sponsor")."\";");
        } else {
           if (
$forum['link']) {
        eval(
"\$forumbits .= \"".gettemplate("forumdisplay_linkbit_level$depth")."\";");
        } else {
        eval(
"\$forumbits .= \"".gettemplate("forumdisplay_forumbit_level$depth$tempext")."\";");
        }
        }
        } else {
          if(
$colsdone!=1) {
            
$colsdone=1;
            
$colcounter=1;
            eval(
"\$forumbits .= \"".gettemplate("colforumtableheader")."\";");
          } else {
            
$colcounter++;
            if(
$colcounter%($forumcols+1)==0$forumbits .= "</tr><tr>";
          }  
          eval(
"\$forumbits .= \"".gettemplate("colforumbit")."\";");
        }
}
        if (
$depth<$forumhomedepth) {
          
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
        } 

if it does, then it should work

Lionel 07-26-2002 03:59 PM

Probably from a bracket somewhere?

my code:

$tempext = '_nopost';
}

if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_ sponsor")."\";");
} else {
if ($forum['link']) {
eval("\$forumbits .= \"".gettemplate("forumdisplay_linkbit_level$depth" )."\";");
} else {
eval("\$forumbits .= \"".gettemplate("forumdisplay_forumbit_level$depth $tempext")."\";");
}
}

if ($depth<$forumhomedepth) {
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
}
} // END if can view
} // END while ( list($key2,$forum)=each($val1) ) {
} // END while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {
--------------------------------------------------------------------------

yours:

$tempext = '_nopost';
}
if($forum['parentid']!=$columnparent) {
if($colsdone==1) {
$colsdone=0;
eval("\$forumbits .= \"".gettemplate("colforumtablefooter")."\";");
}
if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_ sponsor")."\";");
} else {
if ($forum['link']) {
eval("\$forumbits .= \"".gettemplate("forumdisplay_linkbit_level$depth" )."\";");
}
}else {
eval("\$forumbits .= \"".gettemplate("forumdisplay_forumbit_level$depth $tempext")."\";");
} else {
if($colsdone!=1) {
$colsdone=1;
$colcounter=1;
eval("\$forumbits .= \"".gettemplate("colforumtableheader")."\";");
} else {
$colcounter++;
if($colcounter%($forumcols+1)==0) $forumbits .= "</tr><tr>";
}
eval("\$forumbits .= \"".gettemplate("colforumbit")."\";");
}

if ($depth<$forumhomedepth) {
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
}
} // END if can view
} // END while ( list($key2,$forum)=each($val1) ) {
} // END while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {

Xenon 07-26-2002 04:06 PM

yes seems i forgot a } in my post, try to apply it again...

if it doesn't work print the exact error msg and the refering line ;)

Lionel 07-26-2002 04:12 PM

I got it at line 727. But your line is different than mine. Mine calls for template forumdisplay, yours calls for forumhome

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\";");

Xenon 07-26-2002 04:16 PM

hmm, you're on forumhome so i think forumhome templates would be better ;)

i don't see any errors, you should maybe ask in the supportthread for sponsoring hack....

Lionel 07-26-2002 04:24 PM

I'll give it another try later

ModshackUK 07-27-2002 05:47 PM

when i try to run the the sql alterations I get this message ?

MySQL said: You have an error in your SQL syntax near 'INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,op' at line 2

Does anyone else get it or am I alone in the dark here :)

ModshackUK 07-27-2002 10:25 PM

Its OK I put the 2 queries in seperatly and it worked ok although now I have 2 sets of each forum on the forums home and the templates are a little screwy

HM

jeffj 07-28-2002 11:37 AM

like someone else here I get an error as soon as I installed the hack according to the instructions...parse error...

I had to comment out a '}" to get it to even read index.php without generating a parse error.... the one right before
PHP Code:

// END if can view 

after that I tried to get it to display in columnar format and was only partially successful.

This is what I observed:

If I specified 1 column it would display two columns.
If I specified 2 columns it would display 3 columns and so on.

that is actually the least of my concerns since I am experiencing this wierdness show in the attached jpg.

any ideas???

thanks in advance...

- jeff

Xenon 07-28-2002 08:39 PM

please follow the installinstructions correctly.
The ammount of } is correct in the installfile i posted

i have rechecked it and it's correct, you must have made a mistake

jeffj 07-28-2002 08:47 PM

you are right oh great vb master....

I was about about to delete the post... knee deep in modifying "colforumbit " to have it display number of Posts, Threads plus name & date of last post/poster.

- jeff

Xenon 07-28-2002 09:57 PM

:)

ok have uploaded a new version
changes: you can now set up more than one categorie as a parent of columns

screenshot below (with extra mod-table starts...)

hope you'll like it

Brad 07-28-2002 11:27 PM

Xenon, i would like to make it so categories have a differnt level death template then normal forums, i hope you understand.

basicly i made a new template named forumhome_colbit_level1_nopost

and changed

PHP Code:

}
          eval(
"\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";"); 

to

PHP Code:

}
          eval(
"\$forumbits .= \"".gettemplate("forumhome_colbit_level$depth$tempext")."\";"); 

but that set the colbit template to all forums, can you help me?

Xenon 07-28-2002 11:39 PM

yeah i see the point (i think ;))

change the line
PHP Code:

eval("\$forumbits .= \"".gettemplate("forumhome_colbit_level$depth$tempext")."\";"); 

to this:
PHP Code:

if(strstr(" ".$columnparent." "" ".$forum['forumid']." ")) {
  eval(
"\$forumbits .= \"".gettemplate("forumhome_colbit_level$depth$tempext")."\";");
} else {
  eval(
"\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");


hope i have understood right what you wanted to do ;)

can you post a screenshot when it works?
i'm intrested what exactly you want to do ;)

Brad 07-28-2002 11:56 PM

Thanks, that did it, ill post a screeny soon. but im in a rush right now so if its not up tonight expect it friday :)

PiZi 07-31-2002 01:24 AM

Nice idea for you, try showing users-favourite forums in columns
a user can pick until 6 favourite forums, and those will be shown coulmned.

or try thinking of showing only forums a user subscribed to

hope those are good ideas.

CRego3D 07-31-2002 01:25 AM

I was lookign for a hack like this, so I installed it, it did not do exacly what I needed so with a little hlp from Firefly and modifying the templates myself this is what I got

http://www.yaxay.com/yack/index.php

(check it out, it is worthed) .. look at the "Gallery"

It's hacked so the on/off images reflect the forum topic (when read the image shows grey)


LOVE IT :D

Smoothie 07-31-2002 06:24 AM

should/could those queries be run separately, or together?

Xenon 07-31-2002 10:38 AM

CRego: looks very good

Smoothie: What do you mean? There are no extra queries in my hack..

@PiZi: Would be possible, but i don't think it's a good idea, design of the board should be a tghing just for admins ;)

the other thing would be a seperat hack, because it has nothing to do with columns in general. Showing just subscribed can be used on a normal board to


All times are GMT. The time now is 04:49 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.01489 seconds
  • Memory Usage 1,848KB
  • 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
  • (8)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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