Search Results for 'code'
-
AuthorSearch Results
-
July 19, 2010 at 5:27 pm #91170
In reply to: new performance testing plugin: Browser Timer
_ck_
ParticipantOkay let’s assume the host is doing something weird.
Make a temporary file in the same directory that you want the log to be.
ie.
test.phpput this in the file
<?php echo __FILE__; ?>Then access it from the web, ie. example.com/my-plugins/browser-timer/test.php
Whatever it shows you, change the ending
test.phppart tobrowsertimer.logand then put it inside
$browsertimer['log']='full line here';Now that has to work, as long as the
my-plugins/browser-timer/directory is chmod 777.July 19, 2010 at 5:21 pm #91169In reply to: new performance testing plugin: Browser Timer
pastorbobsforum
MemberI have deleted the .log file. I’ve made the modifications in browser-timer.php
$browsertimer=dirname(__FILE__).'/browsertimer.log';The weird thing is that I can no longer see the .log file being created and I get the same
log open errorMy permissions on the folder are 777, as I said before.
Another thing is that I am getting a 550 Permission Denied in Filezilla when I try chmod, but it’s ok in their filemanager. Even Filezilla tells me that I have 777.
Any other ideas?
Bob
July 19, 2010 at 5:01 pm #91194In reply to: _ck_ owes me ten bucks
Matt Mullenweg
KeymasterLOL.

