![]() |
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.. |
screenshot columned forums below all others:
|
<a href="https://vborg.vbsupport.ru/attachment.php?s=&postid=278267" target="_blank">Screenshot with multiple columned categories</a>
columns between other categories |
admin cp
as you can see you can change the ammount of cols. desing of columns can be changed in templates |
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 |
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 ;) |
I will install this later tonight!
Thanks! |
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....
|
Ah, thanks Xenon, looks great.
Drk |
I'll install this on RingQuest later :)
|
very very nice man.
|
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 ;)
|
great hack pal! :)
|
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? |
no problem
just replace the line PHP Code:
PHP Code:
|
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 |
no, not possible by now, but i thought about it for next version
|
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 |
wouldn't that affect the category sponsored hack?
|
if you applay the changes i've told you it shouldn't affect it
just test it out |
it removed the category image in forumhome and did not display the columns... :(
|
hmm, intresting, does your code look like that?
PHP Code:
|
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"]) ) { |
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 ;) |
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")."\";"); |
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.... |
I'll give it another try later
|
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 :) |
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 |
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:
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 |
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 |
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 |
:)
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 |
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:
PHP Code:
|
yeah i see the point (i think ;))
change the line PHP Code:
PHP Code:
can you post a screenshot when it works? i'm intrested what exactly you want to do ;) |
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 :)
|
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. |
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 |
should/could those queries be run separately, or together?
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|