Welcome, Guest. Please Login or Register.
May 14, 2024, 04:03:54 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done] Collapsable Category Mod ->v0.4.1X<- « previous next »
Pages: 1 ... 5 6 [7] 8 Reply Ignore Print
Author Topic: [Done] Collapsable Category Mod ->v0.4.1X<-  (Read 11159 times)
KenTeamBG
Jr. Member
**
Posts: 74


TeamBG rules!!!

WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #90 on: June 18, 2002, 09:54:29 PM »
Reply with quote

I have recently upgraded from YSE 1.0.0 to 1.4.0, and am extremely disappointed in the fact that I was told back in the 1.1.0 era that collapsable cats would be in the next release (which was 1.3.0).  Well, I went to 1.4.0 and still nothing!

I wrote PHP collapseable cats for my YSE 1.0.0 and now I am screwed and either have to wait or do it again.  I had no settings and had not used a cookie (though I could have added the cookie VERY easily).

So, this has been made (in a way) before, and for those that want a JS version, let them make it...but don't give up on the true work-horse collapsable categories mod that will save on bandwidth and speed up boards.  I look forward to a highly configurable version.  My final input is to NOT use a bitwise setting flag and limit people to 32 or 64 boards, that is just not good.  If you feel this method is best, then use two 64's and up the open-endedness of this feature.

I have seen elsewhere that YaBBSE now supports multiple forums using one db, I dunno what that's all about, I don't see anything telling me how...but maybe that is what people were refering too back in the 1.1.0 days.

The other thing that should be done that would be a variation or an extension of the php collapsable categories should be to be able to pass a showonly=# GET param to not even SHOW the other categories.  One person had described this to me before and I thought it was pretty cool.
« Last Edit: June 18, 2002, 11:02:06 PM by KenTeamBG » Logged

Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #91 on: June 19, 2002, 10:38:38 AM »
Reply with quote

I can't get it to work on the 1.4 version, the troubles I find are in the BoardIndex.......
Any help / hints ?


[edit]

this is the errormessage I get :

2: Supplied argument is not a valid MySQL result resource
(/home/sites/salesplaza.nl/www/yabbse/Sources/BoardIndex.php ln 206)

That should be line's :

            }
         }
         $Vnew = ''; $Vcataname = "#cat$row_cat[ID_CAT]";
         if (!$Vcatopen) { // Check the new post

So where's the error ?!

[/edit]
« Last Edit: June 19, 2002, 11:02:38 AM by Webby » Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #92 on: June 19, 2002, 09:29:20 PM »
Reply with quote

Nobody ?

It even works here on YaBB.info, so why doesn't it work on a new install of v1.4.0 ??

Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Zulu
Full Member
***
Posts: 104


I'm no longer a llama, I'm a Monkey

WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #93 on: June 19, 2002, 10:10:03 PM »
Reply with quote

Quote from: Webby on June 19, 2002, 09:29:20 PMNobody ?

It even works here on YaBB.info, so why doesn't it work on a new install of v1.4.0 ??



I believe the mod is not yet converted to 1.4.0.. well not for the public at least. I think the guy making the new boardindex will include this mod somehow
Logged

Webby @ RFI
Formerly known as PtPazuzu
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #94 on: June 19, 2002, 11:01:19 PM »
Reply with quote

Quote from: Webby on June 19, 2002, 09:29:20 PMNobody ?

It even works here on YaBB.info, so why doesn't it work on a new install of v1.4.0 ??
Because the one here isn't the mod.  I just hacked it in because I was bored.
Logged

Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #95 on: June 20, 2002, 05:08:47 AM »
Reply with quote

Quote from: Joseph Fung on June 19, 2002, 11:01:19 PMBecause the one here isn't the mod.  I just hacked it in because I was bored.

Can you post it? Email would work to. :)
Logged
Eric
Noobie
*
Posts: 23


www.leeghwaterlaan.nl

