Search Results for 'code'
-
AuthorSearch Results
-
December 19, 2008 at 9:06 am #69967
In reply to: bbpress is slow like godaddy says?
_ck_
Participantvannak, 10 seconds is very bad (the time is independent of where you access it from)
chrishajer, something’s not right there, Windows must think you don’t have access rights to write to the directory. Whatever Windows’s equal to chmod has to be done.
According to php.net the chmod in php actually does do something on some windows setups.
So try replacing this line, like so:
$file=dirname(__FILE__)."/test.txt"; $h=fopen($file, "wb"); fclose($h); chmod($file, 0777 );December 19, 2008 at 7:23 am #69882In reply to: Trac linking in the support forum
Sam Bauers
ParticipantJust found out that entities behave really strangely in bbPress. For some reason the standard behaviour is to take unencoded entities and encode them when editing a post.
December 19, 2008 at 2:13 am #67554In reply to: bbcode plugins URL not work
chrishajer
ParticipantAh, sorry. The URL button specifically. Missed that.
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 1:56 am #69880In reply to: Trac linking in the support forum
chrishajer
ParticipantI tried to post 1&1 and it comes up 1&1.
edit Dec 20, 2008:
this is fixed so the comment above looks like there was never anything wrong
December 19, 2008 at 12:53 am #70384In reply to: Looking for alternatives
Ipstenu (Mika Epstein)
ModeratorVbulletin makes me want to cry, regularly. I used to use Invision (someone else paid for it) but their templating system made every upgrade a two day project. SMF similarly, though the code is much easier. That ain’t saying much

Not that I think bbPress is perfect. If I had to pick anything but bbPress, I’d do SMF.
December 19, 2008 at 12:51 am #70458In reply to: button for guests
johnnydoe
Memberthank’s a ton ck, that was the right one, with a little
<?php else : ?>modification of course
helpful as usual.
nope a button was really necessary, but thanks anyways
December 19, 2008 at 12:47 am #69879In reply to: Trac linking in the support forum
_ck_
ParticipantSam this is still broken. See the previous post. there are
&38;‘s all over the site.December 19, 2008 at 12:41 am #68538In reply to: Here’s my re-theming effort
_ck_
ParticipantVery nice and clean. Needs a tiny splash of color. Topic Icons plugin should do it
December 19, 2008 at 12:39 am #70457In reply to: button for guests
_ck_
ParticipantYou almost have it. Try it this way:
<?php if (bb_is_user_logged_in()) : ?>
<li id="register_now"><a href="<?php bb_option('uri'); ?>register.php" class="pagelink">Join Now</a></li>
<?php endif; ?>December 19, 2008 at 12:37 am #70456In reply to: button for guests
Ipstenu (Mika Epstein)
ModeratorAnd using
<?php login_form(); ?>to show login info with the register link won’t do?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:55 pm #67553In reply to: bbcode plugins URL not work
_ck_
ParticipantI am changing the behavior to be more intuitive.
If they have highlighted text, it will create a link for them by just asking for the link.
If there is no highlighted text, it will first ask for the link, then it will ask for the text for the link.
Replace this function by with it’s one new line in BBcode-Buttons.js
function edInsertLink(i, defaultValue) {
if (!defaultValue) {defaultValue = 'http://';}
if (!edCheckOpenTags(i)) {
var URL = prompt('Enter the URL' ,defaultValue);
if (URL) {BBcodeButtons.tagStart = ''; edInsertTag(i);}
if (edCheckOpenTags(i)) {var myValue = prompt('Enter the text for the link', ''); edInsertContent(myValue); edInsertTag(i);}
}
else {edInsertTag(i);}
}Or download 0.0.8 shortly.
December 18, 2008 at 11:27 pm #67552In reply to: bbcode plugins URL not work
_ck_
ParticipantNo I think they mean specifically the URL button.
I see the problem too.
Investigating…
Okay the problem is you either have to highlight text you want to make into a link, or finish the link with the close URL button again. And there has to be text within the . I guess I need to make it less sensitive/work more intuitively.
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 11:18 pm #69962In reply to: bbpress is slow like godaddy says?
chrishajer
ParticipantOn a Windows server (GoDaddy) there isn’t such a thing as 777 permissions is there? It looks like 777 in my FTP client anyway, even though they’re not shown as such.
I get this error there:
Warning: touch() [function.touch]: Utime failed: Permission denied in
Hosting123456htmlgodaddynfs.php on line 9
0.00044894218444824 secondsThis is a GoDaddy Windows hosting account.
December 18, 2008 at 10:49 pm #67550In reply to: bbcode plugins URL not work
Fernando Tellado
ParticipantSame problem. I see the markups but doesn’t work
December 18, 2008 at 9:37 pm #4466Topic: button for guests
in forum Troubleshootingjohnnydoe
Memberhello,
i’d like to add an extra register button to the frontpage of bbpress, i tried the following code, but i had no luck (not to mention that my php knowledge is more than just basic)
<?php if ($user->user_exists != 0) : ?>
<li id="register_now"><a href="register.php" class="pagelink">Join Now</a></li>
<?php endif; ?>thanks a bunch
December 18, 2008 at 9:33 pm #69961In reply to: bbpress is slow like godaddy says?
_ck_
ParticipantWell we don’t need to pinpoint exactly the server configuration as the timing will never be exactly the same twice on the same machine. But it will be within a very close range. What we are looking for are times that are way beyond one second.
I’ll do some more digging over the weekend against some of the more popular hosts.
I want to see it run on godaddy though. That will be interesting. I’m sure I can find a good discount coupon code to get the first month very cheap so I’ll give that a go if so.
December 18, 2008 at 7:45 pm #69960In reply to: bbpress is slow like godaddy says?
Ipstenu (Mika Epstein)
ModeratorTurns out mine aren’t the same (exactly).
Server 1
Operating system Linux
Kernel Version 2.6.9-55.0.9.ELsmp
Apache version 1.3.41 (Unix)
PERL version 5.8.8
PHP version 5.2.4
MySQL version 5.0.67-communityServer 2
Operating system Linux
Kernel Version 2.6.9-67.0.4.ELsmp
Apache version 1.3.37 (Unix)
PERL version 5.8.8
PHP version 5.2.1
MySQL version 5.0.51a-communityDecember 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 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=loremDecember 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
-
AuthorSearch Results