Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,226 through 15,250 (of 32,519 total)
  • Author
    Search Results
  • thesnowjunkies
    Participant

    I don’t know if I had the wrong Yoast code, but I tried it again on my template page and it works fine now. Thanks though @JJJ

    #119811
    hummingbirdmeadow
    Participant

    WordPress version – 3.4.2
    bbPress version – 2.1.3
    Website – kidbusinessowners.wordpress.com/

    Alright I am, well, almost completely clueless on how all of this stuff works. I downloaded the WordPress today and the bbPress. My main reason for trying WordPress is because I want to have a forum. I don’t understand, I’ve created a user with both WordPress.com and WordPress.org and I can make my blog with the .com but I downloaded the stuff on the .org. How do I link up the download with my website? Does it require an extensive knowledge of scripting codes (which, as you can tell, I’m not extremely good at)? Thank you!

    #119799
    robertFudge
    Participant

    Added manually for development purposes… how can I hook these into bb profile and save them from there? I have been working on this for 2 days with no success. At this point I can not change bbpress, I need a way to do this. Thanks in Advance.


    add_action( 'show_user_profile', 'extra_user_profile_fields' );
    add_action( 'edit_user_profile', 'extra_user_profile_fields' );

    function extra_user_profile_fields( $user ) { ?>

    <input type="text" name="address" id="address" value="ID ) ); ?>" class="regular-text" />

    <input type="text" name="city" id="city" value="ID ) ); ?>" class="regular-text" />

    <input type="text" name="province" id="province" value="ID ) ); ?>" class="regular-text" />

    <input type="text" name="postalcode" id="postalcode" value="ID ) ); ?>" class="regular-text" />

    < ?php }

    add_action( 'personal_options_update', 'save_extra_user_profile_fields' );
    add_action( 'edit_user_profile_update', 'save_extra_user_profile_fields' );

    function save_extra_user_profile_fields( $user_id ) {

    if ( !current_user_can( 'edit_user', $user_id ) ) { return false; }

    update_user_meta( $user_id, 'address', $_POST['address'] );
    update_user_meta( $user_id, 'city', $_POST['city'] );
    update_user_meta( $user_id, 'province', $_POST['province'] );
    update_user_meta( $user_id, 'postalcode', $_POST['postalcode'] );
    }

    • This reply was modified 13 years, 8 months ago by robertFudge.
    • This reply was modified 13 years, 8 months ago by robertFudge.
    • This reply was modified 13 years, 8 months ago by robertFudge.
    • This reply was modified 13 years, 8 months ago by robertFudge.
    Shane Gowland
    Participant

    Why don’t you just use the code from the snippet you have? Just replace the printf() that outputs the role name with an echo(‘<img src=..) to output your badge instead.

    With all the time you spent bumping this topic and being a condescending prat; you could easily have learned the required single line of PHP.

    I’m confused about what you’re trying to do. You’ll really want to stick to using the functions included with bbPress rather than trying to build your own MySQL queries to connect things.

    bbPress uses a bunch of additional post_meta to connect forums, topics, and replies together. It also keeps counts in post_meta of how many topics and replies live inside any forum or topic. When things are off, they’re really off, like you’re showing in your link above.

    My advice:

    • Use bbPress core functions.
    • Use the WordPress import/export tool if you’re moving between installations.
    • Look at the bbPress functions for inserting forums/topics/replies, and use those as your guide if you still plan on building something custom.

    In future versions, I’ll likely clean up some of the post_meta code, so it’s all in one place and easier to grok. Much of it was written as it was needed, so the post_meta isn’t super organized.

    #119670
    thomasbf
    Participant

    Thanks so much for your kind advice.
    Solving it on the proxy host as proposed by @zaerl is most likely the best way, however reverse proxy is running on a shared web hoster system, and I just have a web-Interface to enter the forward address. I’ll check, but maybe it’s not possible to apply the parameters suggested by @zaerl.
    Maybe there is a chance HTTP_X_FORWARDED_HOST is set, then I could use
    something like this(??):

    $_SERVER["HTTP_X_FORWARDED_HOST"]? $_SERVER["HTTP_X_FORWARDED_HOST"] : $_SERVER["HTTP_HOST"]
    

    (sorry if this is wrong syntax, but I don’t know PHP)
    I’ll have a look at 2.2 once it ‘s released. Maybe this also helpful.
    BTW: Is a nonce check not usually using a cryptographic hash (token). I wonder here you just check HTTP-Header attributes?Is this a strong check?

    #119663
    tkott
    Participant

    @shmoo, @netweb,

    Thanks for the replies. I’ll take a look at that ticket to get an idea of where the code is, that’s going to be really helpful.

    Tomek

    #119660
    Gary3000
    Participant

    You can add it to the page via bbPress shortcodes.

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

    #119654
    Stephen Edgar
    Keymaster

    This markdown/code plugin here on bbpress.org has got to go or get fixed 🙁

    In theory by adding lines 14 to 26 to ‘somewhere’ eg. the footer as you suggest should work.

    With all that said though it should be working as is so if that doesn’t there might be another underlying issue that is stopping the pagination working on your site

    • This reply was modified 13 years, 8 months ago by Stephen Edgar.
    • This reply was modified 13 years, 8 months ago by Stephen Edgar.
    #119647
    Phill
    Participant

    Could I just insert within the footer or something similar?

    It won’t let me enter the pagination php code.

    • This reply was modified 13 years, 8 months ago by Phill.
    • This reply was modified 13 years, 8 months ago by Phill.
    • This reply was modified 13 years, 8 months ago by Phill.
    • This reply was modified 13 years, 8 months ago by Phill.
    • This reply was modified 13 years, 8 months ago by Phill.
    • This reply was modified 13 years, 8 months ago by Phill.
    #119643
    Phill
    Participant

    Yea that’s the code in my loop-replies.php

    #119642
    Stephen Edgar
    Keymaster

    Have a look in /wp-content/yourtheme/bbpress/loop-replies.php and make sure you have the following lines included which will then include the pagination links.

    You should see respectively at the top (Trac Source)

    and at the bottom of that code (Trac Source)

    (The missing text when editing a reply is already patched for the next release)

    #119634
    thomasbf
    Participant

    I setup a server on a non standard port that is receiving requests from a reverse proxy. This setting is causing the bhp nonce check fail.

    This is function bbp_verify_nonce_request in bbp-common-functions.php
    I’m not a PHP Programmer but it looks like this is caused by

    if ( empty( $result ) || empty( $action ) || ( strpos( $requested_url, $home_url ) !== 0 ) 
    

    Here the system tries to compare request_url and home url, however this is not identical in a reverse proxy setting, because the request is going to the internal server, while the home_url contains the url of the external web server.
    Does this make sense?
    To verify the theory I just removed the comparison of the URL’s like this:

    if ( empty( $result ) || empty( $action ) )
    

    Now it works, but I hope that I did not open a security issue.
    Can I kindly ask for advice on how to better set the system to avoid the issue?
    Thanks!

    #119632
    johnjack
    Participant

    Evening All
    The bbpress plugin for wordpress is amazing! Big thanks to the guys who put it together.
    I have a small issue that I am sure is more a newbie thing rather than anything big.
    My forums are showing as post on my blog site rather than using the ‘page template’. I can use the shortcode to make certain section initialy show on a page however when ever you click on a topic it takes you back to a post template (with all the post written by, tags etc etc).
    Is there anyway to make the plugin use a page template rather than a post?
    I am using the Arras Theme at the moment (which could be part of the problem)
    Any help would be fab

    Thanks

    JohnJack

    #119628

    Anything is possible.

    You’ll want to research WordPress login plugins, if you want more control over the login page than what bbPress provides. You can use the login form shortcode, but that won’t prevent people from navigating to wp-login.php directly.

    #119624

    In reply to: Is this possible?

    lwyndham
    Participant

    Thank you for the responding to me query Anoited!

    I feared that I would get this response, I hoped that perhaps there was a plugin or someone previously may have wanted the same functionality.

    Basically what we want is a forum where people can posts training requests, and the logged in training providers could respond, but we need the responses to be hidden to each other so that rival training providers do not get into a bidding war (so to speak).

    Perhaps there is a way of editing the plugin so that the code used to display the responses has a conditional statement that will only allow the topic originator and admins to view the responses – not sure how difficult this will be to implement if at all possible.

    #119616
    Anointed
    Participant

    There is not currently a shortcode capable of doing this.

    HOWEVER!!
    There is a way of accomplishing this and so much more with a plugin.
    https://wordpress.org/extend/plugins/network-latest-posts/

    If you have ever had to deal with multisite and switch_to_blog() before, then this plugin is going to blow your mind away. Hands down my #1 rated plugin of the year 🙂

    #119607

    In reply to: disabling breadcrumbs

    kristinachilds
    Participant

    argh! the code posting on this forum is so jinky…

    #119602

    In reply to: disabling breadcrumbs

    kristinachilds
    Participant

    I’ve removed all the breadcrumb calls in every template file but they still show up. I can’t use the filter because I have the call in header.php. Any idea why this isn’t working? For now I just solved it with CSS, but would like to know where the hook is.

    #bbpress-forums .bbp-breadcrumb-home, 
    # bbpress-forums .bbp-breadcrumb-root,
    # bbpress-forums .bbp-breadcrumb-separator,
    # bbpress-forums .bbp-breadcrumb-current { display: none; }
    
    #119594
    kristinachilds
    Participant

    I have tried a new approach – using conditional statements in header.php (where my breadcrumbs live) to serve different content for different pages. This won’t let me post PHP code (really??) so here’s a pastebin link http://pastebin.com/PYmw4eL6

    It works! a little clunky but it gets the job done

    #119593
    Keith Kelly
    Participant

    I was thinking the shortcode could include the site id. Something like this:

    [bbp-single-forum siteid=2 id=32]

    I am not sure if that is possible.

    #119588
    glimmerguy
    Participant

    I have the same issue. The sidebar is cutting off all the RH text of people’s forum posts plus hiding the all-important Submit button. What were once very robust forums in Drupal are now dead in the water in WordPress due to this issue.

    I want all the forum pages and posts to be full-width, like the main forums page where I placed the short code. I’m willing to pay someone to help resolve this, since I don’t know how to do coding or create child themes, and can’t use the Genesis plugin since I’m not using a Genesis framework. Any links anyone can point to for help? Thanks. (By the way I now see that this very forum suffers a bit from the same issue—the message box is cut off on the right and the green Submit button is partially cut off—but at least people can see it.)

    kristinachilds
    Participant

    We are adding forums to an existing site rather than having a site that is 100% forums. I already have a breadcrumb set up for the main site but the forums don’t show up in them. Since the bbPress breadcrumb functions are significantly more complex than the simple breadcrumbs I currently use I decided to use bbPress’ crumbs in place of the main one. I have successfully modified the function to include category and single page data in the crumbs (without having “forums” as the base) but the blog root disappears. Help? Here’s what I added to ** Current Text **

    // Category Page
    if (is_category() || is_single()) {
        the_category(' &raquo; ');
        if (is_single()) {
            echo " &raquo; ";
            the_title();
        }
    

    That omitted the blog root from the crumbs, so I tried this, which didn’t work either.

    if (is_category() || is_single()) {
        $pre_current_text[] = '<a href="' . trailingslashit( home_url() ) . '">Front Row</a>' . the_category(' &raquo; ');
        if (is_single()) {
            echo " &raquo; ";
            the_title();
        }
    

    I’m not really sure what I’m doing here. I’m no function whiz.

    #119562
    Keith Kelly
    Participant

    Is there any shortcode that would allow me to display a forum from one of my other sites on a multisite installation?

    I was hoping to display the latest topics of a forum from site “X” on site “Y” because they share interests. I am hoping to do that with shortcode and not a theme change because I am using the same theme across all of my sites.

Viewing 25 results - 15,226 through 15,250 (of 32,519 total)
Skip to toolbar