Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,551 through 9,575 (of 32,519 total)
  • Author
    Search Results
  • #158086

    In reply to: Oh Brother…

    markf1
    Participant

    Hi robin,

    I put my bbPress.php into the Twenty Twelve parent theme, activated the twenty tweleve theme, and the forum links still do not work / problem remains with that config.

    I tried the above with also removing the bbPress.php from my child theme. still no joy.

    I tried the above with my child theme activated. continued no luck.

    I made a page with the short code. links don’t work, problem remains.

    Thanks for your continued help!

    #158085
    Sebastian
    Participant

    I know where to add it if the code works but my basic understanding is not very good. Just html and css so far.
    What idea occurred to you?

    #158080

    In reply to: Oh Brother…

    Robin W
    Moderator

    ok, two thoughts

    1. if you put your bbpress.php into the twenty twelve parent theme, does it work ?- that will eliminate that file

    2. can you create a page and put the shortcode [bbp-forum-index] in it and see how that page works or not

    #158079
    Sebastian
    Participant

    Thanks for your reply.

    Yes thats right. I added a forum and a topic in the forum, and I want to use the reply form to let the user answerfrom another wordpress page into this specific topic – in my case I want to add the reply forum in a course page of learndash – I think they use the normal wordpress post.

    It works already with the shortcode [bbp-single-topic id=$topic_id], but then the reply form and specific topic with its answers is shown in the page. Thats too much.

    I thought of just adding the form reply and say the shortcode [bbp-reply-form] where it
    belongs to.
    Like the example: http://www.imageupload.co.uk/images/2015/02/08/shorcodeforminsidepage.jpg

    Is that possible?

    #158012

    Topic: Oh Brother…

    in forum Troubleshooting
    markf1
    Participant

    I have a custom theme site, child theme of twentytwelve. The links for the various forums and topics do not seem to be pointing to the correct places (individual forum, topic).
    http://www.telluridemountainclub.org/mtn-club-forums/

    When I click on anyone of the forums I get the “Oh Brother! No forums were found here.” message
    When I click on anyone of the topics I get the same “Oh Brother! No forums were found here.” message. I pretty sure that I have configured something incorrectly.

    In the theme folder I have put the bbPress.php. Below is the code in that file. Does my problem lie with the bbPress code that I used in this file?

    <?php

    /**
    * bbPress - Forum Archive
    *
    * @package bbPress
    * @subpackage Theme
    */

    get_header(); ?>

    <div id="p7CCM_3" class="p7CCM01 p7ccm01-fixed-960">
    <div class="p7ccm01-content-row p7ccm01-trans p7ccm01-dyn-img p7ccm-row">
    <div id="mtn-main-column-page01" class="p7ccm01-2col-auto-column1 p7ccm-col">
    <div class="p7ccm01-2col-auto-column1-cnt p7ccm01-content p7ehc-1">

    <?php do_action( 'bbp_before_main_content' ); ?>

    <?php do_action( 'bbp_template_notices' ); ?>

    <div id="forum-front" class="bbp-forum-front">

    <div class="entry-content">

    <?php bbp_get_template_part( 'content', 'archive-forum' ); ?>

    </div>
    </div><!-- #forum-front -->

    <?php do_action( 'bbp_after_main_content' ); ?>
    </div>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Any suggestions for getting this to work will be greatly appreciated.

    Sebastian
    Participant

    Hi,

    I am using bbpress 2.5.4 and Wordporess 4.1 and everything work fine.

    Is it possibe to only display the reply form with the shortcode [bbp-reply-form] on any wordpress page or in my case at a course page from Learn Dash?
    as shown here:
    http://www.imageupload.co.uk/images/2015/02/08/shorcodeforminsidepage.jpg

    If I reply now the “Error: Topic Id is missing” (German: FEHLER: Themen-ID fehlt) appears. Ok, that’s traceable because I dint’s say the reply form where it belongs to. But adding a Topic ID to the shortcode like [bbp-reply-form id=223] doesn’t seem to be supported and nothing appears.

    Is there any way to do that? To say the reply form on any page in wordporess in which topic it should reply.

    I don’t want to add new topics to a forum or let the user select a forum from the dropdown (as described in the bbpress shorcode codex). I just want to have the reply form (without the topic posts) inside my course pages and let the people reply.

    Looking forward for any help or solutions.

    Grettings,
    Basti

    #157999
    Nicolas Korobochkin
    Participant

    @andreippo Do not change the plugin files (bbPress). Use MU plugins or write your custom plugin. I use MU. If you write custom plugin make sure what all hooks connects in the right sequence.

    Do not change the attributes passed to functions (they are correct). You can change logic inside functions and change the headers, title, text of outgoing emails.

    selena_network_ is my multisite prefix used in all functions at armyofselenagomez.com and selenaselena.ru.

    #157983
    #157980
    format19
    Participant

    This is perfectly fine or if it said
    http://www.gaucinforum.com/members/japs/
    that would be fine too.

    I am assuming there is some code in the bbpress members pages that says to use nickname instead of username?

    or is there some php to add to my functions to make wp register users nicknames as there username with a 1 or something.

    I hope that makes it clear whats happening and what I need to happen?

    Thanks
    Mark

    #157977
    format19
    Participant

    Sorry I thought I was but you know what its like when your in the middle of it 🙂

    The site is gaucinforum.com
    When you go there you can only access the home page the contact page and terms etc without being registered.

    The registration page is standard bbpress with 3 additional fields (not really relevent)
    The user registers with
    Username : japs
    Name : John Powell

    In the background it has created a user with
    Username : japs
    First Name : John
    Last Name : Powell
    Nickname : John Powell
    Display Name Publicly : John Powell

    I am using the plugin BP Display Name to force Display Name Publicly As : Username
    and I have added the code
    define( ‘BP_SHOW_DISPLAYNAME_ON_PROFILE’, false );
    to my wp-config.php

    #157972
    Robin W
    Moderator

    If you have FTP access then :

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress
    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-reply.php
    bbPress will now use this template instead of the original

    then you need to chnage the line

    <?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
    

    to do a check for keymaster and author

    something like

    <?php if ( bbp_is_user_keymaster())  || bbp_get_reply_author_id() == bbp_get_current_user_id() : ?>
    

    bbp_get_reply_author_id() might need to be bbp_get_topic_author_id() – you’ll need to try it to see

    Give this a go, I’m very short of time at the moment, so haven’t tested !

    #157971
    Robin W
    Moderator

    @twist360 I’d like to save this solution in my folder of useful info.

    To save me copying and cobbling together the final answer from the above, can you post the final code you did for the solution below as one package

    This will help others and be useful

    Thanks Robin

    #157970

    In reply to: Help with Custom View

    Robin W
    Moderator

    I have to say I think your programming skills are probably better than mine !

    The views bit hooks to bbp_has_topics, so the args are the key part to get this going, rather than needing to alter php files

    see

    Adding Custom View Shortcode

    for how another user got a custom view with meta data working – I’m a bit tied up at the moment to write the answer, but judging by your post above you should be able to work it out !

    If you don’t then come back and I’ll try and help when I get some time

    If you do, please post the whole solution here in the spirit of sharing – it would be a good one to have for other people, and to add as a plugin to the other plugin.

    #157969
    Robin W
    Moderator

    or add the following to your style.css

    . bbp-reply-content a:link, a:visited, a:hover {
    color: blue !important ;
    }
    
    

    Functions files and child themes – explained !

    #157954
    kendorama
    Participant

    Hi,

    The hyperlinks inside my forum content aren’t blue and are only blue when I hover over it. Is there code to change this?

    I think we changed the “bbpress-forums a” to black since we wanted the main forum listings links to be black and not blue, but we want to change the links WITHIN forum content to blue so it’s more obvious.

    Thanks

    #157945
    Savedin1080p
    Participant

    I recently had this plugin working properly. But now it is not working properly. I have no idea what I did wrong. I couldn’t figure out why my forums were saying page not found so I unchecked the buddypress group forum, and the forum slug option. And then it stopped working. Now unchecking them or checking them does nothing, and the post page where I paste the shortcode only shows up when I disable the plugin.
    My forums page where the forums should be showing up: http://www.minetraverse.com/forums/

    Rosa Parker
    Participant

    Where exactly should I put that code? I put it in functions.php with no result, so I guess I was wrong…

    Thanks for your reply, anyway.

    #157939

    Topic: Help with Custom View

    in forum Themes
    Deleyna
    Participant

    I *think* I’m going about this the right way — but I may not be, so any advice will be appreciated.

    I’ve moved a long-standing forum group onto bbpress. We’re loving it, but members have asked me to make it work more like our old program. I’ve seen a lot of chatter about view-unread elsewhere. I’m using the plugin https://wordpress.org/plugins/bbpress-unread-posts/ — that hasn’t been updated in forever, but works nicely and gives us what we are used to. It creates a meta-key for each topic, each user: bbpress_unread_posts_last_visit_$user-id with the associated value being the unix timestamp.

    Combined with the plugin to go to the first unread post, this works. I’ve also created buttons where the user can reset that meta-key to mark forums as read / unread.

    Now I want a custom view, “Unread View”, that will look for topics where
    _bbp_last_active_time > bbpress_unread_posts_last_visit_$user-id

    Since $user-id is dynamic, I’m thinking that I can’t just specify the view in the functions.php file and be happy.

    What I’ve done:
    added:
    —–
    // adding custom view for unread
    function my_custom_views_init() {
    $args = array ();
    bbp_register_view( ‘unread-view’, __( ‘Unread View’ ), array( $args ), false );
    }
    add_action( ‘bbp_register_views’, ‘my_custom_views_init’ );
    —–
    to my functions.php file.

    created
    unread-view.php based on loop-topics.php with the logic to test if
    _bbp_last_active_time > bbpress_unread_posts_last_visit_$user-id
    and only show the topic if it is… (I’m not sure if I have the logic right yet, or if this is even the right loop to put the test…)

    Added a page with the short code
    [bbp-single-view id="unread-view"]

    But there’s clearly a link missing. I need something to tell the system that I want to use my unread-view.php instead of loop-topics.php for “unread-view” ONLY.

    And I’m not sure how to do that. I’m clearly missing more than a little bit of the logic here. My programming skills are pretty basic, so any help you can give me would be appreciated.

    #157926
    Stagger Lee
    Participant
    remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4);
    remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4); 
    #157916
    Robin W
    Moderator

    yes, just create a wordpress page and put one of the following shortcodes in it

    [bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
    [bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.

    #157914
    Robin W
    Moderator

    Not quite sure why, but the replies class is not showing

    Try adding

    .forums.bbp-replies {
      clear: both !important;
    }

    to your style.css

    Functions files and child themes – explained !

    that fixed it in my browser

    #157912
    andreippo
    Participant

    @korobochkin, thanks a lot for sharing this.

    Should I just paste you code on bbpress/includes/common/functions.php and change the attributes of it?

    What does selena_network refer to?

    Thanks a lot!

    #157908
    Robin W
    Moderator

    ok, it’s caused by your themes style sheet

    line 5600 says

    .no-touch .reply {
      visibility: hidden;
    }
    

    and this is hiding bbpress reply

    you could try adding

    #bbpress-forums .no-touch .reply {
      visibility: visible !important;
    }
    

    to your css file

    see

    Functions files and child themes – explained !

    Stagger Lee
    Participant

    Try to adapt this:

    add_filter( 'nav_menu_css_class', 'namespace_menu_classes', 10, 2 );
    function namespace_menu_classes( $classes , $item ){
        if ( in_array(get_post_type(), array('forum','topic','reply')) )
    	 {
            $classes = str_replace( 'current_page_parent', '', $classes );
            $classes = str_replace( 'menu-item-22902', 'current-page-parent', $classes );
        }
        return $classes;
    }
    Stagger Lee
    Participant

    You explained a bit confuse. You want parent-child menu highlightning ?
    I am afraid it is not possible that way. Your menu link is simple page with shortcode (page-id-502).

Viewing 25 results - 9,551 through 9,575 (of 32,519 total)
Skip to toolbar