Search Results for 'test'
-
AuthorSearch Results
-
October 22, 2006 at 4:48 am #49408
In reply to: Importing from phpBB
brunotorres
MemberI did this: http://brunotorres.net/unsorted/phpbb2bbpress.phps
Worked fine to me, importing a phpBB database with about 30000 records, including users, metadata, topics and posts. It takes a lot of time to finish, but works.
The code is a mess. I just finished doing this. Maybe I’ll make it better, if there’s people interested.
You have to use it on a fresh instalation, since it’ll delete any existing data.
It was just tested by me and I can’t ensure it’ll work for anyone, but I’d like some feedback.
Enjoy!
October 22, 2006 at 1:49 am #50121In reply to: Controlling the Number of Latest Discussions
Zambu
MemberI am not sure what you mean by that, as I have never created a plug-in before. Anways, I gave it a try as follows:
Created a blank file with the following content:
<?php
function front_page_topics() {
$bb->page_topics = 2;
}
add_action( ‘bb_index.php_pre_db’, ‘front_page_topics’ );
?>
Then saved it as “latest-posts.php” and stored it in my newly created “my-plugins” folder.
But it did not seem to have any effect as the front page of the forum would still display more that 2 latest posts (I selected to limit the topics to 2 so it would be asier to test).
The only other thing I can think of is that this code needs to instead be added to one of the regular scripts, but I have no idea which one.
thanks,
thomas
October 21, 2006 at 8:47 pm #50120In reply to: Controlling the Number of Latest Discussions
Michael Adams (mdawaffe)
MemberHow about this plugin?
function front_page_topics() {$bb->page_topics = 10;
}
add_action( 'bb_index.php_pre_db', 'front_page_topics' );
October 20, 2006 at 7:12 pm #729Topic: Controlling the Number of Latest Discussions
in forum Troubleshootingplanetphillip
MemberHi,
How can I control the number of latest discussions shown on the frontpage?
I know I can edit the “topics shown on each page” in the config file but I just want a few topics on the frontpage and a different amount for the forums themselves.
TIA
Phillip
UPDATE FROM MODERATOR (Feb 12, 2007):
There is now a plugin for this which allows you to specify the number of topics that show up on many of bbPress’ pages:
October 20, 2006 at 11:07 am #49854In reply to: loading wordpress with bbpress
cmcraft
MemberNope. Here is my index.php file from the bbpress directory. What am I doing wrong?
‘<?php
require(‘./bb-load.php’);
//the next two lines are my attempts to load it myself
require_once(‘/home/myusername/public_html/blog/wp-config.php/’);
require_once(‘/home/myusername/public_html/blog/wp-blog-header.php’);
$bb_db_override = false;
do_action( ‘bb_index.php_pre_db’, ” );
if ( isset($_GET) && ‘1’ == $_GET ) :
$forums = false;
elseif ( !$bb_db_override ) :
$forums = get_forums(); // Comment to hide forums
$topics = get_latest_topics();
$super_stickies = get_sticky_topics();
endif;
do_action( ‘bb_index.php’, ” );
if (file_exists( BBPATH . ‘my-templates/front-page.php’ ))
require( BBPATH . ‘my-templates/front-page.php’ );
else require( BBPATH . ‘bb-templates/front-page.php’ );
//then i tried the include header call to no avail so i tried this
<?php include (/home/myusername/public_html/blog . ‘/wp-blog-header.php’); ?>
?>
‘
October 20, 2006 at 1:11 am #722Topic: Google Analytics Plugin
in forum Pluginsear1grey
MemberI’ve modified my Google Analytics Plugin for WordPress and it appears to be working in BBPress (albeit without the UI for configuring the “uastring”).
Testers welcome; get it here…
October 18, 2006 at 4:37 pm #49920In reply to: Setting privs for writing
Michael Adams (mdawaffe)
MemberCreate a directory called
my-plugins/in bbPress’ root directory.Into that add a new file called
mod-write-topics.phpwith the following code.<?phpfunction mod_write_topics() {
global $bb_roles;
$bb_roles->role_objects['member']->remove_cap( 'write_topics' );
}
add_action( 'bb_got_roles', 'mod_write_topics' );
?>
I think that will work, but I haven’t tested it.
October 18, 2006 at 11:20 am #49761In reply to: Plugin Requests
ear1grey
MemberFor me, the most useful thing would be a little WP plugin that shows the same information that’s in the Latest Discussions section of the bbpress front page.
Nothing too fancy, just ordered by freshness, so I could pop something in my sidebar similar to the “recent comments” section I have on boakes.org.
October 18, 2006 at 11:10 am #49568In reply to: No .htaccess file for “pretty” URLS?
jazzle
MemberNB: those typos are fixed in the latest version available from CVS/SVN.
October 17, 2006 at 11:18 pm #698Topic: Anybody on PHP5?
in forum Troubleshootingaloicious
MemberHey all
I’m testing a WP/BB install (on Segpub) and I’m having a hideous time trying to get it all up and running.
Has anybody had any problems running on PHP5?
October 16, 2006 at 3:21 am #49585In reply to: Emoticons For bbPress?
gnawph
MemberI wanted that functionality as well so I ripped some WP code, played around, and finally got something I could use. This is a highly sloppy work as I am out of practice and not really a great PHP programmer anyway. The plugin is mostly a rip of the WordPress code with a filter. It is not elegant or tested completely but so far it has been getting the job done.
Note: This plugin will not work without a default install of WordPress.
You have to create a directory called /my-plugins/, copy this code into a file called whatever-you-want.php, upload and enjoy!
Feedback appreciated! Maybe I can improve on this and increase my PHP/*press skills.

<?php/*
Plugin Name: WordPress Smiley Integrator .0002
Plugin URI: none
Description: Gives WordPress Smiley Functionality to bbPress
Author: John Farrell
Version: 1.0
Author URI: none
*/
function convert_smilies($text) {
$wpsmiliestrans = array(
':mrgreen:' => 'icon_mrgreen.gif',
':neutral:' => 'icon_neutral.gif',
':twisted:' => 'icon_twisted.gif',
':arrow:' => 'icon_arrow.gif',
':shock:' => 'icon_eek.gif',
':smile:' => 'icon_smile.gif',
'
??:' => 'icon_confused.gif',':cool:' => 'icon_cool.gif',
':evil:' => 'icon_evil.gif',
':grin:' => 'icon_biggrin.gif',
':idea:' => 'icon_idea.gif',
':oops:' => 'icon_redface.gif',
':razz:' => 'icon_razz.gif',
':roll:' => 'icon_rolleyes.gif',
':wink:' => 'icon_wink.gif',
':cry:' => 'icon_cry.gif',
':eek:' => 'icon_surprised.gif',
':lol:' => 'icon_lol.gif',
':mad:' => 'icon_mad.gif',
':sad:' => 'icon_sad.gif',
'
' => 'icon_cool.gif','8-O' => 'icon_eek.gif',
'
' => 'icon_sad.gif','
' => 'icon_smile.gif','
' => 'icon_confused.gif','
' => 'icon_biggrin.gif','
' => 'icon_razz.gif',':-o' => 'icon_surprised.gif',
':-x' => 'icon_mad.gif',
'
' => 'icon_neutral.gif','
' => 'icon_wink.gif','
' => 'icon_cool.gif','8O' => 'icon_eek.gif',
'
' => 'icon_sad.gif','
' => 'icon_smile.gif','
' => 'icon_confused.gif','
' => 'icon_biggrin.gif','
' => 'icon_razz.gif',':o' => 'icon_surprised.gif',
':x' => 'icon_mad.gif',
'
' => 'icon_neutral.gif','
' => 'icon_wink.gif',':!:' => 'icon_exclaim.gif',
'
:' => 'icon_question.gif',);
// generates smilies' search & replace arrays
foreach($wpsmiliestrans as $smiley => $img) {
$wp_smiliessearch[] = $smiley;
$smiley_masked = htmlspecialchars( trim($smiley) , ENT_QUOTES);
$wp_smiliesreplace[] = " <img src='/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
}
$output = '';
// HTML loop taken from texturize function, could possible be consolidated
$textarr = preg_split("/(<.*>)/U", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between
$stop = count($textarr);// loop stuff
for ($i = 0; $i < $stop; $i++) {
$content = $textarr[$i];
if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag
$content = str_replace($wp_smiliessearch, $wp_smiliesreplace, $content);
}
$output .= $content;
}
return $output;
}
//add the filter
add_filter('post_text', 'convert_smilies');
?>
October 16, 2006 at 1:30 am #49695In reply to: Can’t Login!
garymill
MemberI just downloaded the latest version, deleted the previous tables and did a new install.
Same login problem is being encountered.
the forum is at http://energizedeating.com/blog/forum/
Anyone is welcome to register to confirm and hopefully help me solve this.
When I arrive at the forum, I am greeted as signed in
When I tried to post, I am prompted to login, , but the same login box appears again after and I remain not logined in.
If I enter my login info wrong, I am given an error message.
I hope someone can help.
Gary
October 16, 2006 at 12:54 am #49693In reply to: Can’t Login!
Michael Adams (mdawaffe)
MemberWhat webserver are you two using? This initial release didn’t receive much testing under IIS. There could still be some bugs there.
Also, please try installing the official release, garymill. There were several changes between October 12th and the final version, some of which dealt with login issues.
October 14, 2006 at 9:22 pm #49521In reply to: Installation to sub domain Error 400
febwa1976
MemberOK – This is what I did at the beginning.
ASO has cpanel.
I went to cpanel and created “subdomain” called “forum”
When you do this cpanel automatically creates a directory “forum”
I uploaded BBpress to this directory.
I created a database in cpanel and completed the fields in config.php
I tried $bb->domain = ‘http://forum.domain.com’;
$bb->path = ‘/forums/’; plus a lot of others.
Does not work.
So,
I went to a current subdomain I have http://test.domain.com and in cpanel physically created a directory /forum/.
I populated config.php with the data and it WORKS! (looks good by the way!!).
The only thing is that my forum is at
test.domain.com/forum/
I cannot get it to the root at
test.domain.com
(by the way when I install WP to testexample.domain.com it works first time every time and I do not have to install it to, and call it from testexample.domain.com/wpdirectory/
Sorry for the long post and hope it is clear…
What am I missing here?
-
AuthorSearch Results