PDA

View Full Version : Forums arranged in columns on forumhome


Pages : [1] 2

Xenon
07-25-2002, 10:00 PM
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$tempext")."\";");

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
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");

in my hack with that:
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")."\";");
}

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?

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);
}

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$tempext")."\";");

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 } // 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

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

to

}
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 lineeval("\$forumbits .= \"".gettemplate("forumhome_colbit_level$depth$tempext")."\";");

to this:
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

thenetbox
07-31-2002, 02:48 PM
oooh.. thats awesome.. did you add the pics using templates only?

Originally posted by CRego3D
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

omegauk
07-31-2002, 04:12 PM
I am having some problems, I have done all correct but my forum layout goes out of shape when I do the forums. Any ideas how to fix?

Xenon
07-31-2002, 04:20 PM
can you describe it more exactly or post a screenie?

no problems are known, perhaps you have made a mistake creating/modifying the templates

hypedave
07-31-2002, 07:10 PM
okay my forum has 12 Section, right now I can only do one section, how can I do all my forums like this to minimize space

Smoothie
07-31-2002, 09:27 PM
Originally posted by Xenon

Smoothie: What do you mean? There are no extra queries in my hack..
These:
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,5,'Parent forums column arranged subforums','columnparent','0','Choose a Parent Forumid. All Subforums will be displayed in column arrangement (seperat with spaces)','','8')
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,5,'Display Forum Columns','forumcols','4','','','9')

Xenon
07-31-2002, 09:49 PM
ahh i see ;)
run em seperatly...

@hyperdave: in the newest version you can seperate more categories by space, all subforums in these cats will be arranged in columns.

CRego3D
08-01-2002, 12:00 AM
Originally posted by thenetbox
oooh.. thats awesome.. did you add the pics using templates only?



no what we did was to have a hack that woudl give each forum it's own on/off images .. wich where incorporated into the template :)

ladyfyre
08-03-2002, 01:07 PM
hmmm....i guess i am the problem child on this one....either that, or one of the other hacks i am using is causing a conflict.

When i try to execute the sql query ( this is what i am using, straight out of the install file:

INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,5,'Parent forums column arranged subforums','columnparent','0','Choose a Parent Forumid. All Subforums will be displayed in column arrangement (seperat with spaces)','','8')
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,5,'Display Forum Columns','forumcols','4','','','9')

)

I get this error:

Failed to execute SQL : SQL INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,5,'Parent forums column arranged subforums','columnparent','0','Choose a Parent Forumid. All Subforums will be displayed in column arrangement (seperat with spaces)','','8') INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,5,'Display Forum Columns','forumcols','4','','','9') failed : You have an error in your SQL syntax near 'INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,op' at line 1

Xenon
08-03-2002, 01:10 PM
try to run em seperatly, there are two querys, not just one ;)

Chris M
08-03-2002, 02:08 PM
Have you managed the multiple forum thing yet?

Satan

Link14716
08-03-2002, 03:30 PM
Ok, when I installed tis, I get a minor cosmetic problem (see below attachment), I am sure it is a template, but don't know how to fix it. Nice hack, BTW :banana:

Rose
08-03-2002, 03:40 PM
Originally posted by CRego3D


no what we did was to have a hack that woudl give each forum it's own on/off images .. wich where incorporated into the template :)


Is this something that might be shared/released? ;)


edited to add Very nice. I've it installed and am working on the tweakings. :D

Xenon
08-03-2002, 11:14 PM
@Rose it is already released as i know, but it's very old (i think 2.01 or so)

@Satan: Don't read my posts ;)
Yes you can now make more categories as top categories of columned forums..

@Link: Can you describe it a bit more? I don't see something wrong on your screenshot...

brauner
08-04-2002, 06:46 PM
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,5,'Parent forums column arranged subforums','columnparent','0','Choose a Parent Forumid. All Subforums will be displayed in column arrangement (seperat with spaces)','','8')

INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,5,'Display Forum Columns','forumcols','4','','','9')


mhhhh ich habe das jetzt mal so in die Datenbank reingemacht. Ich gehe davon aus das es 2 einzelne sind.
Aber bei mir im Board ist keine Ver?nderug zu sehen. Wo und wie gebe ich das ein?

Allerdings finde ich das was ich eingegeben habe in der Datenbank nicht wieder.
Sorry aber ich bin ein neuling.


In Englisch:
mhhhh I clean-made now times in such a way into the data base. I go of it out of it 2 particulars am. But with me in the board no Veraenderug is to be seen. Where and how do I enter?

However I find which I entered in the data base not again. Sorry however I is a beginner
:cry:

Xenon
08-04-2002, 07:39 PM
you should use a better translating program ;)

you'll find these settings in your Admin-CP > vbulletin options > Forumhome section...

Ich will nicht unh?flich scheinen, aber supportfragen kannst du bei vbulletin-germany.com in deutsch fragen. Mir pers?nlich isses ja wurscht, ob man mich hier was in deutsch fragt, aber da es ein englisches board ist kommt das einfach hier nicht so gut an ;)

Wie auch immer, als antwort: Du findest die Sachen dann in deinem Admin-CP bei den forenoptionen

Brad
08-04-2002, 09:30 PM
ok im back :p, heres what i did with it on my live board.

http://www.kousetsu.net/kan/index.php?

Xenon
08-04-2002, 09:35 PM
hey, looks good this extra categorie :)

mikey8270
08-04-2002, 10:08 PM
its not working for me....i can do the sql quesries and everything else...but i dont get the fields in my admin cp...

Link14716
08-04-2002, 10:24 PM
Yea, Xenon, it is minor and of little importance. The border of the between the catagory image and the forums aranged in colums is twice as thick as the normal ones. Like I said little importance, but :banana:

Xenon
08-05-2002, 12:06 AM
ahh i see...
hmm, will see what i can do, perhaps it's just a small template mod...

but as said not the importantst thing on my to do list ;)

@mikey: you must have done something wrong, these queries are produced directly from the vb admin cp (settings.php)

omegauk
08-24-2002, 06:36 PM
I installed hack and created a category with 4 forums, now when I enter the Category Id in the control panel and save all the 4 forums disssapear and you can only see the actual category alone, any ideas whats wrong?

Zachariah
08-30-2002, 08:17 PM
Great,
This is a must in all large forums.

Q: Absolute values would be cool on the columns.(word-wrap in the cell)

EX: Our site is set at 760px with 3 columns = about 254px a column. This is great, but with the current coding if a forum name is longer than that set value the cell will stretch vs. word-wrap. This intern destroys alignment of another parent forum.

As seen below in Parent Forum 2 the 2nd forum name because it is longer kills the alignment. Is there a math variable we could add to keep this from happening?

Parent 1

|small name|small name|small name|

Parent 2

|small name|larger names|larger name|

kira
08-30-2002, 09:19 PM
Installed without a problem. What a clever solution for admins with a lot of related subforums! Thanks!

omegauk
08-30-2002, 09:46 PM
Anyone know why this error?

Parse error: parse error, unexpected $ in /home/alex/public_html/muscle/index.php on line 746

Hooper
09-04-2002, 10:07 PM
Just installed 2.2.6 and the hack worked. It does not work with 2.2.7 at this point.

Thank you,

Hooper
09-05-2002, 04:34 AM
Originally posted by Smoothie
should/could those queries be run separately, or together?

Seperate. There are a few posts on this because most copy and paste without looking real close. I did the same before I noticed the two queries. You must run the queries seperate or you will get errors.

Smoothie
09-05-2002, 06:06 AM
Thanks, and i did run them separately. Didn't have much luck though. Out of the 4 styles on my board, only one looked right. The other 3 were messed.

