Search Results for 'code'
-
AuthorSearch Results
-
September 12, 2010 at 5:30 pm #35325
Topic: AJAX tag adding broken in 1.1 alpha
in forum Troubleshootingph23man
MemberI’m on bbpress 1.1-r2537 and adding tags in topics displays this error:
Warning: Invalid argument supplied for foreach() in [path]/bb-includes/backpress/class.wp-taxonomy.php on line 1789
Catchable fatal error: Object of class WP_Error could not be converted to string in [path]/bb-includes/functions.bb-formatting.php on line 241
Please note I’ve substituted the actual file path with [path].
Sometimes only the 2nd error is displayed, sometimes both. I believe this problem was introduced in 1.1-r2530 because that revision changed class.wp-taxonomy.php.
The tags don’t update through AJAX, but after refreshing the page, the new tag does show.
September 12, 2010 at 11:48 am #93881September 12, 2010 at 11:02 am #93782Ashish Kumar (Ashfame)
ParticipantYes keep it and just don’t show it. Better incase you want to do something about your data when you will need post times.
September 12, 2010 at 11:00 am #93851In reply to: Pages from WordPress
Ashish Kumar (Ashfame)
ParticipantYou can do that with deep integration by what MathiasB suggested or how your theme handles it.
wp_page_menuorwp_list_pages()Pros & Cons – http://blog.ashfame.com/2010/02/bbpress-deep-integration-advantages-disadvantages/
Deep integration – http://www.wpwebhost.com/make-bbpress-theme-match-with-wordpress-by-deep-integration/
Better one – Copy over the html of navigation to bbPress side. Its not worth using deep integration just for this alone.
September 12, 2010 at 11:00 am #93880Ashish Kumar (Ashfame)
ParticipantIts very much similar to a WordPress plugin. Get started with those. Hope that helps
September 12, 2010 at 8:58 am #93781MathiasB
Member<ul class="topicmeta">- <span id=”topic_posts”><?php topic_posts_link(); ?></span>
- <span id=”topic_voices”><?php printf( _n( ‘%s voice’, ‘%s voices’, bb_get_topic_voices() ), bb_get_topic_voices() ); ?></span>
- <?php printf(__(‘Started %1$s ago by %2$s’), get_topic_start_time(), get_topic_author()) ?>
<?php if ( 1 < get_topic_posts() ) : ?>
- <?php printf(__(‘Latest reply from %2$s’), esc_attr( get_topic_last_post_link() ), get_topic_last_poster()) ?>
<?php endif; ?>
<?php if ( bb_is_user_logged_in() ) : ?>
<li<?php echo $class;?> id=”favorite-toggle”><?php user_favorites_link(); ?>
<?php endif; do_action(‘topicmeta’); ?>
In there just remove one of the li’s which contains the date
September 12, 2010 at 8:53 am #93850In reply to: Pages from WordPress
MathiasB
MemberJust enable WordPress functions in bbPress and paste this in your header:
<?php wp_page_menu(); ?>If you wanna have a homelink:
<?php wp_page_menu('show_home=Home'); ?>September 12, 2010 at 7:36 am #93871In reply to: themes problem and quote ajax problem
Ashish Kumar (Ashfame)
Participantyou can replicate the same code for menu on bbPress side and it should work fine.
Regarding conflicts, it was never made to work like that (Deep integration) and if there is some conflict you can only fix it yourself else you are out of luck.
September 12, 2010 at 12:59 am #93834In reply to: Integrate WP Twentyten and bbPress Kakumei
wblogan
MemberThe “deep integration” code still breaks my site, but the link to the style sheet in header.php wasn’t working because I had bb-styles.php in the wrong place.
Also I’m loading WordPress from wp-blog-header.php instead of wp-load.php.
The only thing that remains is to figure out how to make changes to the bbPress pages without making changes to the whole site since it’s calling two style sheets. I’ve spent no small amount of time with “inspect element” and “firebug” in Google Chrome trying to find the styles I want to change on the bbPress pages. You could tell me in short order I’m sure how to make the changes I want. But as I said, I wanted to get all of the kinks worked out before I go public with it.
When I get it all figured out I’m thinking I’ll publish the info specific to integrating Twentyten and Kakumei (for those of us unambitious, ignorant folks who don’t have the where with all to do something original). I assume that you won’t mind me referencing your tutorial? No need to reinvent the wheel!
Thanks again for your tutorial, your interest and your help!
September 11, 2010 at 10:39 pm #93869In reply to: themes problem and quote ajax problem
kikko088
Memberthank you very very much! I save your fantastic page for the future!