Security is an excellent reason to upgrade (whether terrified or not) but it should be noted that 3.0 contains no security fixes, so it’s no more secure than 2.9.2. (Yes, it’s been that long since a security release. This doesn’t mean there isn’t anything hiding in the code, but we don’t know about it yet and the frequency between issues being brought up is going down even as our popularity is growing, which I hope means we’re becoming more intrinsically secure.)
July 19, 2010 at 4:56 pm #91226In reply to: Login into WP, logged out of BBP
jmharrington
MemberI was able to easily solve my issue by finding one careless mistake. In my wp-config.php file I simply copied the authentication keys (4 of them) and pasted them into my bbpress’s config.php file. What I did not notice is that in wp-config.php they keys are prefixed like this:
define(‘AUTH_KEY’,’my unique key is here’);
While in the bbpress config.php, the keys are prefix like this:
define( ‘BB_AUTH_KEY’,’my unique key is here’ );
The only difference is AUTH_KEY versus BB_AUTH_KEY, but that made the difference. Hope this helps technotip…
thanks _ck_ for emphasizing the auth keys
July 19, 2010 at 4:55 pm #91333Gautam Gupta
ParticipantI just had a suggestion – when the plugin would be public and this site’s posts converted, we could have an if statement above the topic like
if ( topic_date is before bla bla date || one of the topic_tags == 'bb_old' ) { /* load a message which says that this is for bb 1.1 and below, this doesn't apply to the new plugin */ }But I’m also not against changing its name or having its version as
2.0.July 19, 2010 at 4:49 pm #91347In reply to: Allow Images (0.9) Plugin – set permissions
_ck_
ParticipantThe images are hosted elsewhere when using the
[img]tag so bandwidth doesn’t matter.Are you thinking of uploaded attachments which is another plugin entirely?
Unless maybe you mean you only trust certain users to be able to post images at all because you are afraid of content you don’t want from unknowns. That would be possible.
If you want the latter, try replacing the plugin with this:
<?php /* Plugin Name: Allow Images (moderators only) */ add_filter( 'bb_allowed_tags', 'allow_img_tag' ); function allow_img_tag( $tags ) { if (bb_current_user_can('moderate')) { $tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array()); } return $tags; } ?>That will allow moderators or higher to post image tags, everyone else will end up encoded. You could also optionally use the
throttlepermission which is the checkbox in the user’s profile that allows then to post faster than 30 seconds apart, but use it also as a flag that they can post images (just changemoderatetothrottle)July 19, 2010 at 4:40 pm #91330_ck_
ParticipantIt will take me a little while to find the original post but years ago you said you didn’t like the bbPress name.
If I can’t plead with you for a name change for a completely different forum program (it will likely share 10% or less of the original code) than at least don’t call it
1.21.2has way too many implications that it’s a minor upgrade to1.1when in reality it’s a major overhaul (most especially if you aren’t running WordPress or WordPress 3).All themes, plugins, hacks, advice will be invalidated.
That’s not a
x.1tox.2update!July 19, 2010 at 4:31 pm #91193In reply to: _ck_ owes me ten bucks
_ck_
ParticipantYeah problem was solved – sometime in the past week the code bug was fixed, I have no idea exactly when or by whom but was going to point it out until I tested it.
Unfortunately it did not clear up existing posts that were already html-entitied by the bug an example or two (but it even happened inside of backticks too)
I kinda don’t want to get into WP politics here (we’ve got enough of our own problems) but you can’t count downloads by existing users anymore who are terrified of being hacked because they didn’t keep up with the newest release.
I was looking into having some reindeer paraded by your door (10 “bucks” get it?) but I was afraid you’d BBQ them and send me a photo or something like that
July 19, 2010 at 4:17 pm #91168In reply to: new performance testing plugin: Browser Timer
_ck_
ParticipantYour server must have some fancy virtual host mapping.
By the way I just noticed you said this “I created a file called browsertime.log”
delete that file you made because it may have permissions that PHP cannot modify for some reason depending on your host – let the PHP code make the file
Well we can take the lazy way out:
$browsertimer['log']=dirname(__FILE__).'/browsertimer.log';That should almost certainly work and be right in the plugin directory.
July 19, 2010 at 4:03 pm #89040In reply to: OneMoreThing.nl
johnnydoe
Memberhey kevin,
thank you for stepping in with a helping hand, i appreciate that a lot.
but i had sadly though luck with your code so far.
July 19, 2010 at 4:00 pm #90512_ck_
ParticipantYou know what, this idea grew on me, I like it and off to apply it.
It could be done a little fancier via the filters on
bb_titleandbb_get_titleie. the page could be injected between the forum name and the topic name, but this will do for now.July 19, 2010 at 3:57 pm #91167In reply to: new performance testing plugin: Browser Timer
pastorbobsforum
MemberHello again.
I cannot get it to work yet. Jolly well!
So, my Filezilla path is: /pastorbob.limewebs.com/my-plugins/browser-timer/
But my FTP is ftp://ftp001101.limedomains.com/pastorbob.limewebs.com/my-plugins/browser-timer/
I have changed this to what you’ve told me:
$browsertimer['log']=$_SERVER['DOCUMENT_ROOT'].'/pastorbob.limewebs.com/my-plugins/browser-timer/browsertimer.log'Then I’ve tried the other option as well:
$browsertimer['log']=$_SERVER['DOCUMENT_ROOT'].'/ftp001101.limedomains.com/pastorbob.limewebs.com/my-plugins/browser-timer/browsertimer.log'I thought that I might have been on to something. But I wasn’t.
Thank you for your help, again!
Regards,
Bob
July 19, 2010 at 3:45 pm #89039In reply to: OneMoreThing.nl
kevinjohngallagher
MemberHi Johnny,
You need to pass the user id into the avatar function.
I’m not near my code righ tnow, but you’re looking at something like this:
get_avatar(poster->id);July 19, 2010 at 3:38 pm #91165In reply to: new performance testing plugin: Browser Timer
_ck_
ParticipantAh, you almost have the log location concept but not quite.
I am going to assume you are trying to put the log file in the same directory as the plugin. I really don’t advise this at all for security reasons but if you are just doing short term testing and will delete it later it could be temporarily acceptable.
So, in that case
my-plugins/browser-timer/must be chmod 777(the sub-directory
/browser-timer/I mean)Now is the path to the file really
/pastorbob.limewebs.com/my-plugins/browser-timer/browsertimer.log'Because that doesn’t seem quite right. I see it’s off a subdomain but still, I’ll not certain.
Try changing
dirname($_SERVER['DOCUMENT_ROOT'])to just plain
$_SERVER['DOCUMENT_ROOT'](don’t forget leave the dot afterwards)
If that doesn’t work, what’s the full path to
my-plugins/browser-timer/that you see in your FTP program (if it hopefully shows the full path). If not, we can take a peek at phpinfo.What I’d really rather see is you putting the log in a subdirectory ABOVE your web root (aka Document Root).
But give that a try for now and let me know.
July 19, 2010 at 3:27 pm #89038In reply to: OneMoreThing.nl
johnnydoe
Membera killer theme guys, respect!
anyway, i’m curious on how you was able to get it work with the last poster and last topic avatar for front-page.php.
i’ve already tried it months ago with
<?php post_author_avatar(); ?>between td’s but for some reason i get the same static gravatar for all users.thank’s in advance.
July 19, 2010 at 3:09 pm #91164In reply to: new performance testing plugin: Browser Timer
pastorbobsforum
MemberHello.
I have an account on limedomains.com
My home directory is pastorbob.limewebs.com
So, I figured that this should be my setting in browser-timer.php
$browsertimer['log']=dirname($_SERVER['DOCUMENT_ROOT']).'/pastorbob.limewebs.com/my-plugins/browser-timer/browsertimer.log';I set the permission for browser-timer to 777.
I created a file called browsertime.log
But when I go to http://pastorbob.limewebs.com/?browsertimer , I get
log open errorIs it just me?
Regards,
Bob
July 19, 2010 at 1:48 pm #91191In reply to: _ck_ owes me ten bucks
_KB_
ParticipantWOW, Welcome Back Matt, Its nice to see you
.I’ll be very happy if you can reply for my post.
Can you please?
July 19, 2010 at 12:04 pm #34760Topic: bbPress 0.9 supports WP 3.0 cookies via Freshly Baked Cookies
in forum Plugins_ck_
ParticipantI’ve just tested bbPress 0.9 with WP 3.0’s cookies and the Freshly Baked Cookies plugin DOES work properly.
Just make sure your cookie paths for WordPress and bbPress are pointing the same place (ie.
/) which was always required for proper integration anyway and is not done by the plugin but inside wp-config and bb-config – see the numerous integration guides around bbpress.orgMake certain you are using version 0.0.4 of the plugin or higher which supports the newer kind of WordPress cookies in use since WP 2.8
July 19, 2010 at 8:50 am #90846In reply to: How Can I Fix a Slow Queries Problem ?
_ck_
Participanthonestscott, any update on this?
Even 1.x should not be causing slow queries, something might be misbehaving.
My Super Search plugin DOES do a very heavy non-indexed query, it’s unavoidable. But unless you have a large forum with frequent searches, I am not sure that would get you in trouble.
The good news is if you’ve moved to a VPS (I assume that’s what “semi-dedicated server” means) you have direct control over a few important things you didn’t have before. It means we can make sure your MySQL cache is on (it’s off by default on many setups for some strange reason) and you can install an opcode cache like eAccelerator which will cause a fantastic reduction in load and improve speed.
July 19, 2010 at 7:58 am #91202In reply to: bbPress activity metrics
_ck_
ParticipantIs it possible to copy over the “stats” code from the WP plugin section to bbpress.org, or is it more complex than that?
ie. https://wordpress.org/extend/plugins/wp-e-commerce/stats/
vs. https://bbpress.org/plugins/topic/bbpress-signatures/stats/
Even without the fancy graph, just the little History section would be handy.
I’m debating doing another full survey of active bbPress installations by the end of this year despite it’s replacement, but it’s still easy to believe it’s well over 10,000 – might even be 20,000 or higher if the growth has become exponential.
ps. somewhat related: the tag import (from
readme.txt) in the plugin section has been broken since the bbpress.org 2.0 upgradeJuly 19, 2010 at 6:08 am #91223In reply to: Login into WP, logged out of BBP
Satish
ParticipantI have the same problem on my blog, and I was thinking its just me