ICQ - 35352567ebd.focus@home.nl WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #96 on: June 24, 2002, 01:57:16 PM »
Reply with quote

Quote from: Gobalopper on June 20, 2002, 05:08:47 AM
Quote from: Joseph Fung on June 19, 2002, 11:01:19 PMBecause the one here isn't the mod.  I just hacked it in because I was bored.

Can you post it? Email would work to. :)

Yes, can you do that?? i'm also interest in the SE 1.4 version!
Logged

Regards, Eric
Tha Master
Full Member
***
Posts: 201


G€€N G€KL!€R, !K B€N H!€R

vermeulen_yves@hotmail.com WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #97 on: June 24, 2002, 06:19:10 PM »
Reply with quote

me to ;D
Logged

« Last Edit: Next Week at 23:59:59 pm by Tha Master »
_________________________________________________________________________________________________________
tha master was here ;)
http://www.forumekes.tk
KenTeamBG
Jr. Member
**
Posts: 74


TeamBG rules!!!

WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #98 on: June 25, 2002, 03:12:28 AM »
Reply with quote

First, let me say I have YaBBSE v1.4.0 installed...but I have BoardIndex.php from v1.3.0 on it.  This is because I was getting very poor performance after upgrading and Jeff Lewis suggested downgrading my BoardIndex.php to v1.3.0 until v1.4.1 comes out.

Since I have that BoardIndex.php...this mod installed fine as well.  I made only minor cosmetic tweaks.

However, this and the way another forum works lead me to make a new mod to my forum (which I addressed above).  I have added Selectable Categories.

This is not a mod or anything as I just went in and started editing.  I will likely upgrade to v1.4.1 later and then that time make a mod out of this.

You can see it here:

Normal Forum Link

One Category Only

Multiple Categories

Normal Forum Link (but now you have a cookie)

This has allowed me to make the one forum function in many different configurations depending upon where the user is linked to it from or what they want to view.

What I have in place is also installed in addition to Collapsing Categories and everything works together well.  My work also uses a cookie to remember the last state of the layout.  You can view all categories by clicking on the top level node of the view tree links.

« Last Edit: June 25, 2002, 03:19:04 AM by KenTeamBG » Logged

Tazz
Noobie
*
Posts: 49


WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #99 on: June 25, 2002, 11:29:24 AM »
Reply with quote

Great job Ken, can't wait for 1.4.1. to come out so you can do a mod for this for everyone.
Logged
Tha Master
Full Member
***
Posts: 201


G€€N G€KL!€R, !K B€N H!€R

vermeulen_yves@hotmail.com WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #100 on: June 25, 2002, 02:09:51 PM »
Reply with quote

yeah dude, great job, but make it for 1.4.0/1.4.1
Logged

« Last Edit: Next Week at 23:59:59 pm by Tha Master »
_________________________________________________________________________________________________________
tha master was here ;)
http://www.forumekes.tk
KenTeamBG
Jr. Member
**
Posts: 74


TeamBG rules!!!

WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #101 on: June 25, 2002, 06:19:54 PM »
Reply with quote

Quote from: Tha Master on June 25, 2002, 02:09:51 PMyeah dude, great job, but make it for 1.4.0/1.4.1

I won't be making it for v1.4.0, as I mentioned the v1.4.0 BoardIndex.php has some major problems for many people.  I could make my modified BoardIndex.php v1.3.0 available for download now though.  Its perfectly safe to use with v1.3.0 or v1.4.0 YaBBSE.  It would require you first have collapsable categories v0.4X installed though.  Do you want it?


« Last Edit: June 25, 2002, 06:24:50 PM by KenTeamBG » Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #102 on: July 11, 2002, 01:57:01 AM »
Reply with quote

if only i had the 1.4 version :'(
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Juergen
Guest
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #103 on: August 17, 2002, 12:23:24 PM »
Reply with quote

