davidbessler (@davidbessler)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 37 total)

  • davidbessler
    Member

    @davidbessler

    Have you installed the display names plugin? If not, try that.

    I have it working on 0.8

    If you put someone’s name in and not your own, in the field, it will hide the field from you even if you are the admin.

    Please keep me posted if you do or don’t get it to work.


    davidbessler
    Member

    @davidbessler

    Hey I need some help solving the RSS problem for my plugin. I don’t really know how most people use RSS so I can’t figure out what changes need to be made. For me, I have Private Forums and Forum Restriction BOTH enabled, and as far as I can see, RSS is unfettered unpassword-protected acess to the info on the board. I can’t really see how anyone would want that. Can someone explain what the permissions of RSS on bbPress might look like? I can’t fix the problem if I don’t use the feature.


    davidbessler
    Member

    @davidbessler

    An educated consumer is our best customer. Take a look at Drupal (www.drupal.org) and Joomla (www.joomla.org), as these may be more along the lines of what you are looking for. They are the equivalent of the all-inclusive resort of online community systems. They offer a lot of what you are looking for almost out of the box. The idea behind bbpress is that while WordPress is a great system for blooging and news (A few people write, lots of people read), it did not offer anything in the way of serious egalitarian discussion, like many conventional message boards. So, bbPress was born to fill that gap. But, it was just born. I think, the future lies in modular community bulding, where people pick and choose each module of their system, and they all work together. bbPress is along those lines, and that’s why I love it. However, if you want to plop a community down on the web with all sorts of gadgetry, chattery, and photo-uploadery, check out Drupal, Joomla, or some of the other CMS (Content Management Systems) … Check this out http://en.wikipedia.org/wiki/List_of_content_management_systems

    Sorry, fellow bbPressers, I have to give an honest opinion.

    So, again, bbPress and WordPress are like booking a vacation to the far east and choosing a great hotel your friends recommended, then reserving a spot on a cool mountain-climbing excursion you read about in a magazine, and then dining at that revolving restaurant you had always heard about etc … Drupal or any other CMS, is like calling 1-800-awesome-trips, plunking down your credit card, and relying on them to decide all those things for you. Truth is, you may have an AWESOME vacation EITHER way. It depends on the person. And THAT’S the truth.


    davidbessler
    Member

    @davidbessler

    Oops. Don’t know why that was happening. I fixed it and uploaded the new version. Redownload it now. I also put up the official new version.


    davidbessler
    Member

    @davidbessler

    I uploaded version 1.5 to my site where I store the file. I have not added it to the main repository yet because I am away and don’t have tortoise set up to subversion it. Try version 1.5 and let me know if it fixes your problem. You can download the soon-to-be-outdated 1.4 here. The new version 1.5 is as usual available from the link at the top of this topic.

    In reply to: post or reply by email

    davidbessler
    Member

    @davidbessler

    Thanks Nate, I’ll look into that … must’ve gotten lost in the shuffle when I migrated.

    Can someone point me in the right direction to get started? Main issue is how do I get bbpress to “receive” email? Does this HAVE TO involve cron jobs etc …?

    I’ve been having this problem with bbpress.org forum. not just mine.

    Problem: With forum restriction, I use the following code to filter topics with the default views:

    function forum_restriction_list_of_allowed_forums($user) {

    global $forum_restriction_allowed_in_forum,$bb_current_user;

    foreach ($forum_restriction_allowed_in_forum as $forum_number => $forum_memberlist){

    if (ereg(get_user_name($user),$forum_memberlist) || $forum_memberlist ==''){

    $list_of_allowed_forums .= "'".$forum_number."',";

    }

    }

    $list_of_allowed_forums = rtrim($list_of_allowed_forums,",");

    return $list_of_allowed_forums;

    }

    // FILTER TOPICS

    function forum_restriction_get_latest_topics_where( $where ) {

    if (bb_is_user_logged_in()) {

    global $bb_current_user;

    $list_of_allowed_forums = forum_restriction_list_of_allowed_forums($bb_current_user->ID);

    $where .= " AND forum_id IN ($list_of_allowed_forums) ";

    echo "where is set to: $where";

    return $where;

    } else {

    return $where;

    }

    }

    add_filter ( 'get_latest_topics_where', 'forum_restriction_get_latest_topics_where' );

    The problem is this doesn’t work with bb_custom_views used by since-last-visit.php. It seems the plugin changes the $where AFTER forum-restriction has already tried to filter the $where.

    How do I get forum_restriction_get_latest_topic_where to add ” AND forum_id IN ($list_of_allowed_forums) ” to $where AFTER since-last-post sets $where?

    Kapish?

    Can someone tell me how to include the text of the first post in the new topic in the notification email. Here is the code I am using:

    function forum_restriction_send_email ($topic_id){

    if (bb_get_option('forum_restriction_notify') == "on") {

    global $forum_restriction_allowed_in_forum, $bbdb, $bb_current_user;

    $topic = get_topic($topic_id);

    $forum = $topic->forum_id;

    $mailing_list = split(",",$forum_restriction_allowed_in_forum[$forum]);

    $message = __("There is a new topic called: %1$s. You can see it here %3$s. You got this email because Bessler decided to turn on the option to notify all members of restricted forums when there are new TOPICS started in each FORUM. However, don't forget to click on "Add this topic to your favorites" so that you get an email when someone adds a POST to this TOPIC. This will keep you involved in that particular discussion. Kapish?");

    foreach ($mailing_list as $member) {

    $userdata = $bbdb->get_var("SELECT ID FROM $bbdb->users WHERE display_name = '$member'");

    $email_address .= $bbdb->get_var("SELECT user_email FROM $bbdb->users WHERE ID='$userdata'").",";

    }

    mail( $email_address, '['.bb_get_option('name') . '] ' . __('New Topic In Private Forum:').get_forum_name($forum),

    sprintf( $message, $topic->topic_title, get_user_name($bb_current_user->ID), get_topic_link($topic_id) ),

    'From: ' . bb_get_option('admin_email')

    );

    }

    }

    add_action('bb_new_topic', 'forum_restriction_send_email');

    See? I knew someone was working on something like that.

    Give us an example of what you mean. Use the bbPress forums as an example if you can:

    Installation — Getting it up and running

    Troubleshooting — Fixing it when it’s broke

    Templates — Making it look purtee

    Plugins — Making it do what it ain’t supposed to

    Requests and Feedback — Tell us what you’re thinking

    I think I saw someone working on forum-grouping or someting. Otherwise, I can see what I can do.

    I see the problem. I am trying to work on a solution. In the meantime, I completely disabled my rss by renaming rss.php. Let me know if you come up with a solution.

    Does the idea of RSS and private forums make sense? Is there a way to be “logged” in when getting RSS feeds? I don’t use RSS so I don’t know. I do know that none of my users use RSS because I use bbpress on an internal company site. So, I diables rss for the meantime by renaming my rss.php file.

    I would love for someone to shed some light on all this.

    Yikes! I’ll have to check into that. In the meantime, I’ve posted yet ANOTHER version. This one corrects that annoying reload problem amenadiel was talking about. It also adds an error message if you use a name that doesn’t exist. THIS VERSION REQUIRES THE Display-names.php plugin. Until I can find a workaround for the issue. I figured I’d err on the side of added functionality.

    Anyway, the new version can be downloaded above as usual. Here is a link to the outdated version 1.3

    My pleasure. I still can’t figure out why it doesn’t register right away. But, it’s not at the top pf my list for problems to figure out. If you DO solve it, please let me know. Did you get version 1.3 working amenadiel?

    OK. Here it is. Version 1.3. Download it above … same link. As always, here’s a link to the previous outdated version.

    Releasing 1.3 tonight. There is no table called forum_restriction_db. I am storing the variable via the bb_update_option() function. Try v1.3 and let me know what happens.

    Well it’s nice to see I’m not alone. I think it’s interesting how programming has gone to the dummies. Is this still considered programming?

    In reply to: AWFULL DESIGN

    ALL CAPS. AWFUL HABIT. AWFUL SENTENCE STRUCTURE.

    In reply to: onvertigo.com forums

    Just gotta put in my 2 cents. I know it’s not bbpress, but my son, Noah Darwin, has a wordpress blog … though it’s a bit out of date. And he’s only 15 months old.

    NoahBessler.com

    I use the new site option plugin (which is easy and great by the way). I stole the admin page setup from private forums by Aditya Naik. My bbress board is tiny (testing only) so I imagine all sorts of stuff will pop up as it’s used on bigger sites. Thanks for your help.

    Updated to version 1.2. Changes below. Download link is same as in first post. Here is a link to the OLDER version 1.1

    Wow! Things are moving right along. I figured out how to actually HIDE the non-accesible forums and their topics from those not authorized. Still needs lots of help.

    Updated to version 1.1. Changes below. Download link is same as in first post. Here is a link to the OLDER version 1.0

    == Version History ==

    * 1.1

    – Added admin user interface

    – Using MYSQL database rather than flat file in plugin

    – Added comments so you people start helping make this thing work

    – Tested with “private-forums.php”

    == Known Issues and Wishlist ==

    1. PROBLEM: Does not hide names or listing of restricted forums from those not authorized to see them.

    instead, it adds an [x] before the forum name, and removes the link to the forum. Same goes for topic listings under “recent discussions.”

    SOLUTION: I need someone to explain to me how to hijack the entire row of the forum listing in front-page.php

    2. PROBLEM: In admin user interface, you have to press submit twice to get the input fields to reflect the actual changes you made.

    The database changes go through the first time, but the input fields don’t update.

    SOLUTION: Again, need someone to help me figure this out.

    3. PROBLEM: Would like a more efficient way to choose and enter allowed users.

    This is really a layout problem.

    I don’t think a dropdown list allowing multiple selects is the answer, because of the ease of which one can accidentally unselect one or all!! the chosen users.

    I’m not so keen on the idea of a huge page with all the users listed with checkboxes.

    SOLUTION: Either stick with the way I have it now, or rework the plugin so that the array works as follows:

    “username” => “CSV list of allowed forums”, and then have one huge member list where you can select forums in which they are allowed.

    I chose my way because the way I intend to use the plugin is to have a large number of forums with only a few members allowed in each.

    That is also why it is so important to me to HIDE the restricted forums on the front-page.

    So I abandoned the whole idea of modifying the plugin: private-forums, and instead made a makeshift plugin from scratch which serves my needs for restricting certain forums to specified individuals. Where can I post it so people can start making fun of me?

    What it does and doesn’t do:

    Does:

    1) require that you edit the plugin file and add individuals’ names to an array consisting of restricted forums.

    2) Adds a little [x] next to forums from which the current user is restricted

    3) In true-ghetto fashion removes the link to the forum for those restricted forums

    4) Does the same (X and link removal)for topics listed in “latest discussions” belonging to restricted forums.

    5) Attempts to directly acess the forums via forum.php and topic.php redirects you (again … really ghetto) to the front-page

    Doesn’t (kind of a wish list).

    1) Have any sort of GUI to add and remove users from restricted forums

    2) Hide the forum and its associated topics from being listed at all on the front-page

    3) Load an actual page with an actual message stating that you are not allowed in the forum, during attempts to directly access the forums, rather than redirect you back to the front-page.

    So, this is my first attempt at a plugin. Please help me improve it. Now where can I post it?

    Download it here.

    Figured it out. Kind of dumb. $topic->forum_id

Viewing 25 replies - 1 through 25 (of 37 total)