Search Results for 'test'
-
AuthorSearch Results
-
October 23, 2009 at 4:43 pm #80786
Adam Harley (Kawauso)
MemberThe Warning message is because forwards depend on sending headers. Different headers are sent automatically however if there’s any text returned by a PHP file that’s loaded, which is a common problem created by whitespace around the
<?php ?>tags. If text headers are sent, you can’t send a redirect header, thus the warning and the breaking of redirects.October 23, 2009 at 4:15 pm #80785whey
MemberI have no idea, it is quite confusing to me seems it screws up any kind of forward (even those that have nothing to do with posting, plugin deactivate, edit/change appearance, logout, etc).
Might it have somthing to do with this part of the plugin:
{ $where.=” AND forum_id != “.$forum.” “; }}
return $where;
because it does not seem to be working, does this need to be changed to something else in order to function in 1.0.2?
You can see for yourself what happens by registering:
http://voices.snailface.com/register.php
Starting to bug me a bit, nothing I try solves the issue.
October 23, 2009 at 3:16 pm #80418In reply to: Import bbpress users into buddypress?
citizenkeith
ParticipantNevermind… I figured that part out.

@HSeatSleeper: Can you talk a little bit more about the special care you gave to the admin account? When testing, I got locked out of my blog as well, and couldn’t figure out why (my wp_1_capabilities were set correctly, as was user_level).
Can you easily list the steps you took to secure the admin account? Thanks!
October 23, 2009 at 3:00 pm #80784chrishajer
ParticipantWhat is the plugin supposed to do with regard to those things? I thought the plugin just excluded replies from certain forums from the list of latest discussions. I didn’t know it was related to redirection or forwarding.
October 23, 2009 at 1:45 pm #32136Topic: Skipping code in .php files and CSS.
in forum InstallationOctober 23, 2009 at 5:30 am #32132Topic: Custom Theme
in forum ThemesPickledPC
MemberAlright I have my site at pickledpc.com and the forums at pickledpc.com/forums/
I’m trying to apply my wordpress theme to the forums to make it all look the same. I haven’t the slightest idea of where to start. I have tinkered with the style.css but can’t get anywhere. Any pointers? A good place to start?
Thanks
October 23, 2009 at 4:36 am #32133Topic: Can I put the 'categories' at the top of my forums?
in forum Troubleshootingfifthhouse
MemberI am interested to display my forum categories at the top of my forums rather than the latest discussions. Is this possible?
October 23, 2009 at 4:29 am #80783whey
MemberEven with all those things changed the plugin does no redirect or allow you to logout so I guess something is messing up with the forwarding?
October 23, 2009 at 4:20 am #80782chrishajer
ParticipantIf you have full access to the server, it’s good practice to log PHP errors and warnings rather than display them to the browser. That’s done in php.ini.
October 23, 2009 at 4:19 am #80781chrishajer
ParticipantAre you using permalinks? Did you already have an .htaccess and add the error handling lines to it?
October 23, 2009 at 3:56 am #80780whey
MemberOkay I added Htaccess and now the error does not appear however when i post it does not forward me back to the forum is just gets stuck on a white screen on the bb-post.php screen….
October 23, 2009 at 3:11 am #80779whey
MemberGot full access to the server. What is the best means of doing this but only affecting only this site? The plugin makes an error for any change not just posts (ie any kind of update) gives a similar warning.
October 23, 2009 at 2:59 am #80778chrishajer
ParticipantHere’s one way:
http://perishablepress.com/press/2008/01/14/advanced-php-error-handling-via-htaccess/
I’m assuming you’re on shared hosting. If you have more control over the server, there are better ways to do it than with an override in .htaccess.
October 23, 2009 at 2:18 am #80777whey
MemberHow can I do that?
October 23, 2009 at 12:50 am #80776chrishajer
ParticipantI have the same problem in one browser, no problem in another browser (I had the warnings showing in Firefox but not in IE.) If it’s just a warning and it works, maybe you just need to not display warnings to visitors?
October 23, 2009 at 12:44 am #80775whey
MemberYes it states:
Warning: Cannot modify header information – headers already sent by (output started at /public_html/voices/my-plugins/exclude-forum.php:13) in /public_html/voices/bb-includes/functions.bb-pluggable.php on line 232
That is with or without any other plugin installed.
October 23, 2009 at 12:36 am #80774chrishajer
ParticipantDoes the error message you are seeing say “Warning:” at the beginning of it?
October 23, 2009 at 12:16 am #80773Adam Harley (Kawauso)
MemberYou have a space or a line return around your code tags.
October 22, 2009 at 11:18 pm #80772whey
MemberThe plugin works except whenever you post you get that “headers already sent by (output started at /home/whey/public_html/voices/my-plugins/exclude-forum.php:13) in /public_html/voices/bb-includes/functions.bb-pluggable.php on line 232” error. It still posts but it would be in the way seems in affects every post (thread and reply). Trying to figure away around it but I am not the best at PHP
October 22, 2009 at 10:40 pm #80771chrishajer
ParticipantActually, trying in another browser, I am able to exclude some forums by adding them to the array there.
Do you have other plugins installed that might be in conflict?
(Guess I should turn off PHP warnings, eh?)
October 22, 2009 at 10:35 pm #80770chrishajer
ParticipantI couldn’t even activate that; I got an error on bb-includes/functions.bb-meta.php line 708 and 709.
That’s not related to your problem though. Sorry I can’t try this out for you.
I’m running 1.0.1.
Update: Just upgraded to 1.0.2 and tried again. Same errors. Those are just about cookies though. Not sure what’s going on there.
October 22, 2009 at 7:29 pm #80769whey
Member<?php
/*
Plugin Name: exclude
*/
function filter_front_page_topics($where){
$exclude_forums=array (“13″,”19”); // enable this to manually specify specific forums by id #
// $forums = get_forums(); foreach ($forums as $forum) {if ($forum->forum_parent) {$exclude_forums[]=$forum->forum_id;}} // exclude ALL sub-forums
if ( is_front() ) {foreach($exclude_forums as $forum) { $where.=” AND forum_id != “.$forum.” “; }}
return $where;
}
add_filter( ‘get_latest_topics_where’, ‘filter_front_page_topics’);
add_filter( ‘get_latest_posts_where’, ‘filter_front_page_topics’);
?>
October 22, 2009 at 6:51 pm #80768chrishajer
ParticipantCan you post the full code of
exclude-forum.phpplease? If it’s too long, use something like pastebin rather than posting here.If you post here, be sure to wrap code in backticks
`, usually above the tab key on a US keyboard.October 22, 2009 at 5:18 pm #50318In reply to: Combined Register + Post
johnhiler
MemberIf your concept of the site depends on this plugin, you may want to consider hiring a developer (like Kawauso!) to build and test it for you…
Regarding waiting for the password over email – you can address that with this plugin! I use it on all my sites and can vouch for it:
https://bbpress.org/plugins/topic/instant-password/
This may also simplify the registration process… I haven’t used this one yet though:
https://bbpress.org/plugins/topic/openid/
Good luck!
October 22, 2009 at 5:13 pm #80767whey
MemberIt works but it keeps bringing up this error (which is diffent the solution suggested in the post, which does not solve the issue in 1.0.2 apparently).
The error when just using the plugin:
Warning: Cannot modify header information – headers already sent by (output started at /home/whey/public_html/voices/my-plugins/exclude-forum.php:13) in /public_html/voices/bb-includes/functions.bb-pluggable.php on line 232
The error when using the plugin and amending the function bb_latest_topics_pages() in functions.bb-template.php:
Parse error: syntax error, unexpected T_STRING in /public_html/voices/bb-includes/functions.bb-template.php on line 666
Any ideas?
Cheers!
-
AuthorSearch Results
In CSS I use /*………*/ for a few lines of code or ……..// for just a line so that code is skipped or avoided. Will this work in a .php file also? I would like to skip code to test it out without deleting the original code. Just want to mask the original code so I can go back to it if I make a mistake.
Thank you.