Search Results for 'code'
-
Search Results
-
Topic: Any fix for bbcode_lite?
Hi guys,
I just download bbcode_lite hoping it would work, but it didn’t. So anyone has a fix for this?
Or perhaps another plugin that does work?
Thanks,
Mitchell
OBSERVED BEHAVIOUR:
In Installation Step 3, the ‘”Key Master” Username’ is a text entry box, with no pre-populated values.
EXPECTED BEHAVIOUR:
The ‘”Key Master” Username’ should be a drop-list, with the admin IDs of the primary blog in it.
DETAILS
When integrating with an MU site, Step 2 asks for the WordPress Primary Blog ID.
In step 3, the install program uses the value entered to find administrators for the specified blog. The function
populate_keymaster_user_login_from_user_tablesconcatenates the database prefix, the blog ID specified, and the constant ‘_capabilities’. For example, if the prefix is ‘wp_’ and blog ID is 1, you get ‘wp_1_capabilities’.There’s only one problem with this. When you install WordPress, you have to complete the standard installation, and then reconfigure it to be a multi-site blog. For the standard installation, the first blog does not contain the numeric ID, and neither does the capabilities meta_key – it is simply ‘wp_capabilities’.
SUGGESTED FIX:
In Step 2, the pop-up help text for the “WordPress MU primary blog ID” field states:
“If you are integrating with a WordPress MU site you need to specify the primary blog ID for that site. It is usually 1. You should probably leave this blank if you are integrating with a standard WordPress site.”
Change the wording, to more accurately reflect what needs to be entered:
“If you are integrating with a WordPress MU site, you need to specify the primary blog ID for that site. If you have changed the primary site, enter the site ID. You should probably leave this blank if you have not changed the primary site, or if you are integrating with a standard WordPress site.”
If you install bbPress integrated with WordPress, the installation fails with a message “Your installation failed with some minor errors.”
Looking at the error log, the message was:
“Forum could not be created!”
I dug through the code, and found the problem, in bb-admin/includes/functions.bb-admin.php, in the function bb_new_forum:
// Expects forum_name, forum_desc to be pre-escaped
function bb_new_forum( $args ) {
global $bbdb;
if ( !bb_current_user_can( ‘manage_forums’ ) )
return false;
bb_current_user can ONLY return true if you are currently logged into WordPress as an administrator. I recommend changing the ‘if’ condition to:
if ( !BB_INSTALLING && !bb_current_user_can( ‘manage_forums’ ) )
Topic: Sub Forums
Example:
Let’s say front-page.php lists 3 categories
Fruits
Veggies
Meats
If you were to click on Fruits; I’d like the next page to show the subforums of that parent excluding veggies, & meats forums. Any comments appreciated.
Basically, I want categories with sub-forums but in a format/structure that you would find in phpbb where subforums are cleanly kept on the next page. Why? Because showing everything in one location can get a bit messy. Especially with subforums.
I have searched through the bbpress forum for this and was able to get the following to work related to the front-page.php portion. Now I just need to get the 2nd page to show the children of the category. Currently it isn’t doing that.
*****front-page.php which works in only displaying the categories****************
<?php foreach( $forums as $forum ) : if( !$forum->forum_parent ) { ?>
<tr<?php alt_class(‘forum’); ?>>
<td>“><?php forum_name(); ?> <small><?php forum_description(); ?></small></td>
<td class=”num”><?php forum_topics(); ?></td>
<td class=”num”><?php forum_posts(); ?></td>
</tr>
<?php } endforeach; ?>
Now I would like the child accounts to show up in forum.php
Any suggestions? Or where I could look? Once you click on the parent forum it just takes you to that category forum.php page, with no children. i need the children to show up but only for that parent.
*****forum.php which I need to show the children*********************
<?php bb_get_header(); ?>
<?php if ( is_bb_profile() ) profile_menu(); ?>
<?php login_form(); ?>
<div id=”main”>
<div id=”forums”>
<h3 class=”bbcrumb”>“><?php bb_option(‘name’); ?> » <?php forum_name(); ?></h3>
<?php if ( $topics || $stickies ) : ?>
<table id=”latest”>
<tr>
<th><?php _e(‘Topic’); ?> — <?php new_topic(); ?></th>
<th><?php _e(‘Posts’); ?></th>
<th><?php _e(‘Last Poster’); ?></th>
<th><?php _e(‘Freshness’); ?></th>
</tr>
<?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php _e(‘Sticky:’); ?> <big>“><?php topic_title(); ?></big></td>
<td class=”num”><?php topic_posts(); ?></td>
<td class=”num”><?php topic_last_poster(); ?></td>
<td class=”num”><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; ?>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td>“><?php topic_title(); ?></td>
<td class=”num”><?php topic_posts(); ?></td>
<td class=”num”><?php topic_last_poster(); ?></td>
<td class=”num”><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; ?>
</table>
<p>“><?php _e(‘RSS feed for this forum’); ?></p>
<div class=”nav”>
<?php forum_pages(); ?>
</div>
<?php endif; ?>
<?php post_form(); ?>
</div>
</div>
<?php bb_get_footer(); ?>
</div>
******************************************************************************
Thank You —
Topic: bb_subscription_management
I was making a custom plugin to make users subscribe to topics so I attached my function to hook
bb_insert_topicbutbb_subscription_management()doesn’t work here.Its working under a different function hooked to
register_userthough.Any ideas what could be wrong? And how can I actually debug it.
Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [datetimezone.–construct]: Unknown or bad timezone (UTC-7)’ in /home/neosmcn1/public_html/hsti/forum/bb-admin/options-general.php:180 Stack trace: #0 /home/neosmcn1/public_html/hsti/forum/bb-admin/options-general.php(180): DateTimeZone->__construct(‘UTC-7’) #1 {main} thrown in /home/neosmcn1/public_html/hsti/forum/bb-admin/options-general.php on line 180
Here’s a random question, does BBPress support timezone differences?
I see the option in the options-general.php in bb-admin, but, I’m beginning to wonder if it’s implemented yet. Doesn’t’ appear to be, yet. As I can change the time-zone willy-nilly, and the times listed below are not affected. (IE, I’m GMT-7, so I have selected Edmonton as the closets city to me. At the time of writing, it is 12:43p here, and my forum says it’s 6:43p. Mind you, it ALSO says that UTC ALSO is 6:43p. … whut??)
Moreover, the options drop-down seems to be populating false timezones toward the end, the UTCxxxx portions. UTC itself is fine under ETC, but under the “Manual offsets” there are a set of UTC-7, UTC+7, UTC-1, etc. However, in PHP, DateTimeZone does not recognize the UTC-xx or UTC+xx values. They are incorrect. Shouldn’t they be GMT-xxx or GMT+xxx?
I’ve tried looking in the code for some answers, (bb-includes/backpress/functions.core.php and bb-admin/options-general.php ) but neither of them seem to be shedding any light…
I’ve had this very odd issue suddenly crop up. All deleted posts on my forum have automatically become undeleted. Basically the post_status field in the bb_posts table is getting reset to 0 for all posts.
I’m running bbpress 1.02 that’s deep integrated with WP Multisite 3.0.1 (with Buddpress 1.2.5.2). It’s deep integrated, but I run bbpress by itself, NOT as a component of Buddypress (in the groups component). The site’s been running for a year and I’ve never experienced this issue until now.
Is there any code in bbpress that could cause something like this? Reseting all posts?
My web host recently upgraded PHP from 5.2.13 to 5.2.14 very recently, could there be some kind of incompatibility?
Another side-effect of this is that it throws off paging on topics and cuts off newer posts in the topic. The number of pages shown for each post stays the same even though deleted posts are visible again so this essentially pushes newer posts back. Doing a recount doesn’t fix this.
I’m having a hard time finding the cause although I somehow reproduced the problem. I had thought a moderator had restored deleted posts so I was going back deleting some posts that had been undeleted. When I was all done, I did a full recount. A few minutes later I found that all the posts that I had just re-deleted were restored again! I tried deleting some more posts and doing some recounts haven’t been able to reproduce the problem again.
I’m running the following plugins:
– Ajaxed Quote 1.2
– Allow Images 0.8
– BBcode Lite 1.0.3
– bbPress Moderation Suite 0.1-rc2
– bbPress signatures 0.2.0
– bbPress Smilies 0.0.8
– bb Topic Views 1.6.4
– BBVideo 0.24
– BuddyBar in bbPress 1.0.4
– Forum Last Poster 0.0.5
– Hidden Forums 0.0.9
– Post Count Plus 1.1.11
I’ve been running these plugins for a long time. The most recent one was bbpress Moderation Suite but I tested it pretty extensively on a development site (mirror) without issue.
Any help is greatly appreciated!
I’ve just tried to install bbpress forum, and during installation and after at the top of the screen I have got this warrnings:
Deprecated: Assigning the return value of new by reference is deprecated in
wampwwwbbpressbb-settings.php on line 186Deprecated: Assigning the return value of new by reference is deprecated in
wampwwwbbpressbb-includesbackpressfunctions.wp-object-cache.php on line 108Deprecated: Assigning the return value of new by reference is deprecated in
wampwwwbbpressbb-includesbackpresspomomo.php on line 171Deprecated: Assigning the return value of new by reference is deprecated in
wampwwwbbpressbb-includesfunctions.bb-l10n.php on line 484Deprecated: Assigning the return value of new by reference is deprecated in
wampwwwbbpressbb-includesbackpressclass.wp-taxonomy.php on line 581Does anybody know what is it, and what to do?
Thnaks
, then you should be ok.