Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cannot login, Hide forum

Viewing 25 replies - 1 through 25 (of 34 total)

  • AphelionZ
    Participant

    @aphelionz

    The quickest way to hide the forums is to simply delete the elements from the UI in the templates. Do you edit HTML or know somebody that does?

    Just use <!– and –> to comment out the registration link, or comment out the php that renders it

    You can also use an .htaccess file to make your forums directory password protected with a master user:pass.

    If this is over your head, like i said, ask somebody. ask me! :)

    The login problem seems to be troubling a lot of people, including myself.

    AphelionZ thanks. I would like the .htaccess file route where I can show the like “Authors Room” on the blog and only Authors with passwords can log in and see the forum. (I’ll try working on the html (fingers crossed) and see if i succeed)

    But can’t move ahead without the logging issue resolved.

    Any ideas dear Gurus?

    Not only is bbPress not able to get my WP Login, but when I register as an independent user, even that username password does not allow me to get into bbPress. Could this be my url problem?

    my blog is at passionforcinema.com

    bbpress is located at root level of the folder bbpress

    Now I have two blogs on this server. The root – public_html leads to my other blog DT. At this level is a folder call passionforcinema-com within which is WP contents for my second blog (with a direct url passionforcinema.com)… I’m kind of confused so thought maybe I’ve messed something up because of this structure and the config.php may need different values than what I’ve inserted (as above)

    I dont know if this gonna fix ur problem.. but it seem u missing http for both “$bb->wp_home” and “$bb->wp_siteurl” Anyway, is it both ur wp db and bb db on the same db name?

    Try

    $bb->wp_home = 'http://passionforcinema.com';

    $bb->wp_siteurl = 'http://passionforcinema.com';

    It WORKED!!!!!!!!!

    changing home and siteurl to http://passionforcinema.com worked like that!

    Question and possible problem…

    Some of my authors may use http://www.passionforcinema.com to log in. I tried it. In this case http://passionforcinema.com/bbpress does not recoginze them (same problem as earlier)

    Is there a solution, where bbPress recognizes my authors who have logged in on passionforcinema with or without a “www.” in front.

    How can I resolve this issue (beside ofcourse asking my fellow authors to type only http://passionforcinema.com and noT http://www.passionforcinema.com)

    You should probably have the www. pages redirect to the other pages.

    Failing that, you can follow the advice I gave here: https://bbpress.org/forums/topic/113?replies=3

    You’ll need to change the cookie information for both WP and bb.

    Thanks!!! My host just arranged something that redirects all www. to simply http://passionforcinema.com

    That leaves two things that I need to activate the Authors forum:

    1. How do I prevent users(unregistered ones) from veiwing the forum and using it.

    2. How do I prevent users (visitors) from registering for the forum. (I want to handle registrations myself in WP Admin)


    AphelionZ
    Participant

    @aphelionz

    http://www.javascriptkit.com/howto/htaccess3.shtml

    There’s a (not) trivial tutorial on there, but you can do it! Just focus. If you don’t want users to even try to access it, dont provide a link, just email your dudes with the URL.

    (scratching head) can’t make head or tail of this, being such a n000b… I know there is a .htaccess file. Is there some line or code I have to insert in there to prevent users from accessing my forum?

    How can I prevent readers registering? Even if I don’t give a link or hide “register” link… they may find the page to register…


    AphelionZ
    Participant

    @aphelionz

    the beauty of the .htaccess approach is that users wont be able to access *anything* inside of the forums directory without a password or intermediate to advanced haXXing skillz.

    Is there anything in your control panel that allows you to do this? Look into it.

    I have the cpanel… is there anything I can do? Or should I just paste my .htaccess file here… Oh Gurus please help me :-) … (I now could write a screenplay on my adventures in bbPress…)

    zapata, this plugin.

    <?php

    /*

    Plugin Name: Force Login

    Description: No one can see your forums unless they are logged in.

    Plugin URI: https://bbpress.org/forums/topic/117

    Author: Michael D Adams

    Author URI: http://blogwaffe.com/

    Version: 0.7

    */

    function force_login_init() {

    if ( !bb_is_user_logged_in() && false === strpos($_SERVER, ‘bb-login.php’) ) {

    if ( file_exists( BBPATH . ‘my-templates/login.php’ ) ) {

    require( BBPATH . ‘my-templates/front-page.php’ );

    } else {

    require( BBPATH . ‘bb-templates/front-page.php’ );

    }

    exit;

    }

    }

    add_action( ‘init’, ‘force_login_init’ );

    ?>

    I got an error after installation as follows:

    Fatal error: Call to undefined function: bb_is_user_logged_in() in /home/direc/public_html/passionforcinema-com/wp-content/plugins/bbpress-forcelogin.php on line 12

    zapata,

    That is a bbPress plugin, not a WordPress plugin. It should be installed in bbPress’ my-plugins/ directory. See https://bbpress.org/documentation/faq/#customization-folders (the bottom of that page).

    WOW!!! It works. Now if I logout and try to log back in it simply shows me the login form!!!

    just installed version 0.75 and unfortunately the hide feature for those not logged in does not seem to work… any advise here?

    i think it could be because I’m on 2.04 WP and 0.75 bbpress?

    I don’t think that should be a problem having those versions. What is not working, the plugin that mdawaffe posted above or the integration? Could you be more specific? What are you seeing? What are errors? What is desired result?

    Trent

    Trent, Thanks for the quick reply. There are no errors. The objective was to hide the forums from everyone who is not logged in. For this the mdawaffe’s plugin (code posted in his post above) was working on my initial install (0.74)… but I’ve installed the 0.75 yesterday and reinstalled the plugin, but upon logging out, I’m still able to browse the forums…

    the url: passionforcinema.com/club

    From Ardentfrost.

    <?php

    /*

    Plugin Name: Force Login

    Description: No one can see your forums unless they are logged in.

    Plugin URI: https://bbpress.org/forums/topic/117

    Author: Michael D Adams

    Author URI: http://blogwaffe.com/

    Version: 0.7

    */

    function force_login_init() {

    if ( !bb_is_user_logged_in() && false === strpos($_SERVER['REQUEST_URI'], 'bb-login.php') ) {

    if ( file_exists( BBPATH . 'my-templates/login.php' ) ) {

    require( BBPATH . 'my-templates/front-page.php' );

    } else {

    require( BBPATH . 'bb-templates/front-page.php' );

    }

    exit;

    }

    }

    add_action( 'bb_init', 'force_login_init' );

    ?>

    That will work.

    Trent


    ardentfrost
    Member

    @ardentfrost

    That’s for bbpress .74 and up

    Trent,

    WOEEEZZZZZZZZZAAAAAAAAAAA…. sorry for the excitement… the code works!!!!!

    Gurus… one request… how can I completely “Eliminate” anonymous user registration… the goal of my forum is for a private discussion of authors who write on the main blog to communicate with each other. Hence all users of the forum will be actually authors of the blog.

    Since you are integrated with WP (I would assume), removing register.php from bbPress root directory would get rid of that particular issue. People can still register using WordPress or just added as members by you in the WP admin. That would be the easiest way.

    Trent

    Trent,

    Today is my bbPress Independence day. Everything seems to be working just so smoothly. Removed register.php and Voila…

    two questions:

    (1) What file do I have to look in to remove the “Register” link on top of the page

    (2)When you mention “People can still register using WordPress” do you mean the authors or me (admin) has to do anything “beyond” what I do to register authors in the admin section of WordPress

Viewing 25 replies - 1 through 25 (of 34 total)
  • You must be logged in to reply to this topic.
Skip to toolbar