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)

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 :


PHP Code:

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

PHP Code:

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

Quote:

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/mo...ghlight=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.

Quote:

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:

PHP Code:

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

PHP Code:

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

colforumtableheader:

PHP Code:

</table>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="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$temp ext")."\";");

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

Quote:

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

Quote:

Originally posted by N9ne
Also, this line in your code Mr_P:

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

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

Quote:

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

Quote:

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:

Code:

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


All times are GMT. The time now is 11:11 AM.

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.01505 seconds
  • Memory Usage 1,855KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete