Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,351 through 12,375 (of 32,504 total)
  • Author
    Search Results
  • #144100
    Robin W
    Moderator

    add this to your functions file

    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Freshness' ) {
    	$translated_text = 'whatever-new-word-you-want';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    #144093
    batmanfan
    Participant

    new to this, still reading…. read this http://codex.bbpress.org/using-bbpress-forums-with-buddypress-group-forums/
    can someone advise/confirm what’s the advantage of using BuddyPress “Group Forums” over the “forums” slug in bbPress?

    Also, I don’t quite follow this instruction…
    5. After creating a new page (Eg: “Group Forums”), go into Settings/BuddyPress/Pages and choose this new page to act as the placeholder for BuddyPress Group Forums
    I could see Settings/BuddyPress/Pages and it has 2 option Directories and Registration yeah? what do I do from here? Thanks.

    sandeepdebut
    Participant

    how i can view list of started top from a user using short code on dashboard ?

    #144089
    imjscn
    Participant

    if not threaded, clicking the bbp-reply-to-link can get #new-post form focused.
    But, when threaded, the onClick function seems not working. Instead of moving or creating the post form, it reload the page and add query vars.
    I’m with bbpress2.5.3, and wordpress 3.8.1

    #144087
    @mercime
    Moderator

    @batmanfan Yes. That article contains a link to https://codex.bbpress.org/bbpress-styling-crib/ which shows what selectors to use to change styling.

    #144086
    batmanfan
    Participant
    #144055
    echoleaf
    Participant

    I just copied the bbpress theme files to my child theme and thought asking here would be a lot easier than wading through all the code.

    I would like to hide replies from anonymous visitors, basically with an if/else statement. If logged in, show replies; if not logged in, hide replies and show a message that it’s for members only. The idea is that the topic would be readable by Google but the replies would be private.

    Is there a single theme file I can edit for this or are there multiple files to edit? Trying to figure out which file is like looking for a needle in haystack! Thanks.

    #144052
    Stephen Edgar
    Keymaster

    Robin, the issue here is if you look at his site you also see the text Door

    Thus it is not just the image being loaded in ‘whatever’ template is loading bbPress it is also adding that text.

    Ahhh.. It’s a Genesis theme…. Are you using the Genesis Extend bbPress plugin?

    You need this https://wordpress.org/plugins/bbpress-genesis-extend/ 🙂

    See also: http://www.studiopress.com/forums/topic/adding-widget-area-to-page-title-php/

    #144047

    In reply to: Forum Question

    Robin W
    Moderator

    no, this site doesn’t have a private message capability – your problem may well be someone else’s as well, so public answers help others !

    ‘When I went to one of our private forums, logged in as a tutor with the “tutor role”, it still let me post something. ‘ I’d try that again, and make sure you have logged out of the forum first in all your browser windows. If it still doesn’t work, come back and I’ll cut the code into a plugin.

    As to your desired set-up, this is getting complicated from a technical perspective.

    In essence you want
    Group a to have full permissions to participate across the site – the admins – no problem
    Group b to have spectator rights to some forums, but participation rights to others – ow!
    Public to see none of this – that is easy – forums set to private

    Is that correct? and if so I’ll have another think.

    #144044

    In reply to: Forum Question

    kdumas123
    Participant

    Hi Robin,

    I was able to edit the functions file with your code. Thank you very much. I figured out how to change a role of a user to “tutor”.

    I’m a little confused as to how I can achieve everything now.

    Our first thing is that we want a private forum where our administrator can populate information for the tutors. This is the forum where we want our tutors to be able to view but we don’t want them to be able to add topics or reply. It’s an informational only forum.

    The second thing is that we would like to have other forums where we would like the tutors to be able to interact with each other and with our admins.

    Is this possible?

    When I went to one of our private forums, logged in as a tutor with the “tutor role”, it still let me post something.

    Do you want me to set you up with 2 different roles (an admin and a tutor) for you to see how it works. Not sure if you have a way for me to private message you with this.

    Thanks!

    Kim

    #144017

    In reply to: main page customize

    Stephen Edgar
    Keymaster

    Start by checking out the docs in the codex.

    There are some good examples of what you need to do to achieve this.

    First you need to customize your bbPress templates per:

    https://codex.bbpress.org/theme-compatibility/

    The https://pl.forums.wordpress.org/ site is a custom page named page-forums.php with snippets of the code from various bbPress templates.

    So start digging around the codex and as bbPress is made ‘the WordPress way’ to customize bbPress templates is the same ideology as customizing a WordPress theme.

    Mycelus
    Participant

    Nope, it remained the same, and btw, I’d be more than happy to beta test. I finished the HTML and CSS courses on Codecademy and am moving onto PHP. I won’t be able to help code really, but I can definitely test and report bugs.

    Stephen Edgar
    Keymaster

    @mycelus Can you test the following for me to see if it fixes the isssue

    In your themes folder `/wp-content/themes/yourtheme/bbpress/loop-single-forum.php’

    The current code is:

    
    <li class="bbp-forum-topic-count">
    	<div class="topic-reply-counts">Topics: <?php bbp_forum_topic_count(); ?></div>
    	<div class="topic-reply-counts">Posts: <?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?></div>
    </li>
    

    Can you change it to:

    
    <li class="bbp-forum-topic-count"><?php bbp_forum_topic_count(); ?></li>
    
    <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?></li>
    

    Does that look better now?

    (I don’t have the time to fully test these ‘style’ updates, I am mainly adding the functionality for forum subscriptions)

    #144001
    Stephen Edgar
    Keymaster

    I am new to bbPress and I’m pretty astounded by how incomplete out of the box this thing is. I’m really trying to love it but at every turn I’m experiencing a disconnect… : (

    What do you mean exactly?
    I’ll add this for starters, making bbPress templates compatible with every WordPress theme in existence is not possible ‘out of the box’ we do try to do our best though 🙂

    I have just had a quick look at the theme authors site and there is very little publicly accessible info available so I can’t link you to that. It would also be worth looking at their support forums to see if any others have had issues and/or fixes when using bbPress

    Support

    1. How do new users login/find password? I’ve already created pages with the short code and added it to the widgets. Doesn’t work.

    For this you will need to make sure bbPress is using a template from your theme that includes a sidebar. If you look in your theme folder you will probably find a file named page-sidebar.php, make a copy of that file and rename it to bbpress.php and now bbPress will use template for all your bbPress pages like forums, topics etc

    Once the sidebar is present that will also fix the login issue as you have the login widget set for your sidebar.

    #143997
    Stephen Edgar
    Keymaster

    This will be more of a WordPress issue than bbPress.

    See this doc to help you get it sorted https://codex.wordpress.org/Moving_WordPress

    If you have more issues with this part (i.e. Not bbPress) post in the WP Support forums https://wordpress.org/support/

    Stephen Edgar
    Keymaster

    When you send out a link to a topic on the forum, you get “No Results Found” if you aren’t logged in. This is big usability issue. People are going to assume there is something wrong with the link rather than realize that they just need to sign-in.

    For the record bbPress is specifically designed this way to 404 unless the user is logged in.

    In case you go down the 404 route here is the code you need based on your above code:

    
    <p>
    <?php esc_html_e('The page you requested could not be found or could not be displayed. If you are a parishioner and you are trying to access a forum page, it may be that you ','Chameleon'); ?> <a href="http://www.url-here/">need to log in</a><?php esc_html_e('. You can do so on the forum page in the right sidebar. Otherwise, try refining your search, or use the navigation above to locate the post.','Chameleon'); ?></p>
    #143992
    alaskatoargentina
    Participant

    Hello all,

    I am new to bbPress and I’m pretty astounded by how incomplete out of the box this thing is. I’m really trying to love it but at every turn I’m experiencing a disconnect… : (

    URL: http://www.landscapephotographysf.com/forums/forum/landscape-photography-sf-forum/

    I’m wondering if someone may be able to assist me through these pretty easy problems, as I can’t find any recent answers on these questions.

    1. How do new users login/find password? I’ve already created pages with the short code and added it to the widgets. Doesn’t work.

    Notice how although the widget is created, it doesn’t appear on the forum:

    Am I missing something here?

    Graham

    Robin W
    Moderator

    ok, yes I can probably fix your code above, and if you want to continue down that road, I’ll do some digging when I get a moment – just come back and let me know.

    However having looked at a solution for doing this at forum level I’ve sorted a different way to do this which works at topic level and seems much neater for the user, but will require a very small amount of discipline when posting a topic, but which solves both issues above.

    It takes a little setting up, and apologies that I sent you down the 404 route before I found this maybe (or maybe not) better way !

    So this solution requires that
    You have users set at wordpress to subscriber (or above) and at bbpress as participant (or above)
    that you have a separate menu item for your private forum – as users don’t see the private forum on the index when not logged in, and that this url is used in messages rather than the direct forum id (logged in users will have both choices – menu item and forum index!)

    If that’s ok, then set the forum up as follows – looks long, but is quite easy

    This solution

      uses the restrict content plugin to create a login prompt if the user is not logged on
      sets the forums to private so that they are not seen on the main index
      creates a page just for that forum, which the restrict content plugin can then use to display the need to be logged in message and login boxes
      Any topics created in the forum that need specific urls in newsletters etc. are set to subscriber – 30 seconds additional work!)

    1.Install “restrict content” plugin
    Dashboard>plugins>add new
    search for “Restrict Content” and it’s then one called just that
    Install and activate
    2. go into dashboard>settings>restrict content and add the following text (you can tailor it to say what you want) to all the options
    Sorry, you need to be a member to see this area. Login if need be [bbp-login]
    3. Go into Dashboard>forums>whichever forum and change to visibility ‘private’. This will stop this forum being seen in the main index unless logged in, so we’ll need to add a menu item later on so not logged in users can see it
    4. Find out the ID of the forum you have set to private
    This link shows you how
    http://www.authorcode.com/forums/topic/how-to-get-forum-id-in-bbpress/
    5. Create a new page called whatever eg “free speech forum”
    and put the following code into it
    [bbp-single-forum id=2922] where the id number is the number that you found out in 4. above
    6. Within this page you’ll also see below the main text you’ve just entered a new box called “restrict content” set this to subscriber (or higher is you’re really restricting).
    7. add this page to your menu’s if need be

    ALL THE ABOVE ONLY NEEDS TO BE DONE ONCE !

    If a user is logged in, and selects the menu item, they’ll just go straight into the forum.
    If they are not logged in and select the menu item, they’ll get the message you set up in 2. above together with the login boxes and having logged in will see the forum

    For topics :

    where you want a logon prompt to appear – presumably only topics in the newsletter (as it is only these that people will be entering a direct url for) – you need to go into Dashboard>topics and underneath the text you’ll see the restrict content box, change this to subscriber and they’ll get the prompt if not logged on !

    give it a go, or come back and say you want to carry down the 404 route and I’ll try and help you further on that !

    #143984
    Robin W
    Moderator

    ok, quick solution for you

    This solution

      uses the restrict content plugin to create a login prompt if the user is not logged in
      sets the forums to private so that they are not seen on the main index
      creates a page just for that private forum, which the restrict content plugin can then use to display the need to be logged in message and login boxes

    It does rely on you setting your users to at least wordpress subscriber level – as the plugin only works on wordpress levels, but that should be fine for most uses.

    1.Install “restrict content” plugin
    Dashboard>plugins>add new
    search for “Restrict Content” and it’s then one called just that
    Install and activate
    2. go into dashboard>settings>restrict content and add the following text (you can tailor it to say what you want) to all the options
    Sorry, you need to be a member to see this area. Login if needbe [bbp-login]
    3. Go into Dashboard>forums>whichever forum and change to visibility ‘private’. This will stop thisn forum being seen in the main index unless logged in, so we’ll need to add a menu item later on so not logged in users can see it
    4. Find out the ID of the forum you have set to private
    This link shows you how
    http://www.authorcode.com/forums/topic/how-to-get-forum-id-in-bbpress/
    5. Create a new page called whatever eg “free speech forum”
    and put the following code into it
    [bbp-single-forum id=2922] where the id number is the number that you found out in 4. above
    6. Within this page you’ll also see below the main text you’ve just entered a new box called “restrict content” set this to subscriber (or higher if you’re really restricting).
    7. add this page to your menu’s if need be

    If a user is logged in, and sleects the menu item, they’ll just go straight into the forum.

    If they are not logged in and select the menu item, they’ll get the message you set up in 2. above together with the login boxes and having logged in will see the forum

    give it a go, and come back if anything is not clear

    #143983
    Robin W
    Moderator

    @palmdoc – can’t see anything wrong with teppom’s code and just double checked by loading it.

    Check that you have added it correctly to your functions file.

    #143972
    Stephen Edgar
    Keymaster

    To fix the ‘subscribe’ link add this to your themes functions.php file or your bbpress-functions.php file in your theme directory.

    To change from Home › Forums › My ForumSubscribe
    To change to Home › Forums › My Forum (Subscribe)

    function ntwb_forum_subscription_link( $args ) {
        $args['before'] = '&nbsp;(';
        $args['after']  = ')';
     
        return $args;
    }
     
    add_filter( 'bbp_before_get_forum_subscribe_link_parse_args', 'ntwb_forum_subscription_link' );

    If you don’t want to add it manually add it to your functions.php file grab the entire file here and add it as a standalone plugin to your WordPress install.

    https://gist.github.com/ntwb/7686980

    I’m not sure/clear what you mean for your ‘freshness’ issue, can you post a screenshot or link to your site please 🙂

    #143968
    Stephen Edgar
    Keymaster

    That actually appearing from your themes template and not bbPress’ templates.

    If you open up your page.php template of your theme (Or whatever the primary temmplate is) you will see something similar to this code:

    
    <div class="entry-author-meta">
      <p class="author-name">Published by 
      <span class="author vcard"><a class="url fn n" href="#" title="#">#</a></span>
      </p>
      <p class="author-description">
      </p>
    </div>
    

    Now make a copy of your page.php template (or again the main template your theme uses) and rename the this to bbpress.php open up the bbpress.php in a text editor and remove the section of code that I listed above.

    bbPress will now use this template rather that your themes default template.

    #143964
    Stephen Edgar
    Keymaster

    Nothing in particular except to say that if Phorum has weird/custom BBCode that they won’t be converted standard BBCodes like [b], [url], [img] etc will be converted.

    Also I don’t think the passwords will be converted so it is just a matter of the user requesting a password reset to get up and running after the conversion.

    I’d also suggest you do this on a test server (local or remote) to get used to the process before you try this on your live server, that way any bugs issues etc will be sorted out first.

    Are you talking thousands, tens of thousands, hundreds of thousands, millions of posts?

    #143956
    TeppoM
    Participant

    Thanks for the thread. Based on this I managed to develop a solution that does not require hassling with the template files. Just add this to function.php in your theme:

    /**
    * Add @mentionname after bbpress forum author details
    */
    
    add_action( 'bbp_theme_after_reply_author_details', 'mentionname_to_bbpress' );
    function mentionname_to_bbpress () {
    $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo "@".$user_nicename;
    }
    }
    
    #143953
    beinar
    Participant

    I have created a child theme to my Twenty Eleven theme and it is active. But when I want to do changes by inserting code right under the code sector that ends with:
    ……

    @import
    url(“../twentyeleven/style.css”);

    it does not take action.

    For instance, I want to change the font size in a bbPress forum by putting in:

    #bbpress-forums .bbp-forum-info .bbp-forum-content,
    #bbpress-forums p.bbp-topic-meta {
    font-size: 18px;
    margin: 5px 0 5px;
    padding: 0;
    word-wrap: break-word;
    }

    but nothing happens.
    What is wrong?

Viewing 25 results - 12,351 through 12,375 (of 32,504 total)
Skip to toolbar