Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,951 through 13,975 (of 32,585 total)
  • Author
    Search Results
  • #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 Forum – 78 – 425
    • My 2nd Child Forum – 18 – 107
    #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?

    #136201
    Stephen Edgar
    Keymaster

    https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum

    Adjust your Forum attributes. These are:
    Types: choose whether you are creating a Forum or category.
    Forum – can contain topics and be the parent of other forums.
    Category – can only contain forums (no topics). Use for organizing your forums.

    #136199
    Blakelock
    Participant

    Hi there, my website is http://www.theyouthlink.com and currently I have a login widget that links to the WP profile page. Preferably, I would like to rewrite the code so that it links to the BBpress forums profile page in order to keep everything front end.

    Any idea’s on how to do this? My current php code for the login widget is: `

    case “profile_link”:
    $return_text = str_replace(“{“.$match.”}”, ““. __(‘Profile’, ‘pwLogWi’) .”<//a>”, $return_text);
    break;

    #136183

    In reply to: Import Forums error

    Stephen Edgar
    Keymaster

    Hmmm… It should work… http://regexr.com?3621e

    Can you find a post with either a [QUOTE] or [MENTION] BBCode to see if these have been converted to <blockquote> which will help work out if any of the BBCodes are being converted to HTML.

    Anand
    Participant

    The site is now up and will be (i hope).

    Thanks in advance.

    Check the urls:
    http://www.wpavenue.com/support/ &
    http://www.wpavenue.com/forums/

    Both have the same shortcode. But the results are different!

    #136175
    Xevo
    Participant

    It’s called “avatar-14” because the size is 14×14 pixels.

    Add this to the bottom of your css file, and it should work.
    .avatar-14 { display: none !important; }

    Anand
    Participant

    Yes, I know. That’s really a bad luck. I will update the thread whence the site will become online.

    However here is a screenshot of the forum index. http://img713.imageshack.us/img713/3991/fy0l.png

    I also asked this question in StudioPress forums. (Earlier i thought the problem was with Genesis themes)

    Xevo
    Participant

    Both pages turn up a 404 from hostgator.

Viewing 25 results - 13,951 through 13,975 (of 32,585 total)
Skip to toolbar