Hooper
09-05-2002, 06:50 AM
Yeah. I pretty much gave up on it. Mine was way out of wack as well. Great idea and a nice hack, just seems to be less work to code the templates as needed by hand at this point. Plus, I believe the hack will need some modification to work correctly with 2.2.7. The new vBulletin version has much needed fixes. With a couple of my imported style sets and 2.2.6 it looked fine, but with the others it was going to take quite a bit of fixing.

omegauk
09-05-2002, 07:38 AM
Can anyone help me here, my image is coming up with this funny line around and I need to remove the little text at the top right, posts, threads,last post. See the Red circles:

Rose
09-05-2002, 01:33 PM
Originally posted by omegauk
Can anyone help me here, my image is coming up with this funny line around and I need to remove the little text at the top right, posts, threads,last post. See the Red circles:


Are you referring to a border inside the img tag?



Thanks for this hack - it's great! I have it running smooth at www.thesistersthree.com/forums > see the "casting couch" section.

omegauk
09-05-2002, 01:37 PM
That black border yes, can you see it?

Corbu
09-06-2002, 01:53 PM
I like this hack !

Can you post how to do this : Insert images in a table ans "last post by " please Xenon ...

Such like in Yaxay forum...

Good job..

croft
09-11-2002, 06:22 PM
well i cant get this to work =(
does these lines have anything to do with it and if so where do i put them ?INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,5,'Parent forums column arranged subforums','columnparent','0','Choose a Parent Forumid. All Subforums will be displayed in column arrangement (seperat with spaces)','','8')
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,5,'Display Forum Columns','forumcols','4','','','9')

Hooper
09-11-2002, 06:46 PM
Hi Croft.

The above are queries not php code. One Insert at a time, you install or query your database with the data so that the tables will have the above data inserted in to them. The above alters the database information.

You can use phpmyadmin, or if you know how, you can do this from a prompt. If you have never worked on a database before I would recommend phpmyadmin.

Stick this in the queries box. And then the second. Before you do anything, back up your database with a mysqldump.

INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,5,'Parent forums column arranged subforums','columnparent','0','Choose a Parent Forumid. All Subforums will be displayed in column arrangement (seperat with spaces)','','8')

croft
09-11-2002, 06:51 PM
The above are queries not php code. One Insert at a time, you install or query your database with the data so that the tables will have the above data inserted in to them. The above alters the database information.

My problem is i have no idea what so ever how to insert these in to my DB =(
Is there a step by step solution for idiots like me ?
I love the hack by the way and i realy want this =)
If this works this will be my second hack i install wooohooo. as you might have moticed im new to the hack part of vb.. Have no idea what kind of hack is usefull and wich hacks are not...
This one is usefull tho and i want it..
Any help would be wery much apriciated =)
http://www.dabforum.com

Hooper
09-11-2002, 06:53 PM
You are not an idiot. You have never added tables or inserted information into a database. This does not qualify for the term idiot.

I gave instructions for the easiest solution that I know of.
phpmyadmin. You will have to do some experimenting. If you are going to experiment with this hack, I would advise you to use 2.2.6 as the hack suggests it works with. 2.2.7 has issues with this hack.

croft
09-11-2002, 06:58 PM
Well i exported the setting from my db.. can i yust past the things in the downloaded file or do i HAVE to set this up on the db itself ?
sorry for all these questions.

Hooper
09-11-2002, 07:03 PM
You have to do as the installation instructions request.

You have to add the queries to the database so that the alterations are made. Once this has been completed, carry on with the rest of the hack. Do your database alterations (run quereies) before you move forward. This is really not very hard to accomplish. Being it's your first time altering vBulletin and the database, you will want to experiment as mentioned so that you can see how the changes work.

Do you have phpmyadmin?

croft
09-11-2002, 07:05 PM
Yes i do.. im at it right now .... =)

Hooper
09-11-2002, 07:08 PM
Super.

Ok. You simply and carefully copy one query at a time and paste the query into the box that says run a query. Once there and you are ready, hit the submit button. It will give you one of two things when you do this. You will get an error and explaination, or it will say something like inserted whatever into the database. This is important to be careful not to run the query on the wrong database if you have multiple databases. Be sure to chose the correct one.

Make sure you have selected the appropriate database and click on the database name at the top of the left hand column in phpmyadmin. You will find the querie box there.

Just a note, although phpmyadmin is alright for some things, do dumps and restores from the prompt.

croft
09-11-2002, 07:15 PM
Its done... now i have to go back and read about how to set it up in the control panel =) Thanks for the help.....

Hooper
09-11-2002, 07:19 PM
Your welcome. Keep on keeping on..... L8R.

Xenon
09-12-2002, 09:25 AM
Sorry for the problems with 227 and my hack, but the version 227 has been released while i was in my holidays, and now back i have to do a lot of work.

i'll upgrade it for 2.2.7 asap.
but i haven't the time to take a look at the original 227 code till now...

@corbu: as i see it's another hack used combined with mine here.
it was called different on/off icons for forums or something like that

Hooper
09-12-2002, 09:40 AM
Not your fault,

2.2.7 changed quite a bit.

IS there any chance you can have this do forumdisplay as well? Forumhome is alright, but how much more difficult would it be to have the hack actually show all of the forums horizontally? forumdisplay in other words at different levels?

Thanks

Xenon
09-12-2002, 09:49 AM
as i remember the codes were quite similar, so i think it shouldn't be such a problem.

i'll think of an addition with the next upgrade :)

Hooper
09-12-2002, 09:50 AM
:)

Xenon
09-12-2002, 03:19 PM
I have updated my testboard and saw my hack works without any problems at vb227.

You must have made a mistake when upgrading.
take a new file and apply the hack again, then it should work.

Hooper
09-12-2002, 06:43 PM
I tried installing the hack on top of 2.2.7 more than once. No luck.
Maybe upgrading the vB after installing the hack on 2.2.6 works differently. That could be I suppose. I couldn't get it to function properly installing the code on a fresh 2.2.7 install. That's alright though.

Appreciate your hard work.
Thank you.

Xenon
09-13-2002, 10:32 AM
can you please post a screenshot so i can see what looks wrong?

when i comparwe the vb226 file with the 227 file i don't see so hard differences and none of the differences should affect my hacked lines

Hooper
09-13-2002, 10:45 AM
That's alright...

I deleted the test install... :lick:

chitown
09-13-2002, 08:47 PM
OK, this is interferring with the collapsable fum hack?
can these 2 be done together?


index.php
find:
global $DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imo dcache,$session,$accesscache,$usergroupdef,$noperm s;
global $showlocks,$hideprivateforums,$showforumdescriptio n,$forumhomedepth,$dateformat,$timeformat,$enablea ccess;
global $bbforumview;

below add:
global $colsdone,$columnparent,$forumcols,$colcounter;


this is what directlty follows $enable access

// expand collapse hack
global $BrowserDOM, $collapsedstate;
// end expand collapse hack

if ( !isset($iforumcache["$forumid"]) ) {
return;
}

$forumbits = '';

