Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,901 through 13,925 (of 32,519 total)
  • Author
    Search Results
  • #136315

    Topic: Gravatar

    in forum Plugins
    SickSquirrelTwo
    Participant

    I want to have users host their avatar at Gravatar. How do I link to my avatar there via my line of code? I did an md5 hash for my avatar to test. Which plugin do I use to link that line of code?

    #136314
    Stephen Edgar
    Keymaster

    No there is not, bbPress does not support attachments.

    Edit: If the image was part of the original post with using the BBCode [img] then that IS imported as part of the post, if the image was an attachment to the post then it is not imported.

    #136313
    Stephen Edgar
    Keymaster

    Your going to have to use $args['separator'] = ' '; (Either a blank space or empty) and then use some CSS to style the bbp-forum-list element.

    #136307
    Nykess
    Participant

    Thank you for your reply. What I would like to do is this:

    • Subforum 1 (0, 0)Subforum 2 (0, 0)
    • Subforum 3 (0, 0)Subforum 4 (0, 0)
    • Subforum 5 (0, 0)Subforum 6 (0, 0)
    • etc.
    #136299
    Techknowledgic
    Participant

    Hey

    maybe this question is repeated and I read like 2-3 topics about this but I didn’t find that helpful for my case. I just wanna change the colors like the header border instead of being grey I want it to become blue. I am not so bad with css so I may be able to do it but I just need to know which file should I work with and what code should be changed

    Thanks!

    #136297
    Techknowledgic
    Participant

    Hey

    I am facing an problem which is everyday around 2 new users register to my forum and they are with weird names like wisjidyyus and jwjteeasa and many other names. The problem is that I have statcounter and histats and google analytics and the new users are not counted or seen by the stats and the registration page is in my website and not WP and has the stats code. so how can the users register to my website without visiting it? is it a bug or what?

    Thanks

    #136296
    janhoos
    Participant

    Hey guys!

    I’ve added a custom role to BBpress with this piece of code in a functions.php file in my theme:

    function add_custom_role( $bbp_roles ) {
    $bbp_roles[‘my_custom_role’] = array(
    ‘name’ => ‘ACN Lid’,
    ‘capabilities’ => bbp_get_caps_for_role(bbp_get_participant_role()) // i just want them to have the same capabilities as moderators

    );

    I also have a private forum that only this member can access. Right now it works through a member groups plug-in that shields it. But it still let the off limits posts show up in search results.

    So I want to try and work within the BBpress system of private and hidden forums. Making the forums private won’t solve a thing, because for some weird reason, participants can also view that… Why is that?

    But oh well! I’d like to include the list of capabilities found in the capabilities.php file with this custom role. Instead of the custom role taking the capabilities from the participant. I want to make the members only forums hidden, and make the ACN lid role be able to see the hidden forums.

    How do I change the above code, to make it use the following capabilities:
    $caps = array(

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => false,
    ‘throttle’ => false,
    ‘view_trash’ => false,

    // Forum caps
    ‘publish_forums’ => false,
    ‘edit_forums’ => false,
    ‘edit_others_forums’ => false,
    ‘delete_forums’ => false,
    ‘delete_others_forums’ => false,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => false,
    ‘delete_topics’ => false,
    ‘delete_others_topics’ => false,
    ‘read_private_topics’ => false,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => false,
    ‘delete_replies’ => false,
    ‘delete_others_replies’ => false,
    ‘read_private_replies’ => false,

    // Topic tag caps
    ‘manage_topic_tags’ => false,
    ‘edit_topic_tags’ => false,
    ‘delete_topic_tags’ => false,
    ‘assign_topic_tags’ => true,
    );

    #136291
    Stephen Edgar
    Keymaster

    You kind of only have two options, the default bbPress behaviour like this:

    • My Parent Category/Forum
    • My 1st Child Forum (78, 425), My 2nd Child Forum (18, 107)

    Or using the <br /> as the separator:

    • My Parent Category/Forum
    • My 1st Child Forum (78, 425)
    • My 2nd Child Forum (18, 107)

    Each element is returned as a whole so My 1st Child Forum (78, 425) and My 2nd Child Forum (18, 107) CANNOT be broken down further for multiple columns like this (which I think you are alluding to:

    • My Parent Category/Forum
    • My 1st Child Forum78425
    • My 2nd Child Forum18107
    #136289

    In reply to: Add forum roles

    janhoos
    Participant

    Is there a way to give a custom role a custom set of capabilities?

    Like the ones found on the capabilities.php file?

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => false,
    ‘throttle’ => false,
    ‘view_trash’ => false,

    // Forum caps
    ‘publish_forums’ => false,
    ‘edit_forums’ => false,
    ‘edit_others_forums’ => false,
    ‘delete_forums’ => false,
    ‘delete_others_forums’ => false,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => false,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => false,
    ‘delete_topics’ => false,
    ‘delete_others_topics’ => false,
    ‘read_private_topics’ => false,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => false,
    ‘delete_replies’ => false,
    ‘delete_others_replies’ => false,
    ‘read_private_replies’ => false,

    // Topic tag caps
    ‘manage_topic_tags’ => false,
    ‘edit_topic_tags’ => false,
    ‘delete_topic_tags’ => false,
    ‘assign_topic_tags’ => true,

    Using the code above, I don’t know where to put the capabilities.

    #136288
    Nitac
    Participant

    I’d like to know if you have any success with this, i posted a similar issue here but i havent had any luck rectifying it.

    The last time test i tried i got to >300k (forum has ~400k) posts after the convertor stalled and requiring a restart a couple of times, until the most recent time tried to restart I got this error in the output window:

    Repair any missing information: Continue
    WordPress database error: [Table 'db_name.pbpbb_posts' doesn't exist]
SELECT convert(posts.post_id USING "utf8") AS post_id,convert(topics.topic_id USING "utf8") AS topic_id,convert(posts.forum_id USING "utf8") AS forum_id,convert(posts.topic_id USING "utf8") AS topic_id,convert(posts.poster_ip USING "utf8") AS poster_ip,convert(posts.poster_id USING "utf8") AS poster_id,convert(posts.post_subject USING "utf8") AS post_subject,convert(posts.post_text USING "utf8") AS post_text,convert(posts.post_time USING "utf8") AS post_time FROM pbpbb_posts AS posts LEFT JOIN pbpbb_topics AS topics USING (topic_id) WHERE posts.post_id != topics.topic_first_post_id LIMIT 304200, 100
    Starting Conversion

    Im currently running this on AWS (Amazon Servers) and had upgraded to the server to something with a bit more grunt but its not helping.

    Ive also discovered, not sure if this is related, that none of the replies that are imported are assigned to a forum or a topic and when viewing a topic only the first post appears and none of the related replies.

    looking forward to response.
    mchl

    #136282
    Nykess
    Participant

    After giving it some thought, how can I edit this code so that it puts the subforums into two or three columns instead of one column only?

    function custom_bbp_list_forums() {
      $args['separator'] = '<br />';
     
      return $args;
    }
     
    add_filter('bbp_before_list_forums_parse_args', 'custom_bbp_list_forums' );
    #136276
    stunna42
    Participant

    bbPress Version 2.3.2 & WP 3.6

    Hello! Sorry for the newbie question 🙂 I’d like to customize the registration experience for my instance of bbpress. Specifically, I’d like to specify the content:

    1. In addition to the username and password fields on the sign-up page
    2. In the “you are now registered email” users get
    3. In the forgot your password page
    4. In the forgot your password email

    Is this possible? If so, how? Thanks again!

    Note: I know we can specify custom URI’s…but using the registration short code creates a page with the following content…I’d like to change that text etc. “Your username must be unique, and cannot be changed later. We use your email address to email you a secure password and verify your account.”

    #136271
    janhoos
    Participant

    Hey guys!

    I have an agenda plug-in where users can show they are attending a certain event. I’d like to display the user role (member, aspiring member) behind the name.

    But I can’t seem to find the short code for a users role? Is there any? If not, is there a way to display them?

    #136266
    Anand
    Participant

    OK. I figured out the problem.

    The code should be:

    function custom_logged_in_topics($have_posts){
        if (!is_user_logged_in()){
            $have_posts = null;
      	    echo 'Login to see replies';
        }
        return $have_posts;
    }
     
    add_filter('bbp_has_topics', 'custom_logged_in_topics');
    add_filter('bbp_has_forums', 'custom_logged_in_topics');
    add_filter('bbp_has_replies', 'custom_logged_in_topics');

    Got from earlier thread. (That code was not working because of backtick instead on ‘ or “)

    #136259
    Anand
    Participant

    Hello All,

    I am trying to hide all the replies for anonymous or public. I added the following code:

    
    function custom_bbp_show_lead_topic( $show_lead ) {
    $show_lead[] = 'true';
    return $show_lead;
    }
    
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    
    function remove_forum_replies_guest() {
    	if ( !is_user_logged_in() ) {
    		remove_action('bbp_before_has_replies_parse_args', 'bbp_replies') ;
    	} 
    }
    
    add_filter('bbp_has_replies_query',  'remove_forum_replies_guest');

    It removes all the replies not only for public (non-logged in visitors) but also from logged in users.

    Any help will be appreciated.

    #136250
    Stephen Edgar
    Keymaster

    If any of the emails need to link to either wp-login.php or /wp-admin then based on these two lines from your .htaccess file ‘something’ will happen 😉 I am not familiar enough with .htaccess and mod_rewrite to know this stuff of the top of my head 😉

    RewriteCond %{REQUEST_URI} ^/wp-login\.php(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^/wp-admin$
    #136249
    Stephen Edgar
    Keymaster

    WordPress should be able to automatically update your .htacess file which it looks like it is based on the last ~11 lines of your post above. Those first ~9 lines though could be the problem as it looks like they are from another WordPress plugin or added by your webhost.

    https://codex.wordpress.org/Using_Permalinks#Automatically_updating_.htaccess

    If you don’t know what plugin is adding the extra bits to your .htaccess file try disabling all of your plugins except bbPress, go back to your WordPress permalinks settings and update the settings again which forces WordPress to update your .htaccess file and see how that goes.

    #136244

    In reply to: Import Forums error

    Stephen Edgar
    Keymaster

    None of the forum importers are importing the ‘sticky status’ of any topics at this stage so after importing any topics you need to stick need to be done manually.

    (I can’t see you site at the moment ‘Access Forbidden’ 😉

    I am not sure exactly how WordPress embeds work as a whole…

    Though this via https://codex.wordpress.org/Embeds

    If WordPress fails to embed your URL you will get a hyperlink to the URL.

    #136234

    In reply to: Forum index hierarchy

    Stephen Edgar
    Keymaster

    You would have to code this up yourself, a good starting point would be taking a look at this:
    https://bbpress.org/forums/topic/customising-bbp_list_forums-last-poster-block/

    #136232

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    Cool… After the import you must run the Repair Tools to get everything recounted…

    #136225
    JKrueger
    Participant

    Thanks for the info on the short codes. It has taken forever to find that info.

    Alright, I took and created two pages, “Register Page” and “Lost Password Page”. I published them both and put the URL’s in the appropriate spot in the widget. Then I go to the site and test out the register page and enter my information. When I click register it says, “User registration is currently not allowed”. What do I do from here???

    #136221
    littlesparrowblog
    Participant

    We have bbpress forums installed on our website http://www.hphe.net The forums look great, but when I want to click on a paritulcar user’s profile, the text of the information is overlapping–as if everything is being crammed into the left side of the page. It looks like the screen view needs to expand, but I don’t know how to do that for profile pages.

    I am very much in the beginning stages of learning about code…using WordPress so I wouldn’t really have to deal with any code, but I’m seeing that it would be handy in a number of instances. Any help needs to be explained to me in the most basic of terms. :\

    Thanks for any help.

    #136219

    In reply to: Import Forums error

    Stephen Edgar
    Keymaster

    Cool… Done… Just download again via the link up there ^^^.

    If there are any others hanging about let me know or any other text, paragraph, images etc BBCodes I will add them all in for bbPress 2.5

    #136208
    kriskl
    Participant

    there is a way to do it, someone posted few lines of code last year.. and it works. BUT I cannot find it now here on the forums, and I can’t remember how it was done :((

    please search bbpress forums

    #136207
    Stephen Edgar
    Keymaster

    The full docs for bbp_list_forums is here https://codex.bbpress.org/bbp_list_forums/

    The quick and easy way is via this topic where you can add the code from that gist to your themes functions.php

    how to display list of sub-forums on separate lines, instead of big blob?

Viewing 25 results - 13,901 through 13,925 (of 32,519 total)
Skip to toolbar