Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: 1.00, by dabean dabean is offline
Developer Last Online: Dec 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-08-2002 Last Update: Never Installs: 122
 
No support by the author.

This hack adds expansion and contraction support to the forum home page (index.php). The current version of this hack has been tested on vBulletin 2.3.2

Only supported browsers gain the ability to expand and collapse forum groups, non supported browsers do not gain anything, but no errors will be displayed.
Each users preference is saved to the database, additionally admins can select which forums are to be collapsed by default.

  • Browsers supported
  • Netscape6+/Mozilla0.6+
  • MS IE5+
  • Konqueror
  • Opera 7 support is included
  • Browsers unsupported
  • MS IE4 or earlier
  • Netscape 4 or earlier
  • Opera (version 6 and earlier)

Note: PHP 4.1.x or 4.2.x is required, PHP 4.0.x is now unsupported.

Instructions inside attachment.
Updated 4:18 PM 1/12/2002
- Packaged Post, Thread template Addon

Updated 7:53 PM 1/11/2002
- corrected installer

Updated 4:23 PM 1/11/2002
- Added DB support
- Added Per forum Collapsed Pref to admin cp

Updated 01/10/02 01:39am.
- Fixed missing line.

Updated 04/06/02 01:30am.
- Version 1.2
- PHP 4.1.x, 4.2.x support with or without register globals off.
- Performance tweeked javascript

Updated 06/06/02 11:20pm.
- Corrected templatecache bug

Updated 06/25/02
- Corrected formatting errors in readme

Updated 09/01/02
- vB 2.2.7 compatiblity statement, updated readme.

Updated 30/08/03
- vB 2.2.x and 2.3.x compatiblity statement, added new automatic testing script.

FAQ
Q: what exactly is Template_Option.txt?
A: Basically that exention was provided as a request to cover sites with the template modification that adds a "header" to each grouping.

Q: How do I show a forum depth greater than 2?
A: Open vB Admin cp set forum depth to your required level. Then create the additional templates. For template examples see https://vborg.vbsupport.ru/showthrea...465#post250465

Q: Can sub-forums be collapsed?
A: Yes. See the above answer for example templates.

Q: XYZ doesn't work help.
A: Check that all the template changes required have been made, 99% of problems are due to incorrect template alteration. Also use the cx_test.php to automatically check your installation!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #192  
Old 05-17-2002, 01:55 AM
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by dabean

Wow, I wasn't expecting that result... (the number portion).

Is this a new installation of the hack, or have you previously had this working under a older version of vbulletin?

Find attached a newer version of the getforumview.php file.. which hopefully should write correct data to the database.
It is started to install this hack on my database a ways back and never used it.

I installed the new getforumview.php and it is still showing the forumhome tables expanded.
Reply With Quote
  #193  
Old 05-17-2002, 01:59 AM
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now this may be a bit unreadable because the code is in beta but here is one of the forumhome tables...keep in mind I am using the Template_options. hack too that adds the "Forum...Posts...Thread...Last Post" to each main section.

PHP Code:
<P><table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
<
tr>
  <
td bgcolor="#444444" width="1"><spacer type="block" width="1" height="1"></td>
  <
td height="20" bgcolor="#637B52" background="/images/fh_2.gif" width="84%" id="cat">&nbsp;&nbsp;<a href="forumdisplay.php?forumid=192"><b>PBC Sponsors Forums</b></a><br><font class="sf" color="#000000"></font></td>
  <
td width="37" height="20"><img src="/images/fh_3.gif" width="37" height="20"></td>
  <
td align="right" valign="middle" nowrap>&nbsp;<a href="#top"><img src="/images/fh_t.gif" border="0" hspace="2" width="34" height="11" style="filter:alpha(opacity=70);-moz-opacity:0.7" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a><a href="#bottom"><img src="/images/fh_b.gif" border="0" hspace="2" width="34" height="11" style="filter:alpha(opacity=70);-moz-opacity:0.7" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a><a name=></a> <div id="c192" style="display: inline;visibility: visible;"> <img alt="Collapse" title="Contract Category" src="/images/collapse.gif" onclick="forumexp('192')"></div>
<
div id="e192" style="display: none;visibility: hidden;"> <img alt="Expand" title="Expand Category" src="/images/expand.gif" onclick="forumexp('192')"></div></td>
</
tr>
</
table>
<
table cellpadding="0" cellspacing="0" border="0" bgcolor="#444444"  width="90%" align="center"><tr><td>
    <
table cellpadding="4" cellspacing="1" border="0"  width="100%">
    <
tr id="f192z" align="center">
      <
td bgcolor="#979797" background="/images/pb_bg6.gif" width="19"><font class="sf">&nbsp;</font></td>
      <
td bgcolor="#979797" background="/images/pb_bg6.gif" width="100%" valign="bottom" align="left"><font class="sf" color="#272727"><b>Forum</b></font></td>
      <
