Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '\"wordpress\'

Viewing 25 results - 12,826 through 12,850 (of 26,846 total)
  • Author
    Search Results
  • #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

    #120677
    Pippin Williamson
    Participant

    The usermeta table is one of the core WordPress tables, so usually it will be the one that looks like this: wp_usermeta. Sometimes, however, the “wp_” prefix will be different.

    #120663
    Halo Diehard
    Participant

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

    Hello, I am considering changing my site from phpBB3 forums to bbPress to better integrate with my WordPress home page.

    I’m attempting to Import my forums into my test site, on another database, to test bbPress’ “Import Forums”. I’ve filled out all the necessary information, but the first time I ran it I got messages at the bottom that 0 Members had been imported 0 posts, etc all the way down the line. I tried running it again and I get this message:

    “Fatal error: Class ‘Example’ not found in /homepages/33/d410891000/htdocs/THEMETEST/wp-content/plugins/bbpress/includes/admin/converter.php on line 1291”

    I’ve attempted to reset the process by choosing to Purge Previous Import and save, then Start Over and save, but I continue to get the same message when I try to import.

    I tried to resolve this on my own, but I searched for an hour online before I even found that bbPress has an importer built in! Unfortunately stuff from the last five years had priority in the search. Also, I could not find a search on this site, so I started Googling “bbpress.org import forums” but still no answers, so any help would be appreciated.

    One more thing: I don’t have so many members that I couldn’t create their accounts myself if I *had* to, so if anyone knows of an easier way to just import the forums and posts, that might work.

    Thanks in advance for your time.

    #120659
    #120647

    It’s a bit difficult to wrap your head around at first, but the reason theme compatibility exists, is because you should not modify code/templates that come with plugins or themes. When using a plugin like bbPress, and a theme that isn’t yours, you need some other way to introduce code into WordPress.

    You can use either a plugin, or a child theme to do this.

    You’ll want to research both methods, and figure out which one suits your situation and needs.

    #120645
    nickzee
    Participant

    Dear community.

    I have spent the last few (5) hours reading the various posts, trying to get bbpress to integrate with my custom WP theme. Unfortunately, I don’t have the knowledge (or enough) to figure out how to make the two work together.

    Info
    Wordpress: 3.4.2
    Site link: http://www.restorationcoach.com/restoration_coach/forums/
    Using this theme: http://www.templatemonster.com/wordpress-themes/39849.html
    bbpress: 2.2

    My main issue seams to be css related. I think bbpress is and the theme are sharing css files, causing a funky appearance. Overall forum function seems to be working fine.

    So far I’ve done the following.

    Completely removed bbpress and installed new 2.2 version.
    Read: http://codex.bbpress.org/theme-compatibility/ (this is for customizing the bbpress theme, if you want? And if you don’t, then leave the install as is?)
    Watched: http://www.youtube.com/watch?v=lB2Oodx2GJw (not sure if this applies with 2.2)
    Switched to Twentyeleven: Looks better, side bar is missing, and footer contact form, map and links are over top one another.

    I can see in firebug where both style.css and bbpress.css are being used to style the forum. Most specifically #page-content ul li. This, I believe, is causing the issues but not quite sure how to fix it.

    Thank you in advance for the assistance.

    #120644

    That’s true. Unfortunately before bbPress 2.2, users had to go digging to assign forum moderator capabilities to users with existing WordPress roles, so we indirectly drove users towards that solution already. :/

    #120643
    psiggy
    Participant

    Hi,

    I would like to ask – is there any function that returns the current forum description. By “forum description”, I mean the string that you can specify in WordPress GUI when creating new forum.

    Thanks!

    The editor here is the basic WordPress editor with some CSS tweaks; something anyone with a spare hour should be able to put together.

Viewing 25 results - 12,826 through 12,850 (of 26,846 total)
Skip to toolbar