Search Results for 'code'
-
AuthorSearch Results
-
December 28, 2006 at 12:23 am #52853
In reply to: My post form conflicts with normal bbpress post form
chrishajer
ParticipantThat php error is usually caused by white space/blank lines before the
<?phpor after the closing?>. I would check for that first.December 27, 2006 at 10:29 pm #51713In reply to: My modification of the default theme
Nicki Faulk
MemberYeah, I know that once theming ability is added to bbPress, I’ll probably be fixing several things on this theme! LOL
But hey, it’s yet another toy for me to muck up, I mean, play with.
December 27, 2006 at 10:19 pm #1154Topic: My post form conflicts with normal bbpress post form
in forum PluginsNull
MemberHi,
My plugin has a post form. It works all great, but seems to conlfict with every other post form from the forum. Only the form from my plugin works, all others (like posting a reply) will generate errors.
If tried to resolve this by adding an hidden field:
<input type=”hidden” name=”portalforum” value=”1″ />
so this form is only used when value is 1:
if ($_POST['portalforum'] == 1)This seems to resolve the problem, but ow i get another error:
Warning: Cannot modify header information – headers already sent by etc etc
Any ideas of how to fix this? Or to only use the form when in the admin area?
Thx
December 27, 2006 at 10:19 pm #51711In reply to: My modification of the default theme
Nicki Faulk
MemberThank you, Trent.

I just may do that. I’m still working out little kinks here and there (mostly spacing issues), but I’ll definitely share here when I’m finished (or at least satisfied LOL!).
December 27, 2006 at 10:11 pm #994Topic: My modification of the default theme
in forum ThemesNicki Faulk
MemberI’ve tried to match it up as close as possible to the main site without looking too “off” and feel that I’ve done a pretty good job.

http://www.nowwerecookin.org/bbpress/
You’ll need a p/w and username: test/test
Plugins used:
- Allow Images 0.7.1
- Avatar .73a
- bbEmoticons version 0.72
- Memberlist .73a
- Google Sitemap Generator .6
- BBPress Private Messaging 0.73
- Use Display Name 0.7.2
- Online List 1.3-fix
- WordPress Integration .7
(all plugs found via these forums
)Feedback would be greatly appreciated. I’ve checked on Firefox 2.0 and IE 6.0 but would love to hear from users of other browsers!

Thanks in advance, and a huge thanks to those who’ve posted these plugins, as well as the FAQ and other solutions. Skinning this thing has been a bear, but everything else has been relatively easy as pie.
December 27, 2006 at 5:12 pm #52744In reply to: Plugin – Memberlist *UPDATE*
Nicki Faulk
MemberVery nice!

Worked perfectly the first time. One tiny detail I would add: users whose bbpress install is in a directory named anything other than “forums” will need to change the RewriteRule in order to reflect the correct path. I almost missed that part.
December 27, 2006 at 3:11 pm #52640In reply to: Plugin: [REL] Signature
chrishajer
ParticipantThanks
December 27, 2006 at 12:32 pm #52639In reply to: Plugin: [REL] Signature
skrimpy
MemberChris – I’d be glad to. I opened post.php (found in bb-templates or in my-templates) and modified it by placing
<?php post_sig(); ?>into the code.my finished code section looked like this:
<div class="threadpost"><div class="post"><?php post_text(); ?><?php post_sig(); ?></div>
<div class="poststuff"><?php _e('Posted:'); ?> <?php bb_post_time(); ?> <a href="<?php post_anchor_link(); ?>">#</a> <?php post_ip_link(); ?> <?php post_edit_link(); ?> <?php post_delete_link(); ?></div>
</div>
I then saved and uploaded this into my-templates.
I’m going to try and do some more customizing to get the sigs to look just the way I want them to on my forums. I’ll post if I’m successful
December 27, 2006 at 9:32 am #52743In reply to: Plugin – Memberlist *UPDATE*
spencerp
MemberYES! Once again gerd damn-its, testing a bunch of crap out the arse.. for Josh there.. it’s FINALLY working both ways now.. whee!!
http://spencerp.net/forums/mlist/
http://spencerp.net/forums/mlist.php
Now, maybe, hopefully, some time soon here.. I’ll be able to actually work on MY theme’s for the blogs… because I’m already 7 months behind on the crap.. sigh..

