Search Results for 'code'
-
AuthorSearch Results
-
June 30, 2009 at 4:25 am #74732
In reply to: Just one more… release candidate 1.0-RC-3
_ck_
ParticipantIpstenu, what you have done is disable all the security entirely on the allow images plugin.
Kind of defeats the purpose of the plugin which could then be accomplished with just two lines.
add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
function allow_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array()); return $tags;}MDA really needs to update that one, it’s becoming ancient now.
June 30, 2009 at 3:58 am #75160In reply to: navigation bar in BuddyPress in BBPress
r-a-y
ParticipantHi guys,
FYI, I’ve updated the code for the BuddyPress bar in bbPress:
https://buddypress.org/forums/topic.php?id=1152#post-18510
It uses bbPress’ header and footer hooks, instead of WordPress’.
The BP bar now also works in the bbPress admin area as well!
June 30, 2009 at 3:26 am #74311In reply to: Convert WP Super Cache plug-in for bbPress ?
johnhiler
MemberFrooyo – I think you are going to set a record for posting the same thing over and over!
June 29, 2009 at 11:05 pm #75183In reply to: My posts are all too cramped
michael3185
Member.threadpost {
font-size: 11.5pt; /* Post content */
padding: 16px 10px;
margin-left: 140px;
}June 29, 2009 at 10:19 pm #74731In reply to: Just one more… release candidate 1.0-RC-3
the_Wish
MemberThanks for the suggestion, Ipstenu.
I think bbcode-lite has me covered for now, I dumped Allow Images altogether.
June 29, 2009 at 8:32 pm #75036In reply to: Error messages with bbPress and WP’s WP_CACHE
r-a-y
ParticipantJune 29, 2009 at 6:46 pm #15125Topic: Integrating logins between bbPress and other app
in forum Troubleshootingandrewjensen
MemberMy company created an online support application for a product a few years ago. We’re now working on installing a bbPress forum but would like to combine user logins so they can sign in to the support site and the forum at the same time.
I need to integrate with login, logout, register, and block. The bbPress code is a little overwhelming all at once, and I couldn’t find any documentation about integration with third-party software, so here I am. Can anyone get me started? Should I try to build this into a plugin, or a script that the support app runs on login? And which bbPress functions will I need to hook into or rewrite? Thanks a ton!
June 29, 2009 at 5:54 pm #74799In reply to: List of Plugins that work on RC3
Ipstenu (Mika Epstein)
ModeratorAllow Images works if you change this:
remove_filter( 'pre_post', 'bb_encode_bad' );
add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
add_filter( 'pre_post', 'allow_images', 52 );
add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );to this
// remove_filter( 'pre_post', 'encode_bad' );
// add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
// add_filter( 'pre_post', 'allow_images', 52 );
add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );June 29, 2009 at 5:34 pm #75170In reply to: bb_meta corrupted?
citizenkeith
ParticipantOther than make another backup right now?
Already done.
I’m really concerned with all these MySQL errors I’m getting with MediaTemple. I’d love to find a solid, reliable host in the same price range, but I suppose you get what you pay for.
June 29, 2009 at 3:31 pm #74730In reply to: Just one more… release candidate 1.0-RC-3
Ipstenu (Mika Epstein)
ModeratorI was about to say “I use Allow Images without any problem”, but when I went to look at my files, I found I have an allow-images.php and an allow-images.orig … Clearly I found shenanigans somewhere down the road.
Change this:
remove_filter( 'pre_post', 'bb_encode_bad' );
add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
add_filter( 'pre_post', 'allow_images', 52 );
add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );to this
// remove_filter( 'pre_post', 'encode_bad' );
// add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
// add_filter( 'pre_post', 'allow_images', 52 );
add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );And Allow Images should work.
June 29, 2009 at 2:52 pm #75035In reply to: Error messages with bbPress and WP’s WP_CACHE
Sam Bauers
ParticipantThere is a major incompatibility between the memcached WP_Object_Cache class that is out there and BackPress. I’m about to add a newer class to BackPress itself that will replace the currently available one.
Once that class is added to BackPress it should fix these problems and a few others I’ve found. You’ll be able to use the new class by adding the following define to your config:
define( 'BB_OBJECT_CACHE_TYPE', 'memcached' );
This will be part of bbPress 1.0
June 29, 2009 at 2:36 pm #75130In reply to: How to print all user profiles
iang
MemberThanks Sam…this is exactly what I needed to get me going after being stuck for days
For completeness, here is the first working version of my code:
<?php
require_once(‘../bb-load.php’);
bb_get_header();
?>
<script src=”../my-js/sorttable.js”></script>
<?php
$tbl_header=<<<EOD
</br>
<h3><center><font color=”#880000″>WBS80 Registered Users</font></center></h3>
<center><i><font size=”2″>(click on table header to sort</font>)</i></center>
</br>
<table class=”sortable” width=’100%’ border=’1′ cellpadding=’4′ cellspacing=’0′ align=’center’>
<tr>
<th>lname</th>
<th>fname</th>
<th>email</th>
<th>city</th>
<th>state/province</th>
<th>country</th>
</tr>
EOD;
$user_ids = $bbdb->get_col( “SELECT ID FROM $bbdb->users WHERE user_status = 0 ORDER BY id;”, 0 );
foreach ($user_ids as $key => $value) {
if ($value == 1) {
continue;
}
$users = bb_get_user( $value );
$lname = strtolower($users->last_name);
$fname = strtolower($users->first_name);
$email = strtolower($users->user_email);
$city = strtolower($users->city);
$state = strtolower($users->state);
$country = strtolower($users->country);
$tbl_info .=<<<EOD
<tr>
<td>$lname</td>
<td>$fname</td>
<td>$email</td>
<td>$city</td>
<td>$state</td>
<td>$country</td>
</tr>
EOD;
}
$tbl_footer = “</table>”;
$tbl =<<<TBL
$tbl_header
$tbl_info
$tbl_footer
TBL;
print $tbl;
?>
<p><h3 id=”tag”>AGE QUOD AGIS</h3></p>
<?php bb_get_footer(); ?>
June 29, 2009 at 2:27 pm #15119Topic: “Forum Could Not Be Created”
in forum Installationsmfadmin
MemberHi everyone…I read some posts about this problem, but wanted to find out if a different or new solution had come about. I’ve read about an issue with PHP version 5 and needing to add code to the .htaccess file. I’ve also read about adding “dummy” lines to the database file. I wondered if there are any other solutions that might be easier to understand for someone with no coding skills. I am trying to integrate WP and BBPress. My site is brand new so I can reinstall everything if I have to. I saw the really great screencast that someone did, too. That was really helpful except that it didn’t work.
The error I get says “Forum could not be created”.
June 29, 2009 at 1:46 pm #75156In reply to: navigation bar in BuddyPress in BBPress
allenweiss
Memberthanks..just did that and get
Fatal error: Call to undefined function wp_head() in /home/alumnide/public_html/forum/bb-templates/kakumei/header.php on line 33
am I still missing some code?
June 29, 2009 at 1:22 pm #75154In reply to: navigation bar in BuddyPress in BBPress
allenweiss
MemberOk..thanks…well, this is what I did, but it doesn’t work. I followed the advice given in the link above:
1. Created a function called functions.php inside my template folder (bb-templates/kakumei/functions.php) and put in it the code:
function recreate_bb_admin_bar() {
echo ‘<div id=”wp-admin-bar”><ul class=”main-nav”>’;
bp_adminbar_logo();
bp_adminbar_login_menu();
bp_adminbar_account_menu();
bp_adminbar_blogs_menu();
bp_adminbar_notifications_menu();
bp_adminbar_authors_menu();
bp_adminbar_random_menu();
echo ‘</div>’;
}
add_action( ‘wp_footer’, ‘recreate_bb_admin_bar’, 8 );
add_action( ‘admin_footer’, ‘recreate_bb_admin_bar’ );
add_action( ‘wp_head’, ‘bp_core_admin_bar_css’, 1 );
2. Added to my bb-config.php file, this line
require_once(‘../wp-blog-header.php’);
Am I still missing something? Thanks
June 29, 2009 at 1:01 pm #75166In reply to: Problems in Step 1 installer
andywilliams244
MemberOk, now when I’ve added all the settings it’s giving me this error message on another screen.
Warning: fopen(
Hosting4030532htmlForums/bb-config.php) [function.fopen]: failed to open stream: Permission denied in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1036
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043
Warning: fclose(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1050
Warning: chmod() [function.chmod]: No such file or directory in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1052
Warning: Cannot modify header information – headers already sent by (output started at
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php:1043) in
Hosting4030532htmlForumsbb-includesfunctions.bb-core.php on line 1095
June 29, 2009 at 12:40 pm #15123Topic: Problems in Step 1 installer
in forum Installationandywilliams244
MemberI’ve been inputting my
Database name
Database user
Database password
exactly how they appear in “wp-config” (copy & pasted) but it keeps telling me
“There was a problem connecting to the database you specified.
Please check the settings, then try again.”
I’m guessing it has something to do with the advanced settings, which I have not changed. I’m with GoDaddy but it said in 99% of all cases you should leave it the same.
Any help guys?
June 29, 2009 at 8:52 am #75147In reply to: Authentication check on non-WP page
Ashish Kumar (Ashfame)
ParticipantWhy not load the bbPress environment and then call function to check is user is logged in? I have done the same in WP, so I think it might be possible in bbPress very easily too.
For WP
// load the WP environment so that I can call on the WP functions to make sure that user is logged in before accessing members area
require( dirname(__FILE__) . '/wp-load.php' );
if (!is_user_logged_in()) // You can't access the members area without login. Now can you?
{
auth_redirect();
}For bbPress, it should be like
require('./bb-load.php');
// find the name of the function you will needJune 29, 2009 at 6:02 am #75040In reply to: Installation throws errors
yeknomedoc
Member*push*
June 28, 2009 at 11:59 pm #75141In reply to: Would this be the right thing for me?
andywilliams244
MemberThanks guys. I must say this forum is very friendly. I will definately give this a go. If I have any problems I won’t hesitate to come back
June 28, 2009 at 11:13 pm #75152In reply to: navigation bar in BuddyPress in BBPress
allenweiss
MemberHmm..it looks like they say to use the functions.php file (for the theme) to add the code, but I don’t see such a functions file…am I missing something obvious?
June 28, 2009 at 9:53 pm #75143In reply to: How can I disable HTML in posts?
chrishajer
ParticipantThe allowable HTML tags are in an array called
bb_allowed_tags
. I think you could create a plugin that just empties that array.https://bbpress.org/forums/topic/hooks-038-filters-docu#post-6740
I’ve only seen people requesting the opposite, allowing additional HTML markup, so I’m not sure exactly how to do this.
June 28, 2009 at 9:05 pm #75146In reply to: Authentication check on non-WP page
michael3185
MemberI use this to stop people accessing the profile page unless logged-in;
<?php if ( !bb_is_user_logged_in() ) {
show_error_page('log-in to access profiles');
exit;
} ?>Something along those line should work with a link to somewhere else, assuming they’re in a bbPress page to begin with.
June 28, 2009 at 8:21 pm #15116Topic: How can I disable HTML in posts?
in forum TroubleshootingBurakhan
MemberHi everyone,
I want to disable HTML codes in posts. I am using “BBcode Lite for bbPress” and I dont need html codes to edit my post. When my member want to add a HTML code that is useful to forums the code works and havent seen properly. How can I disable?
June 28, 2009 at 7:59 pm #73609In reply to: bbPress Integration plugin for WPMU
Detective
MemberNow I get an odd behavior:
– if the user logs in inside WP, he appears logged in in both WP and BB, but he can’t post in BB. If he has admin rights, he can’t see bb-admin.
– if the user logs in inside BB, everything works ok in both WP and BB.
So I redirected all logins to BB.
In mu-plugins I added the following:
function rk_login_redirect() {
if (strpos($_SERVER['REQUEST_URI'], 'wp-login.php') !== false && $_GET['action'] != 'logout' ) {
$url = 'http://foros.ryuuko.cl/bb-login.php';
$redirect = urlencode(wp_get_referer());
$url = add_query_arg('redirect_to', $redirect, $url);
wp_redirect($url);
}
}
add_action('init', 'rk_login_redirect');In a plugin in my-plugins I added:
add_filter('wp_redirect', 'rk_redirect_location');
function rk_redirect_location($location, $status = 302) {
$arr = array();
$ref = wp_get_referer();
$url_array = parse_url($ref);
parse_str($url_array['query'], $arr);
if (isset($arr['redirect_to']) && !empty($arr['redirect_to'])) {
$url = urldecode($arr['redirect_to']);
$url_array = parse_url($url);
if (strpos($url_array['host'], 'ryuuko.cl') !== false)
$location = $url;
}
return $location;
} -
AuthorSearch Results