vb.org Archive

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

ambrosious 09-07-2004 01:41 AM

Rename your gif, or copy and name them forum_8 and forum_9. That worked for me, plus, not repeating the code twice. LOL.

dune 09-14-2004 04:03 AM

I can't find any reference with working code for this to work on forumdisplay. The pieces of code listed across this thread don't seem to be complete. Can someone who has it working put it all in one post please?

D@rkness 09-19-2004 08:59 PM

First let me say great mod, seen it on few boards and looks real nice when installed. Now let me say boy am I confused, after 17 pages of reading I still haven?t got a firm clue on how to install this hack with the image add-on.

I understand Xenon instructions real clear, but the other bits of code that are here and there in the different post are the problem.

So if some kind sole who has implemented this with the image add-on could shed some light on what needs to be done after Xenon?s installation that would be great.

New at modding and we all have to start somewhere, right? :)

Xenon 09-20-2004 12:21 PM

ok, let me descibe the quick and dirty way, hope it helps.

in the template forumhome_forumbit_columncell you'll find this:

HTML Code:

<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
replace it with:
HTML Code:

<if condition="$forum['forumid'] == x"><img src="path to image for forum x" alt="" border="0" /><else /><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></if>
that code will replace the statusicon for forum with forumid x.
you can do that recursively for all other forums as well

as said, quick but dirty :)

eblivion 09-22-2004 09:18 PM

----- Question 1 ---------------
How do I get the "Sub-Forums:..." to show below the descriptions. I tried using:

<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

as was used in the forumhome_forumbit_level1_post template, but it doesn't work. Nothing appears where the subforums should be.

----- Question 2 ---------------
How can I get the same affect on the forumdisplay.php page for the subforums listed at the top? I've tried just about every variable I could think of an I can't figure out where to find the different variables used in $forumbits that generates they layout for the subforums on that page.

D@rkness 09-22-2004 11:11 PM

Ty for the reply, I managed to get it installed.

See attached.

Thanks again for a great mod.

jesse 09-24-2004 02:11 PM

i get this error
Fatal error: Call to undefined function: construct_forum_columns() in /home/causeyjr/public_html/forum/includes/functions_forumlist.php on line 272

I upload the default functions_forumlist and it seems to get rid of the error any help?

aranthorn 09-24-2004 05:41 PM

looks like when you modified the functions_forumlist, you missed a semicolon. This is a very typical error when doing mods, just try re-editing and being very careful to put all text exactly where instructed. I've done this to myself a few times :D

D@rkness 09-24-2004 10:53 PM

When you are changing yout forumlist.php, make sure you are adding the new function to the end of the file and not after the first change.

The install.txt indicates "then add this new function to the file:", copy the new function then add it to the end of your forumlist.php and you should be good.

jesse 09-26-2004 01:36 PM

Quote:

Originally Posted by D@rkness
When you are changing yout forumlist.php, make sure you are adding the new function to the end of the file and not after the first change.

The install.txt indicates "then add this new function to the file:", copy the new function then add it to the end of your forumlist.php and you should be good.


that seem to work mabe end of page would have been better understood thanks but now
all forums are collasped

D@rkness 09-26-2004 09:59 PM

That problem should be caused by having a zero value in your Show Subforums in # of columns field. Set value to 1 and you should be fine.

jesse 09-27-2004 02:03 PM

ok starting fresh i just installed this mod
http://www.vbulletin.com/forum/showthread.php?t=110590

now what will be the next step to get this to work ?

after the install the text looks like this what should I change to get this up?
forum_forumbit_level1_nopost
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">

<tr align="center">
<td class="thead" width="35">&nbsp;</td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="200">$vbphrase[last_post]</td>
<td class="thead" width="65">$vbphrase[threads]</td>
<td class="thead" width="65">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
<tr><td class="thead" style="line-height: 0; padding: 0; margin: 0;" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><img src="$vboptions[cleargifurl]" alt="" width="1" height="12" /></td></tr>
</tbody>
</if>
</table>
<div style="padding:0px 0px 16px 0px;"></div>

