Search Results for 'code'
-
AuthorSearch Results
-
November 28, 2009 at 6:17 pm #32413
hpguru
MemberYou need phpMyAdmin. In PHPMYADMIN´s bbPress database choose SQL. Go here. Please backup first!
DELETE FROM *bb_posts* WHERE *bb_posts*.*post_status* =2 ;
DELETE FROM *bb_posts* WHERE *bb_posts*.*post_status* =1 ;PLEASE CHANGE ALL * TO BACKTICKS `
OK. Spam and deleted posts now deleted from db.
2 = spam
1 = deleted posts
November 28, 2009 at 3:02 pm #81710In reply to: Install.php not included
chrishajer
ParticipantAs summae says, you are missing some folders. There should be subfolders under forum1, but there aren’t any. You need to upload all the files and folders exactly as they are distributed by bbPress. You should at least have these 4 folders once you install, directly beneath the top level forum1 folder:
bb-admin
bb-includes
bb-plugins
bb-templateNovember 28, 2009 at 11:33 am #81722In reply to: changing tag list view
Null
MemberOk I have written a function to get the tags in a row, but I want to have them comma seperated, any ideas?
function bb_row_tags( $args = null ) {
$defaults = array(
'tags' => false,
'format' => 'row',
'topic' => 0,
);
$args = wp_parse_args( $args, $defaults );
extract( $args, EXTR_SKIP );
if ( !$topic = get_topic( get_topic_id( $topic ) ) ) {
return false;
}
if ( !is_array( $tags ) ) {
$tags = bb_get_topic_tags( $topic->topic_id );
}
if ( !$tags ) {
return false;
}
$r = '';
switch ( strtolower( $format ) ) {
case 'row' :
default :
$args['format'] = 'row';
foreach ( $tags as $tag ) {
$r .= _bb_row_tag_item( $tag, $args );
}
break;
}
echo $r;
}
function _bb_row_tag_item( $tag, $args ) {
$url = esc_url( bb_get_tag_link( $tag ) );
$name = esc_html( bb_get_tag_name( $tag ) );
if ( 'row' == $args['format'] ) {
$id = 'tag-' . $tag->tag_id . '_' . $tag->user_id;
return "t" . '<a href="' . $url . '" rel="tag">' . $name . '</a>' . "n";
}
}November 27, 2009 at 11:29 pm #81902In reply to: bbPress "Extend" pages broken on this site?
buddha-trance
MemberIt is working now! Tried with Firefox, Opera, and Safari. All is back to normal. Thank you
November 27, 2009 at 9:05 pm #81601In reply to: Calling WordPress functions in bbPress
TrishaM
Participant@chrishajer – I’m not sure – I use 1&1 for hosting but I can poke around to see if some logs are available and report back…
@buddha trance – yes, after the <?php but I appreciate the troubleshooting 101
FWIW, I also tried several other things I found in the docs for integrating, such as require_once with the path to wp-blog-header.php but as mentioned everything I try to load WP first so I can access it’s functions causes the 500 error.
I haven’t given up yet, though! I’ll keep trying a few things and report back this weekend….
November 27, 2009 at 5:27 pm #81721In reply to: changing tag list view
Null
MemberHmm this wont work since I need to edit _bb_list_tag_item too. Hmm perhaps I need to write some new code for this. Kinda hoped this could be done easier
November 27, 2009 at 4:58 pm #81600In reply to: Calling WordPress functions in bbPress
buddha-trance
MemberWhen you say you added the line to the top, you mean after the opening tag
<?php
… just in case…
November 27, 2009 at 2:55 pm #81729In reply to: Blank page while installing
chrishajer
Participantthe
w00tw00t.at.ISC.SANS.DFind
is a different problem altogether. Looks like someone is scanning the server for vulnerabilities.If you have root on the server you should be able to resolve this. It might be in a php_error.log or maybe it is in an apache access or error log, but those lines there are not the ones you want.
I would determine the IP address you’re visiting from, then grep through the logs for that IP and you should see the error.
November 27, 2009 at 2:08 pm #81717In reply to: CSS failed to load?
ciaravino
MemberI tried what you suggested starship trooper, but it didn’t work
Why would you be able to see it, but I can’t chrishajer?
*EDIT* Wow… I just used pagewash.com to view it, and it looks fine… Why isn’t my computer updating with the new changes? It’s been like 20 hours and it still looks like it has no style sheet.
November 27, 2009 at 1:40 pm #81322In reply to: Migrating Posts from BBPress to WordPress
buddha-trance
MemberThere is a thread discussing export capabilities for bbPress, where the project “bbxf.org” is mentioned by chrishajer. Maybe you can ask him there, if the alpha version of the plugin they have on Google Code can be used for your purposes. That is, export bbPress as an XML file and import it into WordPress.
https://bbpress.org/forums/topic/importexport-work
The alpha version can be also found on the site of one of the developers, Dan Larkin.
http://www.stealyourcarbon.net/category/bbxf/
You could give it a try with a fresh “test” install of WP, and a full bbPress database backup…
November 27, 2009 at 1:22 pm #75703In reply to: Avatar Upload in bbPress 1.0
noz
MemberHi,
To change it open ‘bb-avatar-upload.php’ line in my-plugins/ 173
>> add_profile_tab(__(‘Avatar’) …. >> put ‘Image’
November 27, 2009 at 10:58 am #81725In reply to: Blank page while installing
asterix35
MemberI just tried again, i got the white screen when i click on “check for configuration file” button.
I’ve also tried to chmod 777 the config file, i still get the same results.
I tried to put wrong dbname, user, password within bb-config.php and i got an error message telling me that mysql info are not correct, therefore i assume that when i put the good credentials bbpress was able to connect to the mysql database.
I’ve also tried to delete the mysql db and recreate everything (new db, new user) and i still have the same error message. This is driving nuts
November 27, 2009 at 8:48 am #81733In reply to: What's happening with bbPress?
Null
MemberIt’s kinda dead atm. Even big plugin suppliers like _ck_ seems to be abandoning this project. It’s a shame
November 27, 2009 at 7:57 am #81672In reply to: PHP if/else arguments
Olaf Lederer
ParticipantHi,
you need this function:
bb_get_location()
for example:
if (!in_array(bb_get_location(), array('login-page', 'register-page'))) {
login_form();
}November 27, 2009 at 1:43 am #81719In reply to: changing tag list view
chrishajer
ParticipantIt looks like the default for that function is a list, but table would also be accepted. But the other choice, table, would just return (i.e., I don’t think they ever finished that, but were maybe planning on having other options.)
function bb_list_tags( $args = null )
{
$defaults = array(
'tags' => false,
'format' => 'list',
'topic' => 0,
'list_id' => 'tags-list'
);
$args = wp_parse_args( $args, $defaults );
extract( $args, EXTR_SKIP );
if ( !$topic = get_topic( get_topic_id( $topic ) ) ) {
return false;
}
if ( !is_array( $tags ) ) {
$tags = bb_get_topic_tags( $topic->topic_id );
}
if ( !$tags ) {
return false;
}
$list_id = esc_attr( $list_id );
$r = '';
switch ( strtolower( $format ) ) {
case 'table' :
break;
case 'list' :
default :
$args['format'] = 'list';
$r .= '<ul id="' . $list_id . '" class="tags-list list:tag">' . "n";
foreach ( $tags as $tag ) {
$r .= _bb_list_tag_item( $tag, $args );
}
$r .= '</ul>';
break;
}
echo $r;
}I hope someone else can come along and show how to do this with a plugin.
November 26, 2009 at 11:35 pm #81716In reply to: CSS failed to load?
Peter A. Gebhardt
ParticipantTry putting this line at the beginning of your
.htaccess
file in the bbPress home directoryeg. into
yourdomain/bbpress/.htaccess
:AddType text/css .css
Had this problem once with 1&1 webhosting in Germany.
November 26, 2009 at 6:43 pm #81715In reply to: CSS failed to load?
chrishajer
ParticipantIt’s styled perfectly here with the default kakumei theme:
http://chrishajer.com/bbpress/iappleit.png
And that stylesheet is right where you say it is:
http://iapple.it/forums/bb-templates/kakumei/style.css
[~/]$ curl -I http://iapple.it/forums/bb-templates/kakumei/style.css
HTTP/1.1 200 OK
Date: Thu, 26 Nov 2009 18:40:14 GMTNovember 26, 2009 at 6:38 pm #81701In reply to: Install.php not included
chrishajer
ParticipantYou never mentioned where you installed it. Your host said it was here:
http://latestartermusician.com/bbpress
You say it’s here:
http://latestartermusician.com/forum1
So, where is it? Can you print a directory listing of the folders on your website showing where bbPress is installed in relation to your Blog folder? Screenshot is OK. It’s almost impossible to help with something like this remotely. Someone needs to be there to look at the directory listing and be able to say “oh, it’s installed over there, you need to access it at THIS URL.”
If this is your web space:
/hermes/bosweb/web077/b775/ipw.latestar/public_html/
Then Blog needs be be here:
/hermes/bosweb/web077/b775/ipw.latestar/public_html/Blog/
And bbPress should be installed here according to what you said about ‘forum1’:
/hermes/bosweb/web077/b775/ipw.latestar/public_html/forum1/
November 26, 2009 at 3:56 pm #81699In reply to: Install.php not included
chrishajer
ParticipantOn an apache web server, the file and folder names are case sensitive. I noticed you used Blog before (capital
and Install.php here (capital I) – are you certain the folder is actually bbpress (lowercase) in the root for your domain (on the same level as the Blog folder you already installed)?
If bb-admin were actually at http://latestartermusician.com/bbpress/bb-admin/, these would come up fine, but they do not:
http://latestartermusician.com/bbpress/bb-admin/install.css
http://latestartermusician.com/bbpress/bb-admin/style.css
http://latestartermusician.com/bbpress/bb-admin/images/menu.png
So where did you really put the folder and what is the name? Capitalization matters too, so post here what it actually is.
November 26, 2009 at 1:23 pm #81689In reply to: Header Invalid
chrishajer
ParticipantbbPress is not a plugin for WordPress. It should not be in your wp-content/plugins folder. It will be installed right along side WordPress, not inside WordPress as a plugin.
Right now you have WordPress installed in a folder called “Blog”. You need to put bbPress in a folder called “Forum” or whatever public URL you want your forum to be known as, and start the installation there.
http://latestartermusician.com/Forum/
is you put it into a folder called “Forum” at the same level as Blog in the directory tree.It’s not a plugin for WordPress, that’s why you received that error.
November 26, 2009 at 11:10 am #61710In reply to: Change Profile information
xanderashwell
MemberIf anyone is still looking for the solution to this, there is a suitable fix (creating a plugin to do the heavy lifting)
Basically, create a new plugin by saving the following code as “my-plugin.php” or whatever you might like to call it, in the my-plugins folder:
‘
<?php
/*
Plugin Name: Profile Details
Plugin URI: https://bbpress.org/
Description: This plugin adjusts the information required at registration, and which information is displayed on the profile page.
Author: A.Example
Version: 0.333
Author URI: https://bbpress.org/
*/
function set_my_profile_info_keys($myarray) {
$myarray = array(
//’first_name’ => array(0, __(‘First name’)),
//’last_name’ => array(0, __(‘Last name’)),
‘display_name’ => array(1, __(‘Display name as’)),
‘user_email’ => array(1, __(‘Email’)),
//’user_url’ => array(0, __(‘Website’)),
//’from’ => array(0, __(‘Location’)),
//’occ’ => array(0, __(‘Occupation’)),
//’interest’ => array(0, __(‘Interests’))
);
return $myarray;
}
add_filter(‘get_profile_info_keys’, ‘set_my_profile_info_keys’);
?>
‘
I hope that helps someone out, full credit must go to Olaf for this fix.
Namasté,
Xander
November 26, 2009 at 7:15 am #81619In reply to: Post umlauts inside [code]
danfuh
MemberI Have a Solution!
Using like this:
preg_match_all(“/(<code.*>)(w.*)(</code>)/isxmU”,
$post_text_output, $matches))
and str_replace()
inside the post.php of my template will fix the problem for me.
Regards Daniel
November 26, 2009 at 4:56 am #81634yaysloths
Memberok, stuff just got a lot weirder. i made the original post sticky and made a new topic, and the “topic author” code is working for the sticky one but not the regular one. (screenshot.) how the hell did i do THAT?
November 26, 2009 at 2:18 am #32391Topic: Header Invalid
in forum Installationlatestart
MemberI downloaded the plugin for WordPress 2.8.4, and tried activating it. However, when I activated it, I was taken to a page that said, “This plugin does not have a valid header.” What does that mean? I am so excited about using bbpress, but I can’t.
November 26, 2009 at 1:00 am #81633yaysloths
MemberHey, thanks for the tip re: hidden forums plugin; I’ll give that a shot.
And yeah, I’m trying to add first poster/author since, as you said, last poster is already there. And I did find that
<?php topic_author(); ?>
code, but for some reason I can’t get it to work – if you look at the code I put in the first post, you should see it there, but for some reason it’s not working. Do you see anything there I should change? </p><p>Thanks for your help…`
-
AuthorSearch Results