Search Results for 'code'
-
AuthorSearch Results
-
July 6, 2012 at 9:39 am #114433
In reply to: Need a quick fix for my forum
Lynq
ParticipantI can’t see it, it is asking me to login
July 6, 2012 at 8:22 am #113206In reply to: Creating default object from empty value
loicknuchel
MemberHi, thanks for your responses.
@Lynq : on line 357 I have :
356: if ( ‘bbPress’ == get_class( $bbp ) ) {
357: $bbp->theme_compat->theme = new BBP_Twenty_Ten();
358: }
I didn’t understand what it does exactly.
@Aadhaar Card : I have tested about twenty theme, for all I have the first error : Warning: Creating default object from empty value in /homez.51/nexeo/www/javanex/wp-content/plugins/bbpress/bbp-includes/bbp-core-compatibility.php on line 84
The second error occur only when I use the “bbPress (Twenty Ten)”.
On line 84 I have : $bbp->theme_compat->theme = $theme;
Maybe the add_theme_support( ‘bbpress’ ); is missing anywhere… But I don’t know where…
July 6, 2012 at 5:11 am #114392In reply to: Small column
Parker
MemberThat worked! Thanks!
Also, I see u created a account
July 6, 2012 at 4:15 am #47377Topic: bbpress with widget logic
in forum Troubleshootingcsam00034
MemberHi guys, I have a very strange problem with widget logic and bbpress.
I created a normal page (post id = 126) and added the shortcode: [bbp-topic-index] .
I now wish to not show any of my widgets on this particular page by using !is_page(‘126’) however this just doesnt work!
I try it on other normal pages containing text and no forum shortcodes and everything works!
July 6, 2012 at 12:58 am #114413In reply to: Where is the forum main page?
rr03
MemberJarret
my permalinks set up is restinerest.com/the.title.of.page
i refreshed permalinks sections after i set bbpress up as it is suggested.
i managed to have the main bbpress page with creating a new page and writing a shortcode([bbp-forum-index] ) in it. but then i had this problem:
i had two categories and each have two forums. at this new page it is shown
http://www.restinerest.com/forumd/ this is the page.
category1
forum1(0,0) forum2 (0,0)
category2
forum3(0,0) forum4 (0,0)
and i wanted that forums would be shown as one under the other one.
so do i have the theme compatibility problem or any other thing?
and why cant i reach restinerest.com/forumlar or restinerest.com/forumlar/forum even though i set the slugs up?
any help will be appreciated.
July 5, 2012 at 10:41 pm #114428Jarret
ParticipantHow do you have your navigation configured? Looking at the source code, the News tab has a class of current_page_parent when trying to view the Events/Forums pages.
Are the Events/Forums pages child pages of the News page?
July 5, 2012 at 10:32 pm #114426In reply to: After Installation, what's next?
Jarret
ParticipantWell you could use the Custom Menus feature (Appearance->Menus) and setup custom links to URLs for your forum. Then use the custom menu to display somewhere in your theme and the links would take you to specific subforums.
Unless I’m totally not understanding what you mean and if that’s the case, please let me know
July 5, 2012 at 10:26 pm #113660Jarret
ParticipantIt is all good, maybe sometime in the future somebody will have this issue and find this thread and it will help them
July 5, 2012 at 3:47 pm #113659Miniflowers
MemberYeah, we were never able to get things up and running as we had hoped, so we said “screw it” and migrated over to Ning. They seem to have everything we were looking for and it was set up in about 30 minutes.
July 5, 2012 at 11:19 am #113204In reply to: Creating default object from empty value
Lynq
ParticipantIt looks like bbPress is checking if the current theme is compatible with bbPress.
On line 357 of your twenty ten them does it have:
add_theme_support( 'bbpress' );by any chance?Good luck!
July 5, 2012 at 9:27 am #47235terence.milbourn
ParticipantHi guys.
This is the first time I have tried to get bbPress working and I can’t get this combination to show the actual Forums or Topics although it does work on on this website http://www.essentialoils.coop/community when I switch the theme to bbPress (Twenty Ten).
If I use [bbp-forum-index] on a page or even just the bbP native URLs it will show my entire forum index, but when I click on any forum, I just get a blank page from the Pixel Theme Studio’s “Zen Theme”.
So far I have created a new directory within my theme root called ‘bbpress’ and copied the files from bbPress/bbp-theme-compat/bbpress/ to this new directory. I have also moved the root files out of /bbpress/extras into the root of my theme. Plus I have added
add_theme_support('bbpress');to my functions.php, but still nothing.My theme just seems to see the page at http://www.essentialoils.coop/community as an un-ordered list.
What did I do wrong? What haven’t I done? What is it that Zen Theme needs to make it work with bbPress?
Any help at all would be much appreciated.
July 4, 2012 at 9:55 pm #114391In reply to: Small column
LabSecrets
ParticipantTry adding this to the end of your style.css or child theme custom css stylesheet:
body.bbPress .hentry {width:575px!important;}
td.bbp-reply-content {width:575px!important;}Cheers!
spence
July 4, 2012 at 9:44 pm #114254In reply to: Can anyone tell me how to correct this?
LabSecrets
Participantok,
well, that confirms my suspicion. The myriad theme and child, unfortunately, have all the bbPress files coded-into them… ;-(
You will need to contact that theme author to ask them to include a unique body class in the “mysite_head” function so that you can target your CSS and style the pages accordingly.
Alternatively, you can ask them to include an update to all the various bbPress template pages that have the appropriate wrapper around the bbPress content areas so that it can be styled as such.
Last choice, you are welcome to choose from over 120+ woothemes, elegant themes, or Responsive by ThemeID, that are all ready to use with bbPress.
Wish I could be more helpful, but this is one for your theme author… unless you can accept some global styling as suggested in my earlier answer
July 4, 2012 at 8:17 pm #114250In reply to: Can anyone tell me how to correct this?
LabSecrets
ParticipantShep,
If you want some further help…probably would be best if I saw what you have in your theme code.
I don’t see the function in that file either.
Drop a line to help@labsecrets.com with an admin login I could use temporarily and I’ll have a peek.
Cheers,
Spence
July 4, 2012 at 5:28 pm #113574John James Jacoby
KeymasterThe URLs do follow the same structure as WordPress, exactly actually.
Keep in mind that WordPress has never needed to have a mixed post-type URL structure, except for the case of attachments (which don’t really count.)
None of the words in the URL are ‘useless’ since they’re all indicative of where the content lives.
bbPress and WordPress are designed to allow those with specific needs and wants to customize the codebase, and contribute the changes they needed up-stream to the parent project. If this is something multiple people would like, I suggest you group up and build it. If it works, and more people want it, we absorb it into bbPress core.
Boom.
July 4, 2012 at 1:42 pm #114373In reply to: Making bbpress 2.1 work with my custom theme
Lynq
ParticipantThis could be of help: https://codex.bbpress.org/home/step-by-step-guide-to-creating-a-custom-bbpress-theme/
July 4, 2012 at 1:03 pm #114364In reply to: First time using bbPress since it became a plugin…
Jim R
ParticipantIt would be super if there was a way to have layout options.

How tough would it be to port over the layout? Is the code similar enough in terms of functions?
July 4, 2012 at 3:18 am #114226Pixeldrum
MemberNow I am getting confused. I could have sworn that I replied to your post John a few days ago… but I don’t see it.
Here it is again then, my apologies, I didn’t mean to transgress a forum convention. Still, if at all possible, I’d like some direction as to how I can block access via direct URL to user profiles. From user profiles someone can track back to posts attributed to the user and use and post via that ‘back door’.
I have bbpress installed and protected (I thought) behind the membership wpmudev.org membership plugin and want the forum area available for specific members only including the profile information. What files need to be customized to make this possible?
I can block posts and content in pages with short-codes from the membership plugin, but I don’t know where I would place those within the structure of bbpress. Is there a way, please? I am not a coder, but have friends who are I just need to be pointed to the files that are involved in getting this done. Thanks for ANY help with this matter.
July 3, 2012 at 6:58 pm #114246In reply to: Can anyone tell me how to correct this?
LabSecrets
ParticipantYou posted what appears to be the bbPress functions.php, which is not what I would need to see. I would need to see the functions.php from myriad parent, child, or perhaps any includes that have the function below:
In sum: your myriad parent has a function, on line 24 of the header.php
<body class="<?php mysite_body_class(); ?>">This function (mysite_body_class()) is what is generating the body class tags. It needs to be modified to allow for the creation of the necessary bbPress body tag for pages that contain bbPress.
July 3, 2012 at 5:44 pm #114001In reply to: bbPress 2.0.3 and WordPress 3.4
Jared Atchison
MemberAny by RC2 he means RC4
July 3, 2012 at 3:45 pm #114244In reply to: Can anyone tell me how to correct this?
John James Jacoby
KeymasterCan you replace your big code-dumps with links to pastebin, or some other place? Thanks!
July 3, 2012 at 10:41 am #114332In reply to: Hide replies frm non logged users?
Lynq
ParticipantYou will probably need to add a counter to check if it is the first reply, something like this:
<?php i == 0; ?>
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<?php if(i == 0) { ?>
<li id="post-<?php post_id(); ?>"<?php alt_class('post'); ?>>
<?php } else { ?>
<li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
<?php } ?>
<?php i++; ?>
<?php endforeach; ?>July 3, 2012 at 7:04 am #114242In reply to: Can anyone tell me how to correct this?
AAShepAA
ParticipantSpence – I really do appreciate you trying to help me on this.
I am using a child theme >themes>>myriad-custom with myriad being in the same directory. There is no header.php in the child theme but this is the content of the header.php of “mother” theme myriad:
<?php
/**
* Header Template
*
* @package Mysitemyway
* @subpackage Template
*/
?><!DOCTYPE html>
<!–[if lt IE 7]> <html class=”ie ie6 lte9 lte8 lte7″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 7]> <html class=”ie ie7 lte9 lte8 lte7″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 8]> <html class=”ie ie8 lte9 lte8″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 9]> <html class=”ie ie9 lte9″ <?php language_attributes(); ?>> <![endif]–>
<!–[if gt IE 9]> <html> <![endif]–>
<!–[if !IE]><!–> <html <?php language_attributes(); ?>> <!–<![endif]–>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
<title><?php mysite_document_title(); ?></title>
<link rel=”profile” href=”http://gmpg.org/xfn/11″ />
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php mysite_head(); ?>
<?php wp_head(); ?>
</head>
<body class=”<?php mysite_body_class(); ?>”>
<div class=”multibg”><div class=”multibg”></div></div>
<div id=”body_inner”>
<?php mysite_before_header();
?><div id=”header”>
<div id=”header_inner”>
<?php mysite_header();
?></div><!– #header_inner –>
</div><!– #header –>
<?php mysite_after_header();
?><div id=”content”>
<div id=”content_inner”>
<?php mysite_before_main();
?><div id=”main”>
<div id=”main_inner”>
<?php mysite_before_page_content(); ?>
As far as the setup pf bbPress – it is standard – all of the >plugins>bbPress>bbp-themes>bbp-twentyten “contents” copied over to the child theme of myriad-custom.
I hope that helps you enough to help me