GamerzWorld 09-30-2004 03:16 PM

Hello a few questions. My template forum home shows this

HTML Code:

<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
          <td class="thead" width="30">&nbsp;</td>
          <td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="245">$vbphrase[last_post]</td>
          <td class="thead" width="55">$vbphrase[threads]</td>
          <td class="thead" width="55">$vbphrase[posts]</td>
          <if condition="$vboptions[showmoderatorcolumn]">
          <td class="thead" width="100">$vbphrase[moderator]</td>
          </if>
        </tr>

Now it says to replace

HTML Code:

<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>

With

HTML Code:

<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
        <tr>
                <td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<table style="border: none; width: 100%;">
                        $childforumbits
</table>
                </td>
        </tr>
<else />
        $childforumbits
</if>
</tbody>
</if>

What modification would i make to my template please?

Other question is how do i add images and lay out like shown in attached image

jesse 09-30-2004 03:27 PM

the hack you are using is from vbtemplates you would seek that there

Beermonster 10-06-2004 12:54 PM

Any ideas why when I change it, it just squashes things up? I've double checked the install don't think I've missed anything

Beermonster 10-06-2004 04:50 PM

Quote:

Originally Posted by Beermonster
Any ideas why when I change it, it just squashes things up? I've double checked the install don't think I've missed anything


Doesn't matter I've sorted it, god damn nood must have missed something :tired:

aljassmy 10-12-2004 01:43 AM

hi!!
thanks Xenon for this nice hack ,,
i have a small problem with it!
when Show Subforums in (1) of columns the moderators of the subforum is show but when i put Subforums in (2) or (3)... of columns the moderators will be hideing

any help please!!

Xenon 10-12-2004 04:00 PM

well, it's working as designed.

the moderator column would make the display way too cluttered.

aljassmy 10-12-2004 09:26 PM

yeh but i need it!!

is that impossible??

Xenon 10-14-2004 04:48 PM

well, it's not impossible.

you have to copy the moderator list part from construct_forumbits into construct_forum_columns

and manipulate the template forumhome_forumbit_columncell
.

It shouldn't be too hard to do it, but i won't do it myself.

SaN-DeeP 10-20-2004 01:30 AM

Not sure why but even i am getting
Fatal error: Cannot redeclare construct_forum_columns() (previously declared in /home/sandeep/public_html/forums/includes/functions_forumlist.php:289) in /home/sandeep/public_html/forums/includes/functions_forumlist.php on line 289

I tried the code thrice now, its all perfect, without mistakes.. Xenon ? can you please help

Regards,

99SIVTEC 10-20-2004 02:43 PM

Did anyone ever get this working on forumdisplay? I have tons of forums and this would make life much easier.

Xenon 10-20-2004 05:23 PM

@Sandy: erm nope, cannot help.

It looks like you have pasted the code into the function file twice, so check out it's there just once.
maybe restart with an unhacked function file and make sure you just past in everything once ;)

SaN-DeeP 10-20-2004 06:33 PM

Quote:

Originally Posted by Xenon
@Sandy: erm nope, cannot help.

It looks like you have pasted the code into the function file twice, so check out it's there just once.
maybe restart with an unhacked function file and make sure you just past in everything once ;)

Xenon i checked it thrice and now once again.. still aint working and same error.
do you want me to post the contents of forumlist.php file ? in my post under code tags ?

Regards,

Xenon 10-21-2004 10:46 AM

well, don't post it, but send it to
xenon@vbulletin.org and i can take a look at it when i'm back at home

SaN-DeeP 10-28-2004 01:56 AM

Quote:

Originally Posted by Xenon
@Sandy: erm nope, cannot help.

It looks like you have pasted the code into the function file twice, so check out it's there just once.
maybe restart with an unhacked function file and make sure you just past in everything once ;)

hello xenon you were absolutely right :), i posted the function in between other function and hence the error.
however i have now fixed the same and it works perfectly fine on my forums.
http://forums.tech-arena.com