while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {
while ( list($key2,$forum)=each($val1) ) {

// Permissions
if ( $enableaccess and is_array($accesscache["$forum[forumid]"]) ) {
if ($accesscache["$forum[forumid]"]['accessmask']==1) {
$forumperms = $usergroupdef;
} else {
$forumperms = $noperms;
}
} else if ( is_array($ipermcache["$forum[forumid]"]) ) {
$forumperms = $ipermcache["$forum[forumid]"];
} else {
$forumperms = $permissions;
}

if (!$hideprivateforums) {
$forumperms['canview']=1;
}

if (!$forumperms['canview']) {
continue;
} else {
$forumshown=1;

// do light bulb
if ($bbuserinfo['lastvisitdate']=='Never') {
$forum['onoff']='on';
} else {
if (($fview = get_bbarraycookie('forumview', $forum['forumid'])) > $bbuserinfo['lastvisit']) {
$userlastvisit=$fview;
} else {
$userlastvisit=$bbuserinfo['lastvisit'];
}
if ($userlastvisit<$forum['lastpost']) {
$forum['onoff']='on';
} else {
$forum['onoff']='off';
}
}

if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff'].='lock';
}

// prepare template vars
if (!$showforumdescription) {
$forum['description']='';
}

// dates
if ($forum['lastpost']>0) {
$forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']);
$forum['lastposttime']=vbdate($timeformat,$forum['lastpost']);
eval("\$forum['lastpostinfo'] = \"".gettemplate('forumhome_lastpostby')."\";");
} else {
$forum['lastpostinfo']='Never';
}

$listexploded=explode(",", $forum['parentlist']);
while ( list($mkey1,$mval1)=each($listexploded) ) {
if ( !isset($imodcache["$mval1"]) ) {
continue;
}
reset($imodcache["$mval1"]);
while ( list($mkey2,$moderator)=each($imodcache["$mval1"]) ) {
if ( !isset($forum['moderators']) ) {
eval("\$forum['moderators'] = \"".gettemplate('forumhome_moderator')."\";");
} else {
eval("\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";");
}
}
}

if ( !isset($forum['moderators']) ) {
$forum['moderators'] = '&nbsp;';
}

if ($forum['cancontainthreads']==1) {
$tempext = '_post';
} else {
$tempext = '_nopost';
}
// expand collapse hack
if ($BrowserDOM==True) {
if ((!isset($z)) or ($depth==1)) {
$z=0;
} else {
$z++;
}
// get state of collapse
if ($forum[parentid]==-1) {
$collapsedstate=$forum['collapsed'];
}
// auto collapse forums based on forum setting
if ($collapsedstate==1) {
$fhomeexpandstyle="style=\"visibility:hidden; display:none;\"";
} else {
$fhomeexpandstyle="";
}

// auto collapse forums for user
if (getViewSetting($forum['parentid'])==1) {
$fhomeexpandstyle="style=\"visibility:hidden; display:none;\"";
} elseif (getViewSetting($forum['parentid'])==2) {
$fhomeexpandstyle="";
}

// display correct item (this can not be simplified into the block above
// due to CSS2 defining special display values for tables, eg display:table-row;)
if ($collapsedstate==1) {
$divexpand = "display: inline;visibility: visible;";
$divcollapse = "display: none;visibility: hidden;";
} else {
$divexpand = "display: none;visibility: hidden;";
$divcollapse = "display: inline;visibility: visible;";
}

if (getViewSetting($forum['forumid'])==1) {
$divexpand = "display: inline;visibility: visible;";
$divcollapse = "display: none;visibility: hidden;";
} elseif (getViewSetting($forum['forumid'])==2) {
$divexpand = "display: none;visibility: hidden;";
$divcollapse = "display: inline;visibility: visible;";
}
eval("\$expandcontract = \"".gettemplate("forumhome_expandcontract")."\";");
}
// end expand collapse hack


if(strstr(" ".$columnparent." ", " ".$forum['parentid']." ")) {
if($colsdone!=1) {
$colsdone=1;
$colcounter=1;
eval("\$forumbits .= \"".gettemplate("colforumtableheader")."\";");
} else {
$colcounter++;
if($colcounter%($forumcols+1)==0) {
$forumbits .= "</tr><tr>";
$colcounter=1;
}
}
$width="width=".(100/$forumcols)."%"; //take out if you want variable column widths
eval("\$forumbits .= \"".gettemplate("colforumbit")."\";");
} else {
if($colsdone==1) {
$colsdone=0;
$colcounter=0;
eval("\$forumbits .= \"".gettemplate("colforumtablefooter")."\";");
}
eval("\$forumbits .= \"".gettemplate("forumhome_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"]) ) {

unset($iforumcache["$forumid"]);
return $forumbits;
}

if (!isset($forumid) or $forumid==0 or $forumid=='') {
$forumid=-1;
} else {
// need to get permissions for this specific forum
$permissions=getpermissions(intval($forumid));
}// expand collapse hack
$fviewcache=BuildViewSettingCache(); // create cache
// end expand collapse hack

$forumbits=makeforumbit(intval($forumid), 1, $permissions);

$unregwelcomemessage='';
if ($bbuserinfo['userid']==0) {
eval("\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");
}
// expand collapse hack
if ($BrowserDOM==True) {
eval("\$expandcontractscript = \"".gettemplate('forumhome_expandjscript')."\";");
}
// end expand collapse hack
$shout = $DB_site->query_first("SELECT u.username, s.userid, s.shout_text, s.timestamp FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 1");
$shout[timestamp] = vbdate('n-j-y, g:i:s a', $shout[timestamp]);
$shout[shout_text] = bbcodeparse($shout[shout_text]);

eval("\$the_shoutbox .= \"".gettemplate("forumhome_shoutbox")."\";");
eval("dooutput(\"".gettemplate('forumhome')."\");");

?>

Can anyone tell me where i should add


global $colsdone,$columnparent,$forumcols,$colcounter;


Thank you in advance

Hooper
09-14-2002, 03:47 AM
You should be able to find the last set of global calls and simply add global $colsdone,$columnparent,$forumcols,$colcounter;
right below it. Shouldn't be an issue as far as adding a global calls.

Global $enable access;
Global $colsdone,$columnparent,$forumcols,$colcounter;
// expand collapse hack
global $BrowserDOM, $collapsedstate;
// end expand collapse hack

Xenon
10-24-2002, 07:41 PM
*test*

Dean C
10-24-2002, 07:47 PM
testing too...

Dean C
10-24-2002, 07:49 PM
geez ive been trying to reply to this thread for weeks now!

Now ... how would i go about getting the layout for my forum columns like Lesane has at his site:

http://www.wildvibes.net/forum

I have the forum category icon installed btw so i can do the images i just can't sort the layout for some reason :(

If some html genius can help me out i'd be most grateful :D

Regards

- miSt

Dean C
10-27-2002, 03:30 PM
^ to the top :D

- miSt

Kinox
10-27-2002, 10:21 PM
how can I list all forums that are parentid -1, aka top category

without entering them to the database, would list them automatic...

if(strstr(" ".$columnparent." ", " ".$forum['parentid']." ")) {

where $columnparent is...

I'm working on the code, but im kind of lazy, hehe

Mr_P
10-28-2002, 09:21 AM
Originally posted by Mist
geez ive been trying to reply to this thread for weeks now!

Now ... how would i go about getting the layout for my forum columns like Lesane has at his site:

http://www.wildvibes.net/forum

I have the forum category icon installed btw so i can do the images i just can't sort the layout for some reason :(

If some html genius can help me out i'd be most grateful :D

Regards

- miSt

same here mist i also would like to know how to get it looking same.Remove the top 2 bars as they aint needed in such a hack if the sections are gonna be used for pictures.

Anyone ?

Xenon
10-28-2002, 02:26 PM
remove this part of you templates:<tr align="center">
<td bgcolor="{tableheadbgcolor}"><smallfont>&nbsp;</smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="80%" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Posts</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" nowrap><smallfont color="{tableheadtextcolor}"><b>Last Post</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="20%"><smallfont color="{tableheadtextcolor}"><b>Moderator</b></smallfont></td>
</tr>

that should work, i already posted that's not needed i just added it ;)

@Kinox: Just Topforums in columns and subforums not?
how should that look?
i think now it looks terrible, i've tried this ;), maybe in a later version, but this time i have to less time to work on my hacks

Mr_P
10-28-2002, 05:00 PM
ok i tried that to begin with and have even removed the code yet the lines are still there looking at me.So if it aint calling it from the 3 templates created with this hack then how is it gettign though

I have attached a pic and also the 3 templates i have created.And as you can see it deffo aint calling them in.


colForum Footer


</table>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr align="center">






colForum Header

</table>
</td></tr></table><br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">



colforumbit

<TD vAlign=top width="33.33%" bgColor=#e3e3e3>
<TABLE align=center>
<TBODY>
<TR>
<TD vAlign=center align=middle width=60
rowSpan=2>
<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"> <normalfont><b>$ficonimg </b></normalfont></a></TD>
<TD width="675"> <FONT
face="verdana, arial, helvetica"
size=2></B></FONT> </A></TD>
<TD width="47"><img src="{imagesfolder}/$forum[onoff].gif" border="0" alt=""></TD></TR>
<TR>
<TD colspan="2" width="688">&nbsp;&nbsp;<FONT face=verdana,arial,helvetica
size=1><a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]">
<b>$showlastpostingtitle</b>

<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]">$forum[lastthread]</a><br>
$forum[lastpostdate] <font color="{timecolor}">$forum[lastposttime]</font><br>
by <a href="member.php?s=$session[sessionhash]&action=getinfo&find=lastposter&forumid=$forum[forumid]"><b>$forum[lastposter]</b></a></smallfont></td>
<td nowrap>&nbsp;<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"></a>
</FONT></TD></TR></TBODY></TABLE></TD>

Xenon
10-28-2002, 05:03 PM
ahh, you mean the one on top of all?

you have to edit the forumhome template for that....

Mr_P
10-28-2002, 05:14 PM
I think i need to go back a hack to when i installed the icon images hack as i have just edited me templates and put in exactly what u said and the same thing still happens so its deffo calling it from elsewhere.

Mr_P
10-28-2002, 05:22 PM
how i do that m8 without messing it up for the rest of the board ?

i was just about to unistall both hacks then and restart from beginning

Xenon
10-28-2002, 05:51 PM
well just remove the block i poste before from forumhome that should help...

i'm not a template expert, php-codes are my world ;)

Dean C
10-28-2002, 05:57 PM
I still haven't managed to align this all up and get it lookin like Wildvibes.net :(

- miSt

Mr_P
10-28-2002, 06:12 PM
Originally posted by Xenon
well just remove the block i poste before from forumhome that should help...

i'm not a template expert, php-codes are my world ;)

im afraid the code u posted above is not in forum home so cant remove it .I only want to remove it for that section that i apply the columns to not the whole board.

Dean C
10-28-2002, 06:54 PM
Its in your colforumbit template i believe ;)

- miSt

Buddha
10-29-2002, 02:24 PM
actually, i think that a lot of these problems could be resolved if we could access the <tr> that is right under the category header. the one that contains "Forum, Posts, Threads, Last Post, Moderators". not the footer template you created with this info... that one is easy to change. if you can change it so that this <tr> can be contained within a template, then it would be easy to change to our liking. also, we need to manually alter it if we are using the collapsible forums.

attached is an image to show which table row i am referring to. if it can be set as a template, then we could change it as need be.

and by set it as a template, i don't mean for all the forums, but rather just for the column forums.

Xenon
10-29-2002, 02:46 PM
Buddha, this should be in one of the original forumhome templates....

well i'm planning to code a new version of this hack, when i got a little more free time, i hope this would be ASAP ;)

Buddha
10-29-2002, 02:54 PM
thanks for the quick reply Xenon... but i didn't quite make myself clear...

is it possible for this hack of yours to be directed to a different template for the table row in question, instead of the original forumhome template?
know what i mean?

i notice that in your initial screenshots, this tablerow doesn't exist... how did you remove it? by the look of the screenshots, it looks like you removed it completely in the forumhome_level templates, but this affects the regular forums as well (which are not in columns).

Xenon
10-29-2002, 07:32 PM
i didn't remove it, my forums which are aranged in columns aren't just at the very top of the forumhomepage ;)

