Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorWallPhone
    • CommentTimeOct 16th 2006 edited
     # 1
    Forces select categories in the discussion grid into a blog-like reverse chronological order.

    New with 2.0: You must edit each category's settings that you wish to change the order. All discussions in the categories marked chronological will not bump.

    Why? In my case, its better that way because of the timely subject matter.

    Other cases?
    ...people will be willing to argue about H1B visas, or what's wrong with Computer Science in college, until the end of the universe. Every day 100 new people arrive in the forum for the first time, and they start at the top of the list, and they dive into that topic with gusto.

    The way I do it has two advantages. One, topics rapidly go away, so conversation remains relatively interesting. Eventually people have to just stop arguing about a given point.

    Two, the order of topics on the home page is stable, so it's easier to find a topic again that you were interested in because it stays in the same place relative to its neighbors.
    (http://www.joelonsoftware.com/articles/BuildingCommunitieswithSo.html)
  1.  # 2
    Why didn't u just Sink all discussions by default?
  2.  # 3
    This is great but I really need to be able to switch between this mode and normal mode.

    Can this be turned into a side bar filter or perhaps even something that users can decide upon in their own forum preferences

    thanks in advance
    •  
      CommentAuthorWallPhone
    • CommentTimeJan 10th 2008
     # 4
    That just happens to be why I didn't sink all new posts by default--so that it can be a preference.

    Maybe I've already done that in a development version... ::goes looking through old fles::...
    •  
      CommentAuthorWallPhone
    • CommentTimeJan 10th 2008
     # 5
    Give this a shot--Its been months since I last tested it so I don't know if it will work, this should replace everything in the existing file including the if line down:$Context->SetDefinition('DisplayInChronological', 'Display discussions in chronological order');

    // Change to '0' to require users to set a preference before making everything chronological:
    $Configuration['PREFERENCE_ShowChronological'] = '1';


    // Add the preference switch to the account functionality form
    if ('account.php' == $Context->SelfUrl && ForceIncomingString('PostBackAction', '') == 'Functionality') {
    function PreferencesForm_AddChronologicalSwitch(&$PreferencesForm) {
    $PreferencesForm->AddPreference('ControlPanel', 'DisplayInChronological', 'ShowChronological');
    }
    $Context->AddToDelegate('PreferencesForm',
    'Constructor',
    'PreferencesForm_AddChronologicalSwitch');
    }

    if ( ('index.php' == $Context->SelfUrl) ) {
    if ((0 < $Context->Session->UserID) && ($Context->Session->User->Preference('ShowChronological')) ||
    ($Context->Configuration['PREFERENCE_ShowChronological'] = '1') ) {

    // Order by date created instead of last active:
    $DatabaseColumns['Discussion']['DateLastActive'] = 'DateCreated';
    // Make the dictionary match the above change
    $Context->Dictionary['LastActive'] = 'Posted';
    }
    }
    •  
      CommentAuthorØ
    • CommentTimeFeb 26th 2008
     # 6
    Would there be by chance a way to select categories where discussions are displayed chronologically? I'm currently working on a project using Jazzman's Discussion Overview, and I'd love to be able to use this addon only in specific categories (basically, there will be categories for discussions and categories for information only).

    Could someone suggest a hack to do this? That would be veeeery nice :)
    •  
      CommentAuthorWallPhone
    • CommentTimeFeb 26th 2008
     # 7
    Could do that pretty easily considering if you are viewing the category directly, but if you want to view the chronological posts mixed with standard posts on the main discussions page, that could be a bit more involved.
    • CommentAuthorfysicsluvr
    • CommentTimeFeb 26th 2008
     # 8
    i think what he wants to do is use certain sections for things like documentation. in that case, those categories could be omitted on the main discussion page.
    •  
      CommentAuthorØ
    • CommentTimeFeb 27th 2008 edited
     # 9
    I'm currently working on a netlabel website: chronological discussions would be used for official news and album releases in specific categories - this way people could comment but these discussions would stay in place if they do. And another category would be dedicated to "normal" discussions.

    Discussion Overview seemed pretty cool for this, because it displays discussions ordered per categories. It would be quite weird to mix chronological and normal discussions on the standard discussion page. Ideally I wouldn't mind two separated tabs, one for announcements and one for discussions.
    •  
      CommentAuthorWallPhone
    • CommentTimeFeb 27th 2008
     # 10
    For that may want to try MySchitzoBuddy's blog extension--it will give a category chronological ordering, turn it into a separate tab for your news, and (I think optionally) take news posts out of the regular lineup.

    If you would rather view the posts forum-style, I wrote a category hider that can remove the news category from the main list, and you would just need to paste a couple lines from chronological inside that to turn that category only into chronological listing.
    •  
      CommentAuthorØ
    • CommentTimeFeb 27th 2008 edited
     # 11
    Thanks, these ideas sound cool! So I would use Page Manager to create a tab pointing to the chronological category hidden from the main discussion list, am I right? I guess it would be perfect for a catalogue category.

    I think I'll use both solutions : blog for the news and hidden chronological category for the releases - but probably Spode's BlogThis instead of MySchizoBuddy's Blog. This way I'll be able to blog new stuff from the catalogue while keeping a clean catalogue on the dedicated tab.

    What should I add o the category hider to make it chronological?
    •  
      CommentAuthorWallPhone
    • CommentTimeFeb 27th 2008
     # 12
    Wow... I never looked at BlogThis until you mentioned it... very cool.

    There is only one or two lines of code in chronological, it just basically tricks Vanilla into reading the wrong database column for sorting discussions, so you could just paste that into the IF statement inside category hider, set your category IDs and be done.
    •  
      CommentAuthorØ
    • CommentTimeFeb 28th 2008
     # 13
    I've tried this, but while the category is hidden, its posts aren't displayed chronologicaly:
    if ( ('index.php' == $Context->SelfUrl) && !in_array(ForceIncomingString('CategoryID', ''), array('3')) ) {

    $DatabaseColumns['Discussion']['DateLastActive'] = 'DateCreated';
    // Make the dictionary match the above change
    $Context->Dictionary['LastActive'] = 'Posted';

    function Category_HideFromDiscussions(&$DiscussionManager) {
    $SB = &$DiscussionManager->DelegateParameters['SqlBuilder'];

    foreach ( array('3') as $CurrentBlock ) {
    $SB->AddWhere('t', 'CategoryID', '', $CurrentBlock, '<>', 'and', '', 0, 0);
    }
    }

    $Context->AddToDelegate('DiscussionManager', 'PostGetDiscussionBuilder', 'Category_HideFromDiscussions');
    $Context->AddToDelegate('DiscussionManager', 'PreGetDiscussionCount', 'Category_HideFromDiscussions');
    }


    However, the discussions list is chronological. I guess I'm missing something pretty simple but I don't know what.
    •  
      CommentAuthorWallPhone
    • CommentTimeFeb 28th 2008
     # 14
    Whoops... I guess I was wrong with how I pictured it working.

    We're going to have to add a whole new IF in there based on part of the existing one:if ('index.php' == $Context->SelfUrl) {
    if (in_array(ForceIncomingString('CategoryID', ''), array('3')) ) {

    $DatabaseColumns['Discussion']['DateLastActive'] = 'DateCreated';
    // Make the dictionary match the above change
    $Context->Dictionary['LastActive'] = 'Posted';
    } else {
    function Category_HideFromDiscussions(&$DiscussionManager) {
    $SB = &$DiscussionManager->DelegateParameters['SqlBuilder'];

    foreach ( array('3') as $CurrentBlock ) {
    $SB->AddWhere('t', 'CategoryID', '', $CurrentBlock, '<>', 'and', '', 0, 0);
    }
    }

    $Context->AddToDelegate('DiscussionManager', 'PostGetDiscussionBuilder', 'Category_HideFromDiscussions');
    $Context->AddToDelegate('DiscussionManager', 'PreGetDiscussionCount', 'Category_HideFromDiscussions');
    •  
      CommentAuthorØ
    • CommentTimeFeb 29th 2008
     # 15
    Yay, it works! Thanks a lot!
    •  
      CommentAuthorWanderer
    • CommentTimeMay 22nd 2008
     # 16
    This is a great add-on, can it be made to work on only one category and leave the rest as normal?
    •  
      CommentAuthorWallPhone
    • CommentTimeMay 22nd 2008
     # 17
    How differently do you need it done than was discussed in the nine posts prior to yours?

    (LOL)
    •  
      CommentAuthorWanderer
    • CommentTimeMay 22nd 2008
     # 18
    Parse error: syntax error, unexpected $end in /path.to/forum/extensions/Chronological/default.php on line 31

    I guess I was hoping the extension would be updated so I didn't have to hack it?
    •  
      CommentAuthorWallPhone
    • CommentTimeMay 22nd 2008
     # 19
    IIRC, that error means something about braces or somesuch.

    Three day weekend here in the states, maybe I'll get around to it.
    • CommentAuthordigitypo
    • CommentTimeJul 3rd 2008
     # 20
    Hi, when I see this add-on, i thought it would be really suitable for me.
    however, it didn't work on my vanilla 1.1.4, when I installed.

    I checked box for activation from Extensions menu. then nothing happened.

    Is there any I shoud set up more? or is it version error? or I missed something else?

    would you tell me what is the problem between Chronological 1.0 and Vanilla 1.1.4
    I use theme "YHBeta!"

    thank you for your helping. :)
    •  
      CommentAuthorWallPhone
    • CommentTimeJul 3rd 2008
     # 21
    I've got a new version that you can try out, and it does require some new delegates in 1.1.3 and 1.1.4. It'll work fine with YHBeta.
  3.  # 22
    Uploaded version 2.0 of Chronological.
    • CommentAuthordigitypo
    • CommentTimeJul 3rd 2008 edited
     # 23
    Thanks to you.
    Whoops. but I got this error message when I installed Chronological 2.0.

    Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/hosting_users/digitypoweb/www/forum/extensions/Chronological/default.php on line 63

    so I removed this add-on, then it became to mass up on my Vinilla.

    like this.



    Warning: main(/home/hosting_users/digitypoweb/www/forum/extensions/Chronological/default.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/digitypoweb/www/forum/conf/extensions.php on line 6

    Warning: main(/home/hosting_users/digitypoweb/www/forum/extensions/Chronological/default.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/digitypoweb/www/forum/conf/extensions.php on line 6

    Warning: main() [function.include]: Failed opening '/home/hosting_users/digitypoweb/www/forum/extensions/Chronological/default.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/digitypoweb/www/forum/conf/extensions.php on line 6



    this error message shows every single pages on the top of my forum badly.
    so I removed the line 6 from conf/extension.php. then it works as ususal.

    would you check your add-on Chronological 2.0 please? I really want to use Chronological on my forum. ^^
  4.  # 24
    Uploaded version 2.1 of Chronological.
    •  
      CommentAuthorWallPhone
    • CommentTimeJul 4th 2008
     # 25
    I was using a foreach loop in a way that only works in PHP5. This one should work for you.
    • CommentAuthordigitypo
    • CommentTimeJul 5th 2008
     # 26
    Thank you very much for your help.
    It fixed. no more error. :) but still it didn't work order change. it is same. I mean nothing happened even I activated Chronological add-on from extensions menu. :(

    one more thing, I would like to ask you where is the tick box as you show a picture on the top of this topic. I guess it seems like I need to activate like that. however I couldn't find that tick box.

    thanks a lot
    •  
      CommentAuthorWallPhone
    • CommentTimeJul 5th 2008
     # 27
    That tick box needs to be marked for every category you want in this order, and you can find it under the settings tab, then the categories option on the left. You'll have to edit each category and it will be on the bottom of the category options.
    • CommentAuthorfatro
    • CommentTimeSep 22nd 2008 edited
     # 28
    @Wallphone I have check it in Categories option page and found nothing?! no tick box

    No Tick Box

    PHP Version 4.4.7
    Vanilla 1.1.4
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 22nd 2008
     # 29
    If you turn off category roles does it appear?
    • CommentAuthorfatro
    • CommentTimeSep 23rd 2008
     # 30
    @Wallphone

    Nothing appear

    Vanilla
    • CommentAuthormanda
    • CommentTimeSep 27th 2008
     # 31
    I'm having the same problem with the checkbox not appearing. It worked a while ago, and I just noticed that it's not now, but I can't tell what made the difference. Could it have anything to do with upgrading?
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 27th 2008 edited
     # 32
    Its not an upgrade issue, I just tested Chronological with both 1.1.5 and 1.1.5a and they both work fine.

    The only things I can think of that would cause this are the extension itself getting corrupted, if you are using a custom theme, particularly if it was written before 1.1.2, or some other extension may be messing with it. The only way to know which one is by turning them off one at a time until the checkbox to comes back. Then let me know, and I'll see how to fix it.
    • CommentAuthormanda
    • CommentTimeSep 28th 2008
     # 33
    After messing with it a while, I see it's because of my custom theme. Once I switched to the default theme, it worked fine.

    I'm creating this theme myself, but it's just a slight variation of the default theme from the latest version of vanilla. How can I make it compatible?
    • CommentAuthormanda
    • CommentTimeSep 28th 2008
     # 34
    Okay, I take that back. It has to do with the settings_category_edit.php file included with the CategoryRoles extension.
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 28th 2008 edited
     # 35
    OK, what you & fatro will have to do is add the delegate to that file, it's one line of code at line 82, near the bottom, and then you should be set.

    //CategoryRole end
    $this->CallDelegate('PostRolesRender');
Add your comments
    Username Password
  • Format comments as