Not signed in (Sign In)

Categories

Vanilla 1.1.4 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.
    • CommentAuthormiquel
    • CommentTimeMar 7th 2008 edited
     # 1
    This extension shows in the discussion-page's Panel all users that have participated. Also allows to add a "Show All" link redirecting to an extension page which shows the entire list of participants.

    Participants can be sorted by nickname or by amount of contributions.

    List name can be changed to fit forum requirements or admin/users preferences.

    Attention! If you want to see the settings form, please, install before the SetList extension.

    0.5 - 01.05.2008
    -class definition excluded from the source code, moved to /library as a standalone file
    -SetList extension used to generate the settings form
    -added option to count also whispered comments to the user (via user preference), requested by fysicsluvr.
    It only applies when the system have whispers enabled

    0.4 - 27.03.2008
    -bug detected when working with whispers and deleted comments, which were
    also counted as participations. Solved
    -included a "Back" link in the "Show All Participants" page, redirecting
    to the discussion page

    0.3 - 17.03.2008
    -included "Show all" link, redirecting to an extension page showing the entire list of participants, subdivided in pages when needed, of length SEARCH_RESULTS_PER_PAGE from Configuration
    -the "All Participants" page also shows users icons
    -added a CSS trick to left-align the extension page title in vanilla theme
    -used FormatPlural in the comments label to produce more elegant code
    -used AddLimit to the SQL query to be more efficient in memory

    0.2 - 10.03.2008
    -list of participants can be sorted (via configuration settings) by username or by amount of participations on the discussion (also alphabetically on ties)
    -list name can be changed (via configuration settings)
    -list length can be limited (via configuration settings)
    -settings added on /conf/settings.php

    0.1 - 07.03.2008
    -first release
    •  
      CommentAuthorØ
    • CommentTimeMar 7th 2008
     # 2
    Man, I love you :)
    This is a freaking awesome extension for a play-by-post forum. Many thanks for this, it will be really useful to me.
  1.  # 3
    could you put a link next to each name that puts their username in the whisperbox and goes down to the textbox (like quick whisper..)

    this should be an option, because no everyone will want this.
    •  
      CommentAuthorApreche
    • CommentTimeMar 8th 2008
     # 4
    I'm trying to modify the extension to put the people with the most comments at the top. I tried adding this code after line 28, but it doesn't work. It is building the sql improperly, and the error message is not helpful.

    $sql->AddOrderBy('Count','c','DESC');
  2.  # 5
    ooh, good idea, apreche. let me know when you get it working.
    •  
      CommentAuthorApreche
    • CommentTimeMar 8th 2008
     # 6
    After wasting an hour of my time, I have discovered it is not possible at the present time to order the participants by the number of comments. The AddOrderBy function in the SqlBuilder is extremely inadequate. It is only capable of ordering a select by an actual table field with a table alias. A query like the following can not be built with the Vanilla SQL builder.

    select count(ID) as numIDs from mytable order by numIDs desc
    •  
      CommentAuthorApreche
    • CommentTimeMar 8th 2008 edited
     # 7
    I found the answer. This is the line of code that needs to be added.
    $sql->AddOrderBy(array('Count'),array(''),'DESC');I just want to say that having to use two arrays to order by a single field is ludicrous and counter-intuitive. Please make a fix to this function in the next version of vanilla so that the following code will work.
    $sql->AddOrderBy('Count','','DESC');Thanks.
    • CommentAuthormiquel
    • CommentTimeMar 10th 2008
     # 8
    I'll take a look on it and see what can I do about your requests ;)
  3.  # 9
    Uploaded version 0.2 of Show Participants.
    • CommentAuthormiquel
    • CommentTimeMar 10th 2008
     # 10
    I've made some changes. Hope they work all well ;)

    thanks Apreche for the extra line of code ;)
    and yes, the Order By Count should definitively work
  4.  # 11
    Uploaded version 0.3 of Show Participants.
    • CommentAuthormiquel
    • CommentTimeMar 16th 2008
     # 12
    added the ability to show all the participants in an extension page emulating a user-search result

    if anybody with previous versions of Vanilla could test the extension I could relax the requirements, as far as I've only tested in current version.

    I did a CSS trick just to make the extension page title fit left-aligned all themes I've tested.
  5.  # 13
    Uploaded version 0.4 of Show Participants.
    • CommentAuthormiquel
    • CommentTimeMar 27th 2008
     # 14
    solved a bug found: the extension was counting both whispers and deleted comments as participations

    now it's not ;)
    • CommentAuthorfysicsluvr
    • CommentTimeMar 27th 2008
     # 15
    It should still count whispers if you're the recipient. Does it? (Maybe you've already thought of this.)
    • CommentAuthormiquel
    • CommentTimeMar 28th 2008
     # 16
    well in fact I thought it was more interesting to count just the public comments..

    maybe I can add the whispering counting as a customizable option by user or by admin (it will take some time as I'm being quite busy lately)

    any suggestion?
    • CommentAuthorfysicsluvr
    • CommentTimeMar 28th 2008
     # 17
    hmmm... i see your point. maybe set it as a user option that's off by default ( [ ] count whispered comments in your list of discussion participants // or something along those lines)
  6.  # 18
    Uploaded version 0.5 of Show Participants.
    • CommentAuthormiquel
    • CommentTimeMay 1st 2008
     # 19
    ok, i've set a settings form via the SetList extension, which works great (thanks to squirrel) and (i think) worked fysicsluvr request to count also whispers (as a user preference)
Add your comments
    Username Password
  • Format comments as