Info
- 18 posts
- 3 voices
- Started 5 years ago by zapata
- Latest reply from zapata
- This topic is not resolved
The Display Name stopped working
-
- Posted 5 years ago #
Upgraded to the lastest bbPress and find that the display name has stopped working... was using the display-name plugin... for this
-
- Posted 5 years ago #
Darn... the view only on login plugin is also not working you can see the club without logging in.
-
- Posted 5 years ago #
Post a link to the plugin you are using or the code for it. We can fix it quickly here for the login only plugin. The display name is on the plugins site. We can fix that one after fixing your Important issue first.
Trent
-
- Posted 5 years ago #
Hmm...if it is this one, it might be tougher for me to figure out without help!
http://bbpress.org/plugins/topic/27?replies=1
Trent
-
- Posted 5 years ago #
Trent... don't remember where I picked it from it's called the Force-login... did someone here give me the code and I copied and pasted it... not sure... here's the code...
<?php /* Plugin Name: Force Login Description: No one can see your forums unless they are logged in. Plugin URI: http://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' ); ?>Haven't checked it the bbpress-integration (bbpress-wp same users share) is working or not.
-
- Posted 5 years ago #
What is your theme name....we can fix this in a hurry for you! Is it the default theme now?
Trent
-
- Posted 5 years ago #
I have several plugins with 0.8 and the integration plugins work fine. Memberlist, Private Messaging, (this one) and a few others. Only ones that reference the templates or specific files in themes....rest work fine.
Trent
-
- Posted 5 years ago #
Hey, that's me! :)
Try this:
<?php /* Plugin Name: Force Login Description: No one can see your forums unless they are logged in. Plugin URI: http://bbpress.org/forums/topic/694 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') && false === strpos($_SERVER['REQUEST_URI'], 'bb-reset-password.php') ) { bb_load_template( 'login.php' ); exit; } } add_action( 'bb_init', 'force_login_init' ); ?> -
- Posted 5 years ago #
It's the default theme... all righty mdawaffe is here... thanks... I'll update this and let you guys know...
Will the bbPress-WP Integration be working?
-
- Posted 5 years ago #
There is no reason why it will not. Mine is working and has been since the functions of 0.8 began in TRAC and continue on with the upgrade to 0.8 today.
Trent
-
- Posted 5 years ago #
Error on trying forcelogin
Warning: force_login_init(/home/ozdesi/public_html/passionforcinema-com/club/bb-templates/front-page.php) [function.force-login-init]: failed to open stream: No such file or directory in /home/ozdesi/public_html/passionforcinema-com/club/my-plugins/forcelogin.php on line 15
-
- Posted 5 years ago #
I am sure Micheal can fix this quickly, but maybe try this until he gets around to it:
<?php /* Plugin Name: Force Login Description: No one can see your forums unless they are logged in. Plugin URI: http://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/kakumei/front-page.php' ); } else { require( BBPATH . 'bb-templates/kakumei/front-page.php' ); } exit; } } add_action( 'bb_init', 'force_login_init' ); ?>I just hardcoded the new template directory. Not a long term fix. mdawaffe will have a fix soon enough!
Trent
-
- Posted 5 years ago #
Thanks Trent.!!!
-
- Posted 5 years ago #
Since the plugin I put up here: http://bbpress.org/forums/topic/694?replies=13#post-4202
doesn't make any reference to front-page.php, I do not know why you are getting that error.
Are you sure you were runnig the version I put up? Do you have multiple versions of the same plugin running?
-
- Posted 5 years ago #
No I don't... I'll try again... in a few and let you know how it goes.
-
- Posted 5 years ago #
I'm stumped then. You win the prize :) !
-
- Posted 5 years ago #
I may have done something wrong... I deleted the whole folder and uploaded it again with the modified plugin... and it is working!!!
Is it me or some weird odd reason the display name seems to show up exactly like the previous version... no problems now...
After I log in I enter a different page (I think it's the admin page) instead of the forums... is that how it is supposed to be?
-
- Posted 5 years ago #
this is weird... logged out logged in about 2-3 times... tried to log in as another user... error... logged in again as me (admin) and this time I went straight to the forums instead of the dashboard.
-
You must log in to post.