![]() |
Rename your gif, or copy and name them forum_8 and forum_9. That worked for me, plus, not repeating the code twice. LOL.
|
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?
|
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? :) |
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" /> 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> you can do that recursively for all other forums as well as said, quick but dirty :) |
----- 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. |
Ty for the reply, I managed to get it installed.
See attached. Thanks again for a great mod. |
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? |
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
|
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. |
Quote:
that seem to work mabe end of page would have been better understood thanks but now all forums are collasped |
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.
|
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"> </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> |
Hello a few questions. My template forum home shows this
HTML Code:
<if condition="$childforumbits"> HTML Code:
<if condition="$childforumbits"> HTML Code:
<if condition="$childforumbits"> Other question is how do i add images and lay out like shown in attached image |
the hack you are using is from vbtemplates you would seek that there
|
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
|
Quote:
Doesn't matter I've sorted it, god damn nood must have missed something :tired: |
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!! |
well, it's working as designed.
the moderator column would make the display way too cluttered. |
yeh but i need it!!
is that impossible?? |
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. |
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, |
Did anyone ever get this working on forumdisplay? I have tons of forums and this would make life much easier.
|
@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 ;) |
Quote:
do you want me to post the contents of forumlist.php file ? in my post under code tags ? Regards, |
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 |
Quote:
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, |
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. |
Quote:
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? |
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:
PHP Code:
|
Quote:
|
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 ;) |
Quote:
|
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... |
Quote:
|
Well it's working now. I added a new child style and it started to work.
Thanks for a great hack. |
even more wierd then ;)
but good to hear :) |
would love this to work on forumdisplay too, any takers? :)
tia |
Quote:
mebbe xenon can ;) |
grml, i'll add it to the next version, but i've so much to do.....
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|