Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 6,051 through 6,075 (of 11,591 total)
  • Author
    Search Results
  • Stephen Edgar
    Keymaster

    Basically all these functions names need to be unique…

    If you use the above from @JJJ with ‘foo’ and then you use another function from another topic called ‘bar’ and then use a third again called ‘foo’ you will now have a conflict because two custom functions are trying to use ‘foo’.

    A common practice is to name the functions with something to remind yourself (or others reading your code) that it is custom code you have added to your install.

    eg. Prefixing ‘foo’ with ‘hd_’ for ‘Halo Diehard’

    function hd_foo( $args = array() ) {
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'hd_foo' );

    Better yet, a more descriptive name again with ‘hd_’ Halo Diehard prefix.

    function hd_custom_teeny_mce_override( $args = array() ) {
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'hd_custom_teeny_mce_override' );
    #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.

    Halo Diehard
    Participant

    Thank you for your quick response, I guess what I’m trying to convey is my uncertainty whether or not I can just plug that code in and rename “foo” anything? I don’t understand why I have to rename the foo, so I thought perhaps there was another step as well it was assumed I would know. (aka: you also have to put “” into your html)

    Sorry I’m such a “foo” when it comes to coding 😉 I’m learning as fast as I can!

    Wait, I might understand! We rename “foo” so we can recognize what it does when we’re looking at the code?

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

    #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

    Probably will want to rename “foo” though.

    Halo Diehard
    Participant

    I’m just recently testing bbPress, my theme is dark and the default editor doesn’t look well with it. Perfect solution? The editor color options available through Ultimate Tinymce! 😀

    So, my question is: Do I have to rename “foo”, or will it work if I just paste that into my functions.php?

    Signed,
    Complete and Utter php Newb

    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/

    #120679
    padekan
    Participant

    I did the foolish thing of changing two variables at the same time and now I’m not sure what I caused.  Recently I upgraded to bbPress 2.2.1 and at the same time moved to Twenty Eleven theme (wanted a responsive bbPress theme).  Had a couple of problems which I googled and resolved:

    1) no side bars showed up on Forum & Topic pages (fixed by installing Twenty Eleven Theme Extensions & Enabling Widgets on single post pages)

    2) Ultimate Tiny MCE was no longer showing up .. this was fixed by John’s helpful advice in:

    No more Ultimate TinyMCE buttons in fancy editor after latest 2.2 update.

    And I noticed a third issue, which was for ordered and unordered lists, they longer had bullets/numbers.  I upgraded to bbPress 2.2.2 today hoping that might have fixed the problem but the behaviour is still the same.

    I looked at the element information in Chrome and it shows that the list-style-type is set to “none” by bbpress.css. This is true for both ul and ol type lists.  I can’t be sure whether it is Twenty Eleven or the bbPress updates which caused the formatting to change but the fact bbpress.css was involved pointed me here.

    Being a pretty newbie guy from CSS perspective, I don’t know where and how I show try override the style type.

    Suggestions greatly appreciated.

    regards, Paul

    #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
    Pierre-Luc Auclair
    Participant

    I’m trying to understand if/how it is possible to call BuddyPress functions outside the forum (in a regular WP page). The Codex isn’t of much help…

    I am trying to create a latest topics list and a forums list on regular WP pages (home.php, index.php), etc.

    Thanks for the help !

    padekan
    Participant

    I stuck it in functions.php and it worked like a charm!  Thanks so much!

    Put this in mu-plugins, or make a plugin out of it, or put it in your functions.php file of your theme. Probably will want to rename “foo” though.

    function foo( $args = array() ) {
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'foo' );
    padekan
    Participant

    I updated to bbPress 2.2.1 last night and had the same problem with Ultimate TinyMCE plugin. The plugin sued to work beautifully with bbPress, now I get the default fancy editor. I’m not a PHP guru so I’ve been trying to avoid messing around in the code as Michael suggests. Is there any other option to get that editor enabled (it does show up in the dashboard versions of new Topic and I miss the table drawer)

    regards, Paul

    #120633
    SK
    Participant

    The latest update make all the “forum” content from my forums disappear. How do I rollback to previous version?

    #120588
    SydneyDesigner
    Participant

    I’m using the latest WP, BuddyPress and bbPress.

    I have the new bbPress forums turning on and working nicely inside new BuddyPress groups (i.e. groups that I create now, since loading the new bbPress). But for existing BuddyPress groups there seems to be a problem. The group admin for existing groups still has the correct bbPress sub-page asking me to tick the box to set up a forum for that group, which I tick and it saves OK. But when I click on the “forum” tab in that group I just get the error message; “This group does not currently have any forums.”

    How do I turn on forums in existing BuddyPress groups please?

    #120577
    c3eu5012
    Participant

    Ok, so I found a conflict with two of my forums having the same order number and fixed it. So I changed everything back over to private and started testing it again that way. I’m still having the same problem, everytime I make a post in one of the forums under a category, all the forums under that category dissapear.

    Now everything seemed to work fine when I had all the forums and categories set to public. Could this be a problem with private settings?

    #120567
    Stephen Edgar
    Keymaster

    – Backup your site and all your databases often during all these steps in case any step along the way you can revert back to a working site
    – Upgrade your bbPress 1.1alpha to the final 1.1 release https://bbpress.org/download/legacy/ https://codex.bbpress.org/legacy/updating/
    – Install bbPress 2.2x plugin to WordPress https://wordpress.org/extend/plugins/bbpress/
    – Run the bbPress 2.x Tool ‘Import Forums’ to import your old forums https://codex.bbpress.org/import-forums/

    #120542
    nizamani619
    Participant

    http://www.getarailroadjob.com/forum
    http://www.getarailroadjob.com/
    Not sure why original person who installed forum was not able to use original wp-admin for installing but they installed it on forum/bb-admin instead.
    now i want to upgrade bbpress to latest version and The version I have is old and I think back then it was just a theme that was uploaded and NOT a plugin…. Now they have switched from a bbpress theme to a plugin
    so how can i install and update new version
    thanks

    #120529

    Topic: Custom login Page

    in forum Themes
    #120528
    dyspersion media
    Participant

    For anyone else who comes here trying to programmatically display the forum index list, you can call shortcodes like this:


    echo( bbpress()->shortcodes->display_forum_index() );

    For what it’s worth, I don’t know why a function called “list_forums” would display *sub* forums. I would think that would be a function named “list_sub_forums” but, oh well. At least there’s a work around. It’s also worth noting that this might not be the best way to do this. I haven’t done much testing (I’ve done none).

    Cheers!

    #120514
    Stephen Edgar
    Keymaster

    Activate bbPress first, then follow Pagelines docs for their plugin <a href=”http://www.pagelines.com/wiki/How_to_Use_the_bbPress_for_PageLines_Plugin”>here, also make sure you have the latest version of their plugin for bbPress 2.2 compatibilty.

    Michael
    Participant

    Looks like you’ll need a plugin (or something) to override the $defaults array in bbp_get_the_content() in template-tags.php.  The “teeny’ variable is hard wired to TRUE — changing this to FALSE enables whatever TinyMCE config is set (through Ultimate TinyMCE et.al.).

    It would be nice if this were a configurable option in the Forums settings, right next to “Fancy Editor” tic box. 🙂

    Cheers.

    Michael

    #120457
    Pippin Williamson
    Participant

    There’s a trac ticket on the topic somewhere.

Viewing 25 results - 6,051 through 6,075 (of 11,591 total)
Skip to toolbar