However, i would like to display my forums this way - http://extremetechsupport.org/forum/
Any comments for this ?

Big thanks for this awesome hack :)

Regards,

Xenon 10-28-2004 06:43 PM

glad to hear :)

as for your second thing: erm, that's another hack called SUB-forums in columns, i don't remeber who wrote it.

AWS 11-02-2004 04:12 PM

Quote:

Originally Posted by Xenon
glad to hear :)

as for your second thing: erm, that's another hack called SUB-forums in columns, i don't remeber who wrote it.

I just installed this. Great hack.
I have one question.
What has to be added to get users browsing to show like it does when this hack is disabled?
I've played around with the code and I can't get it working. It displays thread and post count fine.
Any ideas what I have to change to get users viewing to show up?

Xenon 11-02-2004 08:46 PM

well, i did not add much of the unused code from construct_forum_bits theoreticall if you find that line in my code:

PHP Code:

            $show['forumdescription'] = iif ($forum['description'] != ''truefalse); 

and add that below:
PHP Code:

                $children explode(','$forum['childlist']);
                foreach(
$children AS $childid)
                {
                    
$forum['browsers'] += iif($inforum["$childid"], $inforum["$childid"], 0);
                } 

you should be able to add the number of browsing users :)

AWS 11-03-2004 01:25 PM

Quote:

Originally Posted by Xenon
well, i did not add much of the unused code from construct_forum_bits theoreticall if you find that line in my code:

PHP Code:

            $show['forumdescription'] = iif ($forum['description'] != ''truefalse); 

and add that below:
PHP Code:

                $children explode(','$forum['childlist']);
                foreach(
$children AS $childid)
                {
                    
$forum['browsers'] += iif($inforum["$childid"], $inforum["$childid"], 0);
                } 

you should be able to add the number of browsing users :)

I've moved that block of code arround adding it to different places in your code and couldn't get it to work. I tried what you posted and still no work.

Xenon 11-03-2004 03:51 PM

you added it to the construct_forum_columns() function?

It should work then, if not then i don't have an idea...
I cannot test it out, as there are currently noone browsing on my localhost board ;)

AWS 11-03-2004 05:21 PM

Quote:

Originally Posted by Xenon
you added it to the construct_forum_columns() function?

It should work then, if not then i don't have an idea...
I cannot test it out, as there are currently noone browsing on my localhost board ;)

I added it just as you showed. Interesting that on my private forums it shows. Although it shows 0 viewing when no one is viewing. That is a probably a template mistake I made. I'll correct that after it's working on all forums. On public it doesn't.

Xenon 11-03-2004 05:24 PM

well, the 0 viewing is by design, that's why normally a contion is used :)

So it shows for private forums, that means the code should be correct...
very wierd then...

AWS 11-03-2004 05:27 PM

Quote:

Originally Posted by Xenon
well, the 0 viewing is by design, that's why normally a contion is used :)

So it shows for private forums, that means the code should be correct...
very wierd then...

Yes it is.

AWS 11-03-2004 09:25 PM

Well it's working now. I added a new child style and it started to work.
Thanks for a great hack.

Xenon 11-03-2004 09:27 PM

even more wierd then ;)

but good to hear :)

base 11-04-2004 12:00 PM

would love this to work on forumdisplay too, any takers? :)

tia

SaN-DeeP 11-05-2004 04:24 AM

Quote:

Originally Posted by base
would love this to work on forumdisplay too, any takers? :)

tia

same here i need on forumdisplay too :),
mebbe xenon can ;)

Xenon 11-05-2004 03:23 PM

grml, i'll add it to the next version, but i've so much to do.....

hockyfan 11-14-2004 02:43 PM

Probably an easy question, but just in case, how does one uninstall this hack, as I see it runs a query.

h


All times are GMT. The time now is 05:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01862 seconds
  • Memory Usage 1,858KB
  • 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
  • (5)bbcode_html_printable
  • (4)bbcode_php_printable
  • (9)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