Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 11,276 through 11,300 (of 11,523 total)
  • Author
    Search Results
  • #53543
    davidbessler
    Member

    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.

    #53619
    Sam Bauers
    Participant

    I’m working on a revised patch file for categories to accommodate the latest builds with the new templating file structure. Although it seems to be just me and spencerp who are using it. Of course, if you are customising your templates, then you will still have to edit your own based on the changes to the default theme.

    #53617
    spencerp
    Member

    The only thing I’m worried about now is, the fact that I’m running the Forum Category enhancement. I’ve currently modified the 0.8alpha files, however, I haven’t gotten the “latest” svn commits yet, including what you’ve mentioned above..

    I *could* just manually keep editing my files, as they come through the email list, but IMHO, it’d be more of a pain in the arse that way sigh. I guess what I’m saying is, I’d love it if they’d implement that Forum Category option into 0.8, rather then 1.0.

    It’s running just fine for me, except for customizing the look of it and such. The other thing is, it’s really a pain in the arse as it is now, because I’ve implemented my blog’s theme around the forums themselves.

    So either way, I’m screwed with tons of file edits. :( I don’t know though, I’m too tired at this point to even do any file editing/uploading.. Maybe when I get up later, I’ll handle some of this stuff..

    As for the plugins, I’m hoping Josh takes care of his lol. His plugins are about the only plugins I have going, besides the normal original bbPress plugins lol. Anyway, enough of my rambling, I’m tired as heck, and everyone’s tired of it anyway… so.. later people..

    spencerp

    #53590

    bb_update_option( 'forum_restriction_db', array( "1" => "David Bessler,testman", "3" => "David Bessler" ) );

    $value = bb_get_option( 'forum_restriction_db' );

    That’s how it should work.

    #53420
    ardentfrost
    Member

    I’m not absolutely sure about this, but it seems that SQL will want you to be more explicit. You need to break up the list (4 and 1) and add different strings to the where. So, for the first add WHERE forum_id = 4 then do OR forum_id = 1. Every subsequent forum id query should also start with an OR.

    That’s what I think at least. It’s worth a shot :)

    #1243
    davidbessler
    Member

    When I use the following code in a plugin:

    function forum_restriction_get_topics_where_plugin( $where ) {

    if ( is_front() ) {

    $list_of_allowed_forums = "4,1";

    $where = "WHERE forum_id IN ('$list_of_allowed_forums') ";

    $where .= " AND topic_sticky <> 2 ";

    return $where;

    } else {

    return $where;

    }

    }

    add_filter ( 'get_latest_topics_where', 'forum_restriction_get_topics_where_plugin' );

    I expect it to list the topics belonging to forums with ID 4 and ID 1. Instead, it is only listing topics with forum 4. When I change them to (1,4) it only lists 1. It seems it is only seeing the first value in the string. Any ideas why?

    #53540
    davidbessler
    Member

    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.

    #1274
    ateale
    Member

    hey guys,

    i have followed the instructions on the forums/extend for intgegrating bbpress and wordpress.

    It all seems to work – bbpress knows about the wordpress users.

    Only problem is that i have to login to both wordpress & bbpress seperately – I thought it was supposed to support 1 login for both – using the same cookie or something?

    the test site is:

    blog.lumanation.com

    the forums link at the top takes you to the bbpress install

    any help would be greatly appreciated! :)

    also – any ideas on how to embed the bbpress install into wordpress – is it just a matter of hacking up the bbpress templates or is there a more elegant way similar to the wordpress rs-discuss/xdforum plugins?

    Cheers!

    Adam

    #53404

    In reply to: for each question

    Null
    Member

    Hmm got this now:

    <?php

    global $bbdb;

    $r = mysql_query("SELECT * FROM $bbdb->menu WHERE set = 'active' ORDER BY order ASC");

    while($rw = mysql_fetch_array($r))

    $class="";

    if ($rw['is']) { $class .=" current" }

    {

    echo '<li><a class="$current" href="'.$rw['page'].'">'.$rw['item'].'</a></li>';

    }

    ?>

    But this gives me an error:

    Parse error: parse error, unexpected ‘}’ on line 71

    Think I have misplaced something here?

    Greetz

    ps I didn’t include $uri=option("uri").$rw["page"]; at all cause I wanted to test this first. So I keep it out for now…

    #1272
    davidbessler
    Member

    So I have stored an option called forum_restriction_db. It has the value of:

    “1” => “David Bessler,testman”, “3” => “David Bessler”,

    When I try to assign that array to a varaiable as follows:

    $forum_restriction_allowed_in_forum = array(bb_get_option(‘forum_restriction_db’));

    It tells me the value of $forum_restriction_allowed_in_forum is just array.

    I tried setting the value of the option forum_restriction_db to array("1" => "David Bessler,testman", "3" => "David Bessler",)

    but then it spits back the members of the array as a,r,r,a,y etc … so the allowed memebrs of the forum_id 3 is “r”.

    How can I get this to work?

    #53580
    mikros
    Member

    Hmm… last night, the bbpress “latest discussion” links did not have the “replies” bit. This morning they sure do though.

    Interesting point about the RSS feeds. Because each post does not have its own URL, I guess this is a way to simulate it. Still, it seems there should be a “pretty” option for that as well. Something like:

    http://example.com/topic/1/post/3

    Instead of:

    http://example.com/topic/1?replies=3

    I may explore this with some mod_redirect rules and a little code hacking. Any bbpress devs around that can chime in? In my experience with Google (and others), it’s notably easier to get URLs like the first example above indexed.

    #52428
    Sam Bauers
    Participant

    spencerp, those issues you mentioned are fixed in the latest patch.

    #53453
    davidbessler
    Member

    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.

    #52106
    Null
    Member

    Okay I have an idea, it is possible (with a plugin) to add an anchor as soon as some one adds a first reply?

    So when replying, it checks first if there is 1 post in the topic. If it is, it adds a anchor (or get its anchor) if it isnt (there are 0 or >2 more posts) it does nothing. Then it can generate a first-reply link…

    Well in theory…

    #51594

    In reply to: Google Adsense

    disier
    Member

    im using the latest version 0.75, and the only plugin the i have is allow image.

    I uninstalled right now because when my friend register in my board and try to login we get that error and can“t login i will delete allow image to see if that plugin is the one of the trouble

    #53478
    davidbessler
    Member

    OK look at this:

    $forum_restrict_keys = array(

    "1" => "davidbessler,testman",

    "3" => "davidbessler,",

    );

    function forum_restrict_check_name() {

    global $bb_current_user,$forum_restrict_keys;

    if ($bb_current_user){

    $allowed = strpos($forum_restrict_keys[get_forum_id()], get_user_name( $bb_current_user->ID ));

    if ($allowed == "") {

    echo "[blocked]";

    add_filter( 'get_forum_name', 'forum_restrict_blank_name');

    } else {

    echo "[Not blocked]";

    }

    }

    }

    function forum_restrict_blank_name (){

    echo "";

    }

    add_action( 'get_forum_name', 'forum_restrict_check_name');

    ?>

    That puts [blocked] instead of the forum name in a forum that user is not allowed to see, and [not blocked] on a forum he is allowed to see. How do I get the forum name back in there instead of [not blocked]?

    Trent Adams
    Member

    By default, the bbpress-integration.php plugin that you are using in WordPress brings over the registrations from bbPress and gives them the default role that you have for WordPress. That would mean that if they are given author status then that would be the default role for new members in WordPress. Maybe check that out.

    I tested this on my test forum and then changed the default role from subscriber to admin and sure enough the new user that I created came across in WP as an admin.

    Trent

    #51960
    Staffan
    Member

    Yeah, I’ve got that. Seems like this might be something to add to the next version of that plugin.

    Anyway, thanks again Atsutane for your great plugin and the fast updates!

    #52339
    ateale
    Member

    i believe it is the latest version – i downloaded it today – .75 i think

    it would be so so so nice if this works!

    Cheers Trent

    #53442

    In reply to: RSS links not working

    Trent Adams
    Member

    Short of the obvious stupid answer (upgrade or quit using IE :-) I think we need to test this out with more IE6 users. I think I have one old PC kicking around and will do some testing on this.

    Trent

    #51959
    Atsutane
    Member
    #51691
    davidbessler
    Member

    I tested it out and it sent me an email when I posted a new topic. That works for now. But, like we said, an “add forum to favorites” plugin is needed. For anyone reading this, what we are talking about is strictly for the plugin called notification_all.php which can be foun here:

    https://bbpress.org/forums/topic/313?replies=34#post-1784

    #53426
    flaerpen
    Member

    hehe, of course it’s that simple :P. Thanks!

    #53425
    Trent Adams
    Member

    You can actually edit rss.php to get it to 50 if you want as well! Just search for the number ’32’ in that file ;)

    Trent

    #51958
    Staffan
    Member

    Alright. I’ve done some investigations and I think I know why I get a blank space: when a new user registers through bbPress it seems like he’s not given any “display name”.

Viewing 25 results - 11,276 through 11,300 (of 11,523 total)
Skip to toolbar