kikko088
September 11, 2010 at 8:38 pm #93868In reply to: themes problem and quote ajax problem
Ashish Kumar (Ashfame)
ParticipantYou will need to fix file permissions for them to work. Take a look at this – http://blog.ashfame.com/2009/09/fix-my-templates-my-plugins-folder-not-working-bbpress/
Also for your handy reference, I share my bbPress resource page with you – http://blog.ashfame.com/bbpress/
Let me know if you are stuck with anything again. I will be happy to help you out
September 11, 2010 at 7:44 pm #93867In reply to: themes problem and quote ajax problem
kikko088
Memberif I put the theme on my-templates don’t work, if I put the theme on bb-templates it works

kikko088
September 11, 2010 at 7:06 pm #93866In reply to: themes problem and quote ajax problem
Ashish Kumar (Ashfame)
ParticipantGlad that you got it working. these things can be annoying at times. Just stay calm and apply brains

What for the theme?
September 11, 2010 at 6:53 pm #93629In reply to: Change style of function called fields
Dakcenturi
MemberHere is a section of the view source:
<tr class=”form-field”>
<th scope=”row”>
<label for=”first_name”>First name</label>
</th>
<td>
<input name=”first_name” id=”first_name” type=”text” value=”” />
</td>
</tr>
Now I tried and none of them made any noticeable change.:
.input{
background-color: #171717;
color: #00CC00;
}
#first_name{
background-color: #171717;
color: #00CC00;
}
.form-field{
background-color: #171717;
color: #00CC00;
}
In order to get it to work on one of the other forms I actually put the style in the input code, but I don’t know how to access the input code as it is being called via php and isn’t a .php file in the theme.
September 11, 2010 at 5:11 pm #93865In reply to: themes problem and quote ajax problem
kikko088
Member
now it works, thank you.For the theme?
kikko088
September 11, 2010 at 4:52 pm #92034In reply to: Can't access the dashboard
Ashish Kumar (Ashfame)
ParticipantThis issue can be solved by the bbPress integration plugin for WordPress. Keep the plugin activated, it generates the required cookies on WordPress authentication hooks which otherwise are not created for accessing bbPress dashboard (or admin panel)
P.S. – I actually looked at the plugin’s code today!
Don’t know what the BackPress has to do here!
September 11, 2010 at 4:48 pm #78878In reply to: Admin link doesn't take me to dashboard
Ashish Kumar (Ashfame)
ParticipantThis issue can be solved by the bbPress integration plugin for WordPress. Keep the plugin activated, it generates the required cookies on WordPress authentication hooks which otherwise are not created for accessing bbPress dashboard (or admin panel)
P.S. – I actually looked at the plugin’s code today!
Don’t know what the BackPress has to do here!
September 11, 2010 at 4:48 pm #92551Ashish Kumar (Ashfame)
ParticipantThis issue can be solved by the bbPress integration plugin for WordPress. Keep the plugin activated, it generates the required cookies on WordPress authentication hooks which otherwise are not created for accessing bbPress dashboard (or admin panel)
P.S. – I actually looked at the plugin’s code today!
September 11, 2010 at 4:43 pm #93863In reply to: themes problem and quote ajax problem
kikko088
MemberI try to delete and upload, i try to overwrite two times but nothing…
the same problem, the permission are 770
September 11, 2010 at 4:43 pm #93833In reply to: Integrate WP Twentyten and bbPress Kakumei
Ashish Kumar (Ashfame)
ParticipantInstead of loading WordPress from
wp-load.php, load it fromwp-blog-header.php.I checked the header.php file of Twentyten and there is nothing in it that would stop you from making changes. Follow the tutorial and you will be fine.
This is the line before which you should add the link to bb-style.css
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />Rest is in the tutorial.
September 11, 2010 at 11:30 am #93832In reply to: Integrate WP Twentyten and bbPress Kakumei
wblogan
MemberWell, I don’t quite have it done. I can’t figure out why your code breaks the site as I mentioned earlier. Do I need it? (I forgot to mention that your code calls wp-blog-header.php, and another tutorial I referenced calls wp-load.php. I know that requiring wp-load.php is a requirement; but what about wp-blog-header.php?)
Also, I don’t know how to link the style sheet to bbPress because I can’t figure out how to get the link in the header. I don’t understand header.php in Twentyten. Can you help me with that?
I’ll post a link when I get it published, but I’m doing all of this on a local mirror of my public site.
September 11, 2010 at 3:53 am #93829In reply to: Integrate WP Twentyten and bbPress Kakumei
wblogan
MemberI’ve gotten this to work this way so far:
Put this line in bb-config.php
require_once( '/your/full/path/wp-load.php');In the files listed below, replace
<?php bb_get_header(); ?>with<?php get_header(); ?><div id="container">
<div id="content" role="main">
<?php if ( !in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) login_form(); ?>and
<?php bb_get_footer(); ?>with</div>
</div>
<?php get_footer(); ?>404.php
edit-post.php
favorites.php
forum.php
front-page.php
login.php
password-reset.php
profile-base.php
profile-edit.php
profile.php
register.php
register-success.php
search.php
stats.php
tag-single.php
tags.php
topic.php
I use Twentyten with one right sidebar. I decided I didn’t want it in the bbPress section of the site. If you want it, replace the footer code above with this:
</div>
<?php get_sidebar(); ?><div id="primary" class="widget-area" role="complimentary">
</div><?php get_footer(); ?>I want bbPress to fill the width of the “container”. I can the following in-line style in each page (
<div id=”content” role=”main” style=”width: 95%; font-size: 1.2em;”>`), but I’m sure I can use the style sheet to define a class or something and do it right – that is once I get Twentyten to read the bbPress style sheet.I’d also like to rearrange the objects on the page, which I may also work on once I can use the style sheet.
May not like it when I’m done, but it’s been a learning experience!
September 10, 2010 at 9:36 pm #93828In reply to: Integrate WP Twentyten and bbPress Kakumei
wblogan
MemberWill do. Thanks! Sweet dreams.
September 10, 2010 at 9:31 pm #93827In reply to: Integrate WP Twentyten and bbPress Kakumei
Ashish Kumar (Ashfame)
ParticipantI haven’t played with twentyten code yet so can’t say if that will be easy for you to follow up. I am in my bed right now, typing this on my mobile.↲You do one thing, get back to me tomorrow & I will tell you. I am quite busy with my schedule so if I don’t come back on my own, hit me an email > ashishsainiashfameatgmaildotcom↲
September 10, 2010 at 9:24 pm #93826In reply to: Integrate WP Twentyten and bbPress Kakumei
wblogan
MemberPerhaps I should have included this info in my last reply. This is the error I get when using the code you recommended in bb-config.php:
Parse error: syntax error, unexpected ‘;’ in /myfullpath/public_html/bbpress/bb-config.php on line 15
Line 15:
if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST'))FWIW, I learned from another tutorial that I needed to put this code at the end of the bb-config.php file:
require_once( '/myfullpath/public_html/wp-load.php');I found that the integration will not work without it.
-
AuthorSearch Results