td bgcolor="#979797" background="/images/pb_bg6.gif" valign="bottom"><font class="sf" color="#272727"><b>Users</b></font></td>
      <
td bgcolor="#979797" background="/images/pb_bg6.gif" valign="bottom"><font class="sf" color="#272727"><b>Posts</b></font></td>
      <
td bgcolor="#979797" background="/images/pb_bg6.gif" valign="bottom" nowrap><font class="sf" color="#272727"><b>Threads</b></font></td>
      <
td bgcolor="#979797" background="/images/pb_bg6.gif" valign="bottom"><font class="sf" color="#272727"><b>Last Post</b></font></td>
    </
tr><tr id="f192z0"  align="center">
    <
td bgcolor="#dedfdf" background="/images/b.gif" valign="top" width="19"><img src="/images/off.gif" border="0" alt="" width="17" height="21"></td>
    <
td bgcolor="#ECECEC" background="/images/b.gif" align="left" valign="top" width="100%">
        <
table width="100%" cellspacing="0" cellpadding="0">
          <
tr
        <
td width="90%" align="left" valign="top"><a href="forumdisplay.php?forumid=193"><font class="nf"><b>PaintballWatch.com</b></font></a></td>
        <
td width="10%" nowrap align="right" valign="top"><a href="search2.php?action=getlatest&forumid=193"> <img src="/images/pb_5.gif"  border="0" width="11" height="11" hspace="2" alt="Read New Posts since Last Visit" style="filter:alpha(opacity=70);-moz-opacity:0.7" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a><a href="newthread.php?action=newthread&forumid=193"><img src="/images/pb_7.gif" border="0" width="11" height="11" hspace=2" alt="Create a new Thread topic in this forum" style="filter:alpha(opacity=70);-moz-opacity:0.7" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a><a href="member2.php?action=addsubscription&forumid=193"><img src="/images/pb_8.gif" border="0" width="13" height="11" hspace="2" alt="Subscribe to the Forum to receive updates when new posts are made." style="filter:alpha(opacity=70);-moz-opacity:0.7" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a></td>
          </tr>
          <tr>
        <td colspan="
2" align="left" valign="top"><font class="sf"></font></td>
          </tr>
        </table>
    </td>
    <td bgcolor="
#dedfdf" background="/images/b.gif"><font class="sf">0</font>
    
<td bgcolor="#ECECEC" background="/images/b.gif"><font class="nf">56</font></td>
    <
td bgcolor="#dedfdf" background="/images/b.gif"><font class="nf">9</font></td>
    <
td bgcolor="#ECECEC" background="/images/b.gif" align="left" nowrap><font class="sf"><a href="showthread.php?goto=lastpost&forumid=193"><img  src="/images/lastpost.gif" border=0 alt="Go to last post" width="13" height="14" style="filter:alpha(opacity=70);-moz-opacity:0.7" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a04-10-02 <font class="sf" COLOR="#444444">10:14 PM</font><br><font class="sf">by <a href="member.php?action=getinfo&find=lastposter&forumid=193">urza</a></font></font></td>
    <!-- <
td bgcolor="#dedfdf"><font class="sf"></font></td> -->
</
tr><tr id="f192z1"  align="center">
    <
td bgcolor="#dedfdf" background="/images/b.gif" valign="top" width="19"><img src="/images/off.gif" border="0" alt="" width="17" height="21"></td>
    <
td bgcolor="#ECECEC" background="/images/b.gif" align="left" valign="top" width="100%">
        <
table width="100%" cellspacing="0" cellpadding="0">
          <
tr
        <
td width="90%" align="left" valign="top"><a href="forumdisplay.php?forumid=194"><font class="nf"><b>XPaintball.com</b></font></a></td>
        <
td width="10%" nowrap align="right" valign="top"><a href="search2.php?action=getlatest&forumid=194"> <img src="/images/pb_5.gif"  border="0" width="11" height="11" hspace="2" alt="Read New Posts since Last Visit" style="filter:alpha(opacity=70);-moz-opacity:0.7" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a><a href="newthread.php?action=newthread&forumid=194"><img src="/images/pb_7.gif" border="0" width="11" height="11" hspace=2" alt="Create a new Thread topic in this forum" style="filter:alpha(opacity=70);-moz-opacity:0.7" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a><a href="member2.php?action=addsubscription&forumid=194"><img src="/images/pb_8.gif" border="0" width="13" height="11" hspace="2" alt="Subscribe to the Forum to receive updates when new posts are made." style="filter:alpha(opacity=70);-moz-opacity:0.7" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a></td>
          </tr>
          <tr>
        <td colspan="
2" align="left" valign="top"><font class="sf"></font></td>
          </tr>
        </table>
    </td>
    <td bgcolor="
#dedfdf" background="/images/b.gif"><font class="sf">0</font>
    
