Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '\"wordpress\"'

Viewing 25 results - 10,601 through 10,625 (of 26,869 total)
  • Author
    Search Results
  • #140273
    jcoleporter
    Participant

    Just wondering if anyone can tell me how I can add a user to participate in the bbpress forums, but not allow them access to sign on to my wp-admin panel. When the registration email is sent out, it includes in the default message the sitename/wp-admin for them to sign on. I don’t want my forum users to get routed there, but want them to just be sent back to the forum sign on page internally.

    Any help? Am I missing something simple?

    #140270
    Hansaplastique
    Participant

    Hi Stephen,

    In my search for a “fix” I totally forgot about the popup “Crayon Syntax Highlighter” offers.
    I’ve been playing around with this for about a year now and ended up using “CodeColorer” as I was creating my own WYSIWYG editor. I think I’ll explore the Crayon option again.

    As for the editor; I don’t know how to start such a wider discussion.
    I agree that ideally you’d like to use the editor that comes with WordPress, even if it’s just to stay more consistent (comments vs forum posts).
    How would one go about that?

    #140264
    Simon Barnett
    Participant

    Perfect! Many thanks Stephen and Ronthal

    I’m using the Dynamik Website Builder, so it was pretty easy to create a widgetized page.

    Without a website builder some methods of widgetizing a page can be found by googling [create a widgetized page template] or perhaps by using a plugin.

    Then I retrieved the Forum ID’s by viewing the Forum’s page source, or editing the Forum in WP Admin and looking at the post ID in the URL.
    eg. /wp-admin/post.php?post=4540&action=edit

    Then I simply put two widgets into my custom widget area with their respective IDs and set the number of topics to 10.

    There is no styling, which is a good thing – I can style it how I want now.

    #140249
    Stephen Edgar
    Keymaster

    Give this plugin a try, you should be able to customize the templates as needed.

    https://wordpress.org/plugins/bbpress-custom-reply-notifications/

    #140247
    ijourneaux
    Participant

    I have bbPress up and running but was wondering how I might be able to allow users to get an sms text message when there is a new forum post. I have played around with the WordPress Text message plugin but Wasn’t able to figure out a way to incert the codes onto the form pages.

    Ian

    #140246
    Stephen Edgar
    Keymaster

    I see where you are coming from, I just went and took a look around backticks in Crayon Syntax Highligher.

    Tex uses backticks and appears to render fine based on this http://aksandbox.webege.com/?p=92, I also tried some MySQL with backticks and that also rendered correctly.

    You can also add/create your own languages for Crayon:
    https://github.com/aramk/crayon-syntax-highlighter/blob/master/langs/readme.md

    Some more background on the issues in the past can be read in these two tickets and this was one the main reasons backticks were implemented.
    https://bbpress.trac.wordpress.org/ticket/2091 & https://bbpress.trac.wordpress.org/ticket/2317

    While looking for a solution I noticed that I’m not the only one experiencing this back tick problem – frankly; the editor for bbPress needs some serious reconsideration … isn’t it time for a capable WYSIWYG editor?

    I also think we do need a better editor in bbPress, or more so a better editor in WordPress itself that we can use in the ‘front end’ of bbPress.

    The install base and use of bbPress is quite large and varied and we try to make it work for all of these cases and is one of the reasons recommending to use plugins that work with bbPress to support your own use case.

    Maybe we should have a wider discussion on the bbPress editor and the options available to us.

    #140245
    #140244
    serks
    Participant

    Thanks for response Stephan,
    I actually managed to do this by using some code in loop-search.php and I used the same code in loop-replies.php…heres the code that does it…

    
    <?php if(get_post_type() == 'reply'):?>
    
           <?php // CHECK IF THIS REPLY IS UNDER MEMBERS ONLY FORUM.
           $parent = array_reverse(get_post_ancestors($post->ID)); // get an array of all the parent pages in order from most distant to closest.
           $first_parent = get_page($parent[0]); //get the first page in the array, which is the most distant parent
           $int = apply_filters('the_ID', $first_parent->ID); //filter the $first_parent to get only the wordpress page/post ID, which is an integer like 49 or 565. store it as a variable $int
           ?>
    		
            <?php if($int == 48) :?>
    	        <?php // DISPLAY A MESSAGE SAYING THE REPLY IS HIDDEN ?>
    	        <?php if(!user_subscribed()):?>
    		        <?php //bbp_get_template_part( 'loop', 'search-reply-membersonly'); ?>
    		        <div class="hidden-forum-comment">This comment is only visible to subscribers. <a href="/join">Click here to subscribe.</a></div>
    	        <?php endif;?>
            <?php else :?>
                    <?php bbp_get_template_part( 'loop', 'search-reply'); ?>
            <?php endif ;?>
    
    <?php elseif(get_post_type() == 'forum'): ?>
    	<?php bbp_get_template_part( 'loop', 'search-forum'); ?>
    <?php elseif(get_post_type() == 'topic'): ?>	
    	<?php bbp_get_template_part( 'loop', 'search-topic'); ?>
    <?php endif;?>
    
    

    Hope i’ve pasted that correctly.
    48 is the ID of the Members Only Forum.
    !user_subscribed() is one of my own functions to check if a user is subscribed to a product with DAP (Digital Access Pass).

    If anyone needs more help with this just ask. Be happy to help.

    Stephen Edgar
    Keymaster

    It looks like the issue is fixed?

    Anyway see the comment on this ticket in Trac for more details https://bbpress.trac.wordpress.org/ticket/2204#comment:3

    On each bbPress related page, the bbPress adds a class ‘bbPress’ to the body html element, so adding something like below would solve the problem in a non-obtrusive way.

    body.bbPress #nav > li.menu-item-318 > a {
    formatting for the highlighted menu item class
    }

    Where, menu-item-318 is the id of the page which should have been highlighted by the current_page_parent or current_menu_item class, which are not attached (for which this ticket is for).
    Of course, this is just a hack, but it does get the work done.

    David 9
    Participant

    Hi,

    I have a wordpress site and would like to interact with my users – however, I would like this interaction to be private from every other user on the forum. Ideally I envision a part of the forum that is for all registered users, but a separate section where I can interact with an individual – send files, chat etc.

    Can this be done by using the group function – where I make a group of myself and the other individual and then keep this group private to myself and the individual? Or is this likely to become unsustainable for myself – having to keep track of what is being written on all the groups I have created?

    Any help would really be appreciated! Maybe I am over complicating it if bbPress can have a secure messaging system that copes with attachments. Thanks

    #140229
    Hansaplastique
    Participant

    Thanks Stephen for the reply and suggestion.

    I’ve looked at those yes and they work great except for code that has backticks in it πŸ™ … Some examples shell code that is being posted on my forum actually uses backticks in the code which makes it all a big mess … πŸ™

    The current “fancy” editor doesn’t work well with code either, specially when switching back and forth between WYSIWYG and code.
    In this day and age I’d like to avoid that my visitors have to “code” their own HTML to get a message posted right.

    What I’ve done so far:
    – create my own rich editor
    – disable backticks in bbPress

    This works pretty good, but it most certainly is not perfect either.
    Obviously changing bbPress core files is a no-no from a maintenance perspective (hence my request).

    While looking for a solution I noticed that I’m not the only one experiencing this back tick problem – frankly; the editor for bbPress needs some serious reconsideration … isn’t it time for a capable WYSIWYG editor?

    No disrespect intended to the developers!!
    I really appreciate the enormous amount of work they have done, and I understand that my editor issues are maybe not the top priority.
    I really like bbPress as a forum for WordPress, and I consider it so far the best option out there.

    #140226
    JakubMarian
    Participant

    Hello, I am trying to integrate bbPress seamlessly into my custom WordPress theme. However, this theme defines several global variables which are then used by the theme files.

    These variables are defined as global variables in header.php of the wordpress theme and are used without problems in all theme files. Example:

    header.php
    global $variable;
    $variable = "value";

    single.php
    global $variable;
    echo $variable; // outputs "value" as it should

    So far, so good. But if I try to use the variable in a bbPress theme file, it is empty:

    content-single-topic.php
    global $variable;
    echo $variable; // outputs ""

    When bbPress is done, the variable comes back to life:

    loop-single.php
    echo $variable; // outputs "value" as it should
    the_content(); // all the bbPress stuff, $variable empty – what happens there?
    echo $variable; // outputs "value" again

    Using print_r($GLOBALS), it turns out that in fact all the custom variables cease to exist for the time bbPress is doing its job and than come back to life.

    How can I pass a global value to the bbPress theme files without doing absurd things like querying the database?

    jwarren
    Participant

    Okay, sorted!

    I took a dive into bbPress source code, and ‘bb_get_user_profile_url()’ is the correct function to use to get to a user’s profile. Here’s the source link

    And an example usage:

    <?php $this_user = wp_get_current_user(); ?>
    <a href="<?php echo bbp_get_user_profile_url($this_user->ID); ?>edit/">Edit Forum profile</a>
    
    jwarren
    Participant

    Thanks @ronthai, but that’s kind of the same thing I’m doing. If you check the source, you’ll see wp_get_current_user() basically abstracts the same thing. Did check out your linked post though, neat idea.

    Any idea on the edit profile capabilities? It’s really kicking my arse.

    jwarren
    Participant

    So, I’ve added bbpress to quite a big WordPress site. While everything works fine and dandy for the admins, most (if not all) regular users aren’t able to view their profile page or edit their profile. I’ve changed all regular users to the “Participant” role, but it still simply returns a 404. Which capabilities do I need to add to the Participant to enable the profile?

    Additionally, I’m generating the edit profile link like so:

    `/forums/users/<?php wp_get_current_user()->user_login ?>

    However, this feels a bit hacky and fragile – is there a better way?

    WP 3.8, bbPress 2.5.1

    #140212
    RukiaR7
    Participant

    Ok so I’m using buddypress, and as I understand it subscribers to my website have the comments, buddypress, and bbpress all connected. So if you upload a avatar for one it’ll be used for all. As I understand it being on wordpress for a month.

    Is there a (simple noob) way or plugin to get options on avatar sizes? And somehow get it to work for buddypress, bbpress, and comments. Or at least bbpress.

    In other words if users upload a square avatar it’ll be square in the comments, buddypress profile, and bbpress since they’re all connected. Or if they upload a long rectangular one it’ll be long and rectangular everywhere also. I can settle for square in the comments but I really want long ones in buddy and bbpress.

    Or would I have to change the code in buddypress, and in bbpress, and somehow for the comments as I think I do. If thats the case I only ask for help with the bbpress since this is bbpress support.

    I know how to change the avatar size in buddypress from this article (though I haven’t tried it yet, I like to gather information then potentially ruin my site afterwards). http://premium.wpmudev.org/blog/how-to-change-the-default-buddypress-avatar-sizes/

    Problem is I’m not sure if the cropping will still work if I change from square to rectangle as the cropping seems to only work in squares. So I found this article to deal with the cropping. http://offthewallmedia.com/programming/buddypress-crop-avatar-to-any-ratio Though I haven’t tested it yet.

    So I just wanted to ask before I mess something up if there is a better way to accomplish all this or if there was a plugin or anything and if I change all these settings in buddypress would it be the same for bbpress andor the comments. Thanks for any help.

    #140208
    Stephen Edgar
    Keymaster

    You probably want to look into WordPress’ ‘Conditional Tags’
    https://codex.wordpress.org/Conditional_Tags

    And then a list of bbPress’ conditional tags https://codex.bbpress.org/bbpress-conditional-tags/

    #140207
    Stephen Edgar
    Keymaster

    You can also go down the path of add Post Thumbnails to your forums and topics, not so much replies though unless you have some awesome templates πŸ˜‰

    There is some example code in this thread:

    Add Featured Image to the BBpress Index

    #140206
    Stephen Edgar
    Keymaster

    The creator/developer of bbPress or the Mods, can not help in translations, they just have to trust anybody whom submits a translation.

    Kind of correct, all the translations are handled by the same translation process for WordPress

    https://codex.bbpress.org/bbpress-in-your-language/

    Using pt_BR as an example if you take a look at: https://translate.wordpress.org/projects/bbpress/dev

    You will see that Portuguese (Brazil) is at 94% translated, 975 strings translated and 60 strings untranslated.


    @tvieira
    If you open this link it shows you the 60 strings that have yet to be translated for bbPress. You can update these strings yourself and then contact the Brazilian translator team via one of these links to get these translations approved. Once approved they should then become available via WordPress’ automatic updates in the very near future.

    https://br.wordpress.org/contact/
    https://br.forums.wordpress.org/
    http://wp-brasil.org/

    #140202
    ronthai
    Participant
    #140201
    ronthai
    Participant
    #140200
    Einkoro
    Participant

    I’m seeing the same issue with WP 3.8 and bbPress 2.5.1 when MemberDeck 1.2.1 is activated. I reached out to their developer and with debugging turned on the following error occurs with the bbp_setup_current_user function/hook:

    The current user is being initialized without using $wp->init()

    I see a ticket for this already filed with both bbPress and upstream in WordPress:

    https://bbpress.trac.wordpress.org/ticket/2412

    https://core.trac.wordpress.org/ticket/24169

    #140181
    wesleyjohns24
    Participant

    The dialog in bbPress for inserting a link into a post by default shows a search box and a list of existing content on the site.

    I am using WooCommerce on the same WordPress installation as bbPress. The problem is that WooCommerce coupons use Pages. This means all of my coupons (often ones that are created for specific people or specific purposes) can be publicly displayed in this list.

    I’ve edited my css to display: none; this section, but I’m not satisfied with this solution as it is still possible for someone to change the css and view these pages.

    Is there a way I can disable this feature? How might I go about modifying the code to remove it?

    #140157
    Stephen Edgar
    Keymaster
    ronthai
    Participant
Viewing 25 results - 10,601 through 10,625 (of 26,869 total)
Skip to toolbar