Grateful!
Shep
July 3, 2012 at 5:38 am #114241In reply to: Can anyone tell me how to correct this?
LabSecrets
ParticipantTo make your forums full width, please add this to css:
.right_sidebar #main { width: 100%;}
.right_sidebar #main_inner {margin-right: 0;}
.right_sidebar #content {padding:10px;}The bigger issue, unfortunately, is that you don’t have the proper body class (the way you setup bbPress on this theme) to allow you to limit these css modifications to only bbPress pages. So these mods will apply on ALL pages of your site. This is the ideal way to ensure your mods won’t effect other template pages.
To get around this small issue, you should add some logic to your header.php to generate the proper class which you can then prefix on to your css above. For example, when done properly, you would have css of:
body.bbPress .right_sidebar #main { width: 100%;}
body.bbPress .right_sidebar #main_inner {margin-right: 0;}
body.bbPress .right_sidebar #content {padding:10px;}and this would limit all your styling to only bbPress pages. I don’t see any other body class tags that are limited to bbPress pages which we could use ;-(
Since I cannot see your header.php or functions.php, my guess is that you have some logic in there now which is generating the body classes, but filtering out the native .bbPress class (I can’t tell from outside how you setup your bbPress installation)
See: https://img.skitch.com/20120703-8m1xdyam239qxprwrfenry4qtk.jpg
Cheers!
Spence
July 3, 2012 at 4:08 am #114343In reply to: Need help with forum layout
LabSecrets
ParticipantFirst suggestion:
I would add this css to give your topic title some breathing room:
th.bbp-forum-info {width:50%;}Cheers!
Spence
-
AuthorSearch Results