Search Results for '"wordpress'
-
AuthorSearch Results
-
November 27, 2012 at 2:28 am #120809
In reply to: Problem with translation
November 27, 2012 at 2:21 am #120808Stephen Edgar
KeymasterHave a read of these three pages from the docs:
https://codex.bbpress.org/getting-started-with-bbpress/
https://codex.bbpress.org/shortcodes/
https://codex.bbpress.org/widgets/November 26, 2012 at 10:33 pm #120800Shane Gowland
ParticipantYou can use the shortcode in the PHP template files with the do_shortcode() function.
echo do_shortcode('[bbp-topic-index]');would do the trick.Of course; there is a performance overhead involved with making WordPress parse the shortcode before displaying the content. Using WP_Query and creating a custom loop would be the ideal method, but it’s also much trickier.
November 26, 2012 at 10:28 pm #120799In reply to: after upgrading, I get 404 error
Shane Gowland
ParticipantIn your WordPress Dashboard, go to Settings -> Permalinks and press the ‘Save Changes‘ button. (You don’t need to actually change anything, just re-save them)
November 26, 2012 at 6:24 pm #120793leekpc.org
ParticipantI too am having problems
Ive installed bbpress2.2.2 onto my self hosted wordpress site and cant get the forum page integrated, I can use an url redirect but I need a sidebar to show user login/registration.
any assistance ?
November 26, 2012 at 5:05 pm #120792rsanchez1
ParticipantIt will not override your front page. It will add new pages. When you install it, you can check the Forum Settings page to see the slugs for the pages it will add, and change them as necessary.
November 26, 2012 at 2:18 pm #120788blakeab84
ParticipantAlso, will my current sidebar and header still be used/integrated with this?
November 26, 2012 at 2:16 pm #120787blakeab84
ParticipantHi, I have an existing wordpress blog and I would like to have bbPress integrated with it. Meaning, I would like to install the bbPress plugin and it not effect my current them. I would like to just link to the forum where my existing users can user their already made usernames and passwords on the forum. When I install this plugin, will it make a new page or will it over-ride my current front page?
I’m a bit confused and I’m not wanting to mess anything up, but I would really like to integrate a forum for my members. Thanks.
November 26, 2012 at 10:41 am #120779Topic: Error 310 (net::ERR_TOO_MANY_REDIRECTS)
in forum TroubleshootingKatwind
ParticipantHello,
Could someone help with a solution to this eror?
I have last versions of Buddypress and bbPress running on WordPress 3.4.2
Every time I submit a new topic or a reply to an existing topic in bbPress forum I get ‘Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects wordpress’
I couldn’t find any answer/solution to this problem.
Thanks
November 26, 2012 at 9:15 am #120775In reply to: use old theme with 2.2?
Shane Gowland
ParticipantbbPress is now a plugin for WordPress. That means that it doesn’t run without an install of WordPress.
As for the design; that’s entirely up to you. You can go with the default bbPress styles, use a WordPress theme that overrides them or apply your own CSS and make the forums totally original. I recommend having a good read of the bbPress 2.0+ documentation.
November 26, 2012 at 3:33 am #120771In reply to: How to use BBpress functions in WordPress?
John James Jacoby
Keymaster- Use a regular old WP_Query()
- Use a widget
- Use bbp_has_forums()
- Use the shortcode mentioned above
There are lots of examples, in the forums, on the codex, and in the bbPress code itself. Also, unclear what you mean by “latest forum.” Do you mean topics, or replies, or something else?
November 26, 2012 at 3:26 am #120770In reply to: How is the forum archive page generated?
John James Jacoby
KeymasterModifying core files is never the way. There are plenty of filters in place to override any bit of functionality regarding bbPress’s theme compat,
There are, as you’ve already found, numerous vectors depending on exactly what you want to accomplish. Each filter has an intended purpose, and solves a specific problem. The underlying code is identical to WordPress’s own template loader, until a template isn’t found (which is a majority of installations.) In that case, bbPress replaces the_content with template parts using page.php, or whatever is a match in the stack you found already.
Also, don’t forget about the typical WordPress templates: archive-forum.php, and archive-topic.php, etc…
To answer your question about why get_the_ID() doesn’t work on archive pages, why would it? It’s an archive, not a post/page. There is not ID to get.
From your posts here, you’ve basically solved much of what’s already in the codex regarding how some of these things work; also, I’m fuzzy on what problem you’re trying to solve. What is the end goal you’re working towards? I can give you some advice on what I think will work best.
November 25, 2012 at 11:30 pm #120765In reply to: How to use BBpress functions in WordPress?
Stephen Edgar
KeymasterUse the [bbp-forum-index] shortcode https://codex.bbpress.org/shortcodes/
November 25, 2012 at 9:37 pm #120762In reply to: How to use BBpress functions in WordPress?
frenzis73
ParticipantUP 🙂
November 25, 2012 at 8:33 pm #120756In reply to: Oy – all I get is a blank page
Stephen Edgar
KeymasterI know PageLines released an updated compat plugin for bbPress 2.2, what version that actually is I am not sure as it doesn’t appear publicly (from what I can see).
http://www.pagelines.com/store/plugins/pagelines-bbpress/
http://www.pagelines.com/forum/topic/23459-bbpress-22-crash/page__hl__bbpress#entry137455Make sure you are running WordPress 3.4.2 and bbPress 2.2.2 and the latest updates from PageLines , if you are still not seeing any content I would ask PageLines support to look into it further.
November 25, 2012 at 7:01 pm #120751In reply to: Migrate under my xoops forum to bbPress
Stephen Edgar
KeymasterHere are the steps I would follow:
– Backup everything and often (WordPress, Xooops, MySQL etc)
– Install WordPress locally to test the import
– Research the Xoops MySQL database structure
– Make a copy of importer example.php as xoops.php in the same folder
– Edit xoops.php to match the xoops database table & field nameseg. This from Example.php:
// Forum id. Stored in postmeta.
$this->field_map[] = array(
'from_tablename' => 'forum',
'from_fieldname' => 'forumid',
'to_type' => 'forum',
'to_fieldname' => '_bbp_forum_id'
);Would become:
// Forum id. Stored in postmeta.
$this->field_map[] = array(
'from_tablename' => 'xoops_forum_table_name',
'from_fieldname' => 'xoops_forumid',
'to_type' => 'forum',
'to_fieldname' => '_bbp_forum_id'
);The above is not accurate as I have no idea what table and field names xoops uses for its database, that is the bits you need to research. Do the above for as much as you can matching all the tables and fields testing your import.
Once you have an import working and are happy with you can then look to importing it to your live site and I cannot emphasize this enough, backuyp, backup and more backups in case things go wrong.
November 25, 2012 at 2:15 pm #120743Topic: How to use BBpress functions in WordPress?
in forum Installationfrenzis73
ParticipantI would like to show the latest forum in the footer of my WordPress site. I would like to use bbp_list_forums(); function. But it seems is not possibile.
Could you help?
Regards, Francesco.
November 25, 2012 at 2:14 pm #120742In reply to: Merge two or more forums in one
frenzis73
ParticipantHi James, thanks for you reply. I would like to merge two or more forums in the same BBpress installation (one single WordPress), not from two differents BBPress.
Is that possibile?
Regards, Francesco.
November 25, 2012 at 11:10 am #120738In reply to: How is the forum archive page generated?
Michael
ParticipantOkay, after some sleuthing I’ve figured out why page.php is *always* called to display the Archive Base and Topic Base.
The set of available templates appears to be hard-wired in (rather than selecting from all available Templates in the selected Theme) in bbp_get_theme_compat_templates() in …/bbpress/includes/core/template-loader.php.
bbPress appears to want to select from a known list of “bbPress friendly” Templates to display pages, so it uses this hard-wired list when it goes hunting for the Template to use for displaying a given bbPress page.
The $templates array includes the following Template file names (as of v2.2.2):
$templates = array(
'plugin-bbpress.php',
'bbpress.php',
'forums.php',
'forum.php',
'generic.php',
'page.php',
'single.php',
'index.php'
);
What’s important here is that the ORDERING of the Templates in the array matters, as the function bbp_locate_template() goes through this array sequentially and returns the first Template it finds, which gets used to display the bbPress page.bbp_locate_template() searches the Child Theme first, then the Parent Theme, and finally the theme-compat folder, so in theory one can install a Template in the Child or Parent Theme with one of the above Template file names, and so long as bbp_locate_template() finds it first, we’re all cool — that Template will get used for Forum pages.
There are 3 ways I can see to ensure my special Template is used when the Archive Base is displayed, in order of simplicity:
1. Edit the hard-wired $templates array in bbp_get_theme_compat_templates() in template-loader.php and add my template name to the top of the list. Of course, this is BAD PRACTICE since it will get overwritten in the next bbPress update, but a quick way to test out a Template.
2. Create a Template called “plugin-bbpress.php” and put it in my Child Theme directory. That’s the simplest.
3. Hook into bbp_get_bbpress_template, which is used as a filter on the $templates array and add my Template name as the first entry in the array. This is the way it’s intended to be done, from what I can tell.
All three of these will work, but they all have the downside of completely ignoring the Template setting of the Page Attribute for a given WP page (see here for what I’m talking about). For a given WP page that is “partnered” with a bbPress page, bbPress should use the Template specified in the Page Attribute. That’s what it’s there for.
While I haven’t tried it yet, perhaps I can hook into bbp_get_bbpress_template and inject the current page’s Page Attribute for the Template. I’ll have to dig into this a bit and see if it’s worth the effort. It seems like that would be the cleanest way, as well as in the spirit of how Page Attributes are supposed to be used.
Wish me luck.
Michael
November 25, 2012 at 9:34 am #120736In reply to: Change "posting order"
Pippin Williamson
Participant@Tapirk You need to create a new custom plugin and then paste the function into it. The easiest way to create a new custom plugin is to use Pluginception.
November 25, 2012 at 9:21 am #120734In reply to: How is the forum archive page generated?
Michael
ParticipantOkay, I’ve been doing some digging and perhaps as expected, the theme Template page.php (the default WP Template) is being called to build the Archive Base page. I can edit the page.php in my child theme and customize from there (where it eventually calls the_content(), which apparently executes content-archive-forum.php to display the Forum “front page”), but that’s a brute-force method since page.php is the default Template for all pages. I want to create a Template explicitly for bbPress pages, which means I need a way to specify the Template to use on a per-page basis.
Normally this would be done by simply creating a Template (like page.php) and put it in your child theme directory, then select it for a specific page you want to apply it to using the wp-admin Edit Page -> Page Attributes -> Template pull down, save it and voila, your page uses your custom Template.
But with bbPress pages that are “partnered with a WordPress page” (per this topic discussion), this doesn’t work for the partnered page. The Template setting seems to be ignored, and only for bbPress pages partnered this way.
This may not be a show-stopper for me, but may be for others looking to customize the overall page Template for their bbPress pages. Is it a bbPress bug? I can’t tell, and hopefully I’m missing something painfully obvious, being new to installing/using bbPress.
Seems like there must be some kind of code frag in the plugin that does something like:
if (request to display (Archive Base | Topic Base) {
if ((Archive Base | Topic Base) is partnered with WP page) {
point the_content() at (content-archive-forum.php | content-archive-topic.php);
call default page Template;
}
}
JJJ or someone else in-the-know, can you comment on how the “partnering with a WordPress page” works? Where is this performed? Sorry if the question is naive, I’m just having trouble understanding how this partnering works at the Template execution level.
Many thanks.
MichaelNovember 25, 2012 at 8:57 am #120733Michael
ParticipantYep, that does indeed work. I still have a problem with being able to apply different page templates to this page, though — and this may not be a bbPress-specific issue, but it shows up only on bbPress pages created this way.
The thread for this discussion is here.
Thanks
MichaelNovember 25, 2012 at 8:12 am #120732In reply to: Migrate under my xoops forum to bbPress
le-gentilone
ParticipantThank you for your fast response.
Should I install wordpress locally and to import into my website which is still under xoops, or save the database and then import the file “example.php”?
I’m so scared of losing everything, before I make a mistake trying to understand.
I am just a novice and I could not make this correspondence.Merci pour votre réponse aussi rapide.
Faut-il que j’installé wordpress en local, et faire l’importation sur mon site qui est toujours sous xoops, ou sauvegarder la base de données et ensuite importer le fichier «example.php» ?
j’ai tellement peur de tout perdre, qu’avant de faire une bêtise j’essaie de comprendre.
Juste que je suis novice et je ne saurais pas faire cette correspondance.November 25, 2012 at 7:33 am #120730Topic: use old theme with 2.2?
in forum Themesrobortsmith
ParticipantHi,
i had a bbpress install 1.0.3
it was a long time ago i did this so please bear with me!
i thought this was installed without wordpress.
i want to srub the contents of this forum as its full of spam and set up a new one with the same custom theme.
am i right in thinking you have to have a wordpress install now to run bbpress?
assuming so i have installed wordpress and bbpress plug in. would prefer not to have wordpress if you dont need it?
Is it now possible to move my old custom theme from bbpress over and use that or do I have to start from scratch? if so how?
Thanks
November 25, 2012 at 6:42 am #120726In reply to: 3 levels of membership roles using bbPress 2.2.1
Sam Rohn
Participantyou can easily change forum role titles, breadcrumbs and more using bbpress string swap
https://wordpress.org/extend/plugins/bbpress-string-swap/
sam
-
AuthorSearch Results