Search Results for 'code'
-
AuthorSearch Results
-
June 30, 2009 at 2:25 pm #75187
In reply to: Need to move the board more to the left.
Ipstenu (Mika Epstein)
ModeratorYou can’t make an image size cap that will work in all browsers, but in theory you should be able to ‘crop’ the image via overflow. See http://www.w3schools.com/Css/pr_pos_overflow.asp and you’ll want to add it to
.threadpostIn theory you could also make a css entry for (I think…)
.threadpostimg {}along these lines: http://phydeaux3.blogspot.com/2006/01/max-width-and-faking-it-for-ie.html (which will xplain why IE sucks).As for why you have that dead space… You have a left margin
Trim that down.#front-page #discussions {
margin-left: 170px;
width: 590px;
}June 30, 2009 at 2:12 pm #73777In reply to: How to list tags on forum.php
Ipstenu (Mika Epstein)
ModeratorActually … kinda yeah.
This works on any page
<?php if (is_topic() ) : ?><?php topic_tags(); ?><?php endif; // is_topic() ?>I have it in sidebar.php and it works fine. The reason it works is that it checks the page to see if it’s a topic and, if so, gets the tags.I’m guessing you want something like this on your index page etc: Topic Name – Poster Name – Tags
You’ll need something like
bb_get_topic_tags()which appears to take a$topic_idparameter.June 30, 2009 at 1:58 pm #74733In reply to: Just one more… release candidate 1.0-RC-3
Ipstenu (Mika Epstein)
Moderator_ck_ – Totally valid point. And that’s what I’m doing now

PS: Trunk is totally sick on the admin side! ROCK!
June 30, 2009 at 1:36 pm #74316In reply to: Convert WP Super Cache plug-in for bbPress ?
Ipstenu (Mika Epstein)
Moderator@frooyo – Either get Donncha to explain the plugin (good luck, he’s busy) or download it for WP and study it. Honestly, I think you’re a little nuts, only because you’re picking possibly the most complicated plugin in the history of WP to convert as your first plugin
June 30, 2009 at 11:20 am #15127Topic: bbPress Integration – 1.0-rc-3 plugin – errors
in forum Troubleshootingdeadlyhifi
ParticipantWhen logging in, or out, through WordPress (MU) the following error(s) occur.
Warning: extract() [function.extract]: First argument should be an array[...]and
Cannot modify header information - headers already sent by (output started at /home/s/a/sandbox/public_html/wp-content/plugins/bbpress-integration/bbpress-integration.php:202)Also reported on: http://wordpress.org/support/topic/282166
It works fine when login in through bbPress, and then accessing the admin in WPMU (user login integration shared)
June 30, 2009 at 4:25 am #74732In 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 1036Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fwrite(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043Warning: fclose(): supplied argument is not a valid stream resource in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1050Warning: chmod() [function.chmod]: No such file or directory in
Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1052Warning: 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
-
AuthorSearch Results