Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress"'

Viewing 25 results - 12,851 through 12,875 (of 26,879 total)
  • Author
    Search Results
  • #120771
    • 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?

    #120770

    Modifying 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.

    #120765
    Stephen Edgar
    Keymaster

    Use the [bbp-forum-index] shortcode https://codex.bbpress.org/shortcodes/

    #120762
    frenzis73
    Participant

    UP 🙂

    #120756
    Stephen Edgar
    Keymaster

    I 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#entry137455

    Make 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.

    #120751
    Stephen Edgar
    Keymaster

    Here 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 names

    eg. 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.

    #120743
    frenzis73
    Participant

    I 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.

    #120742
    frenzis73
    Participant

    Hi 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.

    #120738
    Michael
    Participant

    Okay, 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

    #120736

    In 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.

    #120734
    Michael
    Participant

    Okay, 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.
    Michael

    #120733
    Michael
    Participant

    Yep, 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
    Michael

    #120732
    le-gentilone
    Participant

    Thank 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.

    #120730
    robortsmith
    Participant

    Hi,

    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

    #120726
    Sam Rohn
    Participant

    you can easily change forum role titles, breadcrumbs and more using bbpress string swap

    https://wordpress.org/extend/plugins/bbpress-string-swap/

    sam

    #120720

    Exactly like you’d expect:

    • Create a page with the slug ‘topics’
    • Use the ‘bbp-topic-index’ shortcode in the page content.
    • Done.
    #120717
    le-gentilone
    Participant

    Hello

    Here I want to migrate my forum as xoops CMS, to my new wordpress site.
    Is this possible, and if possible how to proceed.
    Thank you in advance

    Bonjour

    Voila je veux migrer mon forum sous le CMS xoops, vers mon nouveau site wordpress.
    Est-ce possible, et si possible comment procéder .
    Merci d’avance

    Halo Diehard
    Participant

    Howdy, can someone please check out the first page of my bbPress forums and tell me if it’s supposed to look like this? I can certainly tweak it with CSS, but I need an example, so if someone could provide a link to what it’s supposed to look like that would be great! BTW, I don’t mean colors, which I’ve begun tweaking already, I’m referring to the layout.

    I’m using:

    WordPress Version: 3.4.2
    bbPress Version: 2.2.2
    Theme: Custom Community

    Link to my bbPress test forums: http://themetest.halodiehards.org/hd-forums/

    #120702
    Michael
    Participant

    For what it’s worth, I’m looking for whatever function is calling content-archive-forum.php.  I can edit this file in my child theme per the Codex, but I’m trying to figure out which function is calling this, and in particular, what function generates the code above the <div id=”bbpress-forums”> at the start of content-archive-forum.php.

    Does bbPress simply use the default post display template, and if so, where is the call to load and execute content-archive-forum.php  made?

    I tried a grep for content-archive-forum in the entire wordpress tree from wp-content on down, and I can’t find where this is called from.

    Many thanks

    Michael

     

    and not just this template file

    #120699
    Michael
    Participant

    Did you ever get an answer for this?

    Michael

    #120697

    If they are on the same multisite WordPress installation, yes.

    * Visit Tools > Export on the site you want to move.
    * Export your data.
    * Visit Tools > Import on the destination site.
    * Import the data.

    #120696

    In reply to: bbPress 2.2.2 released

    #120690
    SK
    Participant

    Created ticket https://bbpress.trac.wordpress.org/ticket/2031

    JJJ says no need yet, but will consider if it is a popular request.

    #120685

    In reply to: Legacy versions

    #120683
    tilmanjo
    Participant

    Hello,

    I have the following problem:

    In the form-topic.php in somewhere aroung line 43 there is written:

    bbp_is_single_forum() ? printf( __( ‘Create New Topic in “%s”’, ‘bbpress’ ), bbp_get_forum_title() ) : _e( ‘Create New Topic’, ‘bbpress’ );

    Now on my website it shows: Forum_titleCreate New Topic in “”. Somehow it is not working that %s is replaced by the bbp_get_forum_title() information!

    Anther problem that occured:
    When starting a Forum as private and then changing it to public the topics that were created as in the “private mode” still remain private and I could not find a way to change that back.

    Thanks for working on bbpress!

    Tilman
    actual wordpress and bbpress version

Viewing 25 results - 12,851 through 12,875 (of 26,879 total)
Skip to toolbar