spencerp
/It’s fun though.. being the guinea pig .. of a bbpress plugin pimp! lmao
December 27, 2006 at 9:19 am #52742In reply to: Plugin – Memberlist *UPDATE*
ardentfrost
MemberOk, it’s updated. You should download version .73c (for a small change) then add this in your .htaccess file if you need to have the rewrite rules in that location:
RewriteRule ^mlist/ /forums/mlist.php? [L,QSA]December 27, 2006 at 7:39 am #52739In reply to: Plugin – Memberlist *UPDATE*
ardentfrost
Member.73b is on my download page ( http://faq.rayd.org/memberlist/ )
And I never said you were attacking my skill. If you don’t like the error message that you should never see, then change it. Again, it is open source. Just open mlist.php that you put in your root directory; it’s at the end of the file.
And it sounds like you are having a similar problem as spencer. He turns on permalinks and it works for everything except my plugins, whereas my plugins work fine for myself and others who have permalinks on.
If the problem persists, you can either turn off pretty permalinks until I figure out what the problem is, or you can change the function on line 100 in bb-memberlist.php in your my-pluins directory to this:
function bb_get_memberlist_link( $tag = '' ) {global $bb;
if ( $bb->mod_rewrite )
$r = bb_get_option('uri') . "mlist.php" . ( '' != $tag ? "?$tag" : '' );
else
$r = bb_get_option('uri') . "mlist.php" . ( '' != $tag ? "?$tag" : '' );
return apply_filters( 'get_memberlist_link', $r );
}
December 27, 2006 at 7:26 am #52738In reply to: Plugin – Memberlist *UPDATE*
Nola1974
ParticipantI wasn’t talking about your programming skill, I was commenting that saying “f’ed in the A’ isn’t a very appropriate thing to put in code that will be appearing on other people’s sites. I didn’t mean for it to be a personal attack.
I have pretty permalinks turned up, but not sure if my .htaccess file is working like it should. WHenever I add new plugins, they dont seem to work with pretty permalinks. (pm, mlist etc…) I tried going to bb-admin/rewrite-rules.php but it just redirects me to the main page. Perhaps bb-press is assuming I’m in a bbpress directory?
there’s a .73b? I’m running .73 currently. I’ve looked all over the site and cant find a mention of downloaing a .73b version.
December 27, 2006 at 6:12 am #52735In reply to: Plugin – Memberlist *UPDATE*
Nola1974
ParticipantHmm. I keep getting taken to ‘mlist’ instead of mlist.php
Then, when I change it to mlist.php in the plugin, I get
Oh Snap! Your memberlist got F'd in the AReal professional.
December 27, 2006 at 4:55 am #52276In reply to: Plugin – Private Messages
Nicki Faulk
MemberYes, I’m integrated.
December 27, 2006 at 3:02 am #52274In reply to: Plugin – Private Messages
Nicki Faulk
MemberNot sure why, but I had to make these changes to get the PM links to work for me:
if ( $bb->mod_rewrite )$r = bb_get_option('uri') . "message" . ( '' != $tag ? "$tag" : '' );
to
if ( $bb->mod_rewrite )$r = bb_get_option('uri') . "message.php" . ( '' != $tag ? "$tag" : '' );
and
if ( $bb->mod_rewrite )$r = bb_get_option('uri') . "pm" . ( '' != $tag ? "$tag" : '' );
to
if ( $bb->mod_rewrite )$r = bb_get_option('uri') . "pm.php" . ( '' != $tag ? "$tag" : '' );
Works great though!

EDIT: I get this error when I add the pm_user_link bit to my post.php
“bbPress database error: [Table ‘CENSORED_DB_NAME’ doesn’t exist]
SELECT * FROM bb_users WHERE ID = 1″
I never could figure out why I was getting that, so I just deleted that bit, but otherwise seems to be working fine.
December 27, 2006 at 2:42 am #52637In reply to: Plugin: [REL] Signature
skrimpy
Memberfigured it out
I have it working now. I needed to mod post.php
December 26, 2006 at 6:36 pm #50190In reply to: Changing background color on forums listing
skrimpy
MemberI also had this issue noticed by a user of my forum running IE6. I changed the code as said above and he reported the pink gone. The screenshot he sent doesn’t show alternating grey and white topics/forums as my screen shows (I’m running firefox). It’s all solid white.
Has anyone been able to further address this issue with IE6?
Nicki Faulk
MemberGREAT FAQ!
The Permalinks solution fixed my problems in a jiffy!
(Silly me, I re-installed 3 times before *finally* finding the FAQ … no more turkey for me!
)
December 26, 2006 at 2:14 pm #49480In reply to: Are there any localization files?
satellio
Member@pompilos and lstelie
I guess the change password bug (and general user-account editing bug) in the translated versions are triggered by the translation of this line in the
bbpress/bb-includes/functions.phpfile:$profile_menu[0] = array(__('Edit'), 'edit_profile', 'edit_users', 'profile-edit.php', 'edit');If you translate
'Edit'by'Editer'or'Modifier', for example, users won’t be able to save their password change, and administrators won’t be able to save a role change for an user; the last part of the edit link —…/edit— will be changed to either…/editeror…/modifier. The page will display, but when you click on the save button, changes to the user’s profile won’t be saved.December 26, 2006 at 12:09 pm #52419In reply to: Plugin Request: Forum Categories..
lordcoder
MemberOk if my PHP/MySQL knowledge is still good , the plugin must , on the first use , add a new collumn to bb_topics table ( named for example cat_id ) , and a new table titled bb_cats .
On each use of the plugin , it must check if everything is good ( the collumn cat_id , the table bb_cats ) before continuing , and if not , it must display the default structure of the forum .
To perform this last , there must be new template tags which can be ignored if the plugin installation is wrong , so the plugin needs its proper template file …
We know that the goal of BBPress is to be light and fast , so if you code all the things above and use them on a plugin , BBPress will be slower , i think like PunBB …
So my tip is ; don’t use categories , try to remove no useful forums , merge some forums if they are similar , and you’ill have a good order without categories .
December 26, 2006 at 11:59 am #52849In reply to: profile_menu doesnt work on all pages
lordcoder
MemberOk , i see that my messages are incomprehensible ( normal , i am not a native english speaker ) , i ill try again ( my english will suck a little
) .I have this on my my-templates/footer.php :
<?php if ( $bb_current_user->ID ) : ?><li><h2 class="vcard">Profile</h2></li>
<li>
<?php profile_menu(); ?>
</li>
<?php endif; ?>
My goal is to display the avaible profil options for the connected user if no other user’s profil is viewed .
But it doesnt work until i dont go to another user’s profil and displays this error :
Warning: Invalid argument supplied for foreach() in /home/httpd/bouazza/bouazza.franceserv.com/sbouazza/forums/bb-includes/template-functions.php on line 59And only one item is viewed , Profile , and it contains a bad link ( http://bouazza.franceserv.com/sbouazza/forums/profile/, without an user ID ) .
But if i am viewing an user’s profil , the menu is correctly displayed , and allthing is fine .
I Hope I can get more replys now .
Thanks !
PS : It will be great if we can speak here on this board in another language like French , German … espiecially for guys like me who ar’nt familiar with English
.Bouazza .
December 26, 2006 at 12:19 am #49552In reply to: Plugins for WordPress integration
chrishajer
ParticipantThe site issue and the database issues do seem like separate things. That was the first thing that caught my eye though (the URLs.)
my database has bbpress_ tables (like bbpress_forums, bbpress_posts, etc) and wp_ tables (like wp_links, wp_users, wp_usermeta etc)
My config.php (bbpress) has this for the DB stuff:
$bb_table_prefix = 'bbpress_';$bb->wp_table_prefix = 'wp_';
And mine just works with user integration like that. Is is possible that including the ‘http://dearauthor.com/wordpress/wp-config.php’ is overwriting something? I didn’t have to include that, and just have the one other require there. Why is that included for yours (did you read something I didn’t maybe?)
Looking at your original error:
'dearauth_bbdb.wp_users' doesn't existthe table prefix there is set to
dearauth_bbdbsomehow. Maybe you forgot to close a quote or something? Or did you edit your config before posting it (i.e. it’s not the actual, but it’s edited without the same error maybe?) You didn’t post the MySQL and bbpress config stuff from the top of the config.php.Just guessing, but maybe we’ll get it.
December 26, 2006 at 12:05 am #49551In reply to: Plugins for WordPress integration
JaneLitte
MemberI have tried that. It seems to me that it is not looking at either the right database (ie., the wordpress database is different than the bbpress database) or it needs to have the “bb_” prefix instead of the “wp_” prefix.
i.e., when I change
$bb->wp_table_prefix = 'wp_';to$bb->wp_table_prefix = 'bb_';, I no longer get the error, but then I am also not getting the wordpress users either.December 26, 2006 at 12:01 am #52823In reply to: Bad Behavior For bbPress (HowTo)
chrishajer
ParticipantHi Trent, Merry Christmas. I did install it and it apparently was working since someone got blocked :yikes: I could not find any logging anywhere, and to fix it yourself with the code provided
> Your technical support key is: 0000-zzzz-yyyy-xxxx
>
> You can use this key to fix this problem yourself.you need to log in to the ioerror/homelandstupidity site here:
But with the IP that was blocked. So, with no logging and no way to know why this legitimate user was blocked, I disabled it. I was looking at the logging a bit (using bad-behavior-wordpress.php as an example as suggested) but I haven’t figured it out yet. I was hoping there was a config section with four lines like WP or BB, where I could enter the DB details, but it’s not there

So, turned off for now. It was doing something though, I just don’t know what or why.
December 25, 2006 at 11:48 pm #49550In reply to: Plugins for WordPress integration
chrishajer
ParticipantI think if your blog is at dearauthor.com/wordpress, then
$bb->wp_home and $bb->wp_siteurl are both wrong – they don’t point to the blog but just the domain name. I think they should be:
$bb->wp_home = 'http://dearauthor.com/wordpress'; //$bb->wp_siteurl = 'http://dearauthor.com/wordpress'; //
Also, your require once is different than mine, but that might be unrelated. This is the only one I have in my config.php:
require_once( BBPATH . 'bb-settings.php' );I think the wp_home and wp_siteurl might be wrong. Did you go to WordPress – Options->General: Blog address (URL) and WordPress – Options->General: WordPress address (URL) and verify that the settings are the same there?
-
AuthorSearch Results