Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,576 through 14,600 (of 32,522 total)
  • Author
    Search Results
  • #127859
    akgt
    Participant

    Will this feature be in the next update, or could I add a bit of code to functions ?

    I did have a look but nothing that it will work with bbpress, ill keep looking .

    #127848

    In reply to: Full Size Forum

    SupernaturalBrews
    Participant

    @mercime anything related to bbpress I would like to have full width without sidebar.

    I’m using triton lite.

    I put the above code into the child theme css and it got rid of the sidebar but its not full width.

    Here is the link to the forums:
    http://www.kcnanobrews.com/forums/

    #127827
    stefano62
    Participant

    here a picture of the code that i can overwrite with css

    https://docs.google.com/file/d/0BwksXWvLU0H4R183dFI0NTZYakU/edit?usp=sharing

    #127826
    stefano62
    Participant

    yeah normaly you can do that but it dont work becouse that the php code has a element.style and a element.style can’t be overwrited be an css style

    #127822

    In reply to: Full Size Forum

    @mercime
    Moderator
    #127814
    Stephen Edgar
    Keymaster

    Just follow the steps in the document https://codex.bbpress.org/bbpress-in-your-language/

    Set `define (‘WPLANG’, ‘fr_FR’);` in your WordPress `wp-config.php`

    Download the .po & .mo files

    Rename the files

    • bbpress-plugin-fr-fr.po to bbpress-fr_FR.po
    • bbpress-plugin-fr-fr.mo to bbpress-fr_FR.mo

    Upload both files to `/wp-content/languages/bbpress/ `

    I would suggest you use the following page to ask if anyone in the French WordPress community has fully translated bbPress as the translations linked above are 0% & 11% https://fr.wordpress.org/contact/

    If you are trying to translate the theme DynamiX or ‘codestyling localization’ plugin then they are issues with their respective authors.

    #127808
    Stephen Edgar
    Keymaster

    I’d suggest taking a look at the code in the bbPress ‘Login Widget’ included with bbPress.

    It behaves in very much the same way you are looking to have in your header.

    What you are probably after starts at line #137 and depending on your needs use either `bbp_user_profile_url( bbp_get_current_user_id() )` or `bbp_user_profile_link( bbp_get_current_user_id() )`

    #127798
    blognerd
    Participant

    Sorry guys, I didn’t think that the code wouldn’t post properly.

    #127796
    blognerd
    Participant

    Hi everyone,

    Hope someone can help me out with this, I’ve been searching around for several days and I can’t seem to find a solution.

    I’m using bbpress (obviously) on my 3.5.1 WP install. I have code in a fixed header that allows my users to login to the website. Here’s the code I have in my header.php

    display_name.’ | ‘, wp_loginout(); } else { ?>
    or <a href="/wp-login.php?action=register”>Join

    Basically this generates Login | Join when the user is not logged in and username | logout when they are logged in.

    My question is this, when a user is logged in I’d like to have the username link directly to their bbpress profile. For the life of me I can’t find any info on how I would do this.

    Does anyone have any info or could point me in the right direction so I can could get this done? Maybe it’s not even possible?

    Thanks to anyone who can help.

    Cheers.

    #127787
    stefano62
    Participant

    hi there

    my problems is that im trying to style the reply section but there is some script there are styling the element.style so i cant overwrite it with the style.css i cant find the code there are doing the element.style

    i have located the code to the “loop-single-reply.php”
    in the file the code refers to code i cant find?


    div class=”bbp-reply-content”
    ?php do_action( ‘bbp_theme_before_reply_content’ ); ?
    ?php bbp_reply_content(); ?
    ?php do_action( ‘bbp_theme_after_reply_content’ ); ?
    /div

    are there anyone there know where it gets styled?

    #127759
    iamnotadoll
    Participant

    I modified the code in includes/common/template-tags.php as outlined on this page and (for now) it seems to have fixed the issue.

    `
    function bbp_redirect_to_field( $redirect_to = ” ) {

    // Rejig the $redirect_to
    //if ( !isset( $_SERVER[‘REDIRECT_URL’] ) || ( !$redirect_to == home_url( $_SERVER[‘REDIRECT_URL’] ) ) )
    // $redirect_to = wp_get_referer();

    // Make sure we are directing somewhere
    if ( empty( $redirect_to ) )
    $redirect_to = home_url( isset( $_SERVER[‘REQUEST_URI’] ) ? $_SERVER[‘REQUEST_URI’] : wp_get_referer() );

    // Remove loggedout query arg if it’s there
    $redirect_to = (string) esc_attr( remove_query_arg( ‘loggedout’, $redirect_to ) );
    $redirect_field = ”;

    echo apply_filters( ‘bbp_redirect_to_field’, $redirect_field, $redirect_to );
    }
    `

    Initially it wasn’t working because I didn’t remove the //Rejig the redirect part (can’t believe I didn’t see it the first time).

    Now my question is, where (and how) would I put this modified function to stop any future updates from overwriting it?

    I tried using add_filter(‘bbp_redirect_to_field’) in my bbpress-functions file but it makes the site really slow. Is there a better way to do it?

    `
    add_filter(‘bbp_redirect_to_field’, ‘bbp_redirect_to_field_filter’);

    /**
    * Filter to fix the reply redirects
    **/
    function bbp_redirect_to_field_filter( $redirect_to = ” ) {

    // Make sure we are directing somewhere
    if ( empty( $redirect_to ) )
    $redirect_to = home_url( isset( $_SERVER[‘REQUEST_URI’] ) ? $_SERVER[‘REQUEST_URI’] : wp_get_referer() );

    // Remove loggedout query arg if it’s there
    $redirect_to = (string) esc_attr( remove_query_arg( ‘loggedout’, $redirect_to ) );
    $redirect_field = ”;

    echo apply_filters( ‘bbp_redirect_to_field’, $redirect_field, $redirect_to );
    }

    `

    #127755
    iamnotadoll
    Participant

    I’m having this issue as well. Something is happening to my URLS when posting replies.

    The site is running on ISS 7, the URL Rewrite Module has been installed at it is working perfectly fine with pretty permalinks on my posts and categories.

    Posting a new topic will redirect me to that topic’s page, so that’s working.

    The only thing that’s not working is the redirect when posting a reply – it’s redirecting me all over the place, sometimes back to the parent forum, sometimes to an error page, sometimes back to the main forum index.

    Is there some code that I can modify so that when someone hits ‘submit’ to post a reply, it just refreshes the page or something, instead of redirecting to random places?

    #127734
    Philumptuous
    Participant

    That’s exactly what I did but I couldn’t figure out how to display more than the user’s url. Your code doesn’t show up still so I don’t know how you got the AIM field to show.

    #127726
    koreancandy
    Participant

    Thank you very much for your help.

    I have added the code you gave me into my themes style.css and nothing changes, Admins can still see the IP addresses of users 🙁

    #127723
    xmasons
    Participant

    [solution removed because I have no clue on how to provide code examples]

    #127712
    zilveer
    Participant

    You will need to add that code to your template CSS-file.

    #127708
    Francois Grenier
    Participant

    Hi!

    I’ve done everything in the installation guide (http://codex.bbpress.org/bbpress-in-your-language/) to traduce it in french.

    But I think I am missing something here, do I have to activate something, do I have to use codestyling localization to complete the traduction?

    Is just uploading the files and having my WP dashboard in the same language should get everything translated^

    Thanks

    Erlend
    Participant

    Hmm, how strange that it shows correctly for you, as it’s like this for me on two different machines.

    Regarding the custom buttons, I don’t think those should be displayed by default in the forum editor, no. Custom buttons and icons can be very useful in posts, but I don’t see them being useful to the majority of forum users. That said, I also think that custom buttons/shortcodes is plugin territory.

    Unsal Korkmaz
    Participant

    This is really long post on topic:

    View post on imgur.com

    I see other bug that needs to remove max-height from static modal-body:

    .firmasite-modal-static .modal-body {
    	max-height: inherit;
    }
    

    I am not sure what is problem in there but if i can reproduce, i will try my best to fix it

    Update: I think your problem was this bug. IT must be fix with this css code right? I will release 1.1.1 version of theme in 2-3 days can you try theme meanwhile please?

    #127689

    Topic: pdf embed

    in forum Troubleshooting
    zubo01
    Participant

    I am trying to use pdf embed plugin and the embed codes [embed]file[/embed] to use as the first post of the topic …

    If I use this on a page it displays the pdf fine but it does not do so in the topic it just displays the text with the embed codes stripped

    Anyone advise why not or what I can use instead

    Many thanks

    George

    #127682
    koreancandy
    Participant

    Sorry to be a pain, I am not sure where to add this code

    #127672
    Philumptuous
    Participant

    Edit: I have no idea how to display code. Sorry. And it won’t let me edit my post.

    #127671
    Philumptuous
    Participant

    I don’t really understand PHP all that much at the moment, though I am learning. From what I do know, I was able to figure out how to display the user’s URL by making a /bbpress folder in my theme’s root and copying over the user-profile.php file. And then I added this underneath the user description section:

    [sourcecode language=”php”]

    <a href="”>

    [/shortcode]

    Though, I’m sure there must be a shorter way of turning text into a link?

    Anyways, I wasn’t able to find any function for the other fields under ‘Contact Info,’ which makes me wonder if those are coming up under some other plugin.

    #127669
    Stephen Edgar
    Keymaster

    Its a bit hard to see what changes you made… If you think others would benefit from this create a ticket in trac and add your code as a patch https://bbpress.trac.wordpress.org/

    #127663

    In reply to: Full Size Forum

    kmjamal
    Participant

    Where did you add the css code? I mean which css file? Do i have to add this code in my theme css file?

Viewing 25 results - 14,576 through 14,600 (of 32,522 total)
Skip to toolbar