Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,726 through 14,750 (of 32,503 total)
  • Author
    Search Results
  • #125813
    moebis
    Participant

    @johnjamesjacoby – This actually almost completely works within the current trunks of bbpress and buddypress, even the activity feed of subforums looks and works correctly within the group. The only bug is somewhere in the display of the forum tab in the group, I assume because it’s not expecting a subforum, which is why it doesn’t display the parent forum, which is also the group forum. I confirmed this by creating another subgroup (so 1 parent, and 2 child), and it will only display the latest forum/subforum created within the group and ignore the older 2 (the parent and first created subfourm). I will play around with the source code to see where it’s generating the group forum display and make a code suggestion if you would like. It’s probably just querying the bbpress tables for a forum associated with the group and whichever shows last in the table is what the display generates. It’s smart enough to already calculate all of the topics in all forums and sub-forums, so it’s about 90% of the way there. I think because bbpress and buddypress are partitioned so well, this might not be an issue, it’s almost feature complete in this regard, and I know the community has been clambering for this functionality for a very long time. Most end up turning to the hierarchy plugin, which really isn’t the long term solution. Is it possible to get this into 1.7, which is so close to release? If so, I’ll work out a quick solution, that is future proof and can be expanded on in future versions.

    #125810

    There’s no easy way to password protect the entire forum; you’ll probably have to find and use a third party plugin if one is available. While you *could* password protect a page, and use a shortcode, that doesn’t actually protect the exact permalinks themselves, so they’re not at all ‘private.’

    #125773
    Fabrizio Pivari
    Participant

    I want to use [bbp-topic-tags] in the column of WP but it doesn’t seem to work in a normal widget for html

    #125771
    ringishpil
    Participant

    @Netweb, thanks I got it.

    Now I want to make a reverse function like I want to display all freshest topics except the one I displayed before.

    So I am doing something like:

    
    $left['show_stickies']=false;
    $left['order']='DESC';
    $left['post_parent']!=1263;
    

    and then

    
    if ( bbp_has_topics($left) )
    		bbp_get_template_part( 'bbpress/loop', 'topics' );
    

    but its listing all of the topics.

    When I go like $left['post_parent']=1263; its ok, but when I want a negation (list all topics from all forums except the forum with 1263 ID, then in var dump of $left['post_parent']!=1263; I am getting NULL

    #125767
    zurdog
    Participant

    I had used the code (below) prior to posting here in the forum and it didn’t work for me…

    
    

    and it outputs nothing… what am I doing wrong? I put this in my header.php file in my wordpress theme directory.

    #125764
    Stephen Edgar
    Keymaster

    There are very little in the way of options for bbPress and this is by design.

    I’m also from the Stonehenge forum era and am far from a developer but saw the potential of bbPress, now I’m learning PHP due to the awesome inline docs in the code of bbPress (and WordPress).

    Speaking of proud things in bbPress… Search is really new and works really well 😉

    eg. https://bbpress.org/forums/search/?bbp_search=remove+sidebar

    (I’m not meaning to be lazy or dismissive of your specific query just that this question has been asked many times and there are quite a few topics on this subject and you might even find one specific to the WordPress theme you are using)

    Stephen Edgar
    Keymaster

    Excellent, the BBCode cleanup bits are the main changes that will ship with bbPress 2.3, I think I have most of them sorted now.

    Moving topics is a manual task at the moment, it is planned for a future release. (#1838 & #1721)

    Are you able to configure your old phpBB forums (or a copy of them) and set these forums the way you want them to exist in bbPress and then do the import?
    (Essentially use the phpBB mod tools to get the setup you want before importing into bbPress)

    nadir
    Participant

    Stephan, I ended up with a fresh install again and did the import from scratch. This time, it looks like it worked!

    Has there been any resources for cleaning up bbcode? it looks like a bunch of random characters are in place around the brackets where bbcode once was.

    Also, I am using sitewide forums over the buddypress forums. However, I wanted to migrate topics from one of the imported forums into the group forum that was created … however, I see no option to mass move topics? I did some searching and found a reference to it if I were to “delete” a forum, however trashing it, simply just puts it in the trash bin! Can you please shed some light onthis?

    Thank you so much for your continued support! I’ve been a hardcore phpbb user for a long time but the painful customization of it finally turned me!

    #125761
    Stephen Edgar
    Keymaster
    #125760
    zurdog
    Participant

    How do I call bbpress template tags inside of the wordpress theme files? For example, I’m in header.php of my wordpress theme, and would like to list the forums in the header. I found this code: bbp_list_forums(); but I’m not sure how to get it to work?

    I understand I can use widgets or use the admin with various slugs… but I’m wondering how to do this on the backend with code.

    #125751
    ckleiman
    Participant

    Problem Solved, I think. I noticed I was able to make some bold text using html. Then I made some italic text and it worked too. Finally, I tried making a link, again, and, as before, it didn’t show. Then I looked more closely at he link code and put some text between the last > and closing tag and it showed and working. So, much to my delight I can use this plugin with my Arras theme, which, I wasn’t prepared to sacrifice. Thank you for this plugin. I thinks its just what I wanted for my WordPress site. Simple without all the who needs it extras that come with other plugins and and accomplishes exactly what I need.

    gregfielding
    Participant

    I’m trying to make my forum look better on mobile devices. As it stands, if you look at a topic and it’s replies, the avatars of the authors take up about half of the screen and the text is all scrunched over to the right.

    I’ve switched the sizing to be 20% for the “bbp-reply-author” div and 80% for the bbp-reply-content div. (this is in loop-single-reply.php)

    Anyways, the percentage spacing works great except that the avatars aren’t responsive and don’t shrink.

    This is the line of code that controls it:

    ‘<?php bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => true ) ); ?>’

    I can code a little, but this is beyond me. Any ideas on how to make the avatar responsive?

    Or, probably easier, anybody know how I can tweak the above code for use on mobile devices where it will call the avatar in a smaller size?

    Here is a link to a forum: http://www.bayarearealestatetrends.com/question/when-will-we-start-to-get-more-inventory/

    #125738
    pjv
    Participant

    I made a codex page describing what I learned so far. I don’t know if what I wrote is anything like a best practice, but it worked for me. It would be great if those more knowledgeable would correct and expand on it.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #125736

    If it’s not, why not?

    The honest truth is that once most people learn what they need, they never go into the bbPress codex and make a page to share their knowledge.

    #125723
    pjv
    Participant

    The answer to my question about which template is being rendered (at least in my case) was `page.php`.

    That’s `page.php` from your theme.

    So if you, like me, want to do things to the main template in which the bbpress forums are housed, you can use `page.php`.

    If you, like me, want to do things to that template ONLY for bbpress stuff, but not for other “pages” in your site, you can use the php function `is_bbpress()` in that template to render conditional html based on whether it is a bbpress page or not.

    This seems like amazingly basic and obvious information that I was only able to discern by gritting my teeth and putting bbpress into the text editor and reading through A LOT of code. If this information is documented somewhere easy to find, please enlighten me so that i can perform the requisite face palm. If it’s not, why not?

    This is untested by me, but digging through some more code, it looks like you might be able to create a custom home-base template for your bbpress forum by copying the original `page.php` into a new file and naming it any of:”
    `’plugin-bbpress.php’,
    ‘bbpress.php’,
    ‘forums.php’,
    ‘forum.php’,
    ‘generic.php’`

    #125714
    pjv
    Participant

    I agree the lack of basic, getting started documentation for CURRENT bbpress is pretty frustrating. Just a basic roadmap of how the plugin works and which template and functions files are the key ones for making basic changes would be very helpful. A high-level technical overview of what is what and where.

    For example, does anyone know which template is being rendered when I go to my-site.com/forums? More importantly, can anyone give me the rosetta stone so that I could figure something like that out myself at a glance without having to read through a ton of code?

    #125690

    In reply to: Register for forums

    samoya22
    Participant

    I have a multisite install and this shortcode just kicks the user to the WordPress registration page after they enter their username and email address. Anyone else having this problem?

    #125672
    ckleiman
    Participant

    Recently installed this plugin. As admin it says Your account has the ability to post unrestricted HTML content, however, after saving the post the html content doesn’t appear. I’ve been trying to save a link in a post using the html code buttons. If I just enter the link without html it appears, however, I want to use html to have the link open in a new page. What to do? My site is and the link to the plug in is in the Main Menu called Tech Support

    #125655
    moebis
    Participant

    I just installed the latest trunk of both to continue my testing. I like a lot of the improvements, but I’ve been discovering some bugs here and there. Not sure if this is the place to post it, but here it goes.

    First off, the 2 work well together now, except when you try to mix the site-wide forums with group forums. If you click on a group and look at the forum tab, it shows posts from the next group-forum or site-wide forums. What I’m attempting to do is create groups, with a top-level forum for each group, and then sub-sitewide forums underneath, which I nest using the backend bbpress admin. These sub-forums don’t have a group all their own they just belong underneath and listed in forums top of the master group they are part of. It looks like this functionality is somewhat coded into the newest branch of buddypress 1.7 and bbpress 2.3, and if fixed it would be perfect. I know there is a plugin called buddypress group hierarchy or something, but it’s not really what I’m looking for, because it assumes I want full group buddypress functionality surrounding the sub-forums. I just want more granular control over the topics on each group.


    @johnjamesjacoby
    – hear our plea. Allow us to create sub-forums in bbpress for the top-level forum in buddypress groups. When you click on the group, the sub-forums that belong to it will show underneath. When posting to the group forum, maybe even an option to move the topic to the top level group forum or sub-forums for the user? Just a thought. Thanks for all the great work on this, it’s getting much better now.

    #125651
    Stephen Edgar
    Keymaster

    Stop using the SimplePress importer and start using the phpBB importer.

    If you import using the phpBB importer your users can login to WordPress/bbPress using their existing username and password.

    The only known issues with importing from phpBB are listed here (they are all very minor issues)
    https://codex.bbpress.org/import-forums/phpbb/

    If you have issues with the phpBB import then tell us what they are so we can fix them.

    #125626
    Giannis Giaou
    Participant

    Hello everyone.

    I would like to know if its possible to provide custom information with shortcodes.

    For example i made  a static homepage with [bbp-forum-index]  shortcode in there,

    is it possible to provide only the Topics & Posts counts and not the Freshness information?

    Thank you in advance.

     

    #125618
    weboozle
    Participant

    Clean wordpress, buddypress and bbpress install (again) and I still can’t get a ‘forums’ tab on the site.

    I know this is an extremely basic step, and I’ve spent hours and several re-installs to attempt the ‘forums’ or ‘forum’ or ‘board’ or anything tab to link to a sitewide forum.

    I’ve never understood the heirarchy of wordpress (obviously) but I seem to always manage. This one is really has me. I can directly navigate to it in the browser but all I can ever get is a blank page when any tab might appear.

    I’m also aware that this isn’t listed in the bbpress codex since I’m sure it’s on page 2 of beginning wordpress.

    Any help? Many thanks in advance.

    #125610

    In reply to: Register for forums

    Lynq
    Participant

    If you need to create a register page, then you can add a new page via wordpress and then put this shortcode inside it: [bbp-register] – this will allow people to register for the forum.

    #125601

    In reply to: Link Forum to WP Page

    Stephen Edgar
    Keymaster

    A couple of options:

    #125590
    Michael
    Participant

    Okay, I think I figured this out on my own, though I don’t quite have the list of usable html matching what the default TinyMCE editor offers.  I’ll have to play with that separately.

    What I did was add a function in my functions.php file that changed the allowed markup for all bbPress (and blog) posts to include what I think is a reasonable list AND is still safe. I’ve added the IMG tag as well — for my Forum that’s a useful feature, and I’ll just have to monitor what people post in terms of image links.

    Here’s the code I added to my functions.php file:

    add_action('init', 'my_html_tags_code', 10);
    function my_html_tags_code() {
            define('CUSTOM_TAGS', true);
            global $allowedposttags, $allowedtags;
            $allowedposttags = array(
                    'p' => array(
                            'style' => array()),
                    'strong' => array(),
                    'em' => array(),
                    'i' => array(),
                    'del' => array(),
                    'h1' => array(),
                    'h2' => array(),
                    'h3' => array(),
                    'h4' => array(),
                    'h5' => array(),
                    'hr' => array(),
                    'blockquote' => array(),
                    'q' => array(),
                    'pre' => array(),
                    'span' => array(
                            'style' => array()),
                    'div' => array(
                            'style' => array()),
                    'ul' => array (),
                    'ol' => array (
                            'start' => array()),
                    'li' => array (),
                    'a' => array(
                            'href' => array (),
                            'title' => array (),
                            'rel' => array()),
                    'img' => array (
                            'src' => array(),
                            'width' => array(),
                            'height' => array(),
                            'alt' => array())
            );
            $allowedtags = array(
                    'p' => array(
                            'style' => array()),
                    'strong' => array(),
                    'em' => array(),
                    'i' => array(),
                    'del' => array(),
                    'h1' => array(),
                    'h2' => array(),
                    'h3' => array(),
                    'h4' => array(),
                    'h5' => array(),
                    'hr' => array(),
                    'blockquote' => array(),
                    'q' => array(),
                    'pre' => array(),
                    'span' => array(
                            'style' => array()),
                    'div' => array(
                            'style' => array()),
                    'ul' => array (),
                    'ol' => array (
                            'start' => array()),
                    'li' => array (),
                    'a' => array(
                            'href' => array (),
                            'title' => array (),
                            'rel' => array()),
                    'img' => array (
                            'src' => array(),
                            'width' => array(),
                            'height' => array(),
                            'alt' => array())
    
            );
    }
Viewing 25 results - 14,726 through 14,750 (of 32,503 total)
Skip to toolbar