Search Results for 'codes'
-
Search Results
-
Topic: bbp_shortcodes
I am trying to figure out how to allow custom shortcodes in topic posts. So far i’ve been trying to use bbp_shortcodes like this.
function bbp_custom_shortcode($codes) {
$codes[] = array(‘item’ => ‘item_func’);
return $codes;
}
add_filter( ‘bbp_shortcodes’, ‘bbp_custom_shortcode’);
The codes array is appended but it does nothing Can you explain how to do it properly.
Topic: Understanding templating.
This may or may not be the right forum for this, but technical support seemed the wrong place. Anyway…
I have a template I am using for my website called Habitat (http://www.kriesi.at/themes/habitat/). It allows me to create a new page and use the template in full width without the sidebar. Now… I -can- use shortcodes to put my forum in a new page and set the template without the sidebar, but I cannot find a shortcode for the forum root (I have three categories) and each subsequent link click takes me to the /forum URL and plops the sidebar back in.
To whit, I cannot find an option anywhere in the bbpress plugin that allows me to set the template to use.
Anyone shed some light on this? TIA.
Hi there, first I want to say thanks for creating this, seems like a great forum plugin once you get it working.
To start, I have read the entire thread on the forum on theme compatibility; http://bbpress.org/forums/topic/bbpress-20-theme-compatibility and a few other treads and topics relating, unfortunately I am still having some problems.
I am including screen-shot links to be as clear as possible in hope for great support.
What I have done so far;
A.) I decided to go with the child theme option since I am using a custom theme that I am not the author of and prefer not to clutter that folder.
I copied all the files (except functions.php) that were inside “bbp-twentyten” (/bbpress/bbp-themes/bbp-twentyten) and put them in my “gridlocked-child” folder that I placed inside /wp-content/themes/ (next to my custom “gridlocked” theme folder)
I added the “theme name” and “template” name to the empty “style.css” in folder “gridlocked-child”. screenshot: http://grab.by/cJ7R
I put the ” add_theme_support( ‘gridlocked-child’ ); ” code in my “gridlocked” (not child) functions.php file. screenshot: http://grab.by/cJ7S
At this point, after just test creating a few forums and topics, it looks like the plugin is “functioning” like it should. I can tell that it’s using some of the styles from my main theme style.css (colors, fonts etc), the MAIN PROBLEMS that I have now is the fact that it’s not taking to my page template widths in my main theme (gridlocked), it wont use a full-page-width template (or let me pick) and the default that it is probably using, is also supposed to be full width, plus something is wrong with the padding and it snugs too tight to the page edges.
Here are some screenshots to show you what I mean;
Forum home page: http://grab.by/cJ7I
Forum named MINGLE page and test topics: http://grab.by/cJ7J
I would like the forum to look like this; http://grab.by/cJ7H
and fill up the entire width of a full page, with nice padding. I achieved that preview by adding shortcode [bbp-forum-index] in the html section of a “page” picking the “full-width-template” option in my theme.
Ok, here comes the questions:
1. Did I set everything up correctly in the directories and files?
2. What files do I need to modify to tell the bbPress forum to use a full page width template? Can I copy code from my main theme “template-full-width.php” into one or more template files inside my new child theme?
2. Do I need to add code/functions into my main theme “template-full-width.php”? and if so, what kind of code? and on a scale, how easy should these edits be? (I have asked, but I am not getting any support with this from my theme support forum, otherwise great forum but they wont help with plugins, understandable)
3. How does shortcodes work? Are those simply just for placing certain parts of your forum on different pages as previews/links but not for use throughout the FULL forum?
Do you have ANY ideas on how I can solve this issue, I feel pretty lost and I am not a developer or programmer, just a stubborn, enthusiastic designer that loosing her hair about this.
I HIGHLY APPRECIATE ANY HELP WITH THIS!
Thank you!
Topic: [bbpress 2.0] Spoiler Plugin
I’ve installed a spoiler plugin which uses html tags as bbpress does not accept shortcodes within posts. The spoiler plugin is called enhanced-ss.
The plugin works fine within WordPress Posts but does not seem to work within bbpress posts. I am using the latest wordpress version, buddypress version and bbpress 2.0.
The code is available here –> http://pastebin.com/AkH7eNJ4
Is there a reason why it does not display within a bbpress post?
I’m now using bbpress 2.0 and buddypress 1.2.10 and the shortcodes and widgets have been very useful to the not so techy users like me.
The situation is that I want to show only one forum’s latest topics, is there any plan for releasing shortcodes with more detailed options or a way to make it possible manually?
Thank you in advance!