Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,351 through 11,375 (of 32,521 total)
  • Author
    Search Results
  • #149067
    Stephen Edgar
    Keymaster

    You shouldn’t really be letting users add styles, you should have your theme do that, that said., just add a new section for the p tag and style within p like so:

    
    	// Paragraph
    	'p'        => array(
    	'style'    => true,
    	),
    
    #149062

    In reply to: BBPress advise wanted

    Stephen Edgar
    Keymaster

    Cool, most of things you mention can be done, some are ready to go, others need a few tweaks and custom PHP code to achieve the results.

    1. create login in the wp home page for BBpress

    Create a WordPress page, set that as your home page, add the bbPress login/register shortcodes

    2. allow only offline registered members to be registered as BBpress users

    Not quite sure what you mean here, you can set your forums to ‘private’ so only logged in registered members can see or use the forums.

    3. enable/disable users, and hence their profiles

    This is more of a WordPress question than bbPress, if the member has an active and valid WordPress account then they can login. If you want to remove the user and their associated profile then you’d delete the actual WordPress user which inherently flows down to bbPress.

    4. allow users to create profiles with their filmography and perhaps a vimeo embed or two

    With a few minor tweaks/customisations you could achieve this, you may also want to take a look at BuddyPress’ Extended profiles which will let you do this also.

    5. can users have simple URLs for their profiles, like perhaps example.com/username?

    Yep, this is built in, here’s yours here on bbpress.org https://bbpress.org/forums/profile/parambyte/

    #149059
    Stephen Edgar
    Keymaster

    Click the ‘download gist’ link, it will download a zip archive, unzip it and use FTP to upload the plugin to your WordPress plugins folder, typically /wp-cntent/plugins

    Edit: Or go to ‘Plugins’ -> ‘Add new’ -> ‘Upload’ and you can then upload it directly.

    #149053
    Stephen Edgar
    Keymaster

    I have hardly dug into bbPress 1.x and am not familiar with the code base at all.

    How about grab the latest bbPress v1.2 and create a test/demo site on your local PC with a backup your database, things should theoretically work though you ‘d have to make sure the database upgrade routine was triggered of course.

    That should then give you a working version with your database to then start comparing the base code of your test site vs your live site.

    That said, what is stopping you from upgrading? I am presuming here that there is something stopping you from installing WordPress and upgrading bbPress 1.x to the v2.x plugin?

    #149051
    Stephen Edgar
    Keymaster

    Grab this custom plugin from here https://gist.github.com/ntwb/7797990

    You will need to change one part of it though:

    From:

    
    		// Span
    		'span'             => array(
    			'class'     => true,
    		),
    

    To:

    		// Span
    		'span'             => array(
    			'class'     => true,
    			'style'     => true,
    		),
    

    That will then modify the allowed tag span to also include style inside the span.

    #149043
    Stephen Edgar
    Keymaster

    Create a page or two and use the bbPress shortcodes

    https://codex.bbpress.org/shortcodes/
    https://codex.bbpress.org/widgets/

    #149042
    Stephen Edgar
    Keymaster

    That is up to the the forum software you choose to use, all our source code is open source and any forum software package is free to create an import tool to import from bbPress, we do the same, we import from many forum packages but it is up to each application to add support if they want new customers to be able to import from bbPress, I know a few of the common ones do.

    #149040
    Stephen Edgar
    Keymaster

    I just had a play with this and you are correct, it works for administrators/keymasters but not standard ‘participants’ or ‘anonymous’ users.

    Grab this custom KSES plugin I have here https://gist.github.com/ntwb/7797990

    I just added class to to the pre section as that is where the issue is, pre is allowed but <pre class="whatever"> is not.

    Double check any of the other allowed tags and/or remove ones you don’t want/need.

    Edit: I just double checked against the default bbPress allowed tags and all are there, you may or may not want the table sections, up to you. I also made a note to add class as an allowed tag of pre for bbPress core, I can’t think of a reason for us not to add this by default.

    #149038

    In reply to: phpBB Import Error(s)

    Stephen Edgar
    Keymaster

    I added support for the anonymous/deleted phpBB user topics and replies, just finalizing all of this for the any other forums that also have this feature, SMF, Drupal, Vanilla.

    For the redirects I need to find a workaround to have WordPress correctly verify that viewtopic.php?f=3&t=9 is a valid URL, if we can do that then redirects could be included for imported forums and that would be awesome.

    #149037
    Stephen Edgar
    Keymaster

    @leonyipa Don’t get you bb’s confused, what you wrote way up there and quoted here:

    And I paste the code into: /public_html/wp-content/themes/bp-default/functions.php

    That is the BuddyPress Theme ‘BP Default’, nothing to do with bbPress so make sure you are updating the correct files πŸ˜‰

    #149031
    Robin W
    Moderator
    #149030
    Robin W
    Moderator

    @obinyc sorry missed this post

    try

    <?php get_sidebar(); ?>


    @drceng

    lots of different boats, and yours is probably not the same.

    Do you have a sidebar at all showing?
    Have you followed

    Step by step guide to setting up a bbPress forum – Part 1

    Come back if you need further help

    #149020

    In reply to: Remove Breadcrumbs

    Robin W
    Moderator
    #149017

    In reply to: disabling breadcrumbs

    Robin W
    Moderator
    SeeingBlueS2
    Participant

    Ok so I played around with lines 807 and made it match what line 1157 looked like.
    This is line 1157:$author_link = bbp_get_reply_author_link( array( 'post_id' => $reply_id, 'type' => 'both', 'size' => 14 ) );
    Then I moved line 1152$reply_id = bbp_get_reply_id( $widget_query->post->ID ); between lines 802 & 803 thinking this might work and it doesn’t make any difference which was confusing to me.. What am I doing wrong?

    #148988
    Robkk
    Moderator

    to test out the code make pictures really small and add important

    #bbpress-forums div.bbp-topic-content img, #bbpress-forums div.bbp-reply-content img {
        max-width: 100px!important;
        max-height: 50px!important;
    }

    but you could also send me a link to a forum post with a picture too

    #148987
    Leonyipa
    Participant

    How to allow all users to use HTML codes, because at the moment, only keymaster can have access to all HTML tags.

    I would like to allow user to use this code:
    //<span style=”font-size: 36pt; font-family: impact, chicago;”>Pademelon</span>

    <span style=”font-size: 36pt; font-family: impact, chicago;”>Pademelon</span>

    #148986
    Leonyipa
    Participant

    yes, but it doesn’t work πŸ™

    I also found the code is in
    /public_html/wp-content/plugins/bbpress/templates/default/css/bbpress.css

    I directly change the number of

    #bbpress-forums div.bbp-topic-content img,
    #bbpress-forums div.bbp-reply-content img {
    max-width: 100%;
    }
    However, no matter what number I change to, it still doesn’t work.
    The width of the image still remain 100%

    #148984
    Robkk
    Moderator

    change the numbers to whatever you want

    #bbpress-forums div.bbp-reply-content img, #bbpress-forums div.bbp-topic-content img {
    max-width: 500px;
    max-height:250px;
    height: auto;
    }

    you add this into anywhere where you can have custom css

    in bbpress.css in your child theme(you copy the original in your child theme)
    in your child themes css stylesheet
    the jetpack plugin module custom css
    a standalone custom css plugin

    #148973

    In reply to: Simple Layout

    Robin W
    Moderator

    ok, several ways you could do this, the best I know is

    https://wordpress.org/plugins/display-posts-shortcode/

    just create a page called anything and put the code on it.

    you’ll be looking for a custom post type of topic.

    see https://github.com/billerickson/display-posts-shortcode/wiki for the arguments you can use

    you can then determine exactly what you display

    but something like

    [display-posts post_type=”topic” posts_per_page=”15″]

    would give a simple list of 15 clickable topic titles per page.

    #148961
    Stephen Edgar
    Keymaster

    Ooops, missed the 2.3.2 πŸ˜‰

    I should have said in my previous reply, any conflicting permalinks ‘except’ a page titled forums, indeed using a page titled forums with a shortcode should work just fine.

    As you have changed the slug on that conflicting page now could you try creating a new page forums and adding whatever shortcode your using to it, what happens?

    Note: I’m splitting this topic to it’s own also as this is a different issue from the original topic.

    #148959
    Robkk
    Moderator

    well you should change your sitewide hyperlink color because you want people to see links you post.

    for topics

    a.bbp-topic-permalink  {
    color:#222;
    } 

    for forums

    a.bbp-forum-title  {
    color:#222;
    } 
    #148958
    Paul
    Participant

    Hi Stephen, my upgrade was 2.3.2 to 2.5.4 not 2.5.3 to 2.5.3.

    You were correct, thank you. The problem was caused by a permalink conflict. The page I am using the shortcode had the slug forums. Changing the slug to something else so it was not the same as the slug used by Forum Root (or visa versa) resolved the issue.

    The question remains though, why is this a problem with this version of bbpress over the older version I was using?

    #148953
    Robkk
    Moderator

    ok this changes the style of all the links on your site so it is not white (i copied googles link color)

    a {
        color: #3a84df;
    }
    
    a:hover {
        color: #3a84df;
        text:decoration: underline;
    }

    you add this into anywhere where you can have custom css

    in your child themes css stylesheet
    the jetpack plugin module custom css
    a standalone custom css plugin

    #148951
    Robkk
    Moderator
    a {
        color: #676768;
    }

    try that

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