Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,101 through 16,125 (of 32,519 total)
  • Author
    Search Results
  • #113801
    DarwinsDream
    Member

    Thanks Jared :D you have no clue how good it is to have you on my side on this one hahaha

    I saw You and John write that exact answer on another post and my lack of knowledge in actual hand PHP scripting cause me to kill my site wich is about 70% bbpress i killed my functions.php so i had to download a new version of bbpress and replaced the files i touched with new ones.

    I am positive (*crosses fingers*) that this do_shortcode script will work for me.

    Main Issue: I have NO clue where in the functions.php to put it, can you give my sad non PHP reading butt an example of where it should go or would you like me to post my functions page here.

    One more question:Do you mean my wordpress theme folder or my bbpress theme folder.

    As always Jared you my friend are the freaking man and thank you :)

    #113800

    You should be able to put that snippet (running do_shortcode on the bbP content) in your theme’s function.php file – that’s the safest place :)

    DarwinsDream
    Member

    Wow i had no clue anyone was here in this bbpress forum, seems like everyone is posting on this topic. There are other topics going too guys. Like one’s that haven’t been addressed in 5 days… just saying :P

    John?

    Jared?

    Anointed?

    Can someone please take a look at my most recent topic that I posted. While waiting for an answer Ive crashed my site twice(worse than i ever had before) bringing it back twice and then rebuilt it totally again once in about 48 hours. I really need some help. I soooo don’t want to do a complete redesign in a new platform, but that is an option that has crossed my mind. I’m so happy with my wordpress/bbpress site. But I need to get this video player working.

    Jason Dadarria

    Executive Director

    Soundhampton Technologies

    NY,NY

    http://www.soundhampton.com

    http://www.soundhampton.com/the_knowledge_forum

    #44664
    sonld89
    Member

    Dear all, I have a wordpress website and in website have a bbpress forum. I want comment in a topic of website sort by post date desc but reply in a topic of forum sort by post date asc.

    I was config “Setting -> Discussion: Comments should be displayed with the newer comments at the top of each page” and add filter:

    add_filter( 'bbp_has_replies_query', 'bbp_reverse_reply_order' );
    function bbp_reverse_reply_order( $query = array() ) {             
    
                // Bail if no query
    if ( empty( $query ) ) return;
    
                // Change the order
    $query = 'ASC';
    
                // Return the adjusted query
    return $query;
    }

    BBPress order reply when query the replies by post date asc but when paging the replies is sorted by post date desc on a page.

    Please help me resolved this issue. Thanks!

    #110934

    In reply to: Appearance submenu

    rexgoode
    Member

    Use add_submenu_page( ‘themes.php’, … ); See https://codex.wordpress.org/Function_Reference/add_submenu_page.

    #45087
    DarwinsDream
    Member

    I cant get my jwplayer shortcode to work in bbpress. I am aware of the shortcode issue in bbpress. But I need all shortcodes to work in bbpress. Security is not an issue at this point.

    I tried the (get_shortcode)code in the theme fuctions.php file with no result. Not really sure if I was supossed to put it in the wordpress theme or the bbpress theme. Maybe im writing the code in the wrong spot, I’m not the strongest on php my strengths are html, css, and design. This issue has been a thorn in my side for about a week. So if anyone can tell me exactly where to place the–

    add_action( ‘bbp_get_reply_content’, ‘do_shortcode’);

    php script so I can get this thing flowing, I would def owe you a buck.

    also i get an error when i try and install shortcode whitelist and bbcode

    #113255

    In reply to: URL detection fails

    Torsten Landsiedel
    Participant

    Great! Works like a charm … :-) Thank you for fixing!

    #113698
    Lynq
    Participant

    You can copy and paste a current loop file and rename to something like loop-custom-forums.php then when you want to call that loop you can use:

    <?php bbp_get_template_part( 'bbpress/loop', 'custom-forums' ); ?>

    Good luck!

    #112167
    Lynq
    Participant

    If you learn to copy function names and do a search for them through your whole bbpress plugin folder, you can pretty much find out how anything works, this is how I worked this out. Think I had to go through a trail of 5 or 6 files until I worked it out :)

    This is great advice for anyone wanting to customize their bbPress. I have found out many different bits and pieces by doing exactly this.

    demonboy
    Participant
    May I ask:
    I am looking at simple:press versus bbPress. So I am interested in: WHY would you like to go for bbPress over simple:press?

    I can answer that. SimplePress have just started charging for their support! My wife was encouraged by the developers to use their new version 5 when she was looking for a forum plug-in to her WordPress blog. Just when she was up and running they started charging and coincidentally she developed a bug in her forum at the same time after an update. She did not even receive notification that this was going to happen. I’m pretty disappointed with them for not telling her this was in the pipeline because she would have taken this into account and we’d have gone for BBPress in the first place.

    She is so desperate now she’s almost at the point of paying for the support to sort the problem out but I would rather manually migrate to another forum just on principle.

    We have tried contacting the developers at SimplePress but they are not interested.

    #113779

    In reply to: Register on Multisite

    murrayac
    Participant

    Tried the shortcode [bbp-register] it still redirects.

    #113682
    jjman
    Participant

    I’m using the bbpress 2.1 and the inclusion of the fancy editor was really great. Thanks for your job!

    @sniper kitten, is there a quick way to add the smiley button to the editor?

    I was looking at the code but can’t see work it out. Some help would be appreciated.

    :)

    #112166
    rorymorris
    Member

    I just had to work this out for myself too…

    I think you can use this wherever you need to in your topics loop or template / whatever..

    <? $curTopicStatus = bbp_get_topic_status( $topic_id );
    if($curTopicStatus == 'publish'){ ?>

    This topic is still open

    <? } else { ?>

    This topic is now closed

    <? } ?>

    If you learn to copy function names and do a search for them through your whole bbpress plugin folder, you can pretty much find out how anything works, this is how I worked this out. Think I had to go through a trail of 5 or 6 files until I worked it out :)

    #45046
    DarwinsDream
    Member

    Hi, I just downloaded the licensed version of JW Player. I have it working fine on my websites main pages but not in bbpress. The div tag for the player is called in

    as such:

    <p style=”text-align: center;”><div id=”jwplayer-1-div” class=”Soundhampton Player”>

    <div id=”jwplayer-1″></div>

    When I post a video in Buddy Press the 2 Plugins don’t seem to be interacting. All i get is the shortcode posting in my forum.

    as such:

    [jwplayer config=”Soundhampton Player” mediaid=”1754″]

    Can someone please tell me how to call the jwplayer div tag into bbpress in PHP? I think I understand what is happening, I just dint know how to get JW Player called into bbPress. Ive already checked the bbpress forum with no luck. This seems to be a first. Ive been researching this and tweaking my site for three days now.

    Here is the working JW PLayer —-

    http://www.soundhampton.com/404_page_not_found

    And the non working one in Buddy Press


    http://www.soundhampton.com/topic/why-its-important-to-research-your-business-and-domain-name

    Thank you very much in advance for you help.

    jason@soundhampton.com

    #45014
    Milan Petrovic
    Participant

    GD bbPress Toolbox Pro is a new premium plugin from Dev4Press.com to expand bbPress plugin powered forums. Plugin adds attachments, quotes, BBCodes, signatures and much more.

    Plugin prices starts from $39.00, and fore the next 2 weeks (until June 11 2012) you can get additional 20% discount:

    GD bbPress Toolbox:

    http://www.gdbbpbox.com/

    Release announcement:

    http://www.gdbbpbox.com/blog/releases/gd-bbpress-tools-pro-1-0/

    Get 20% discount:

    http://www.gdbbpbox.com/blog/news/get-20-discount-until-june-11-2012/

    #113739
    Lynq
    Participant

    I forgot you might need to grab the current user id, depending on where you are trying to use that code.

    <?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>

    I just tried it and it works perfectly in my header. Good luck.

    #108146
    Lynq
    Participant

    It does depend on the theme of course, but I will try my best. Also please remember that this involves editing the core and is not recommended (but I can’t see another way to achieve this?).

    If you set the show_freshness_link to true and then add a freshness before of <td> and freshness_after of </td> this will add an extra td tag inside the template.

    You will then need to add an extra <th> to the table heading, or it will break your table and you will have blank spaces inside the forum list.

    If you are using a non table layout, then you just need to give it a class and deal with it in css like the reply count and post count data.

    Inside loop-single-forum.php I changed my bbp_list_forums arguments to accept the changes inside the core function, for example…

    array( 'show_freshness_link' => true, 'freshness_author_before' => '<div class="author-box">', 'freshness_author_after' => '</div>')

    You can then change the freshness_author_before and the freshness_author_after values to change the html.

    Good luck!

    #113754
    @mercime
    Moderator

    bbPress 2.0.2 is compatible with WP 3.3.2 AND BuddyPress 1.5.5

    Since you’re using BuddyPress, check out https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/

    #113738
    stoeffel-media
    Participant

    <?php echo bbp_user_profile_edit_url(); ?> isnt working, no output at all.

    Any other suggestions? Cant be that difficult? Maybe someone from bbpress support can help?! :-)

    #108145
    Lemius
    Member

    Lynq: Thanks for sharing that. Incase there’s others like me who can play with the css and the html but don’t know knees from elbows about the php, can you maybe give a little advice on what would need to be customized in the theme to accommodate the changes you’ve made there?

    I can’t readily tell what that code would effect. It’d be really appreciated.

    tvector
    Member

    Hi John,

    I have this same issue. See my other topic here for a better explanation.

    WP Menu does not stay active when navigating forums

    Basically, the WP Menu that is linked to the forum is fine until you start to enter subforums and topics.

    Same goes if you use a bbpress shortcode in a page and link it to a WP Menu item.

    #113737
    Lynq
    Participant

    That should echo it out for you as well I think.

    If it doesn’t then you can just use echo in front of it. Might be a good idea to get to grips with a bit of PHP if you are looking at anymore customization.

    It is fairly easy to move things around and echo different bits out.

    echo bbp_user_profile_edit_url();

    That is it

    #113560
    Lynq
    Participant

    Inside your theme folder for bbpress.

    /wp-content/plugins/bbpress/bbp-themes/<YOUR_THEME>

    #113749
    Lynq
    Participant

    These will do the majority of your forum, in fact, I think they might do all of them? Check it out and see what you get.

    if (get_post_type() == 'forum')
    if (get_post_type() == 'topic')
    if (get_post_type() == 'reply')

    if((get_post_type() == 'forum') or (get_post_type() == 'topic') or (get_post_type() == 'reply')) {
    get_header(‘page’);
    } else {
    get_header();
    }

    Give it a try.

    #44994
    Eric McNiece
    Member

    I’m debugging a site right now and trying to get the “trash” link to show up for Subscribers as well as admins. This is a fresh install of WP 3.3.2, URE and bbPress 2.0.2. Despite checking the “delete_replies” box in User Role Editor, the link still does not show up for Subscribers!

    Digging deeper: line 1370 of bbp-reply-template.php shows this:

    if ( !current_user_can( 'delete_reply', $r ) && !empty( $r ) )

    unset( $r );

    … which is good – checks for permission, and if the user doesn’t have ‘delete_reply’ on $r node then it unsets the delete link.

    So why does the URE checkbox not enable this link? Looking at an unserialized string of user capabilities for the current Subscriber role shows this:

    ...

    'subscriber' =>

    array (

    'name' => 'Subscriber',

    'capabilities' =>

    array (

    'assign_topic_tags' => 1,

    'delete_replies' => 1,

    'delete_topics' => 1,

    'edit_replies' => 1,

    'level_0' => 1,

    'publish_replies' => 1,

    'publish_topics' => 1,

    'read' => 1,

    ),

    ),

    ...

    and we see here that the capability showing is ‘delete_replies’, NOT ‘delete_reply’!!

    So all that needs to be done to fix this is adding another capability in URE that lists as ‘delete_reply’ instead of ‘delete_replies’. Easy fix!

    Here’s the disclaimer: there are a ton of plugins installed right now, so I’m not even sure ‘delete_replies’ permission is part of bbPress. If bbPress indeed does not add its own delete permission, then this is NOT a bug – just an interesting quirk!

Viewing 25 results - 16,101 through 16,125 (of 32,519 total)
Skip to toolbar