Thanks jmharrington for taking time to write here.
Can anyone help us?
July 18, 2010 at 11:08 pm #90951In reply to: bbPress Plugin is Born
John James Jacoby
Keymaster@gswaim If it comes down to name calling or aggression, that’s always an option, but usually the last one if we can all help it. Fortunately the moderation team over here is fantastic, so no worries there.

The decision to allow Pete and myself the opportunity to do the bbPress plugin conversion wasn’t only Matt’s to make, and was agreed on by a committee of all of our peers running the 3.org initiatives, in #wordpress-dev on freenode, and on the WordPress development blog.
The reason it’s bbPress 1.2 rather than bbPress 2.0 (at least as it stands today) is because part of the coding standards we adhere to is not inflating version numbers. Could always see if everyone agrees to inflate based on the amount of new code going in, but I don’t think that’s my decision to make, and I would wager that it’s unlikely to happen? Been wrong before though.
July 18, 2010 at 10:16 pm #91077In reply to: No admin access.
namelesshorseman
Member@chrishajer yep, I honestly didn’t think it would be a problem. Guess I learned my lesson
! Thanks for those links, that’s much easier than searching. I’ll look to see if a similar bug has been filed first.
Tomek
July 18, 2010 at 2:36 pm #89286In reply to: Same forum using http and https
_ck_
ParticipantThat’s strange because pluggable functions should step out of the way if they are already defined before it gets to it.
For some reason the plugin is loading AFTER the pluggable loads, instead of before. I can’t quite explain that.
Try renaming the plugin by putting an underscore in front of the name, ie.
_https-mode.phpand make sure it’s directly under
my-plugins/and not in a sub-directory under it.That’s the only idea that pops into my head right at the moment.
ps. make sure you are using the newest one so far here:
July 18, 2010 at 2:04 pm #89285In reply to: Same forum using http and https
namelesshorseman
Memberhi _ck_,
I’m trying to use your fix https://bbpress.org/forums/topic/https-with-bbpress-login#post-23667 + your code above, but get the following error when I try to activate the plugin:
Fatal error: Cannot redeclare bb_validate_auth_cookie() (previously declared in <path to bbPress>/bb-includes/functions.bb-pluggable.php:142) in <path to bbPress>/my-plugins/https-mode.php on line 22Any ideas?
Thanks!
Tomek
-
AuthorSearch Results