DruBB as a module package

Events happening in the community are now at Drupal community events on www.drupal.org.
Xabi's picture

I think that the best and most flexible approach to a phpBB-like forum from Drupal is a combination of existent modules around the default forum module. So, the best way to get DruBB realized as a "module package" would be to help improving these modules and porting them to 5.x. This is my list of needed modules, with suggestion notes and status for 5.x (those fully ported to 5.x are underlined):

ESSENTIAL MODULES FOR A BASIC PHPBB-STYLE FORUM

  • Flatforum: needed to get phpBB-like threaded look and post count/registration date for every user published in each comment. The HEAD version works for 5.x, but not with the garland theme; see it here. updated 04-March-2007] There is a patch to make flatforum work with Garland theme here
  • BBCode filter: to get compatibility with this famous formatting method. It would be interesting to scale down the external images when exceeding a predefined size (I have oppened an issue about this). Already ported for Drupal 5.x.
  • Quicktags: simple interface for BBCode. It would be interesting to document a way to add/hide buttons on this one. Ported to 5.x
  • Smileys: Already ported for 5.x. Remember this if you import a phpBB smiley pack.
  • Comment_upload: to get file attachments for comments. Already ported to 5.x.
  • Upload previews: Allow thumbnailing when attaching images to nodes and comments, but it only works when uploading/editing the images (the thumbnails are not seen in the node view page). [updated 23-01-2007] In the next two weeks there will be support for thumbnails also in the view page! See this issue
  • Subscriptions: to get mail notifications of new comments (and much more). Already ported to 5.x.
  • Privatemsg: to get private messaging capabilities not only for forums, but for all kind of Drupal contents. Ported to 5.x.
  • NOT SO ESSENTIAL MODULES, BUT IMPORTANT TO GET A FULL PHPBB-STYLE FORUM EXPERIENCE

  • Polls into forum nodes: you can achieve this with Content Construction Kit (CKK) and the new Pollfield. Both ported to 5.x.
  • Signature: To get dynamic signatures. The default signature concept of Drupal is not good (signatures appear as part of the comment text, so they appear also in searches. Also, when a user changes his signature, previously published comments keep the old signature). The Signature module solves all this, but it has not been even released as a module. Files for 4.7 are available and mirrored here [Updated 04-March-2007] Ported to 5.x! Here are the files.
  • Quote: to get quotation links in every node & comment. I think that these quotes must be collapsible-collapsed in some way. Ported to 5.x
  • Embedded Youtube & Google videos: A BBCode module modification allows to embed Youtube videos; see it here. It needs a bit of work -you need to put the video ID instead of the full URL-, but that's the way to go!
  • Visits count for nodes (including forum threads, of course): The statistics core module do this. From the statistics help page: "Logs show statistics for how many times your site and specific content on your site has been accessed". You have to enter the node page to see the visits count, but maybe we could add this info to the posts list of each forum with some theming.
  • MODULES RELATED TO FORUM MODERATION

  • Forum Access: to get private forums, moderator permissions and such. Already ported to 5.x.
  • Taxonomy Access: an alternative to Forum Access; this one is more general. There is a discussion about Forum Access vs Taxonomy Access here at DruBB group. Already ported to 5.x.
  • Comment Mover: self-explaining ;-). Already ported for Drupal 5.x.
  • INTERESTING MODULES TO ADD COOL COMMUNITY FEATURES

  • Node profile: rich user pages using CCK for profile nodes. Ported for Drupal 5.x. This module is dependant on node family (ported to 5.x). The usernode module has also been ported to 5.x.
  • Google Maps: great community feature to show user locations over Google Maps. [ Updated 20-02-2007 ] Available now for Drupal 5.x.
  • It would be good to have a "Forum" category in the downloads section of Drupal.org summing all this. This would attract phpBB-like forum webmasters to Drupal.

    So as you see, the very most of our needed phpBB-like features are already there, or very close to get achieved!

    Comments

    Update: Now, with the last

    Xabi's picture

    Update: Now, with the last update of comment_upload, we have upload previews for both nodes and comments, thanks to Heine: http://drupal.org/node/110164

    Also, as Heine says,

    You can display images in nodes by overriding theme_upload_attachments (for both normal uploads and comment uploads).

    Great!

    Wow, talk about module bloat

    zoon_unit's picture

    It's good to see that many of the forum issues have been addressed one way or another, but fifteen different modules? Yuk. I've already got about 20 modules in my Drupal installs. The problem with module bloat is that everyone does things differently, adds form options in different places, etc. And upgrading is a nightmare.

    I'm not a Drupal programmer, so pardon my ignorance, but would there be a way to build a "super" module from some of these modules, integrating the functions and eliminating duplicate code? Of course, modules that have uses elsewhere would need to remain outside the supermodule, but I think it would be a worthy goal to get the module list down to 5-7 modules.

    Thoughts?

    Yes but think about

    Xabi's picture

    Yes but think about modularity and flexibility. You could add only some features of that list. I don't mind about doing things differently if they are well done. Also, these modules are useful for other functionalities apart from the forum, so I think it's better for Drupal as a project to develop them all instead of creating a new forum different from the Drupal one. And also, when Drupal 6 arrives, the forum would be updated as well.

    One possible solution to this problem?

    zoon_unit's picture

    I seem to remember hearing somewhere about a module that would examine all the installed modules and tell the admin which ones had been updated on Drupal.org. This would be super useful to help handle the module bloat problem.

    I know some developers have concerns about auto-updating of modules, which I understand, but if I could simply run a function that told me which modules in my system were out of date, then it would be much easier to maintain a large number of small modules. I could then update the modules manually.

    Such a module would be great if it also generated a html list of modules with links to their project page. :-)

    I'm pretty sure something

    catch's picture

    I'm pretty sure something like this is going to be integrated with the new release system as it develops - there was some traffic on the development list about it.

    Also there's a patch in the works to have an ftp client as part of the drupal installer for 6.x - which could then be used to (securely) download new versions of modules - so things are in the works at that end as well.

    tried with Fancy theme but did not work

    gurukripa@drupal.org's picture

    can u help..i am not able to use the flatforum..this is all i used so far..
    it works with the Pleroma theme..but with Fancy theme..i cant post any new topic.

    it doesnt show all the Forums...while posting..and since it is not possible to post without selecting any forum...
    i cant add any new forum topic.

    pls help.

    The current forum module.

    tounano@drupal.org's picture

    The current forum module isn't so featured, and actually to rewrite this module from scratch is about 1 hour. What the current forum module do is to provide a new node type (forum topic), and the user interface which fetches all the node of 'forum topic' type from the current taxonomy term (our current forum).

    But, what if you would like to post different node types (forum topic, poll, auction, review), what if you would like to give those node types different view (depends if this node type is viewed on the forum or on the site). There is a lot of more issues.

    Have a nice day.

    I'm not really getting your

    Xabi's picture

    I'm not really getting your point... We are talking about publishing forum topics and comments, not another node types.

    his point is that Forums

    vm's picture

    his point is that Forums (phpbb, vbulletin) allow polls, and such to be attached as forum posts.
    what if you wanted to poll a specific forum about a specific question ? and place the poll inside the forum ?

    you yourself mention this here:

    Advanced poll: Already ported to 5.x, but we would need to insert these polls attached to forum threads in some way

    Yes, I did not say that

    Xabi's picture

    Yes, I did not say that everything is done, but I think that these bunch of modules are pretty close. Of course, there are things to work on.

    Signature module available

    Xabi's picture

    One of the broken links for signature module is now working. I have mirrored it here, but remember that it's for 4.7:

    http://www.mactualidad.com/signature-4.7.0.zip

    I have updated this story

    Xabi's picture

    I have updated this story with news about smileys module and embedding Youtube videos.

    I have updated the list with

    Xabi's picture

    I have updated the list with info related to privmsg module, node profile and upload previews module.

    With signatures - I've

    catch's picture

    With signatures - I've created an issue to move the default signature behaviour in drupal to profile.module. This would reduce much of the need for signature.module to undo what is really a bug in core. I've got no php skills unfortunately apart from very hacky copy and pasting, so not able to do a patch for it.

    I noticed you didn't include quicktags - which emulates phpbb/vbulletin functionality to insert bbcode tags in text areas. http://drupal.org/project/quicktags

    I did a long forum post on this in November which although it's getting out of date might still be relevant:
    http://drupal.org/node/84014

    http://drupal.org/node/84014

    Your issue is related to

    Xabi's picture

    Your issue is related to Drupal 6.x and that's too far away... We are talking about 5.x here. I'm adding the quicktags module to my list (instead of TinyMCE), thank you.

    Another module you might

    catch's picture

    Another module you might want to consider (but which I don't use because in 4.7 it didn't interact well with taxonomy access) is comment rss: http://drupal.org/project/commentrss

    Just out of interest - is

    catch's picture

    Just out of interest - is there a plan to include a node-forum.tpl.php, comment.tpl.php and associated css with this distribution? flatforum does some of the work but there's plenty to improve on as well.

    Some more useful modules:

    http://drupal.org/project/flatcomments

    This makes all comments children of the node instead of each other - so using a completely flat phpbb style forum you don't get artificial nesting of comments in the database (confusing when using comment mover) - it also goes some way to fixing the comment editing timestamp issue http://drupal.org/node/55277

    I have just updated the list

    Xabi's picture

    I have just updated the list for better readiness and organization.

    Forums... basic vs advanced

    kreynen's picture

    I've got to side with zoon_unit. Installing, monitoring, and maintaining a site with that many modules would either eat up a lot of your time OR lead to a very unstable site.

    Has anyone in this group tried to create a full featured BB with all of the modules Xabi is suggesting?

    Drupal 5's default forum functionality is REALLY basic. It's essentially commenting on a taxonomy term instead of at the bottom of a page that displays a story or some other type content.

    There's a reason more advanced BB systems exists. The phpBB module for postNuke was kludgy, but did the job of allowing a single sign-on and sharing users. The phpBB module took a similar approach, but hasn't been updated for Drupal 5.

    In theory both Drupal and phpBB can be configured to use LDAP, but not everyone has the resources to run their own LDAP server. There was a move to get all web apps to use a Universal PHP Authentication Replication System, but the original site hosting that project disappeared (thanks Dave Winer!)

    People have been requesting enhancements to Drupal's forums for years... here and here , but the Drupal core team has been very clear, they are not interested in building more sophisticated forums.

    It isn't impossible to get Drupal's forums to look more like phpBB or vBulletin. Here's one example of a nice looking vBulletin-ized Drupal forum. The real challenge is to get duplicate the advanced forum functionality most forum mangers have come to appreciate...

    • Powerful forum, user and group permission management
    • Mass delete/move/lock/unlock of posts
    • Topic splitting
    • Auto-pruning of old or unanswered messages
    • Word censoring
    • Advanced moderation features... issue users strikes for policy violations, global ignore

    I'd much rather have an advanced forum module that started to add some of those features than try to string together several independent projects that may never get updated or go in an entirely different direction.

    People have been requesting

    Toe's picture

    People have been requesting enhancements to Drupal's forums for years... here and here

    And the author of that first link is still requesting. ;)

    I agree, though, this piecemeal system of a dozen or so modules is... clumsy, at best. A lot of these modules should be merged, either with each other, or into the drupal core or the core forum/comment module. I'd say it should take at most 4 non-core modules to get the basic functionality found in most forum packages.

    One module or many modules...

    dahacouk's picture

    There are benefits in both directions...

    Having one monolithic module makes it easier to maintain but less flexible and less useful to the wider Drupal project.

    Building DruBB out of many modules would, using the current admin system, make it more cumbersome to maintain. But enhancements to core and non-core modules would benefit the wider Drupal community. And the downside is if a module doesn't get updated.

    Because, BBs, blogs and wikis are not the be all and end all. Drupal could be more of a toolkit with which to make new and exciting ways of collaborating. But this only works if functionality can be easily reworked. And you can only do that with a medium grained modular system with discrete functionality in each module.

    Perhaps the issue lies with how modules are administered? Perhaps we need to be able to group modules in clusters and have various admin levels (basic to advanced) to hide the complexity. The work being done with module dependencies is a good start.

    Perhaps the middle way is not to have just one one and not to have too many. And with the few modules that are enhanced make sure they are kept updated.

    Getting there...

    Cheers Daniel

    Oh, I certainly agree that

    Toe's picture

    Oh, I certainly agree that some modularity is a good idea. For example, as I said in the other thread, I'd prefer a WYSIWYG system using filtered HTML for posting to a forum. But I can understand if someone else would rather swap out for a BBCode-based system. This is a good use modularity. But what about something like the comment mover module? I would consider this pretty 'core' functionality, it's kind of silly as a standalone module, IMHO.

    The issue with one big

    catch's picture

    The issue with one big monolothic forum module is that private messaging, comment moving, moderation and all kinds of other things would duplicate other drupal modules.

    The site we run has:

    news - a couple of thousand articles so far
    a document archive (more than 3000, including several full length books)
    user blogs
    other stuff
    and a discussion forum

    If I have to maintain one big forum module alongside similar modules for other bits of the site, then that really is module bloat. It might be more work if you only want a discussion forum - but then you could just install phpbb anyway.

    I also think the comment above about "core developers not being interested in developing more sophisticated forums" is a little false.

    The only thing that core developers have said they won't do spend time integrated drupal with third-party forums like phpbb or vbulletin. They also aren't keen on developing a mega-forum module that duplicates other modules. However, I've seen Dries mention he'd like to see forum access and moderators get into core soon which suggests that at least some standard forum features they'd like to incorporate.

    What I think is lacking is 1. more groups like this which actually try to deal with the issue rather than start yet more threads requesting phpbb integration 2. high-level coders who run sites which discussion forums make a big part of.

    You know, a thought occurs

    Toe's picture

    You know, a thought occurs to me: Does Drupal even need a separate 'forum' module?

    Most of the basic posting and display functions of Drupal's forum are already handled by the comment module. What I wonder is if the rest of the current forum module could be split up. Some of it could maybe be folded into the comment module, some into other modules, the basic layout of the forum index could be handled by a preset for Views and/or a default .tpl.php file. Doing away with having a separate 'forum node' type might make it easier to implement other node types like polls in forums.

    The forum index hard-coded

    catch's picture

    The forum index hard-coded html is something I'd really like to see taken out in 6.x - then it'd be possible to have collapsible (or just differently styled) sub-forums etc.

    Then only thing that seems to attach nodes to forums is the additional fid/nid setting which is basically a duplication of tid/nid - so yeah views filtering or a tpl.php file might do a similar thing much better and allow for customisation of the forum node type to a greater extent.

    Actually, the forum index

    Toe's picture

    Actually, the forum index can be themed in 4.7 (and before, I think). I've already made a theme that makes it completely tableless.

    Are you happy to share the

    dahacouk's picture

    Are you happy to share the theme? Sounds very interesting.

    Hi, As I mentioned in my

    tounano@drupal.org's picture

    Hi,

    As I mentioned in my previous posts, I am working on a complete forum module which will use the core components of Drupal (Node system and Taxonomy system).

    My problem is that I am doing it on my free time, and now I have a really big project at work that it's deadline is on the 19'th of Feb.

    So basically I don't have day and nor nights because of this project.

    My big hope that when I'll finish this project I'll continue the work on the forum module. I still hope that on March I'll release the pre-alpha version.

    Anyway, I am very happy that our community is growing fast.

    Have a nice day,
    tounano.

    We're up to what, 3 or 4

    Toe's picture

    We're up to what, 3 or 4 people who have said they're going to work on a new forum system for Drupal?

    Let's see, there's yours, UIE Forum, akvaforum, a couple who put together some patches that never ended up going anywhere, and probably one or two I don't even know about.

    Forgive me for being a bit bitter, but I'm tired of promises. I've seen too many projects and modules fall by the wayside. If it's not going to become the default, I'm not running it.

    Yeah I'd be very interested

    catch's picture

    Yeah I'd be very interested in seeing that as well.

    Nodeprofile being ported

    Xabi's picture

    I have updated the list to add relevant info: nodeprofile module will be udated to 5.x around february 2nd; nodefamily and usernode have been already updated.

    Good news

    Xabi's picture

    Updating the list... Privmsg module is now ported to 5.x! Also, a 5.x version is available for Quote module (HEAD version). Last but not least: A 5.x version of Quicktags module.

    Thanks for this list...

    Cross_and_Flame's picture

    ...it is very helpful to me, as a diehard phpbb-user who is porting my site to drupal. I like finding all I need in one place!

    Keep up the good work, Xabi!

    IP Track

    jackhound's picture

    If I could suggest IP tracking feature so forum moderator/admin can handle trolls.

    Update

    Xabi's picture

    Nodeprofile has been patched for 5.x here

    Another update

    Xabi's picture

    The quote module is now 5.x compatible!

    DruBB as a module package is the go...

    hyper's picture

    Love this little DruBB group.

    I've been considering Drupal for my website which is mostly centered around the discussion boards, although I'm reluctant to migrate until the following further features are enabled:

    1) Attach authors IP address to each post and comments
    2) Only allow certain user groups to view and research IP address'
    3) Attach poll(s) to topics
    4) Display how many times a topic has been viewed
    5) Assign a "trash-can" forum for deleted posts/comments
    6) The Signature module is updated
    7) Warning points to automatically ban offending members

    Also concerned it will be more difficult to mod/admin efficiently. All the little things can add up to a lot of time. For example, how much easier would it be to have an option to move a spammers posts into a "trash-can" forum upon deletion of their account compared to having to select every individual post and move them there?

    Maybe asking to much with the above example; one thing at a time yay?

    Quite frankly I find phpBB, vB and IPB all very ugly or lacking, and really the very reason I want to use Drupal, so I'm not keen on the idea of emulating any one of these forum systems.

    I wrote it down. In two

    tounano@drupal.org's picture

    I wrote it down.

    In two three weeks I'll post updates about the DruBB project.

    More and more updates.

    Xabi's picture

    Quicktags and Nodeprofile have been ported to 5.x. I have "cleaned" the list erasing useless references.

    Update and summing up

    Xabi's picture

    Update: the statistics module allows to see a visits counter in each node.

    Summing up, here is what we still need to release a "DruBB package", I think:

    Major issues:
    - Flatforum module: needs to be fully ported to 5.x (actually it does not work with garland theme)
    - Advanced polls: we need to attach polls to forum threads
    - A 5.x port of signature module

    Minor issues:
    - Embed Youtube & Google videos based on URL and not on video ID
    - Scale external images (BBCode) to a predefined size
    - Customize Quicktags buttons
    - Insert visits count in the forum posts view (theming)

    Flatforum progress

    Cross_and_Flame's picture

    This cat here has gotten flatforum to work with garland...and his modifications seems to be 5.0 compliant.

    LINK: Flatforum-Garland work

    Check it out if you are interested.

    hehe Thanks for the nod,

    rszrama's picture

    hehe Thanks for the nod, C&F. I'm hoping to improve the UI for the privatemsg module, and I'm more than happy to report back here when it's prettied up.

    (The link to my post w/ flatforum at ubercart.org is: http://www.ubercart.org/forum/general_discussion/267/flatforum_garland#c...)

    "Jump to page"?

    hyper's picture

    You think it would be easy to theme in, underneath topic titles, page numbers to quickly jump ahead without first going into the topic? example

    TOPIC 1
    page 1 2 3 4 5 6 7 ... 67
    TOPIC 2
    page 1 2 3 4 5 6 7 ... 129
    TOPIC 3
    page 1 2 3 4 5 6 7 ... 13

    "Report inappropriate post" links

    hyper's picture

    What about a link in each post that allows any member to report an inappropriate post?

    http://drupal.org/project/pol

    Google Maps

    Xabi's picture

    Google Maps has been updated for Drupal 5.x

    Very good news

    Xabi's picture

    Pollfield for CCK allows to insert polls into forum nodes!

    http://drupal.org/project/pollfield

    I'm replacing the Advanced Polls Module from the list and adding the CCK + Pollfield solution.

    DruBB as a module package "finished"

    Xabi's picture

    I have updated the list: flatforum now works with the garland theme, and the signature module has been ported to 5.x

    With these two adittions, the main features of our "phpBB-like Drupal forum" are completed, I think. I will publish a step-by-step guide for installing this "DruBB-module package" soon.

    How do do it in reality

    eigentor's picture

    Hi Xabi !

    Great Job.
    How do you plan to do it in reality:
    to get People (including me) to try it, with such an overwhelming
    amount of modules, maybe it would be best to form a distribution,
    where all the modules are packaged in a way.

    The point of understanding Drupal I'm currently at is the following:
    one can do almost everything with drupal, given a bit of creativity
    of combining modules and making them do what one plans to do.

    But the problem is: functionality is a bit overly atomic, and somehow
    it has to be aggregated in one place to attract non-drupal-specialists.

    Any Idea for that?

    Regards and keep going.

    Thomas

    Life is a process

    Life is a journey, not a destination

    Beta-test

    Cross_and_Flame's picture

    As I'm in the process of coding a new drupal install currently, I'd love to beta-test it.

    Feel free to drop me an email: admin(at)crossandflame(dot)com

    some problems

    triss's picture

    I think your list can not be called really finished, because not all the modules play well together or work well enough yet...

    some problems I encountered:
    -having both signature and flatforum enabled adds the signature two times to each forum post
    -pollfield cck is not really usable for forums yet: adding a pollfield to a forum node messes up the layout of the editing form (the questions fields are outside of any cck groups you create), and it is impossible for a node with a pollfield to have the poll optional.... And since the forum module only takes into account only forum type nodes, creating another content type for the pollfield doesn't work....
    -enabling quote and signature together also causes a problem: signature works correctly, except when the quote link is clicked, then the signature is still added to the beginning of the textfield

    ofcourse, ymmv, and it might be a configuration issue at my side (but I think i tried them all).

    ...

    michelle's picture

    -having both signature and flatforum enabled adds the signature two times to each forum post

    That's easily fixed, though, by just removing it from node-forum.tpl.php.

    I'm about to try polls in forums, so we'll see if I can get it working.

    As to the siggie issue, maybe file an issue on that module?

    Michelle

    New Forum related modules development

    rszrama's picture

    I just wanted to post a follow-up in this article about some work I've been doing for the forums at Ubercart.org. First, I just released the Comment Page module which gives you a vBulletin inspired page for each reply to a post. This makes it easier to bookmark/link to individual posts in threads, and it's great for building up site content. In an active forum, this is going to greatly increase the number of indexed pages for your site...

    http://drupal.org/project/comment_page

    Furthermore, GoustiFruit has modified our flatforum code which I then in turn modified again to produce what we currently have going in the Ubercart forums. I'm all for sharing this flatforum code, and I think me just doing a spot of touch up work on it will make it much more useful for more people. You can see the look at our forums.

    http://www.ubercart.org/forum

    Finally, I'm revamping the Private Message module because it is ugly. Ugly ugly ugly. The user interface is not intuitive and unlike any other private message or e-mail system I've seen. I consider anything to be an improvement, so hopefully my work will be well received and shareable. It will take me another day or two to nail it down, but the changed module will be up on Ubercart.org when it's done. I also plan on sticking a handy little PM button in the flatforum code. (I've already modified flatforum to show our User Badges, and GoustiFruit has made a custom graphical post counter from the looks of his screenshots.)

    That's all for now...

    Ciao,
    -Ryan

    Nice

    michelle's picture

    Your forums look good. Sounds like you've done a few things that are still on my to do list, so I'd love to see you share. :)

    Mine are at http://couleeregiononline.com/forum if you're curious... Fairly close to what you have. I still want to add things like a PM button, an online indicator, user points/badges, etc.

    I agree the PM module's UI could use some work. Love to see that as well.

    Michelle

    About the comment_page

    GoustiFruit's picture

    About the comment_page module: can it somehow be considered as permalinks ? (If so, maybe you could change your text from "view page" to "Permalink" ?)

    And to michelle@drupal.org: it's fairly easy to use the Userpoints module to display some "ranking" in the forums, as Ryan said, I posted some screenshots to him. Here is what it looks like:
    http://files.myopera.com/GoustiFruit/files/capt_userpoints.png

    Now I'm also looking for Ryan PM improvements :-p and an online/offline indicator...

    Off/online

    michelle's picture

    This is what I use in my user profile. I haven't tried, yet, to see if I can use it as is in forums, but it should work ok as long as $usernodeuser is changed to the poster user object.

              <?php
             
    print "<strong>Last Active:</strong> " . date("F j, Y, g:i a", $usernodeuser->access) ; 
              if (
    round((time()-$usernodeuser->access)/60) < 30) {
                print
    theme_image(path_to_theme() .
                     
    "/images/profile/status_online.png", $alt = 'Online', $title = 'Online', $attributes = NULL, $getsize = TRUE);
              } else {
                print
    theme_image(path_to_theme() .
                     
    "/images/profile/status_offline.png", $alt = 'Offline', $title = 'Offline', $attributes = NULL, $getsize = TRUE);
              }
             
    ?>

    Michelle

    Userpoints/ranking

    GoustiFruit's picture

    I added this to my node-forum.tpl.php...

    <?php
     
    if (module_exists('userpoints')) {
       
    $points_required_to_display_all_stars = 1000;
       
    $points = userpoints_get_current_points($userid);
       
    $percent = floor($points / 10);
       
    $percent $percent > 100 ? 100 : $percent;
        print
    '<div class="userpoints"><div style="width:' . $percent . '%"></div></div>';
      }
    ?>

    $points_required_to_display_all_stars is not explicitely used here but it should be in:
    $percent = floor($points / ($points_required_to_display_all_stars/100));

    And in my style.css...

    /* Userpoints /

    .userpoints {
        margin: 0 0 5px 5px;
        width: 110px;    /
    10 stars: 10x11 pixels */
        background: url(images/star_x_grey.gif) 0 0 repeat-x;
    }

    .userpoints div {
        height: 12px;
        background: url(images/star_x_orange.gif) 0 0 repeat-x;
    }

    Finally you'll find the images in use here:
    http://files.myopera.com/GoustiFruit/files/star_x_grey.gif
    http://files.myopera.com/GoustiFruit/files/star_x_orange.gif

    @Goustifruit: Ooohh...

    rszrama's picture

    @Goustifruit: Ooohh... hadn't thought about an on/offline indicator. That'd be fairly simple since Drupal has the Who's online code anyways... I'll sleep on it. ; ) Also, since the "view page" thing is just in my template.php, you can easily make it say Permalink. By default the module puts a "Link" link in the comment links section (by reply, edit, delete, etc.).

    Also, I'm using my (as of yet undeveloped) site http://www.bywombats.com to test the Private Message module as it's in progress. Feel free to create an account there and give it a whirl. Send messages to yourself to test out the features.

    What I got accomplished today was a total revamp of the message lists and folder management. I actually added in a folder management tab and gave rename ability, too. I made the Javascript degrade properly (except for maybe the delete messages button... I'll revisit it first thing tomorrow). I also changed the way switching between folders works.

    Check it out, let me know what you think. I still haven't touched the writing/reading PMs part yet, but I'm up for suggestions. Gurpartap wants it to have similar features to a mail client like Yahoo! mail or something. Shouldn't be too difficult.

    Ciao,
    -Ryan

    on/offline

    michelle's picture

    @Goustifruit: Ooohh... hadn't thought about an on/offline indicator. That'd be fairly simple since Drupal has the Who's online code anyways... I'll sleep on it.

    Did you read my post? Basically, I'm just checking if they accessed a page in the last 30 minutes. It's not terribly scientific or anything, but it works good enough. :)

    Michelle

    That's the problem with

    GoustiFruit's picture

    That's the problem with comments here, their order is not "natural" enough, too much "logical": I answered Ryan message after you, and your message was pushed to the bottom...

    Yeah

    michelle's picture

    I don't understand the comment order on the groups site... Very confusing.

    Michelle

    It's quite simple, really.

    Toe's picture

    It's quite simple, really. Top-level replies to the original post are in reverse-chronological order, while replies to top-level replies are in (forward-) chronological order, and threaded.

    Yeah, that was a good idea... -_-;

    Heh...

    michelle's picture

    When I said I didn't understand it, I meant more that I didn't understand why it is the way it is. I figured out the pattern but it makes for difficult reading.

    Thanks, though,

    Michelle

    Idea

    GoustiFruit's picture

    Will it be possible to have a gauge indicating how much space is used and how much remains ? (BTW is it possible to limit each account size ?) :-)

    Work has been completed on

    rszrama's picture

    Work has been completed on what I consider to be Private Message 2.0. You can login to http://www.ubercart.org to see the finished product. Read about it and download the code here:

    http://www.ubercart.org/forum/announcements/801/site_upgrades

    An issue has been opened for this code to be committed as the new version here:

    http://drupal.org/node/141174

    Please take the time to review this and give the issue a +1 for inclusion. I have no way to get CVS access, but maybe mindless will be impressed and send it in. ;)