Buddha
10-29-2002, 11:37 PM
i don't understand why it would matter where the columns are on the forumhome page, xenon. could you explain that a little more.
mine for example, are in the center. still, you can see from the screenshot i posted, what i mean by that table row, and how i'd like to get rid of it. i know others are wondering as well. it can obviously be done, as other sites have accomplished it, however no one is sharing that knowledge.

Smoothie
10-30-2002, 01:03 AM
I tried to install this. Never could get it to look right on a more than one of my skins.

Mr_P
10-30-2002, 06:01 AM
Originally posted by Buddha
i don't understand why it would matter where the columns are on the forumhome page, xenon. could you explain that a little more.
mine for example, are in the center. still, you can see from the screenshot i posted, what i mean by that table row, and how i'd like to get rid of it. i know others are wondering as well. it can obviously be done, as other sites have accomplished it, however no one is sharing that knowledge.

I spent best half of a night trying to remove this and anything i did seemed to affect the whole board so in end i just gave up.
I now have 3 sections with GFX in them but i also have the 2 header bars which quite ruin it so a hack on how to remove this alone for this certain section that u use for columns would be excellant if anyone wants to share their knowledge.

As for me im lost on this.

Buddha
10-30-2002, 11:31 AM
i'm not a php coder, but i think all we'd need is to have the script say (in laymen's english) "if you're not using columns for this forum, use the default templates. otherwise, use custom templates for those rows." and then get to define in those templates how you want those rows to appear.

Xenon
10-30-2002, 12:04 PM
Originally posted by Buddha
i don't understand why it would matter where the columns are on the forumhome page, xenon. could you explain that a little more.
mine for example, are in the center. still, you can see from the screenshot i posted, what i mean by that table row, and how i'd like to get rid of it. i know others are wondering as well. it can obviously be done, as other sites have accomplished it, however no one is sharing that knowledge.

it matters where the columns are, because if they are on the top of forumhome, that tablerow is created by the forumhome templates, not by any templates of my hack....

if you have it in the center than you just have to cut out <tr align="center">
<td bgcolor="{tableheadbgcolor}"><smallfont>&nbsp;</smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="80%" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Posts</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" nowrap><smallfont color="{tableheadtextcolor}"><b>Last Post</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="20%"><smallfont color="{tableheadtextcolor}"><b>Moderator</b></smallfont></td>
</tr>

from your colforumtablefooter template as i said already

Buddha
10-30-2002, 12:31 PM
i've read all of the posts in this thread... you don't need to worry about that. and i know you've mentioned that you can just take those tables out, but that does not solve the problem. and it's a problem that others here are also experiencing.

i have the forum which contains the colomns in the middle of the page, and it still draws from that forumhome template and puts that tablerow in.

is it possible to code it in your php that you've posted for this script, that if the forum uses columns, then it would draw that information for that tablerow from a seperate template, instead of the default forumhome template?
that would resolve all of our issues here.

thanks for the help.

Xenon
10-30-2002, 12:48 PM
i don't have the time to code in special wishes this time, so you can try to code it in yourself.

as soon as i've more time, i'll recode this hack with some new ideas i currently have in mind...

Mr_P
10-30-2002, 12:49 PM
i also removed from columbit the said code but somehow the bars still appear

Buddha
10-30-2002, 12:57 PM
i don't think it's just "special wishes" xenon. if you read through this thread you'll see that there are a lot of people who would like this hack to work and display properly.

sorry to put you out though. forget i asked.

Dean C
10-30-2002, 05:21 PM
Lol im a nuiscance i know but i still am desperate to get my forum columns looking like here at:

http://www.wildvibes.net/forum

Regards

- miSt

Mr_P
10-30-2002, 07:38 PM
ok i suzzed my prob out i added instead of replacing inside index.php so was down to User Error (cause of to many probs on vbull i bet :)


In index.php (root) find this :



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

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


Now REPLACE this in index.php to this


if(strstr(" ".$columnparent." ", " ".$forum['parentid']." ")) {
if($colsdone!=1) {
$colsdone=1;
$colcounter=1;
eval("\$forumbits .= \"".gettemplate("colforumtableheader")."\";");
} else {
$colcounter++;
if($colcounter%($forumcols+1)==0) {
$forumbits .= "</tr><tr>";
$colcounter=1;
}
}
$width="width=".(100/$forumcols)."%"; //take out if you want variable column widths
eval("\$forumbits .= \"".gettemplate("colforumbit")."\";");


} else {
if($colsdone==1) {
$colsdone=0;
$colcounter=0;
eval("\$forumbits .= \"".gettemplate("colforumtablefooter")."\";");
}

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

}

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


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


and now it works fine the bars have totally disappeared for me.

So if it dont work just go over tha hack again.If you installed the one that adds a GFX to the section recheck this as well.

Mr_P
10-30-2002, 07:42 PM
ok i have re-add the install file for this hack as i have made a few template changes and it works Deffo.

just go over it and see whats different and tell me if it works for u.

Buddha
10-31-2002, 12:36 AM
excellent work guys.
thank you very much. works like a charm, and allows me a lot of freedom with the templates to modify as i need to.

thanks!

Mr_P
10-31-2002, 04:41 AM
Originally posted by Buddha
excellent work guys.
thank you very much. works like a charm, and allows me a lot of freedom with the templates to modify as i need to.

thanks!

Nps

Consider yourself lucky first time one of my fixes has work :)

