Search Results for 'test'
-
AuthorSearch Results
-
January 23, 2007 at 8:08 am #53543
In reply to: Plugin: Forum Restriction
davidbessler
MemberI 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.
January 23, 2007 at 12:37 am #53619In reply to: Plugins / Templates For bbPress 0.8
Sam Bauers
ParticipantI’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.
January 22, 2007 at 9:05 pm #53617In reply to: Plugins / Templates For bbPress 0.8
spencerp
MemberThe 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
January 22, 2007 at 5:43 pm #53590In reply to: Loading option into array
Michael Adams (mdawaffe)
Memberbb_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.
January 22, 2007 at 3:35 pm #53420In reply to: get_latest_topics_where code problem
ardentfrost
MemberI’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 = 4then doOR 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
January 22, 2007 at 3:17 pm #1243Topic: get_latest_topics_where code problem
in forum Pluginsdavidbessler
MemberWhen 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?
January 22, 2007 at 8:56 am #53540In reply to: Plugin: Forum Restriction
davidbessler
MemberUpdated 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.
January 22, 2007 at 4:35 am #1274Topic: integrating bbpress with wordpress
in forum Installationateale
Memberhey 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
January 21, 2007 at 9:49 pm #53404In reply to: for each question
Null
MemberHmm got this now:
<?phpglobal $bbdb;
$r = mysql_query("SELECT * FROM $bbdb->menu
WHEREset= 'active' ORDER BYorderASC");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…January 21, 2007 at 6:40 pm #1272Topic: Loading option into array
in forum Pluginsdavidbessler
MemberSo 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?
January 21, 2007 at 6:25 pm #53580In reply to: Pretty URLs have “replies” argument?
mikros
MemberHmm… 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.
January 21, 2007 at 4:19 pm #52428In reply to: Plugin Request: Forum Categories..
Sam Bauers
Participantspencerp, those issues you mentioned are fixed in the latest patch.
January 21, 2007 at 6:31 am #53453In reply to: Individualized Private Forum
davidbessler
MemberSo 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.
January 20, 2007 at 1:09 pm #52106In reply to: Not latest reply link, but first reply link?
Null
MemberOkay 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…
January 20, 2007 at 11:34 am #51594In reply to: Google Adsense
disier
Memberim 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
January 20, 2007 at 5:33 am #53478In reply to: Looking for the right hook
davidbessler
MemberOK 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]?
January 20, 2007 at 1:44 am #53470Trent Adams
MemberBy 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
January 18, 2007 at 5:37 pm #51960In reply to: Latest bbPress Posts In WordPress
Staffan
MemberYeah, 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!
January 18, 2007 at 4:09 pm #52339In reply to: A phpBB to bbPress database converter
ateale
Memberi 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
January 18, 2007 at 3:58 pm #53442In reply to: RSS links not working
Trent Adams
MemberShort 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
January 18, 2007 at 2:12 pm #51959In reply to: Latest bbPress Posts In WordPress
Atsutane
MemberMaybe u gonna need this plugin

https://downloads.wordpress.org/plugin/bbpress-integration.0.74.zip
January 18, 2007 at 1:23 pm #51691In reply to: Plugin: Post Notification
davidbessler
MemberI 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:
January 18, 2007 at 10:10 am #53426In reply to: Rss feed for latest topics
flaerpen
Memberhehe, of course it’s that simple
. Thanks!
January 18, 2007 at 9:51 am #53425In reply to: Rss feed for latest topics
Trent Adams
MemberYou 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
January 18, 2007 at 9:38 am #51958In reply to: Latest bbPress Posts In WordPress
Staffan
MemberAlright. 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”.
-
AuthorSearch Results