Search Results for 'code'
-
Search Results
-
I have been trying to setup a bbPress forum for a while now and everything went very smooth. Now I’ve got a problem that I haven’t found a solution to:
How do I force a user to log in before they can view any forum content at all? I’ve been thinking about just redirecting to /wp-login.php but how do I implement that into my bbPress forum so it knows that you have logged in?
I thought this might work but don’t know what file to implement the code into…
if ( is_user_logged_in() ) {
//Site code here
} else {
header("Location: http://www.site-name.com/wp-login.php");
exit;
}I am a beginner to this whole webdesign world so bare with me if this question is not complicated at all.
Topic: tags not preserving tabs
Hi all,
The forums I am working on right now does not seem to preserve the spacing or tabs when I paste content into
<code>tags. Any ideas?</p>When I view source, the tabs and spaces seem to be there, but not on the page itself.
Screenshots:
Forum post with
<code>sample:http://cl.ly/0y3Y1n3R3L0a190a1D3l– the tabs are missing, and should have similar spacing as this:
http://cl.ly/0a3M2h0F1Q0L3o0r1q3MIf I may try here:
<code>
&:hover {
background: #EEE;
}
}
</code>Seems to work…
I am doing a little bit of reverse-engineering to build a custom BLOG/FORUM theme for my site. I cloned the 2010 bbpress code to my own theme and merged in my header/index/footer pages and custom css styles for starters.
I have nearly identical header.php in BOTH the parent & child themes. The only difference is the header.php in my bbpress child theme removes part of the header, so it essentially is a modified parent-theme header.
I noticed, however, that when I made this change now BOTH my blog and bbpress forum pages have the modified header – what gives?!
How can modifying the child-theme impact the parent?
I have a custom wordpress theme for my company’s blog to match the styling of my non-wordpress company website. I came across bbpress and wanted to integrate it into my wordpress company blog.
I followed this tutorial for a basic forum setup:
http://codex.bbpress.org/home/step-by-step-guide-to-creating-a-custom-bbpress-theme/
My Parent Theme: XX
My Child Theme: XX-bbpress
I created my child bbpress theme and imported the necessary templates as suggested, however, I am baffled by what I observed when I visit the blog landing pages:
I went into WP-ADMIN and activated the child theme. When I visit:
http://www.companydomain.com/blog/forums
– I can see the default forum layout
but when i vist my blog
http://www.companydomain.com/blog
– my blog page is completly blank
I’ve disabled all but the bbpress plugin. WP_DEBUG doesn’t show any errors when I visit my blog page either. HUH?
Am I missing something? Thanks!
Topic: Note above comment form
I wasn’t sure where to ask this. I want to put a note above or next to where it says “Reply” and “Topic Description:” for posting instructions. Anyone know what files I need to edit, or some sort of function I can use?
I did this with wordpress comments EX: Use “< code > to display code in your comment” above the comment box, using a function, no idea how to do it with bbpress though.
Hey,
I just installed bbPress on a brand new wp 3.3.2 and I get this error 8 times on the admin pages:
add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in .../wp-includes/functions.php on line 3467Topic: I want the freshness in days
Apparently everybody wants the freshness to be displayed in months, days – I, however would like it to be displayed in days only.
I have been looking around quite a bit now and trying to change the code, but so far I managed just to mess up the page ….
Any ideas?
Thanx
V.
Hi there. I would like to show recent topics on my website homepage from my forum. I’ve accomplished this already by using the code below. What I can’t figure out is how to tweak this code so that it will display the forum name and topic title only, not the author and all the unnecessary wording (“Started by ___ in:”). What I would like it to look like is a long list with each item presented in the “Forum Name | Topic Title” fashion.
Example:
Italian Food | What’s Your Favorite Pasta Dish?
Japanese Food | Good Sushi Bars in NYC
<?php if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 8 ) ) )
bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
Hi
This topic is posted on 2 places :
– bbpress.org forum
– premium.wpmudev.org community support forum
While working on a site to be launched on the same day (= I had to have it working

I discovered something interesting
BBpress second level forum (= with a parent forum/category) also in the permalink, will result in page not found.
I searched for this issue and came across a few topics, where it was advised to reapply the permalinks, then save again the BBpress settings, where we set the slugs.
I tried everything there and still the same issue, but it was clearly an issue with rewrite.
So I begun to deactivate every other plugin I have and after every deactivation I tried if second level forums were loading. I thought specifically about security plugins such as Wordfence, Better WPSecurity, but nope.
Finally, it was when ******I deactivated wpmudev’s Pro Sites plugin, that the second level forums were loading.*******
I tried another forum plugin but really I will need BBPress (big amount of subforums necessary on this website)
now I made some tests, and to make short :
– if Pro Sites activated :
-> 1st level forum will work
-> 2nd level forum will not work
– if Pro Sites is deactivated :
-> 1st level forum will work
-> 2nd level forum will work and can be reached with those 2 url
A: example.com/forums/forum/level1/level2
B: example.com/forums/forum/level2
(forums/forum beeing the slugs set in Forums settings page)
is it normal we can reach with 2 different permalinks?
***** and as it changes automatically, is there a way to force (in BBPress code) a subforum permalink to stay 1st level even if in a sublevel? would be interesting also in the case a forum is moved to another category then it wouldn’t change url ***** (and at the same time it would solve/hide the issue with Pro Sites)
so cleary this is a rewrite stuff that goes beyond my knowledge, for info my permalinks are set to the second option /2012/06/07/exemple-article/ and .htaccess present with necessary change in it
I use also buddypress on that site but didn’t go until desactivate it as it worked when I deactivated Pro Site,
the site I was working on has buddypress, but not the groups and forum elements checked, forum beeing BBpress anyway (I also tried to check/uncheck forums in buddypress settings, really not related to the issue)
so I was thinking to install a testsite with only vanilla WP Multisite and buddypress, as I need all my tests done that way
+ for this issue : Pro Sites and BBPress
so if there is anything you tell me to try, it will be done

thank you very much in advance (anybody, eveybody
