Search Results for 'test'
-
AuthorSearch Results
-
January 21, 2007 at 6:40 pm #1272
Topic: 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”.
January 18, 2007 at 9:23 am #53424In reply to: Rss feed for latest topics
flaerpen
Memberi found how to make the 32 latest topics in the forum! just link to rss.php!
January 18, 2007 at 8:53 am #1247Topic: Rss feed for latest topics
in forum Pluginsflaerpen
MemberHello, is there any way to subscribe to an rss feed for the top 50 latest topics?
I don’t find any plugin and I’m not that good in php to create one by myself. Maybe I/we could change a existing plugin to fit our purpose?
January 17, 2007 at 11:58 pm #51957In reply to: Latest bbPress Posts In WordPress
Atsutane
MemberCorrect me if i wrong .. by default when a user is regis. WP will set the “display name” equal to “username”. I try the code already and i dont get a blank name
Anyway maybe i will change the code to do a double check.
January 17, 2007 at 8:25 pm #53009In reply to: Template: bbPress Forum Theme
Null
MemberDoes any one has a template test page already up? or is there a plugin, so you choose a template from a ddlb and the page shows the forum in the chosen template…
January 17, 2007 at 2:33 pm #51956In reply to: Latest bbPress Posts In WordPress
Staffan
MemberGreat. Thank you! There’s only one little problem: if the user haven’t entered a nickname no name at all is shown. I guess it should be written so that if the user has a nick name – show nick name; if the user dosen’t – show username.
January 17, 2007 at 12:34 pm #51955In reply to: Latest bbPress Posts In WordPress
Atsutane
MemberI update the plugin already .. Now it gonna show “display name” instead of “username” like before. Tell me how it going
January 17, 2007 at 11:14 am #52105In reply to: Not latest reply link, but first reply link?
Null
MemberAny other ideas?
January 16, 2007 at 11:27 am #51954In reply to: Latest bbPress Posts In WordPress
Staffan
MemberDoes anybody know how to combine this great little plugin with the Use display name plugin? I want the it to show my nickname instead of my username.
January 16, 2007 at 11:17 am #53255In reply to: Logout and login problems
Staffan
MemberI updated to 0.75 and that made it work! I thought I had the latest version, but, you know… I didn’t.
Thank you!
-
AuthorSearch Results