Modify this for 1.4.1
           // if this is a new category
      if ($row_board['ID_CAT'] != $curcat)
      {
                        $curcat = $row_board['ID_CAT'];
                        $curname = $row_board['catName'];
/* Klappmenu Start */
      if ($username == 'Guest') {
         if ($GLOBALS['Vcatall'] == 1) {
            $Vcatopen = false; $Vcatst='close';
         } elseif ($GLOBALS['Vcatall'] == 2) {
            $Vcatopen = true; $Vcatst='open';
         } else {
            $Vcatbit = $GLOBALS['Vcookiecattog'] & (1 << $curcat);
            if ($Vcatbit == 0)  { $Vcatopen = true; $Vcatst='open'; }
            else { $Vcatopen = false; $Vcatst='close'; }
         }
      } else {
         $Vcatbit = $settings[23] & (1 << $curcat);
         if ($GLOBALS['Vcatall'] == 1) {
            $Vcatopen = false; $Vcatst='close';
         } elseif ($GLOBALS['Vcatall'] == 2) {
            $Vcatopen = true; $Vcatst='open';
         } else {
            $Vcatopen = true; $Vcatst='open';
            if ($Vcatbit != 0) { // The setting is close
               if ($GLOBALS['cattog'] == $curcat) { // Open it
                  $settings[23] &= (~( 1 << $curcat));
                  $Vcatresult = mysql_query("UPDATE {$db_prefix}members SET catToggle=$settings[23] WHERE ID_MEMBER=$ID_MEMBER");
                  $Vcatopen = true; $Vcatst='open';
               }
               else { $Vcatopen = false;  $Vcatst='close'; }
            } elseif ($GLOBALS['cattog'] == $curcat) { // Close it
               $settings[23] |= (1 << $curcat);
               $Vcatresult = mysql_query("UPDATE {$db_prefix}members SET catToggle=$settings[23] WHERE ID_MEMBER=$ID_MEMBER");
               $Vcatopen = false;  $Vcatst="close";
            }
         }
         $Vnew = ''; $Vcataname = "#cat$curcat";
         if (!$Vcatopen) { // Check the new post
            $Vresult2 = mysql_query("SELECT ID_BOARD,name FROM {$db_prefix}boards WHERE (ID_CAT=$row_board[ID_CAT])");
            while ($row_board = mysql_fetch_array($Vresult2)) {
               $Vresult3 = mysql_query("SELECT m.posterTime FROM {$db_prefix}messages as m, {$db_prefix}topics as t WHERE (m.ID_MSG=t.ID_LAST_MSG && t.ID_BOARD=$row_board[0]) ORDER BY m.PosterTime DESC LIMIT 1");
               $latestPostTime = 0;
               if (mysql_num_rows($Vresult3) > 0)
                  list ($latestPostTime) = mysql_fetch_row($Vresult3);
                if ($username!= 'Guest') {
                  $Vresult3 = mysql_query("SELECT logTime FROM {$db_prefix}log_boards WHERE (ID_BOARD=$row_board[ID_BOARD] && memberName='$username' && logTime >= $latestPostTime) LIMIT 1");
                  $Vresult3b = mysql_query("SELECT logTime FROM {$db_prefix}log_mark_read WHERE (ID_BOARD=$row_board[ID_BOARD] && memberName='$username' && logTime >= $latestPostTime) LIMIT 1");
                  if (($latestPostTime > 0) && (mysql_num_rows($Vresult3) + mysql_num_rows($Vresult3b)) == 0) {
                     $Vnew = "new"; break;
                  }
               }
            }
         }   
   }
Logged
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[Done] Collapsable Category Mod ->v0.4.1X<-
« Reply #104 on: August 17, 2002, 03:23:13 PM »
Reply with quote

Here just use this update version from snYpir...

http://www.yabb.info/community/index.php?board=158;action=display;threadid=12045
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Pages: 1 ... 5 6 [7] 8 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done] Collapsable Category Mod ->v0.4.1X<- « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.039 seconds with 20 queries.