Search Results for 'test'
-
AuthorSearch Results
-
December 19, 2008 at 2:19 am #69965
In reply to: bbpress is slow like godaddy says?
vannak
MemberHi _ck_ i did what you told already. and the fastest one is 9.9959759712219 seconds (in Cambodia). what do u think about it?
December 19, 2008 at 2:06 am #69964In reply to: bbpress is slow like godaddy says?
chrishajer
Participant_ck_
I needed to change the /test.txt to \test.txt, but even once that was done, I get this error (prior to this, the filename and path were not right):
Warning: file_put_contents(
Hosting123456htmlgodaddytesttest.txt) [function.file-put-contents]: failed to open stream: Permission denied in
Hosting123456htmlgodaddytestdefault.php on line 9Warning: touch() [function.touch]: Unable to create file
Hosting123456htmlgodaddytesttest.txt because Permission denied in
Hosting123456htmlgodaddytestdefault.php on line 110.00028681755065918 seconds
December 19, 2008 at 12:33 am #69963In reply to: bbpress is slow like godaddy says?
_ck_
ParticipantMake a directory called test, go in there and put this version of the script in there:
<?php
/*
Experimental NFS detector - upload this file to server and chmod 777
Script should take less than one second to run.
If it takes more than one second, then it's likely NFS (or Windows or a bad configuration)
Any error means the time is unreliable as the script has failed.
*/
error_reporting(E_ALL);
$file=dirname(__FILE__)."/test.txt"; file_put_contents($file,'');
$time=strtok(microtime(),' ')+strtok('');
for ($i=0; $i<=9999; $i++) {if (touch($file)) {clearstatcache(); filemtime($file);} else {break;}}
echo ((strtok(microtime(),' ')+strtok(''))-$time)." seconds";
?>December 18, 2008 at 11:21 pm #67551In reply to: bbcode plugins URL not work
chrishajer
Participant@fernandot: this worked fine for me. I see the buttons and used them and it works just fine. See my test post. Firefox 3.0.5
December 18, 2008 at 8:20 pm #4464Topic: Custom query in bbPress. Latest topics from several forums
in forum PluginsHuda Toriq
MemberHi. I still don’t quite familiar with bbPress custom query system. Is there a simple way to pull the latest topics from only specific forums? In WP we can pull posts from several categories using comma separated category IDs in the query. Can bbPress do that?
And if there is, is it possible to pull it from WordPress using bbPress_Live php class in bbpress-live plugin?
Thank you in advance.
December 18, 2008 at 8:18 pm #70149In reply to: bbPress 1.0-alpha-4 released
jimgroom
MemberHello all,
I’m integrating WPMu 2.7 trunk, bbPress 1.0 alpha 4 and the latest BuddyPress Combo. I got everything up and running fine, and bbPress is reading the wp_users table and updating the users once they login to the WPMu account as members (I used the roles plugin recommended here, thank you).
The only issue I have remaining is that WPMu and bbPress are not sharing cookies, so when you log into the WPMu homepage, you are not automatically logged into bbPress, but you can login and out of each independently without an issue.
I installed Sam Bauer’s plugin for integration, and included the necessary details in the wp-config file, I’m also mirroring the unique values I have in my wp-config file in my bbPress config file. My bbPress config file looks like so:
define( ‘BB_AUTH_KEY’, ‘my_unique_key_is here’ );
define( ‘BB_LOGGED_IN_KEY’, ‘my_unique_key_is here’ );
define( ‘BB_SECURE_AUTH_SALT’, ‘my_unique_key_is here’ );
define( ‘BB_NONCE_KEY’, ‘my_unique_key_is here’ );
define( ‘BB_AUTH_SALT’, ‘my_unique_key_is here’ );
define( ‘BB_LOGGED_IN_SALT’, ‘my_unique_key_is here’ );
define( ‘BB_SECURE_AUTH_KEY’, ‘my_unique_key_is here’ );
/**#@-*/
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ‘/’);
All these values exactly match what I have in my wp-config file, but still no shared cookie love. Anyone have any idea what might be wrong here?—or am I just pushing too soon with the WPMu trunk and bbPress 1.0 alpha?
December 18, 2008 at 7:21 pm #69959In reply to: bbpress is slow like godaddy says?
_ck_
ParticipantThey could find someone else to run it.
Or some hosts have a free trial period (though that is less and less thanks to spammers).
Your linux desktop is why it is so fast.
So my theory is right, under 1 second is excellent, around 1 second is good.
Anything much higher is suspect.
But I need more NFS candidates, will have to see if I have access on some of these old servers.
Let’s see if I can run it on NearlyFreeSpeech.
Aha! They are NFS. 13.26 seconds
For those that get an error even when the file is chmod 777, you’ll have to create a testing directory and move the file into there. Then chmod 777 the directory and change the first line to
error_reporting(E_ALL); $file=dirname(__FILE__)."/test.txt"; file_put_contents($file,''); $time=strtok(microtime(),' ')+strtok('');December 18, 2008 at 7:10 pm #70447In reply to: Headers already sent when logging in
_ck_
ParticipantHeaders already sent is a useless error in itself, it’s always the result of another error (unless the very rare case someone meant to send a custom header of some kind).
In this case at least you posted the real error:
Warning: parse_url(http://#postform) [function.parse-url]Any chance you are testing this on a localhost or something like that?
Kind of a strange error that it’s getting a bad url like like, there’s no domain name at all.
December 18, 2008 at 1:52 pm #70437In reply to: Entries coming up with no content
flashpunk
MemberThe only plugins that are running are:
Akismet 1.0
BBXF Export 0.1 alpha
and I’ve tried deactivating them both…
in the WordPress install the only plugins that I have related to the BBpress install are:
BBPress Integration 1.0-alpha-4.1
BBpress Latest Discussions 0.9
I don’t think the WordPress ones would have any effect on it?
December 18, 2008 at 5:50 am #70144In reply to: bbPress 1.0-alpha-4 released
Justin Tadlock
ParticipantThe biggest issue I’m having with this version and the latest version of the WP/BB Integration plugin is that the user roles aren’t being carried over to bbPress when a user registers in WordPress.
They always end up with no role set.
This is the error when editing the user’s profile when no role is set:
<select name="role">
<option value="keymaster"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Key Master</option>
<option value="administrator"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Administrator</option>
<option value="moderator"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Moderator</option>
<option value="member"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Member</option>
<option value="inactive"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Inactive</option>
<option value="blocked"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Blocked</option>
</select>Aside from this, everything else has been working great for me.
December 17, 2008 at 9:28 pm #70143In reply to: bbPress 1.0-alpha-4 released
tomwi
Member
@sambauers – Thanks! I had tried bblive, it never pulled correctly when integration wasn’t working… i’ll give both your ideas a shot with my test integration of 2.7 and alpha 4.i am also using bbsync with my 2.5.1 to send posts to bbpress as topics… I want to do this and disable comments for easier moderation. I know it doesn’t work with 2.6 or 2.7. Anyone know of other ideas to send posts to bbpress as topics? Thanks!!
December 17, 2008 at 9:08 pm #70380In reply to: Looking for alternatives
ganzua
MemberIf you want to integrate the forum with wordpress latest version, you have two options; bbpress and simple-forum plugin.
If you need a stand-alone forum I’d go for phpbb3. It has everything that a forum should have.
December 17, 2008 at 6:26 pm #69950In reply to: bbpress is slow like godaddy says?
_ck_
ParticipantMost hosts will not admit and definitely not advertise NFS, it’s a downside, not a plus.
But you can tell if you have an account with them by studying
df -athough the shell, php shell or perl cgi shell. Or if they hide/block all that you can write a script to time 1000 reads of filemtime (with clearstatcache) which cannot be cached by the OS and will have telltail lag.Marketing-wise NFS is usually spun as “unlimited” or “expanding” storage space, like Dreamhost promises extra space each month.
I’m very curious to find out what the “resolution” was.
The latest page show shows 1.432 – 36 queries which is still poor.
December 17, 2008 at 1:18 pm #69947In reply to: bbpress is slow like godaddy says?
_ck_
Participantvannak, if you activated load options, something is still wrong because it’s using 36 queries on the front page. Are you using bbPress 1.0 or bbPress 0.9 ?
Make sure your bb-topic-views plugin is the latest version (1.6.3)
The old version before I took over used excessive queries.
If you are using an earlier 1.0 alpha version, it also had excessive queries (still does on the newest version in some places).
Before you run to hostmonster or other provider, make sure you do your homework and check those suggestions I gave you.
Oh one more tip for choosing a hosting provider – if they use the word “unlimited” in any of their advertising, find another provider.
December 17, 2008 at 9:47 am #70139In reply to: bbPress 1.0-alpha-4 released
lorenzocoffee
Memberhi chrishajer
I do use the ltest stable WP -2.7- in a sandbox modified theme and the 1.0.4 (the one from the .tar)of BBpress
thanks.
December 17, 2008 at 8:35 am #70137In reply to: bbPress 1.0-alpha-4 released
John James Jacoby
KeymasterIf you wanted to, it is possible to write a “clear all cookies” plug-in/function that would just be a link that would delete the cookies for a user entirely. I can verify that as long as you’re using WP2.7 and BBP1.0a4, that integration works and works really well. I’ve fully tested it on two different platforms now and both times it’s worked without a hitch.
December 17, 2008 at 5:03 am #70133In reply to: bbPress 1.0-alpha-4 released
Sam Bauers
ParticipantTopic renaming fixed in trunk.
We also now have a nightly builds system courtesy of Barry at Automattic. If there is a change during the day, then a new nightly will be created and made available here:
December 17, 2008 at 3:44 am #70271In reply to: latest discussions: only new since last login
Trent Adams
MemberI am not sure if this version works on latest release, but give it a try.
https://bbpress.org/plugins/topic/limit-latest-discussions/
Trent
December 17, 2008 at 3:34 am #4452Topic: latest discussions: only new since last login
in forum Requests & Feedbackkashbah
MemberI have been looking everywhere, but couldn’t find anything related.
BBpress has a standart number of 30 “Latest Discussions” topics shown in the front page. There’s also a plugin that allow admins to set this number to whatever they wish.
But I would rather have a dynamic list only with new topics or topics with new replies since a user’s last login, listed in “latest discussions”. Currently I have the “new topics” plugin, but I feel its not quite what users want.
Any ideas how this could be done or where to start coding it?
December 17, 2008 at 1:49 am #70130In reply to: bbPress 1.0-alpha-4 released
tomwi
Memberthis is great! i had downgraded to 2.5.1 for integration.
i am using bb latest discussions to show latest bbpress posts in wordpress which I could not get to work with alpha 2. i want to move back to 2.7 and alpha 4…… does anyone know of a plugin that works in bbpress alpha wp 2.7 to pull latest bbpress posts to wordpress/wordpress sidebar?
December 16, 2008 at 10:12 pm #69122In reply to: Theme: iNove Release (v0.1)
suzkaw
Member@Umit Namli – I didn’t touch the rss feed file. So I am not sure what would be causing that. Can you try uploading an original rss2.php and see if that sorts it out? Or possibly reverting to the default theme and then testing again?
December 16, 2008 at 9:50 pm #70127In reply to: bbPress 1.0-alpha-4 released
the_Wish
MemberWhile testing bbPress 1.0 Alpha 4 I am not able to change the name of any topic —I do not know whether this is a known issue or not; the procedure just looks fine, though the title stays the same.
I’ve just tested this and it’s the same for me.
December 16, 2008 at 7:43 pm #70126In reply to: bbPress 1.0-alpha-4 released
chrishajer
ParticipantbbSync doesn’t work with the latest version of anything. What version bbPress did you install, and what version WordPress?
December 16, 2008 at 7:28 pm #69120In reply to: Theme: iNove Release (v0.1)
suzkaw
MemberThis theme has just been updated and you can get the latest version (v0.2) from here:
http://ericlbarnes.com/inove-for-bbpress/
Changes Include:
1. Moved view list to right side. (idea from _ck_)
2. Removed background image. Issue with Safari.
December 16, 2008 at 6:29 pm #67834In reply to: Get Current Forum ID?
reclaimyourskin
BlockedSorry guys, I thought my problem was resolved but it looks like i’ve spoke to soon.
The code _CK_ suggested below, worked wonders to add a new “on” class on my forum links:
<li<?php if ($current_forum_id=get_forum_id()) {echo " class='on'";} ?>>
Problem!
The trouble is that the unique “on” class is being displayed on every forum link, when I need it to only display when i’m viewing forum 2 for example. Basically, i need a unique css class and current forum marker so the user knows which forum they are currently viewing.
Below is the souce code for all of forum.php (if anyone has time to have a quick look i’d really appreciate it).
<?php bb_get_header(); ?>
<h3><?php forum_name(); ?> Forum</h3>
<ul id=”forumnav”>
<li<?php if ($current_forum_id=get_forum_id()) {echo ” class=’on'”;} ?>>” title=”Latest homepage”><span>Latest<img src=”images/white-arrow.gif” style=”padding: 0 0 3px 5px” width=”10″ height=”5″ border=”0″ /></span>
<li<?php if ($current_forum_id=get_forum_id()) {echo ” class=’on'”;} ?>>forum/forum2″ title=”Forum 2″><span>Forum 2</span>
<li<?php if ($current_forum_id=get_forum_id()) {echo ” class=’on'”;} ?>>forum/forum3″ title=”Forum 3″><span>Forum 3</span>
<li class=”<?php echo $class;?>”>forum/forum3″ title=”Forum 3″><span>Forum 3</span>
<?php if ( $topics || $stickies ) : ?>
<table id=”latest”>
<tr>
<th><?php _e(‘Topic’); ?> — <?php bb_new_topic_link(); ?></th>
<th><?php _e(‘Posts’); ?></th>
<th><?php _e(‘Last Poster’); ?></th>
<th><?php _e(‘Freshness’); ?></th>
</tr>
<?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <big>“><?php topic_title(); ?></big></td>
<td class=”num”><?php topic_posts(); ?></td>
<td class=”num”><?php topic_last_poster(); ?></td>
<td class=”num”>“><?php topic_time(); ?></td>
</tr>
<?php endforeach; endif; ?>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> “><?php topic_title(); ?><?php topic_page_links(); ?></td>
<td class=”num”><?php topic_posts(); ?></td>
<td class=”num”><?php topic_last_poster(); ?></td>
<td class=”num”>“><?php topic_time(); ?></td>
</tr>
<?php endforeach; endif; ?>
</table>
<div id=”viewdiv”>
<ul id=”views”>
<li class=”view”>” class=”rss-link”><?php _e(‘<abbr title=”Really Simple Syndication”>RSS</abbr> feed for this forum’); ?>
</div>
<div class=”nav”>
<?php forum_pages(); ?>
</div>
<?php endif; ?>
<?php if ( bb_forums( $forum_id ) ) : ?>
<h2><?php _e(‘Subforums’); ?></h2>
<table id=”forumlist”>
<tr>
<th><?php _e(‘Main Theme’); ?></th>
<th><?php _e(‘Topics’); ?></th>
<th><?php _e(‘Posts’); ?></th>
</tr>
<?php while ( bb_forum() ) : ?>
<?php if (bb_get_forum_is_category()) : ?>
<tr<?php bb_forum_class(‘bb-category’); ?>>
<td colspan=”3″><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><small><?php forum_description(); ?></small><?php bb_forum_pad( ‘</div>’ ); ?></td>
</tr>
<?php continue; endif; ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><small><?php forum_description(); ?></small><?php bb_forum_pad( ‘</div>’ ); ?></td>
<td class=”num”><?php forum_topics(); ?></td>
<td class=”num”><?php forum_posts(); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; ?>
<?php post_form(); ?>
</div> <!– End Content –>
<?php bb_get_footer(); ?>
Thanks again sambauers, _CK_ and other mods – you’re doing a great job.
-
AuthorSearch Results