Search Results for 'code'
-
AuthorSearch Results
-
December 18, 2008 at 7:21 pm #69959
In 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 6:45 pm #69957In reply to: bbpress is slow like godaddy says?
_ck_
ParticipantThanks for the feedback Ipstenu and Chris!
When you say “1&1 root server” is that a dedicated or vps or something like that?
Interesting your desktop is very fast compared to mine, is it Windows or Linux? If it’s Windows, is it NTFS or FAT32? I wonder what my windows bottleneck is, or maybe basically it just doesn’t cache the filetables on FAT32.
I should enhance that code to show if the server is in safemode or not and what functions are disabled in PHP. Could be a handy tool for evaluating potential hosts.
December 18, 2008 at 5:04 pm #70440In reply to: Can wordpress searcher search bbpress?
ganzua
MemberI actually realized that I have a problem when using wordpress searcher after deep integration because it doesn’t work if you are browsing bbpress.
I have wp searcher in the wp header and I load this header into bbpress. Whenever you try to search while being in bbpress yo get a 404 error because the link of the search is this one;
/wordpress/bbpress/index.php?s=lorem
December 18, 2008 at 4:50 pm #4462Topic: Can wordpress searcher search bbpress?
in forum Pluginsganzua
MemberIs there any plugin or anyway that allows wordpress searcher search bbpress topics?
I saw CK super-search plugin but it seems it is only for bbpress
December 18, 2008 at 3:54 pm #70439In reply to: Entries coming up with no content
Ipstenu (Mika Epstein)
ModeratorWild. It sounds like something got corrupted or not uploaded. Glad it’s working now! I love your site design
December 18, 2008 at 2:31 pm #70148In reply to: bbPress 1.0-alpha-4 released
Ipstenu (Mika Epstein)
ModeratorI just checked and I can reproduce that error logged in as Key Master when I go to edit their profile.
If someone registers via WordPress, all the roles show up as:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php on line 2021
Below that, under ‘Allow this user to …’ I get this
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/jorjafox/public_html/forums/bb-includes/functions.bb-template.php on line 2036
It’s not pulling the data correctly, since if I manually set them to Member, it works fine. Previously on 1.0alpha1 and alpha2, when I had users on bb with ‘no’ role, I could re-apply the WordPress Role link up (just click save) and magically everyone was fixed.
December 18, 2008 at 11:23 am #69954In reply to: bbpress is slow like godaddy says?
_ck_
ParticipantI’d like to see some feedback on my experimental NFS detector below.
Be sure to chmod 777 it after you upload or it won’t work.
Delete after you are finished with it for security.
Dreamhost takes over 7 seconds, sometimes more.
My apache servers with local storage take less than one second.
My Windows XP with XAMPP takes 12 seconds (old slow IDE drives)
<?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=__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 8:28 am #70276In reply to: Basic integration screencast
John James Jacoby
KeymasterWell, the best little part about installing bbPress in a sub directory, is that in WordPress if you’re using the pretty permalinks and make a “Forums” page, the slug will be “forums” and when clicked it will just route the users right to the forums instead of to the WP page.
December 18, 2008 at 8:24 am #70275In reply to: Basic integration screencast
_ck_
Participant>> bbPress installed in a sub-directory of WordPress
That’s almost cheating, it’s too easy
You should do it off a different directory from the webroot.
But good idea in general, someone did this awhile back with 0.8 (and then stuffed a bunch of ads in 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 18, 2008 at 1:10 am #70435In reply to: Entries coming up with no content
Ipstenu (Mika Epstein)
ModeratorSomething is telling it that there are no posts (thus
<?php if ($posts) : ?>
never calls the rest of it). But at this point you’ve tapped out my poor brainDecember 17, 2008 at 10:00 pm #70434In reply to: Entries coming up with no content
flashpunk
MemberI dont think i have anything major integrated into the site, its not calling wordpress tags thats for sure, all those links pointing to the wordpress template files are hard coded.
Can you think of anything specific i should look at? anything else that will help?
December 17, 2008 at 9:39 pm #70432In reply to: Entries coming up with no content
flashpunk
MemberThats what I dont get, I have the loop in there.
Yes, i attempted the deep integration but it doesn’t seem to have worked, i’ve given up.
This is what the topic.php template looks like, fron that topic_tags() downward.
<!-- <?php topic_tags(); ?> -->
<div style="clear:both;"></div>
</div>
<?php do_action('under_title'); ?>
<?php if ($posts) : ?>
<div class="nav">
<?php topic_pages(); ?>
</div>
<div id="ajax-response"></div>
<ol id="thread" class="list:post">
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
</li>
<?php endforeach; ?>
</ol>
<div class="clearit"><br style=" clear: both;" /></div>
<p class="rss-link"><a href="<?php topic_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this topic') ?></a>
<div class="nav">
<?php topic_pages(); ?>
</div>
<?php endif; ?>
<?php if ( topic_is_open( $bb_post->topic_id ) ) : ?>
<?php post_form(); ?>
<?php else : ?>
<h2><?php _e('Topic Closed') ?></h2>
<?php _e('This topic has been closed to new replies.') ?>
<?php endif; ?>
<?php if ( bb_current_user_can( 'delete_topic', get_topic_id() ) || bb_current_user_can( 'close_topic', get_topic_id() ) || bb_current_user_can( 'stick_topic', get_topic_id() ) || bb_current_user_can( 'move_topic', get_topic_id() ) ) : ?>
<div class="admin">
<?php bb_topic_admin(); ?>
</div>
<?php endif; ?>
<?php bb_get_footer(); ?>December 17, 2008 at 9:25 pm #70431In reply to: Entries coming up with no content
Ipstenu (Mika Epstein)
ModeratorIt looks like the ‘loop’ for your posts is missing.
In your source, you mention
http://www.theacerguy.com/forum/bb-templates/theAcerGuyForum/forumStyle.css
which doesn’t exist, and really should be in my-templatesIt’s really like your topic.php is missing all the stuff from
<?php do_action('under_title'); ?>
down to the if open then reply_ok.Do you have deep integration going on? You seem to be pulling WP header stuff down.
December 17, 2008 at 8:43 pm #70428In reply to: Entries coming up with no content
flashpunk
MemberNegative – changing the theme to the default theme doesn’t fix it
December 17, 2008 at 8:40 pm #70379In reply to: Looking for alternatives
vadi
MemberYeah, I guess posting my req’s would’ve been a good start.
The forums need to accommodate a community. The community is for a open-source program – so the forums have an ideas, support, general talk, scripting (it can be done in the program by advanced users), and an offtopic section (means embedded images and whatnot).
Avatars, PM’s, a featureful button toolbar, support for code pastes (so no forum breaking, highlighting), post attachments, email post notifications, and support for embedded images is what’s missing for me currently. Oh, and a search bar…
December 17, 2008 at 8:25 pm #70142In reply to: bbPress 1.0-alpha-4 released
johnnydoe
Memberi hope a working “preview post” feature is an integral part of 1.0
December 17, 2008 at 8:08 pm #70424In reply to: change text.
chrishajer
ParticipantIn the front-page.php file in your template folder, you can do this:
Change:
<th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
to:
<th><?php _e('Topic'); ?> — <?php new_topic('Add New ---->'); ?></th>
Where Add New —-> is what you want displayed instead of the default.
December 17, 2008 at 8:01 pm #70422In reply to: change text.
johnnydoe
Memberit’s the Topic – Add New » on front-page.php
<th align="left"><?php _e('Topic'); ?> <?php new_topic(); ?></th>
thats why i thought there is a language file or such around, because the phrases here are actually php tags.
December 17, 2008 at 7:47 pm #70420In reply to: change text.
johnnydoe
Memberwell actually i want to change things like “» ” or the “|” in the footer (Welcome, admin | Admin | Log Out ) .
so sorry for the confusion so far
December 17, 2008 at 6:39 pm #70264In reply to: 1.0-Alpha-4, and the AJAX styles
Ipstenu (Mika Epstein)
ModeratorNo, it’s right. Mine does that too. They’re supposed to ‘hide’ when they’re deleted, and then you’ll see something like this :
TOPIC NAME (26 posts +2 more)
And if you click on 2 more you get the two missing posts in red and a
?view=all
at the end of your URL.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 -a
though 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 6:22 pm #70263In reply to: 1.0-Alpha-4, and the AJAX styles
stevedrum
Memberoh right, well that’s even weirder… because my deleted posts gets deleted. they disappear. they don’t stick around in a new colour.
but… i’ve just had a look at the source code after i deleted something and you are right, they are still there. and a new style has been added to the
- tag which says
style=”background-color: rgb(255, 51, 51); display: none;”
is that display:none bit an error? because that is what is making it disappear.
and also — i’ve just noticed that i get the ‘undelete’ link appear on every single post. even if it hasn’t been deleted. and it’s got a very strange class on it. it says
class=’dim:thread:post-85:deleted:FF3333:FFFF33:action=delete-post&status=0 undelete-post’
December 17, 2008 at 5:16 pm #68749In reply to: How to move a forum?
Ipstenu (Mika Epstein)
Moderator@staats – If you have access to your SQL database (like through phpMyAdmin), it’s much the same as moving any databased app, like WordPress
The first set of directions I put in the post above are mostly right. I’ve updated them here since there’s a couple things that should be explained differently than my copy replace from WordPress’s directions (why reinvent the wheel?). If you’ve got WP and BB integrated you’ll have to make all the changes to the files (wp-config and bb-config AND the admin settings changes) BEFORE you backup your database.
First, backup your database – https://codex.wordpress.org/Backing_Up_Your_Database (obviously the bb database, not the wp one for your case) No matter WHAT you want this copy! If you screw everything up (and we’ve all done that) you need a fall back plan.
- Download a copy of the main bbpress files from your OLD forum to your hard drive and edit b-config.php to suit the new server.
- Go back to your OLD forum and go to settings and change the bbPress address (URL) to that of your new site. (You may want to change your email addy here, but you don’t have to just yet).
- IF you’ve integrated bbPress and WordPress, go to your WordPress Integration page and change any domain information there that has changed.
- Download your database (but keep the old backup just in case), upload this new database and the copy of the forum files with the edited bb-config.php to your new server.
Again, if WordPress and bbPress are integrated and sharing a database, do steps 1-3 for bbpress, and then steps 1 and 2 here, and THEN do the last DB download step just once.
And if it’s all confusing … yeah, it’s a lot of fruit to be juggling at once.
-
AuthorSearch Results