Xenon
10-31-2002, 10:05 AM
thanx, have to take a closer look at it. :)

N9ne
11-01-2002, 07:27 PM
Xenon: Is there a quick fix for this:

I have this template mod installed: http://www.vbulletintemplates.com/mods/showthread.php?s=&threadid=11&highlight=header

It is the famous "add header cells under categories".

Now because of this it shows under the category for forums arranged in columns! I want to remove it from JUST that category, ie. all categories arranged in columns.

For Mr_P's code, do I just uninstall your hack [in index.php] and apply what he has done? And all is ok? Or do I actually need to create the extra templates he calls in his code?

Mr_P
11-01-2002, 07:33 PM
Hmm i dont call in no extra templates m8,all the orginal coding is done by Xenon

all i did was edit some of them to suit me and get the effect i wanted.

You dont need to uninstall the hack

just look at instructions in the zip file its the same as Xenons but i have already added the extra bits needed so check them against the code you have and add as needed.

Only takes a few mins to do the full hack anyway.


For Mr_P's code, do I just uninstall your hack [in index.php] and apply what he has done? And all is ok? Or do I actually need to create the extra templates he calls in his code?


Change the code in index.php

and then in the txt file u notice the templates you have to make have a bit differetn code in them.Just cut and paste over the template you already have.

N9ne
11-01-2002, 08:02 PM
I can't cut and paste them because you have hardcoded colours, use a tbody tag, and have hardcoded widths :(

N9ne
11-01-2002, 10:20 PM
bump.

Mr_P
11-02-2002, 03:54 AM
Edit the code to suit your forums m8

N9ne
11-02-2002, 08:08 AM
Is it possible for you to supply me the variables? I'm not quite sure what is what to be honest, and I say this because I like to keep the whole vB structure in tact, I'm a hater of hard coding :D

I'll see what I can do though, I might post up templates w/o the hard coding if I can ;)

Dean C
11-02-2002, 08:33 AM
OK i fixed this for you N9ne..

This is my current templates:

colforumbit:


<td bgcolor="{secondaltcolor}" valign="top" $width align="left">
<img src="{imagesfolder}/$forum[onoff].gif" border="0" alt="">
<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>
<br>
<smallfont>$forum[lastpostinfo]</smallfont>
</td>


colforumtablefooter:


</table>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">


colforumtableheader:


</table>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">


Regards

- miSt

___________

Any news on gettin this hack to look at wildvibes.net and yaxay.com/yack?

N9ne
11-02-2002, 09:15 AM
Erm, doing what Mr_P and mist said, it also removed the category name! The whole category bar just goes, and it's just the forums, having the category bar would be good ;)

N9ne
11-02-2002, 09:18 AM
Also, this line in your code Mr_P:

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

Is getting the template forumhome_colbit_level and whether it's level 1 or 2, and nopost or post...you said it doesn't call any extra templates?

N9ne
11-02-2002, 09:21 AM
Ok nevermind nevermind, I've figured it all out now, some templates do have to be created...just create forumhome_colbit_level1_nopost and the same for level2, and use the same contents as the forumhome_forumbit templates, but don't add in the header cells ;)

squawell
11-02-2002, 05:33 PM
Originally posted by Mist
Lol im a nuiscance i know but i still am desperate to get my forum columns looking like here at:

http://www.wildvibes.net/forum

Regards

- miSt
about this hack....

Mist can u tell me how to do can look like that website??

:) :)

Thankz...

Mr_P
11-02-2002, 06:20 PM
Originally posted by N9ne
Also, this line in your code Mr_P:

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

Is getting the template forumhome_colbit_level and whether it's level 1 or 2, and nopost or post...you said it doesn't call any extra templates?

it calls in the templates that are needed and they are the same ones as the orginal hack.

I posted code here only because a few wanted the bars removing and i gather you dont.The code is the zip is to completely remove the bars and the category name as these i did`nt want.

Dean C
11-02-2002, 08:01 PM
@ squawell - im trying to get it to look like that myself lol..

- miSt

mikey8270
11-02-2002, 08:31 PM
what part of that are u trying to recreate? i managed to get something like that on my test board.

Mr_P
11-02-2002, 08:36 PM
ok i must be missing some thing here

Lesanes site is one cracker of a coded site and fair dues to him.
But what are u after ?

do u want the four sections with the GFX in ?

or is it you want the bar to show as well as the GFX sections.

I fyou want the GFX then load the addon to this hack which allows you to specify a logo for each section.
You dont specify one for any other section except for the one u gonna be using for the Columns.

Then u take the code when its done and mess with it in Dreamweaver and tweak it to its to your liking.

Mr_P
11-02-2002, 08:38 PM
Infact tell me what u want and ill do a step by step guide to doing it if possible ?

Dean C
11-03-2002, 11:16 AM
Well i have the category icons hack installed so the images for the forums will work fine..

I need to get my forum columsn working like they are at Lesane's site..

With the category images (i have that working so the variable to use to insert the image is: $ficonimg)

So basically i need the forum columns looking like they do at Lesane's site :)

Regards

- miSt

Mr_P
11-03-2002, 08:01 PM
Originally posted by Mist
Well i have the category icons hack installed so the images for the forums will work fine..

I need to get my forum columsn working like they are at Lesane's site..

With the category images (i have that working so the variable to use to insert the image is: $ficonimg)

So basically i need the forum columns looking like they do at Lesane's site :)

Regards

- miSt

They do appear like that but you got to remember Lesane Has done extra coding on his to get that effect.Must admit i like his myself.


Minifreunde,would`nt you be better off posting the change instead of asking for pms.This way new people to this post get to see all the changes made.

slideboxer
11-07-2002, 12:55 AM
Originally posted by Mr_P


it calls in the templates that are needed and they are the same ones as the orginal hack.

