Search Results for 'code'
-
AuthorSearch Results
-
February 17, 2008 at 10:03 pm #63004
In reply to: New bbPress Theme: Black-Letterhead
_ck_
ParticipantAdded to the theme switcher here:
http://bbshowcase.org/forums/?bbtheme=blackletterhead
Looks suitable for Halloween
February 17, 2008 at 1:13 pm #60242In reply to: Statistics module for “My Views” in testing
thierryyyyyyy
ParticipantCan we have this page without installing the “big plugin” My_views ?
Perhaps I can download this “module” and look at the code, and make a small plugin. Or just make a link that shows this page.
I forgot to say : wow ! nice plugin
exactly what I want to see.
February 16, 2008 at 10:13 am #55042_ck_
Participanthttp://pravin.insanitybegins.com/articles/running-bbpress-on-sourceforge
I also believe there is code on the WordPress side that uses 3rd party mailers like gmail or yahoo to send passwords. This could be easily adapted to bbPress as a plugin.
February 16, 2008 at 4:55 am #62974In reply to: translate this piece of code, please?
t3ch33
Membernm. i just reinstalled it.
February 16, 2008 at 4:25 am #62973In reply to: translate this piece of code, please?
t3ch33
Memberanyone? please?
February 16, 2008 at 4:24 am #62930In reply to: 404 Error ~ New installation.
deesdogcare
MemberOK ~ mark it as resolved ~~~ I’m just an idiot. I didn’t notice (even as many times as I’ve seen copies of the mod line) that there were NO QUOTES when you mark it FALSE. Saw that tip in another thread just a few minutes ago and tried it . … .
I don’t get 404 error pages anymore!
I can edit my users, read threads, EVERYTHING!
Sorry I am so slow at this!
Thanks for the help!
D
February 15, 2008 at 7:20 pm #57816In reply to: Theme: Misty for bbPress
_ck_
ParticipantOmegacool has a wp.com site too, there are download links there as well:
http://mundoarroba.wordpress.com/2007/05/24/theme-misty-para-bbpress/
(ps. it’s bbShowcase.org I decided bbpressshowcase was just too long and too many sss’s
February 15, 2008 at 11:17 am #62926In reply to: 404 Error ~ New installation.
_ck_
ParticipantIf you cannot get into admin panel it’s one of two reasons:
1. cookie hashes & paths don’t match
2. you do not have the proper role set under bbpress as administrator
The 404’s may be caused by turning on slugs without multiviews or proper mod_rewrite rules. If you have slugs turned on, turn them off temporarily (in your config.php) until you solve the other problem. ie.
$bb->mod_rewrite = false;
I am betting on the role not being set in bbPress that’s preventing you from getting to the admin panel. This can be inspected/fixed via phpmyadmin. I’ve been meaning to write an auto-load plugin to fix this issue automagically.
UPDATE:
I’ve whipped up a little plugin to restore proper admin access roles for both bbPress and WordPress without having to tinker in phpmyadmin:
http://bbshowcase.org/plugins/fix_admin_access.zip
Copy this to your plugins directory in bbPress OR WordPress (not both). Then access bbPress or WordPress (whichever you used). Then test you can access admin panel. Then DELETE the plugin off your server. There is no reason to leave it there.
(you MUST leave the leading underscore “_” on the plugin name which makes it auto-load without having to activate it first. I have not tested it from the WP side but in theory should be fine.)
February 15, 2008 at 5:41 am #2900Topic: translate this piece of code, please?
in forum Pluginst3ch33
MemberThis code is supposed to go in bb-admin/install.php for the plugin that allows users to post anonymously. My bbpress was already active when I discovered the plugin, so, of course, i didn’t want to run the install file again. So, can you translate this for me so that I can possibly make the changes manually? Thanks. The code is as follows:
bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );
February 15, 2008 at 5:36 am #62963In reply to: where do you place plugins in bbpress?
t3ch33
Memberhans3, thank you. that worked.
February 15, 2008 at 3:39 am #55749In reply to: Anonymous posting
t3ch33
MemberThis is almost working for me. My bbpress was already active, so i didn’t want to run the modified install file. Here is the code that’s in the bb-admin/install.php file:
// Anonymous User
$now = bb_current_time('mysql');
$bbdb->query("INSERT INTO $bbdb->users (user_login, user_registered)
VALUES ('anonymous', '$now')");
$bbdb->query("UPDATE $bbdb->users SET ID = '0' WHERE user_login = 'anonymous'");
bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );Since my bbpress is already active, I have manually updated my users table by following the guideline in the above code. But, I have no idea what the last line of code means:
bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );
Can you modify it so that I can manually update the db or do whatever needs to be done to make it work? Thanks.
February 14, 2008 at 8:07 pm #50219In reply to: Change Post Order Question
3ring
MemberHey Mods;
(Tried to install plugin, got fatal error, so tried code file edit…)
I just want one post to have reverse order, so I tried:
if ( !$bb_db_override ) :
if ($topicid == '54') {
$posts = get_thread( $topic_id, $page, true );
} else {
$posts = get_thread( $topic_id, $page );
}
$forum = get_forum ( $topic->forum_id );
$tags = bb_get_topic_tags ( $topic_id );
But it doesn’t seem to recognize the topic id – it displays all posts normally? Am I assuming wrongly that the topic_id is the number after “/topic/##” in the thread url?
Can you see anything I’m doing wrong? How do I isolate a single post to be reverse order?
Thanks!
February 14, 2008 at 7:50 pm #62955t3ch33
Memberlooks like i had a bad install. sorry for the panic.
February 14, 2008 at 7:33 pm #62880In reply to: Conditional tag for a particular user
rosebud
MemberI figured it out. Thanks anyhow.
<php if ( $user_id == 1 ) : // User number one ?>
February 14, 2008 at 2:39 pm #62952chrishajer
ParticipantbbPress does not create the .htaccess file. You have to manually create it with a text editor either on the server, on locally, then upload it. The file can contain one of two things:
1. Options +MultiViews
or
2. visit http://website.com/dir/bb-admin/rewrite-rules.php
That script will generate the rules you need to put in your .htaccess file. Use this if the first option does not work.
If you cannot get permalinks working, just change the mod_rewrite line to false in your config, so you can at least use your forum until you get permalinks working.
$bb->mod_rewrite = false;
February 14, 2008 at 2:27 pm #62934In reply to: Edit topic title
chrishajer
ParticipantAs keymaster, if you log in and edit the first post in a topic, you have access to editing the title. If you created the topic as a user, there is a limited amount of time that you can go back and edit your own post. By default, I think the limit is 60 minutes, set in the config.php with
$bb->edit_lock = 60;
.February 13, 2008 at 9:35 pm #62912In reply to: 404 Errors in Internet Explorer Only
chrishajer
Participantdreamsofthequill: since _ck_ caught the session issue, I recalled that dotq.org also had a session in the response:
u39872340:~/riverside/bbpress-831 > time curl -I dotq.org
HTTP/1.1 200 OK
Date: Wed, 13 Feb 2008 21:33:49 GMT
Server: Apache
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Pingback: http://dotq.org/xmlrpc.php
Set-Cookie: PHPSESSID=263b0ed23debf73f72bb98c377fb5fbb; path=/
Content-Type: text/html; charset=UTF-8
real 0m5.749s
user 0m0.004s
sys 0m0.000sMaybe the issues are the same?
February 13, 2008 at 9:33 pm #62910In reply to: 404 Errors in Internet Explorer Only
chrishajer
Participantnoyz319: I would try a stock installation of bbPress without the WordPress stuff. The
require_once wp-blog-header.php
seems to be fouling it up.February 13, 2008 at 8:26 pm #2883Topic: Adding a column to a table install
in forum Installationdarkling235
MemberI have the code to work with the new field in the DB all ready and tested. To test it I just created a new column in the user table manually. Is there a way to do it automatically on install?
I.E. bbpress creates a bunch of tables and fields when it is first activated, how can I alter what tables are created and what columns they possess?
February 13, 2008 at 7:16 pm #62903In reply to: 404 Errors in Internet Explorer Only
chrishajer
ParticipantCan you force godaddy to use PHP5 instead of PHP4 by making this change to your .htaccess?
AddType x-mapp-php5 .php
Put that line at the top of your WordPress .htaccess if GoDaddy allows PHP5. I could not tell from your server response which version of PHP is being used. You could create a file called info.php with this in it:
<?php
phpinfo();
?>then put it somewhere accessible via browser, then load it up. It will tell you the version of PHP being used. Try it before and after making that change to the .htaccess file.
Call that info.php then load it in a browser at whatever URL you choose.
I am curious to see if using PHP5 will make the 404 errors go away…
February 13, 2008 at 6:43 pm #62899In reply to: 404 Errors in Internet Explorer Only
319
ParticipantI’m still getting the 404 about 95% of the time in IE. The front page of the forum usually loads, but clicking back and forth into some of the sub forums etc.. gives me a 404 pretty much every time, does this not happen for you in IE?
Not exactly sure what that command line response means, but in the forum directory there isn’t a .htaccess file, there used to be one in there when i had first tried to setup pretty permalinks, but i removed it that a few days ago when i found out bbpress + slugs + godaddy hosting does not work (which i don’t really understand but have given up on for now).
And our wordpress .htaccess file is pretty standard i think:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressA pretty large segment of our visitors use IE, so i don’t think we’ll be able to launch the forum as is with this error occuring.
February 13, 2008 at 6:22 pm #62898In reply to: 404 Errors in Internet Explorer Only
chrishajer
ParticipantOFFTOPIC: I hate the fact that code in backticks has changed 0.8 em recently. It’s nearly unreadable. They must be working on the site since there have been a couple other CSS changes recently as well. Looks like the changes were made about a week ago.
February 13, 2008 at 6:18 pm #62897In reply to: 404 Errors in Internet Explorer Only
chrishajer
Participantnoyz319: the site loads for me in Firefox and IE, but when checking the server response from the command line, it gives a 404 error.
u35452940:~ > time curl -I clutchmagonline.com/forums/
HTTP/1.1 404
Date: Wed, 13 Feb 2008 18:14:13 GMT
Server: Apache
Cache-Control: no-cache, must-revalidate, max-age=0
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Pragma: no-cache
X-Pingback: http://clutchmagonline.com/xmlrpc.php
Set-Cookie: PHPSESSID=cec9b723687a4a88fc83b4a528c2017a; path=/
Last-Modified: Wed, 13 Feb 2008 18:14:15 GMT
Content-Type: text/html; charset=UTF-8
real 0m1.550s
user 0m0.004s
sys 0m0.000sIs it possible that you have an .htaccess file with rewrite rules that would do something like this? That’s kind of interesting that it returns a 404 error but still loads the forum. Maybe there’s an ErrorDocument directive that directs the 404 error to the forum index page?
Weird.
The server response has been consistent though between IE, FF and command line, so I wouldn’t worry too much about the fact that it only happens sometimes. There is one thing making the 404 error happen on all browsers. I wonder what that is…
February 13, 2008 at 4:49 pm #62789chrishajer
ParticipantThe default role is set in bb-includes/capabilities.php around line 485
$user->set_role('member');
This is a job for a plugin, but I haven’t tried to write one yet, so if you were to change that word
member
toinactive
, my guess would be that that would make any new member inactive and then the keymaster would need to edit their role to make them members.ACTUALLY – that didn’t work
In bb-includes/pluggable.php, line 361 says this:
bb_update_usermeta( $user_id, $bb_table_prefix . 'capabilities', array('member' => true) );
I changed member to inactive there, and now new users are inactive when they first register.
Like I said, this is really a job for a plugin, but you could probably use this last change temporarily until a proper plugin is written.
HTH, and be warned this is not a good way of doing it. It should really be a plugin I think.
February 13, 2008 at 4:02 pm #62891In reply to: 404 Errors in Internet Explorer Only
chrishajer
ParticipantThe dotq.org site is REALLY slow, like the server is overloaded or the pipe to it is overloaded or something. It loaded for me in Firefox, once, but in IE it timed out after 60 seconds or something.
When I did it with the command line, it took almost 58 seconds, and that’s browser independent. I think the problem is that the server is slow, or the software running the site is slow, one or the other.
u35878210:~ > time curl -I dotq.org
HTTP/1.1 200 OK
Date: Wed, 13 Feb 2008 15:59:37 GMT
Server: Apache
real 0m57.898s
user 0m0.004s
sys 0m0.000s -
AuthorSearch Results