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)
-   -   Collapsable forums on forum home (https://vborg.vbsupport.ru/showthread.php?t=33961)

VirtueTech 05-17-2002 01:55 AM

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.

VirtueTech 05-17-2002 01:59 AM

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


dabean 05-17-2002 02:10 AM

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.

VirtueTech 05-17-2002 02:37 AM

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.

pirotess 05-18-2002 11:12 PM

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.

Henry-RS 05-27-2002 09:44 PM

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?

dabean 05-27-2002 10:44 PM

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

VirtueTech 05-27-2002 11:57 PM

Thanks Dabean....I'll be anxiously awaiting your next post

pirotess 05-28-2002 12:11 PM

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.

dabean 06-03-2002 11:35 PM

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)


All times are GMT. The time now is 01:14 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.01789 seconds
  • Memory Usage 1,881KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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