I posted code here only because a few wanted the bars removing and i gather you dont.The code is the zip is to completely remove the bars and the category name as these i did`nt want.

How could I make it list the category name if I want it to?

Kars10
11-07-2002, 07:01 AM
... here is a Screenshot of my testboard installed with the modification! :)

Sadie Frost
11-11-2002, 03:48 AM
Okay, I have got this working pretty much I think. I will try and post what I did, but since it involved playing around with it some, I might need to revise if some of you try it. I'm not a coder, so it might need cleaned up. I don't think anything here is new - I just started trying what other people were saying. Oh, this is for removing the Forums, Posts etc. stuff but still having the category title.

1) First I installed the original hack.

2) Then I downloaded Mr P's zip file on page 9 of this thread. I substituted his code for the second change to the index.php file.

3) I played around with my templates. Zip is attached, but I think I mostly cleared them out lol. There are very probably some extra nested tables in there. I also added two templates which I think someone mentioned doing but I couldn't find the post again to say exactly who so I'm sorry. I basically took the forumhome_forumbit_level1_nopost and level2_nopost and renamed them, then took out all the code for the Forum, Posts, Threads etc. I renamed them forumhome_nohead_level1_nopost and level2_nopost

4) Then I went back into Mr. P's code in index.php and in:

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

I substituted 'nohead' for 'colbit'

Two things: I have the template mods for seperating the categories on the forumhome installed, and I seem to have an extra line below my category header. Probably because I have that template mod that puts a decorative line there. So if anyone can figure out how to remove that that would be good. :)

Sadie Frost
11-11-2002, 03:48 AM
screenshot :)

Jacko
11-15-2002, 04:43 PM
i get this image when editing my column header template..

Sadie Frost is it possible for you to show me your column head template????

i would be most gratefull..


i am trying to get the category title to show but it shows me the first forum name?? why?? :(

here is my screenie..

Xenon
11-15-2002, 07:47 PM
Jacko please change your sig, your image is over the limits of 300 pixels wide and 20k bytes large.

also you are just allowed to have an image OR text in it, not both

Jacko
11-15-2002, 07:50 PM
sorry didnt know. :(

can anyone sort out my problem please??

Sadie Frost
12-14-2002, 11:02 PM
I'm sorry, I don't understand the problem or I would try and help :)

N9ne
12-15-2002, 01:08 AM
Xenon: I just realised something, I don't think you added the extra templates to the templatesused variable ;).

Xenon
12-15-2002, 11:51 AM
didn't i?

yes, most of the time i forgott about it, when posting a hack ;)

omegauk
12-20-2002, 07:22 PM
Anyone know how to remove the strip underneath the category? the one thats says threads, posts etc.....?

omegauk
12-20-2002, 07:26 PM
This one here, the part marked in red:

omegauk
12-20-2002, 08:01 PM
ok, I just managed to solve it. :)

influence
12-28-2002, 12:55 PM
did anyone PM Minifreunde and get the one he did similar to lesane version? I dont know if he still around because I PM'ed him for it.

Tes One
01-03-2003, 07:30 AM
Ok, maybe I'm just missing something but I believe I have this hack installed correctly on a 2.2.9 board and it is simply not showing up for me. I did the queries, added the templates and made the mods to the index.php and I'm coming up with nothing.

Can someone please post a screenshot of (Forum Home Options)how you chose the parent column and then it's sub forums? I believe this is the area that I am getting stuck on.

Thanks

Tes

omegauk
01-03-2003, 07:36 AM
You choose the category ID and then specify how many columns you want

omegauk
01-03-2003, 07:42 AM
<a href="https://vborg.vbsupport.ru/attachment.php?s=&postid=277106" target="_blank">https://vborg.vbsupport.ru/attac...&postid=277106</a>

Tes One
01-03-2003, 08:19 PM
...and that Catagory ID has to be set as a Catagory and not a Forum correct?

Xenon
01-03-2003, 09:29 PM
no it can also be a normal forum, it just must have subforums, which are shown as columns then :)

influence
01-04-2003, 03:53 PM
mine shows weird. any help? http://board.rapflava.com

Preech
02-07-2003, 02:06 PM
attachment doesnt work

Xenon
02-07-2003, 03:24 PM
works perfect here...

check your browser..

amykhar
02-16-2003, 02:24 AM
Interesting. It doesn't seem to work on private categories. I installed it, tried it on my admin forums, nothing. Changed the options to a public category, and it worked.

Xenon
02-16-2003, 09:57 AM
really?

hmm weird, normally there shouldn't be any difference AFAIK the vb-code..

maybe i have to take a look at it on this issue..

amykhar
02-16-2003, 11:48 AM
Never mind. Doh. I have the forumhome cache installed. My front page was cached.

Xenon
02-16-2003, 12:00 PM
*gggg*

ok, that would have been really wierd :)

Bad Bunny
03-08-2003, 07:33 AM
Thank you, Xenon. It works wonderfully. Everything was perfect.
And you give ALOT of room for creativity and customization.

Xenon
03-08-2003, 10:08 AM
* Xenon enjoys to hear that :)

drives fast
03-12-2003, 02:10 AM
would it be possible to do this same thing to forum display instead of forumhome?

I am making a classifieds modification to my site by creating a forum (like normal) then creating subforums. The subforums become the categories (that I create) and the end result looks like this:
http://www.globaldungeon.net/images/forumdisplay1.gif

but I really want them to look like this:
http://www.globaldungeon.net/images/forumdisplay1a.gif

this is what the list of ads in the category looks like:
http://www.globaldungeon.net/images/forumdisplay2.gif

this is what the ad looks like once posted:
http://www.globaldungeon.net/images/showthread.gif

granted, this is very basic looking since it is in the earliest stages of just template edits but I would really like to be able to change the arrangement in the first pic to look like the second pic bad without it affecting the rest of my site if anyone can help.

P.S.
I downloaded my default style and uploaded it as a new style and told my classifieds forum to use that style only to be able to make so many template changes without screwing up the rest of the site.

thanks for any help in advance.

drives fast
03-13-2003, 03:16 AM
please?

drives fast
03-19-2003, 10:42 PM
is it possible to modify this to affect forumdisplay instead of forumhome?

Xenon
03-20-2003, 11:21 AM
the makeforumbit functions are identically afaik
so just copy them from index.php into forumdisplay.php

drives fast
03-20-2003, 05:08 PM
I tried that but since my classifieds forum that I create subforums in (to become the categories) isn't a category.....nothing happens

drives fast
03-20-2003, 05:13 PM
well...let me say this....I looked closely at the hack and I applied the hack to the forumdisplay.php instead of index.php (making sure to leave where it refers to forumdisplay instead of forumhome) but my classifieds is a forum instead of a category.....inside that forum is where I have subforums (these are the categories) and inside those is where members can post their ads (new threads)

but I am thinking that since the calssifieds is not a category is why this didn't work?

do you know of a quick mod to make it work the way I am trying to do it?

Xenon
03-20-2003, 05:15 PM
hmm, i don't know then.

that's why i haven't clicked on give support to this hack, it's quite complicated as i realized :)

maybe for vb3 this would be easier to do, so i'll code the hack into vb3 :) and look how it'll work for forumdisplay.php

drives fast
03-20-2003, 05:40 PM
thanks

stangpower
03-20-2003, 09:46 PM
I tried this with 2.2.9 and it did not work for me.

Ian

Mr L
03-29-2003, 05:48 PM
Great hack here, pretty much what I was looking for.

However, would it be possible to add additional columns like I have in the mock up screen shot I've shown?

Unfortunatly, I don't have the skills to do this so would need somebody to help!

Thanks...

Mr L
04-03-2003, 09:48 AM
Xenon,

Sorry to "bump" this thread, just wondering if it would easilly be possible to adapt this hack as shown in the screenshot above.

Thanks.

Xenon
04-03-2003, 02:09 PM
i don't support this hack any longer as you could see above the thread, because of a lot changes posted in this thread by other users, and i don' have time to work on any customizations.

your image above looks like its just a template mod.

set the cols to 2 and edit the col forumbit template to look like that.

Pollo
04-28-2003, 11:33 PM
01-03-03 at 10:30 AM Tes One said this in Post #159 (https://vborg.vbsupport.ru/showthread.php?postid=337848#post337848)
Ok, maybe I'm just missing something but I believe I have this hack installed correctly on a 2.2.9 board and it is simply not showing up for me. I did the queries, added the templates and made the mods to the index.php and I'm coming up with nothing.

Tes
03-21-03 at 12:46 AM stangpower said this in Post #181 (https://vborg.vbsupport.ru/showthread.php?postid=370209#post370209)
I tried this with 2.2.9 and it did not work for me.

Ian
I have 2.2.9 and am wondering if this works with version or not? I'd also like to upgrade to 2.3.0 sometime, and if it works on that version as well?

Xenon
04-29-2003, 04:20 PM
my testboard works with 2.2.9 currently and there it works

i haven't tested it myself on 2.3.0 but as there are no changes in index.php as i remember, it should also work there

egn
05-03-2003, 03:15 AM
great hack, thanks!

Pollo
05-03-2003, 03:53 AM
04-29-03 at 06:20 PM Xenon said this in Post #186 (https://vborg.vbsupport.ru/showthread.php?postid=388924#post388924)
my testboard works with 2.2.9 currently and there it works

i haven't tested it myself on 2.3.0 but as there are no changes in index.php as i remember, it should also work there
Thanks for the reply, will test it out! :D

Doubledoom
05-05-2003, 09:42 PM
got this installed on my 2.3.0 board. Needed the Mr.P version of the hack as my forum template has gaps between the catagories.

Edited the colforumtableheader to allow the addition of the header to the boxes and put my own colforumbit code in place to suit my template style.

Thanks for the hack and the additions contained within the thread. (anyone want to see what i have done can visit www.new-version.org.uk )

kevinnguyen
06-03-2003, 02:23 AM
how did u get it work? cuz i installed it on my 2.3.0 board and the forum template has gaps between the forum category too
it doesnt work w/ me :(

croft
07-05-2003, 10:08 PM
Yeah this is messing up my 2.3.0 to =(

Im having a bit of problem with the index.php myself here =(

Im looking for this code
global $DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imo dcache,$session,$accesscache,$usergroupdef,$noperm s;
global $showlocks,$hideprivateforums,$showforumdescriptio n,$forumhomedepth,$dateformat,$timeformat,$enablea ccess;
global $bbforumview;

But i cant find the global $bbforumview;
Where is that or how do i fix this ?

joeboo
07-20-2003, 03:37 AM
just put whatever u need to add after

global $DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imo dcache,$session,$accesscache,$
usergroupdef,$noperms;
global $showlocks,$hideprivateforums,$showforumdescriptio n,$forumhomedepth,$dateformat,
$timeformat,$enableaccess;


It worked for me.

Hypey
08-16-2003, 06:32 AM
I'm using a 2.3.2.. When I load the main forum page, well, nothing loads LOL its completly blank o_O I think it must be the Index.php.. Anyone had a similar problem?

dniMTheory
08-23-2003, 06:18 PM
I got this to wrk in 2.30. It should work in 2.32 also I would think.

I used a combo of Mr. P's version and Xenon's version

For colforumtableheader i modified my "forumhome_forumbit_level1_nopost" template a little and pasted it. It works fine with my style(ekko) but I couldnt use the variables, I had to hard code the forum title and link.

kid_ttvn
09-14-2003, 01:41 AM
soory!

File index.php of me: no have this code:
global $bbforumview;

only have:
global $DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imo dcache,$session,$accesscache,$ usergroupdef,$noperms;
global $showlocks,$hideprivateforums,$showforumdescriptio n,$forumhomedepth,$dateformat, $timeformat,$enableaccess;

Help me

Blindchild02
09-14-2003, 02:30 AM
did anyone ever get the modifications so you can add your own images like wiredgamers??

also.. how do u add lines between each one

heres mine www.xamira.net - look at showcase.

X-Fan
09-14-2003, 03:04 AM
Is it possible to have this working on forumdisplay as well as index?

I also have the category sponsors hack installed, and here's that section of code from my index.php:


if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_sponsor")."\";");
} else {
// eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
if(strstr(" ".$columnparent." ", " ".$forum['parentid']." ")) {
if($colsdone!=1) {
$colsdone=1;
$colcounter=1;
eval("\$forumbits .= \"".gettemplate("colforumtableheader")."\";");
} else {
$colcounter++;
if($colcounter%($forumcols+1)==0) {
$forumbits .= "</tr><tr>";
$colcounter=1;
}
}
$width="width=".(100/$forumcols)."%"; //take out if you want variable column widths
eval("\$forumbits .= \"".gettemplate("colforumbit")."\";");
} else {
if($colsdone==1) {
$colsdone=0;
$colcounter=0;
eval("\$forumbits .= \"".gettemplate("colforumtablefooter")."\";");
}
eval("\$forumbits .= \"".gettemplate("forumhome_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"]) ) {


Is that right?

Hogwarts
09-14-2003, 02:59 PM
Thanks for the hack!

assassingod
09-14-2003, 03:01 PM
hmm it want's me to find this:

$templatesused='forumhome_birthdaybit,error_noperm ission,forumhome_pmloggedin,forumhome_welcometext, forumhome_logoutcode,forumhome_newposts,forumhome_ todayposts,forumhome_logincode,forumhome_loggedinu ser,forumhome_loggedinusers,forumhome_lastpostby,f orumhome_moderator,forumhome_forumbit_level1_nopos t,forumhome_forumbit_level1_post,forumhome_forumbi t_level2_nopost,forumhome_forumbit_level2_post,for umhome,forumhome_unregmessage';

and it wants me to find it in index.php I am running vB2.3.2 and I see nothing like this at all, anyone have an idea?
It's there. Search harder by using bits of that code.

Alternativly, its on line 4 :p

Hogwarts
09-14-2003, 03:02 PM
yeah I noticed, ... I was looking at my phpnuke index, im an idiot!

- Hogwarts

Hogwarts
09-14-2003, 03:12 PM
1 last question if you dont mind? .. where do you activate the actiaul coulms (I got the hack installed) but cant find where to like change it in edit a forum or whatever.

- Hogwarts

Blindchild02
09-14-2003, 03:31 PM
its in Options, at the very top of ur Admin Cp *Top left*

Blindchild02
09-15-2003, 11:44 PM
ok. to add replies to it....

add this to the BOTTOM of the colforumbit template, under all the coding


<td bgcolor="{firstaltcolor}">
<div align="center"><smallfont color="{tableheadtextcolor}"><font color="{linkcolor}">&nbsp;&nbsp;&nbsp;&nbsp;$forum[replycount]&nbsp;&nbsp;&nbsp;&nbsp;</font></smallfont></div>
</td>

Ex - www.xamira.net/forums *points to showcase*

legendarysk8er
09-17-2003, 12:41 AM
Nice Ken, maybe I should do this at Infinite..I'm not sure it would look right though..

Blindchild02
09-17-2003, 01:15 AM
dont copy me punk! lol

Blindchild02
10-11-2003, 12:38 AM
Does anyone know how to make the Custom Images to do an on/off type of thing???

Blindchild02
10-11-2003, 03:04 AM
FOUND IT!

for anyone who wants it - https://vborg.vbsupport.ru/showthread.php?s=&threadid=47180

X-Fan
10-14-2003, 10:18 AM
Tried this out but wasn't quite what I was looking for, so my question is how do you uninstall this hack?

Xenon
10-14-2003, 05:15 PM
upload the backup of index.php
delete the added template and remove the added settings with admin/setting.php

xxLegendxx
10-16-2003, 12:35 AM
can someone make a new one?..cuz this one doesnt work for my template
thankz

gmarik
10-20-2003, 11:26 PM
Brotha Nietche!

Should it work for 2.3 as well and any idea how to integrate it with vBhomelite, the block display?!

Xenon
10-21-2003, 01:12 PM
it should work with 2.3.x as the templates and index.php haven't changed much

regarding vBHome lite: no idea

poetic
10-26-2003, 11:34 PM
Xenon its not working i dont see any change in the index file i mean well visible and how could it get those options in the admin cp and where are they

gmarik
10-27-2003, 11:39 AM
Xenon, really really - not the smallest thouht?!

Xenon
10-27-2003, 02:57 PM
as i haven't seen the vb-home lite code since a long time i cannot help, and i don'T have the time to review the code of it right now.

at the others: i've stopped supporting that hack long time ago, nevertheless i try to do as much as possible.
Someone get in contact with me and said he made all needed changeds to get it working with vb2.3.2.
Once i get his file, i'll upload it here (and post his name if he doesn't want to stay annonym)

so be patient (you have no choice anyways ^^)

Gardener
10-27-2003, 06:00 PM
Xenon its not working i dont see any change in the index file i mean well visible and how could it get those options in the admin cp and where are they
It does work with 2.3.2. I've got it running on my test board right now. Just follow the directions that came with the hack.

Oh, and make sure to run the 2 mysql queries one at a time.

poetic
11-05-2003, 11:52 PM
umm how do you remove the Forum Posts Threads Last Post New Post stuff i tried what mr_P said to do but i couldt find that code and when i tryed to put it in other spots i just got a error cause anyone else help me

PsyBlast
11-20-2003, 11:06 PM
I'm getting some major template problems when I turn it on, view the attachment to see what I mean, hopefully somebody can help me out.

Xenon
11-21-2003, 02:55 PM
looking good in my eyes?

PsyBlast
11-21-2003, 02:56 PM
how can i remove the inner table borders?

Xenon
11-21-2003, 02:57 PM
wasn't it style="border: none" at the td tag?

Sting3r
11-24-2003, 04:30 PM
i need help. My columns look like this (attached)

Xenon
11-24-2003, 04:58 PM
seems like you haven't done the template part correctly.

use the templates i posted in the instructions and it should work

Sting3r
11-24-2003, 06:17 PM
k i changed them back to the original temp on the instructions. But now the borders are missing. What tempelate shouuld i edit to fix it. Plus what do i edit to remove the forum, post, thread, last post, and moderator row at the top of the column only. Attached a pic.

assassingod
11-24-2003, 06:21 PM
The colforumbit template :)(I think)

Xenon
11-24-2003, 07:56 PM
the forum/posts/.... is from another template mod, i don'T think you can remove it without adding a template conditional hack....

as for borders: add a style="border-width: 1px;" into the inner <td> tag, that should do it.

gmarik
11-25-2003, 11:46 AM
Not bad, but the font could be langer beside such a large img

VirtualHogwarts
11-30-2003, 11:42 PM
Well Xenon I really would like 2 remove them too so can you give us directions as to what we would have too dooo??? ... I found a hack called

dynamic template conditionals or something like but, but didint install it due to i had no idea what it was, so please a step by step of what 2 do 2 remove them, if not understanable. but I am sure were not the only people who want this, TONS of people want it for ....

POSTS REPLYS POSTS REPLYS

but I just want to get ride of it TOTALY! So reply ASAP thanks, if not no sweet.

Xenon
12-01-2003, 04:40 PM
you should ask the author of that template mod and/or an author of a template condtitional hack, i don'T have enough time, to also look into other authosrs code to explain step by step what you have to do to change their things...

fengshui-123
12-02-2003, 10:27 AM
Can this mod applied to sub..sub forum page instead of just forum home page?
Can we change the number of column?

Xenon
12-02-2003, 05:53 PM
Yes you can change the number of columsn, it'S an acp option

Hmm, theoretically it's possible to integrate the hack into forumdisplay.php (sub sub forums) as well, but i haven't tested it, and can't test it anymore :)

fengshui-123
12-06-2003, 09:34 AM
I did the mod on 2.3.3, it gave me blank page after that. Not compatible with 2.3.3?

assassingod
12-06-2003, 10:16 AM
I did the mod on 2.3.3, it gave me blank page after that. Not compatible with 2.3.3?
It should work on 2.3.3
Are you sure you installed it correctly?

fengshui-123
12-06-2003, 11:49 AM
Thanks. I will try again.

MaDCaT75
12-11-2003, 11:52 PM
I'm having a problem here. I want the word "forum" to be lined up with my two colums of 3 forums but I dont know how to do that. Also I am trying to get the post count column in there too. Can anyone help?

MaDCaT75
12-12-2003, 08:24 AM
did anyone ever get the modifications so you can add your own images like wiredgamers??

also.. how do u add lines between each one

heres mine www.xamira.net - look at showcase.

Has anyone gotten this yet?????

MaDCaT75
12-13-2003, 07:57 AM
Has anyone gotten this yet?????
anyone at all?

stan68
12-16-2003, 02:31 AM
it's saying i have a parse error on line 399

this is what is there.
if(strstr(" ".$columnparent." ", " ".$forum['forumid']." ")) {

Xenon
12-16-2003, 10:47 PM
this line is correct, it may be in the nearer environment of this line..

stan68
12-17-2003, 02:51 AM
Ok tried it again
this time got a parse error on line 410
so i copyed a bit over and under the hack itself.

btw im running 2.3.2


if ( !isset($forum['moderators']) ) {
$forum['moderators'] = '&nbsp;';
}

if ($forum['cancontainthreads']==1) {
$tempext = '_post';
} else {
$tempext = '_nopost';
}

if(strstr(" ".$columnparent." ", " ".$forum['parentid']." ")) {
if($colsdone!=1) {
$colsdone=1;
$colcounter=1;
eval("\$forumbits .= \"".gettemplate("colforumtableheader")."\";");
} else {
$colcounter++;
if($colcounter%($forumcols+1)==0) {
$forumbits .= "</tr><tr>";
$colcounter=1;
}
}
$width="width=".(100/$forumcols)."%"; //take out if you want variable column widths
eval("\$forumbits .= \"".gettemplate("colforumbit")."\";");


} else {
if($colsdone==1) {
$colsdone=0;
$colcounter=0;
eval("\$forumbits .= \"".gettemplate("colforumtablefooter")."\";");
}



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

}

if ($depth<$forumhomedepth) {

}


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"]) ) {
} // END if can view
} // END while ( list($key2,$forum)=each($val1) ) {
} // END while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {


this copied section is about where line 410 is in my index.php.

}

}

if ($depth<$forumhomedepth) {

}


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

MaDCaT75
12-17-2003, 03:19 AM
Has anyone gotten this yet?????

Pleaaaaaaassssseeeee

Xenon
12-17-2003, 01:09 PM
hmm, i don't see something wrong.
maybe you've forgotten a bracket or something like that.
as i can see you have a passage appearing twice, so it's most likle a problem while installing that hack, restart from a completly unhacked index.php and be careful.

stan68
12-20-2003, 04:31 AM
everything works now with the exception of the forum parent it does'nt show.
any idea's as to why that would happen.

EvilCrow
12-22-2003, 12:21 AM
Has anyone gotten this to work like the Wiredgamers.com site using a 2.3.3??
Other then them ?????? (Wiredgamers.com)

cerebro
12-22-2003, 03:57 PM
is a really nice hack...but can i use in V3 gamma?

Zachery
12-22-2003, 04:16 PM
NO HACKS HERE WILL WORK IN vB3 anything with 1-2 exceptions and if they DO work with Gamma THEY will SAY so

cerebro
12-22-2003, 04:29 PM
NO HACKS HERE WILL WORK IN vB3 anything with 1-2 exceptions and if they DO work with Gamma THEY will SAY so
i know but maybe Xenon can make a port to v3 gamma :D

sleepbirdcyp
12-22-2003, 09:30 PM
my forum background color is darkblue~
i installed this hack~

but if my parent forum hv 5 subforums~ it will display like the attachement~

how to make it that look a bit nice~

help

Xenon
12-23-2003, 12:42 PM
i know but maybe Xenon can make a port to v3 gamma :D
it is planned already ;)

cerebro
12-23-2003, 06:44 PM
it is planned already ;)

u'll wait to RC1?