<td bgcolor="#ECECEC" background="/images/b.gif"><font class="nf">62</font></td>
    <
td bgcolor="#dedfdf" background="/images/b.gif"><font class="nf">11</font></td>
    <
td bgcolor="#ECECEC" background="/images/b.gif" align="left" nowrap><font class="sf"><a href="showthread.php?goto=lastpost&forumid=194"><img  src="/images/lastpost.gif" border=0 alt="Go to last post" width="13" height="14" style="filter:alpha(opacity=70);-moz-opacity:0.7" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a04-09-02 <font class="sf" COLOR="#444444">10:55 PM</font><br><font class="sf">by <a href="member.php?action=getinfo&find=lastposter&forumid=194">zman2005</a></font></font></td>
    <!-- <
td bgcolor="#dedfdf"><font class="sf"></font></td> -->
</
tr>    </td></tr></table>
</
td></tr></table
Reply With Quote
  #194  
Old 05-17-2002, 02:10 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The html looks roughly correct.

When you look at the raw user table in say phpmyadmin does the "forumviewset" column for your? userid have a entry like "57|1:" if it doesn't please try this debugging version of getforumview.php which will output details to help in cureing this bug.
Reply With Quote
  #195  
Old 05-17-2002, 02:37 AM
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The numbers in "forumviewset" look like this: 59|:192|:

I ran the debugging getforumview.php and ran updateindex.php manually and it output this:

65Array ( [59] => [192] => ) done

However, it did not set any value to "forumviewset" so now it is blank.
Reply With Quote
  #196  
Old 05-18-2002, 11:12 PM
pirotess pirotess is offline
 
Join Date: May 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having similar problems to Virtuetech on my board at http://www.shadowedsoul.com/forums.

The interesting thing to me is the hack works perfectly after following along with all the updates to files you've given as of now for 4.2.0 installs when Im not logged in. As soon as I log in I start getting page errors like this when I try to expand or contract.

Line: 563
Char: 1
Error: Object expected
Code: 0
URL: http://www.shadowedsoul.com/forums/index.php?s=<sessionID>

When I manually call

/updateindex.php?fid=6&val=0

and

/updateindex.php?fid=6&val=1

the hack works properly, it just doesnt work when Im trying to click my expand and contract buttons.
Reply With Quote
  #197  
Old 05-27-2002, 09:44 PM
Henry-RS's Avatar
Henry-RS Henry-RS is offline
 
Join Date: Mar 2002
Location: Chicago
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It didn't work for me...

Can you supply me with the mysql code that will undo the changes that were made to the database with the cx_install.php file?
Reply With Quote
  #198  
Old 05-27-2002, 10:44 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by pirotess
Line: 563
Char: 1
Error: Object expected
Code: 0
URL: http://www.shadowedsoul.com/forums/index.php?s=<sessionID>


the hack works properly, it just doesnt work when Im trying to click my expand and contract buttons. [/B]
That error idicates that the javascript is not being included. Compare the source output of logged in and not logged in to check that is in both cases.


I am aware of some problems still lingering with this hack and php 4.2.x so will be releasing a new version of the complete hack by the end of the week to correct these issues.

Henry-RS:
The SQL is
ALTER TABLE forum DROP collapsed
ALTER TABLE user DROP forumviewset
Reply With Quote
  #199  
Old 05-27-2002, 11:57 PM
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Dabean....I'll be anxiously awaiting your next post
Reply With Quote
  #200  
Old 05-28-2002, 12:11 PM
pirotess pirotess is offline
 
Join Date: May 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by dabean

That error idicates that the javascript is not being included. Compare the source output of logged in and not logged in to check that is in both cases.


I am aware of some problems still lingering with this hack and php 4.2.x so will be releasing a new version of the complete hack by the end of the week to correct these issues.
Yep looking at the two sources the javascript is in one but not the other which is interesting since I thought they would both generate off the same templates and php files.

EDIT: Figured out my problem. I slipped up and put my code above the } in the

PHP Code:
if ($bbuserinfo['userid']==0) {
  eval(
"\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");

addition to index.php. Thanks for the lead that helped me track this down.
Reply With Quote
  #201  
Old 06-03-2002, 11:35 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated the zip to include PHP 4.1.x and 4.2.x support.
Also tested this new version on vb2.2.6.

This hack can now safely be used with register globals turned off and has been tested accordingly.

To update from a older version just upload the new files. updateindex.php, getbrowser.php and getforumview.php.

There is no need to re-run the installer, however the installer can now remove the database changes.

Test configurations where
- Apache 1.3.23 + PHP 4.2.0 (freebsd)
- Apache 1.3.17 + PHP 4.1.1 (redhat7)
- IIS5.1 + PHP 4.2.1 (winxp)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04995 seconds
  • Memory Usage 2,420KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete