Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,476 through 25,500 (of 32,468 total)
  • Author
    Search Results
  • #5027
    #72516

    In reply to: WordPress Integration

    WP 2.7.1 and bbPress 0.9.0.4 can’t be integrated natively because of the way they handle cookies. Either you downgrade the method used by WP or upgrade the method used by bbPress. Both the method can be done via plugins (You only need to use one of them).

    For WP plugin:

    http://superann.com/2009/02/26/wordpress-26-27-bbpress-09-cookie-integration-plugin/

    For bbPress plugin:

    https://bbpress.org/plugins/topic/freshly-baked-cookies/

    I have used the bbPress plugin to get them in sync.

    Hope that helps. :)

    #72484
    inkey
    Member

    I know about navigation, that says where is the form.

    But, I see, nobody know how to display form on every page :(

    #72496
    john32
    Member

    To answer your question, all 3 of them, I am using bbPress 1.0-Alpha-6.

    Here’s something interesting. When both WP URL and bbPress URL’s match, no www, if I log into WP Admin FIRST and then try logging into bbPress, the bbPress login will refresh itself but it will not change to what you see when you log in.

    BUT…

    Once I log out of WP Admin and refresh that same forum page with the empty login and password fields?

    Just by hitting refresh once I have logged out of WP, it automatically switches the login to my logged in box with my profile link, admin link, etc.

    I’m going to try some more tweaking and see what I can come up with. :-D

    EDIT: After hitting refresh logs me into my forums, I go to my WP Admin and, even though I just logged out, it lets me into my WP Admin area. I try logging out here and get that error loop. I do what you said to do Kev, /wp-login.php?action=logout, and it asks me if I want to log out. I do logout successfully. I go back tot he forums, where I’m still logged in, REFRESH that forum page, go back to my WP Admin and AGAIN I’m logged in!

    The huge gaping problem with this is if I go to my main site and click on a post it asks me for my name and email, as if I wasn’t logged in.

    I’ll keep trying.

    2nd EDIT: I guess it would be nice to include the link to my forums.

    http://ascendanceradio.com/forums/

    #5019
    verve
    Member

    Hi,

    I am very very green with CSS (read, I have NO idea what I am doing! LOL). I am using a template for my new site that only has 1 column. I would like there to be 2 columns on the main page. The overall width is set to 1000px and I would like to integrate a 2nd column where I can put widgets and other content like a category list, RSS, html linked image ads, etc.

    Can anyone look at the code and tell me where and what to put to make this happen?

    http://www.vervelifeportraits.com/clientsite

    Thanks so much!

    #72495
    john32
    Member

    Very valid point about the plugin. :-)

    I disabled it. I need to run for about another hour but will try your suggestion and report back what happens then.

    Thanks for the help!!

    #72494

    “You are attempting to log out of AscenDance Radio

    Please try again.”

    ah, right, i can help you here. First read my reply to ashfame who him a similar issue yesterday. What you want to do is close teh browser and clear the cache and cookies entirely. You’re loading up /wp-login.php?loggedout=true – but that page’s sole purpose it to remove the cookie which it cannot find in exactly the format it wants – so WP freaks out.

    You need to supply us with the answer to the following questions before we can help:

    1) Are you using Ann’s plugin to make WP2.7.1 cookies compatible with BB0.9 ?

    2) Are you using _ck_’s plugin ot make BB0.9 cookies compatible with WP2.7.1 ?

    3) Are you trying to integrate WP2.7.1 to BB0.9 without either of these plugins?

    btw, if the answer to 1 & 2 is NO and 3 is Yes, then i have to tell you it won’t work.

    May i also suggest two things which should help greatly? 1) set everything up at home or on a development environment first, that way you’re not getting these issues on a live website. 2) Take off the Maintenance Mode plugin. There’s no point in asking for help with an issue when it’s quantified by “i also have a plugin which hides almost all of the data useful to help debug”.

    Lets see if we can’t get your sorted :)

    #72482
    Greg-G
    Member

    perfect thanks…

    i hate when a plugin spoils my fun =)

    #5018
    john32
    Member

    (I removed all references tot he URL due to the spam plugin hating me for it)

    I installed WordPress 2.7.1 first then bbPress 1.0-Alpha-6. When I first installed I set the follow settings,

    bbPress Admin – Settings – WP Integration:

    WordPress address (URL): URL with WWW

    Blog address (URL): URL with WWW

    My main admin / keymaster has to log into both WP and bbPress to access both. I want to integrate it so I can log into one and access both.

    I realized that in WP my WP URL and Blog URL, they are both the same, was set to (URL WITHOUT WWW) so I changed it in the bbPress settings. You would think since both WP and bbPress now actually match things would get better? They got worse.

    I have a Maintenance Mode plugin that denies access to every page in WP (Excluding the forums since they aren’t a part of WP) unless you are logged in as an admin on the WP side. When the URL and Blog were set to (URL with WWW) I had to log into bbPress and then WP but could see all of the WP pages.

    Now that I changed the URL to exclude the www I can now log into bbPress AND be AUTOMATICALLY logged into WP BUT I can no longer see the WP pages indicating WP doesn’t see me as an admin. Not only that but when in the WP Admin and I try to log out it gives me an error:

    You are attempting to log out of AscenDance Radio

    Please try again.

    With a link back to my admin page. It never lets me log out and only happens after I go into bbPRess Admin Panel and change the URL / Blog to match the actual URL that WP has in its settings.

    It has nothing to do with the Maintenance Mode plugin either. I take it off and try to leave a comment on a post but bbPress and WP Admin see me logged in BUT the post requires me to enter my name and email address as if it doesn’t know I’m logged in.

    So basically bbPress and WP Admin knows I’m logged in but my actual WP Site had no clue.

    When I put,

    define(‘COOKIE_DOMAIN’,’.ascendanceradio.com’);

    define(‘COOKIEPATH’, ‘/’ );

    into both the wpconfig and bbpressconfig files it will no longer let me log into both WP and bbPress. If I log into WP first I can access all my WP Pages but when I try to log into bbPRess after the page just refreshes and my login information clears. If I log into bbPress first it lets me get into my WP Admin but my WP Pages can’t be access due to the plugin not recognizing I’m an admin. I also get the same error when trying to log out of the WP Admin.

    I tried only adding the cook domain / path code to ONLY wpconfig and receive the same error as mentioned in the above paragraph.

    I also just tried adding all that code from the Integration 101 8 step solution and get the same problems as mention in the big paragraph above.

    The closet I get to having it work is when I add www to all the bbPress settings. I just tried adding to the 8 step code snippet (the URL portions, I did not touch the cookie domain or any other domains) AND changing the URL and Blog to (URL with WWW) and it lets me log into both giving me access to everything I want, bbPress / WP Admin AND WP Pages as my plugin now sees me as an admin.

    The only problem is that’s not integrated login.

    Do you think if I change, in WP Admin, my URL and Blog URL to (URL with WWW) (As opposed to what it is now, http://ascendanceradio.com) it would fix the problem? I tried changing the name before and ruined my WP site and had to reinstall (Afterward I figured out I could have changed the value through myphpadmin and proceeded to cry for days). Could I ruin my WP site if I change the URL and Blog address to include www?

    Is there someway somewhere a function / cookie / database value is requiring a www and that’s why things seem to work better when I include it in my bbPress Admin Settings?

    I try to go to (URL with WWW) and it automatically redirects me to (URL WITHOUT WWW) so I don’t understand why www would be needed for anything.

    I hope I was clear and concise enough to get some good help. I’ve spent over 8 hours debugging this before turning for help so anything at this point is greatly appreciated! Thanks!! :-)

    #5016
    inkey
    Member

    I’m use bbPress, and have one big usability problem: there is a bug (you think “a feature, I know that! :) ) – when a topic has a few pages, the post form displaying only on last page. Quoting on another pages is not working, and user must read (or skip) all pages to post reply.

    How to display a post form on every topic page?

    (sorry for my bad English)

    #5015
    Greg-G
    Member
      Reason

    My users are signing up on a mobile device and can not copy paste the generated password from their email.

      What Is Needed

    When you successfully register a new user, it redirects to register.php and the Username is already pre-populated with the following code:

    <input name="user_login" type="text" id="user_login" size="18" maxlength="40" value="<?php if (!is_bool($user_login)) echo $user_login; ?>" tabindex="1" />

    How can we do the exact same thing with the password field?

    I have already tried using $pass, $password and $user_pass none of which are available to register.php

    Thanks!!!

    #5014
    john32
    Member

    I registered last night and asked for some help dealing with integration and I was bozoed. :-(

    It’s not hard to figure out something isn’t right when you can only see the thread you made after you log in yet you can see everyone else without.

    I searched to find some rule I violated but I can’t. There are no private messages here and no emal address so this is my only option to find out what I did wrong.

    My name was TechnoKelvin. What did I do?

    #5013
    technokelvin
    Member

    I installed WordPress 2.7.1 first then bbPress 1.0-Alpha-6. When I first installed I set the follow settings,

    bbPress Admin – Settings – WP Integration:

    WordPress address (URL): http://www.ascendanceradio.com/

    Blog address (URL): http://www.ascendanceradio.com/

    My main admin / keymaster has to log into both WP and bbPress to access both. I want to integrate it so I can log into one and access both.

    I realized that in WP my WP URL and Blog URL, they are both the same, was set to http://ascendanceradio.com (Without the www and /) so I changed it in the bbPress settings. You would think since both WP and bbPress now actually match things would get better? They got worse.

    I have a Maintenance Mode plugin that denies access to every page in WP (Excluding the forums since they aren’t a part of WP) unless you are logged in as an admin on the WP side. When the URL and Blog were set to http://www.ascendanceradio.com/ I could had to log into bbPress and then WP but could see all of the WP pages.

    Now that I changed the URL to exclude the www I can now log into bbPress AND be AUTOMATICALLY logged into WP BUT I can no longer see the WP pages indicating WP doesn’t see me as an admin. Not only that but when in the WP Admin and I try to log out it gives me an error:

    You are attempting to log out of AscenDance Radio

    Please try again.

    With a link back to my admin page. It never lets me log out and only happens after I go into bbPRess Admin Panel and change the URL / Blog to match the actual URL that WP has in its settings.

    It has nothing to do with the Maintenance Mode plugin either. I take it off and try to leave a comment on a post but bbPress and WP Admin see me logged in BUT the post requires me to enter my name and email address as if it doesn’t know I’m logged in.

    So basically bbPress and WP Admin knows I’m logged in but my actual WP Site had no clue.

    When I put,

    define(‘COOKIE_DOMAIN’,’.ascendanceradio.com’);

    define(‘COOKIEPATH’, ‘/’ );

    into both the wpconfig and bbpressconfig files it will no longer let me log into both WP and bbPress. If I log into WP first I can access all my WP Pages but when I try to log into bbPRess after the page just refreshes and my login information clears. If I log into bbPress first it lets me get into my WP Admin but my WP Pages can’t be access due to the plugin not recognizing I’m an admin. I also get the same error when trying to log out of the WP Admin.

    I tried only adding the cook domain / path code to ONLY wpconfig and receive the same error as mentioned in the above paragraph.

    I also just tried adding all that code from the Integration 101 8 step solution and get the same problems as mention in the big paragraph above.

    The closet I get to having it work is when I add www to all the bbPress settings. I just tried adding to the 8 step code snippet (the URL portions, I did not touch the cookie domain or any other domains) AND changing the URL and Blog to http://www.ascendanceradio.com and it lets me log into both giving me access to everything I want, bbPress / WP Admin AND WP Pages as my plugin now sees me as an admin.

    The only problem is that’s not integrated login.

    Do you think if I change, in WP Admin, my URL and Blog URL to http://www.ascendanceradio.com (As opposed to what it is now, http://ascendanceradio.com) it would fix the problem? I tried changing the name before and ruined my WP site and had to reinstall (Afterward I figured out I could have changed the value through myphpadmin and proceeded to cry for days). Could I ruin my WP site if I change the URL and Blog address to include www?

    Is there someway somewhere a function / cookie / database value is requiring a www and that’s why things seem to work better when I include it in my bbPress Admin Settings?

    I try to go to http://www.ascendanceradio.com and it automatically redirects me to http://ascendanceradio.com so I don’t understand why www would be needed for anything.

    I hope I was clear and concise enough to get some good help. I’ve spent over 8 hours debugging this before turning for help so anything at this point is greatly appreciated! Thanks!! :-)

    #66148
    tliebig
    Member

    @_ck_:

    A note on deep integration: As of 0.9.0.4, deep integration will break the localization due to the localization methods being used from WP’s core files (bb_settings.php line 75), causing the system to look for bbPress-language files in the WP language directory. Here’s what to fix to make bbPress load it’s own language files from bb_includes/languages when using deep integration:

    In line 376-377 of bb-settings.php, replace

    // Load the default text localization domain.
    load_default_textdomain();

    with

    // Load the default text localization domain.
    if ( !(defined('DB_NAME')) ) { // Include localization the bbPress-way when WP is not running.
    load_default_textdomain();
    }
    else {
    $locale = get_locale();
    $mofile = BB_LANG_DIR . "$locale.mo";

    load_textdomain('default', $mofile);
    };

    #72459
    johnhiler
    Member

    I stuck the code into bbPress in login-form.php, but it didn’t work.

    There’s a form on the WordPress side of things, in my WordPress header… I thought maybe that needed to be changed as well? It posts into the bbpress auth…

    #72458
    _ck_
    Participant

    You can do a similar hack on the wordpress side too, except it’s easier because wordpress doesn’t need a referer , you just do it in the url.

    ie.

    wp-login.php?redirect_to=<?php echo $_SERVER['REQUEST_URI']; ?>

    #72457
    chrishajer
    Participant

    This does not go in any WordPress files at all. It goes in your bbPress login-form.php template file, right before the closing </form> tag. That way, after submitting the form, bbPress directs the user back where they came from (all those SERVER VARIABLES in the code snippet.) I thought this did exactly what you were looking for. Where did you try to insert the code?

    #72456
    chrishajer
    Participant

    Sorry, I thought you said you were routing all the logins through bb-login.php – this *is* bbPress code. Where do you need to use the code? What are you trying to do again?

    You’re sending all your users through bbPress for login, but when a blog user gets sent to the forum for login, they’re not returned to the page they were on, but to the forum front page? Is that accurate?

    #72455
    johnhiler
    Member

    Ah it looks like that code is for bbPress… it has a reference to bb_get_option in it:

    <input type=”hidden” name=”re” value=”<?php echo “http://&#8221;.$_SERVER.$_SERVER[“REQUEST_URI”].’?’.$_SERVER[“QUERY_STRING”]; ?>” />

    <input type=”hidden” name=”_wp_http_referer” value=”<?php echo bb_get_option( ‘uri’ ) ?>” />

    If I stick it into a WordPress template for my header.php file, it crashes… any ideas how to make it work in WordPress?

    #72454
    johnhiler
    Member

    Ah that looks really promising – I’ll try it out! Thanks so much. :-)

    #5003
    #61598

    In reply to: How Do I Do This?

    robbert12
    Member

    Sorry to bump this topic, but I’m new to BBpress and after a long search on Google and in these forums, I arrived here.

    I want to do the same as on this picture: this picture.

    Unfortunately, I can’t get it to work on my forum. I posted the code of front-page.php below and emphasized the problem point (I think). I hope somebody can help me

    <?php bb_get_header(); ?>

    <div id="forums"><!-- Forums -->
    <?php if ( $forums ) : ?>
    <div id="sidebar"><!-- Sidebar -->

    <?php if ( bb_forums() ) : ?>
    <table id="forumlist">
    <thead>
    <tr>
    <th class="title"><?php _e('Forums'); ?></th>
    <!-- th><?php _e('Topics'); ?></th-->
    <th><?php _e('Posts'); ?></th>
    </tr>
    </thead>

    <tbody>
    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>
    <td class="title"><?php bb_forum_pad( '<div class="nest">' ); ?><a>"><?php forum_name(); ?></a> <span><?php forum_description(); ?></span><?php bb_forum_pad( '</div>' ); ?></td>
    <!--td><?php forum_topics(); ?></td-->
    <td><?php forum_posts(); ?></td>
    </tr>
    <?php endwhile; ?>
    </tbody>
    </table>
    <?php endif; // bb_forums() ?>

    <?php if ( bb_is_user_logged_in() ) : ?>
    <h2><?php _e('Views'); ?></h2>
    <div class="sbox">
    <ul id="views">
    <?php foreach ( bb_get_views() as $the_view => $title ) : ?>
    <li class="view"><a>"><?php view_name( $the_view ); ?></a>
    <?php endforeach; ?>

    </div>
    <?php endif; // bb_is_user_logged_in() ?>

    </div><!-- //sb -->

    <div id="content"><!-- Content -->
    <?php if ( $topics || $super_stickies ) : ?>
    <table id="sticky">

    <thead>
    <tr>
    <th class="title"><?php _e('Sticky'); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>
    </thead>

    <tbody>
    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td class="title"><?php bb_topic_labels(); ?> <big><a>"><?php topic_title(); ?></a></big></td>
    <td><?php topic_posts(); ?></td>

    <td><a>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; ?>
    <?php else : ?>
    <tr>
    <td class="title">Er zijn geen belangrijke berichten beschikbaar</td>
    <td></td>
    <td></td>
    </tr>

    </tbody>
    </table>
    <?php endif; ?>

    <table id="lastest">
    <thead>
    <tr>
    <th class="title"><?php _e('Latest Discussions'); ?> — <?php new_topic(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>
    </thead>

    <tbody>
    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td class="title"><?php bb_topic_labels(); ?> <a>"><?php topic_title(); ?></a></td>
    <td><?php topic_posts(); ?></td>
    <td><a>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; // $topics ?>
    </tbody>
    </table>
    <?php endif; // $topics or $super_stickies ?>
    </div><!-- //c -->
    <?php else : // $forums ?>

    <?php post_form(); endif; // $forums ?>

    </div><!-- //f -->

    <?php bb_get_footer(); ?>

    And this piece of code is wrong, I think;

    <table id="forumlist">
    <thead>
    <tr>
    <th class="title"><?php _e('Forums'); ?></th>
    <!-- th><?php _e('Topics'); ?></th-->
    <th><?php _e('Posts'); ?></th>
    </tr>
    </thead>

    <tbody>
    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>
    <td class="title"><?php bb_forum_pad( '<div class="nest">' ); ?><a>"><?php forum_name(); ?></a> <span><?php forum_description(); ?></span><?php bb_forum_pad( '</div>' ); ?></td>
    <!--td><?php forum_topics(); ?></td-->
    <td><?php forum_posts(); ?></td>
    </tr>
    <?php endwhile; ?>
    </tbody>
    </table>

    I hope somebody can help me.

    Thanks in advance..

    citizenkeith
    Participant

    You’ll need to change this one:

    #latest tr, #forumlist tr, #favorites tr {behavior:url("/forums/my-templates/kakumei-too/images/hoverlite.htc");}

    #72446
    biodrama
    Member

    Thanks, Chris. Since I am getting registration emails to moderate, I am guessing register.php is the more likely route, but I am not a coder, and really appreciate your suggestions. Also, I just checked, and I was already running the Human Test plugin.

    #72445
    chrishajer
    Participant

    Yes.

    Or just replace register.php with

    <?php
    // silence is golden
    ?>

    You should look in your logs though to see where they are coming in. Sometimes they go right to bb-login.php as well. Anything related to login really. They’re not sitting there browsing the forum and clicking the [login] button.

    You can also install _ck_’s Human Test plugin to prevent most of the registrations:

    https://bbpress.org/plugins/topic/human-test/

Viewing 25 results - 25,476 through 25,500 (of 32,468 total)
Skip to toolbar