Search Results for 'code'
-
AuthorSearch Results
-
February 9, 2007 at 6:44 am #54319
In reply to: Updated to Desmond But Theme Not Working
spencerp
MemberAh.. Okay, I’m sure Trent’s reply contains the right answer ..
spencerp
February 9, 2007 at 6:44 am #54318In reply to: Updated to Desmond But Theme Not Working
Trent Adams
MemberSave this file as patch-to-URL.php and upload to /my-plugins/ directory:
<?php
function fix_bb_path_to_url( $url ) {
return preg_replace( '|
([^/])|', '
/$1', $url );
}
add_filter( 'bb_path_to_url', 'fix_bb_path_to_url', 1, -1 );
?>Trent
February 9, 2007 at 6:43 am #54317In reply to: Updated to Desmond But Theme Not Working
spencerp
MemberHmm, how about the .htaccess file? I’m trying to figure out where there’s a missing one, if it’s not in the config.php file.. then I’m not really sure..

spencerp
February 9, 2007 at 6:40 am #54315In reply to: Updated to Desmond But Theme Not Working
spencerp
Member[Takes a bow to the audience]… Thank you! Thank you! No really you shouldn’t! Haha.. nah, just kidding lol.

I guess I’m just used to doing that stuff on the WP.org forums, I bring that awesomeness over here.. seems to work well I think..

spencerp
February 9, 2007 at 6:37 am #54313In reply to: Updated to Desmond But Theme Not Working
Trent Adams
MemberGood work tracking that down!
<link rel="stylesheet" href="http:/forums.pfdebate.com/bb-templates/kakumei/style.css" type="text/css" />What really is strange for me is safari on Mac OS X shows the page correctly anyways. What a smart browser.
Why that link is like that and the rest of the content is showing up right is strange though.
Trent
February 9, 2007 at 5:38 am #54308In reply to: Warning: Possible Spammer Lurking
Trent Adams
MemberI would agree. Not really a tasteful joke, but it seems like it really was a joke. I can’t see one thing in that code that would send any information that it gets to anyone but the database you are connecting to or the file that you can have it create. I could be missing something and would appreciate it if others would also check this, but I don’t think there is anything wrong here.
Trent
February 9, 2007 at 5:23 am #49985In reply to: Import phpBB posts into bbPress?
Trent Adams
MemberI have looked over the code of this plugin and it doesn’t send your email to spammers. Jaim3 even put this in the code:
// DISCLAIMER: This is a joke
echo "<li><h3>Sending all your database e-mails to all major world-wide spam sending mafias...</h3></li>";If someone else wants to look to confirm, but it does what it is intended to as far as I am concerned.
Trent
February 9, 2007 at 5:20 am #54210In reply to: default templates being used
spencerp
MemberThanks for the reply Trent..
Yeah, you have a good point there! I guess I was just tired of too many dang folders in the forum’s root directory lol..
Oh well.. when I do the actual upgrading here, I’ll re-add that folder and such..
spencerp
February 9, 2007 at 4:39 am #54243In reply to: Patch: Categories for version 0.8
spencerp
MemberAwesome! Thanks Sam..
I’ll apply this path on the PC first, modify my theme files accordingly.. then upload them all.. 
spencerp
February 9, 2007 at 4:38 am #54208In reply to: default templates being used
spencerp
MemberI’m assuming this path works just as good right?
/root directory/bb-templates/your-theme/
That’s what I am doing at the present time, w/o the latest upgrade though of course..
I’ll get on updating it here soon.. just wanted to wait until ALL the dang commits were really over lmao.. 
spencerp
February 9, 2007 at 3:17 am #54239In reply to: Discriminate content depending on BBPress or WP
macwise
MemberWell, in this case I am calling the header file from wordpress on the bbpress pages. The only problem is that I have things in the bbpress header like
bb_is_user_logged_in()and
is_topic()which create tons of problems when I put that code in the wp header file. I was able to load wp when bbpress loads, but it seems like the opposite would also be useful, to register bbpress when wp loads. I suppose through reverse engineering, I could figure that out on my own?! Otherwise, I would like to just be able to tell the page, “Hey, are you wordpress, then load this…otherwise, don’t load it. And if your BBPress, then load this, otherwise don’t load it”.
Currently I am also trying to specify which stylesheets to load. If it’s wp, I want the wp stylesheet, and if it’s bb, I want the bb stylesheet, and I don’t want the conflicts when both load.
1 – Does this make sense?
B – Is there a solution? and
4 – Am I overlooking a more obvious solution?
Ron
February 9, 2007 at 3:02 am #54238In reply to: Discriminate content depending on BBPress or WP
Trent Adams
MemberWhat kind of content are you trying to distinguish between? Theme content or actual content? With wordpress being a blog and bbPress a forum, the content itself would be different. I guess I don’t quite understand exactly what you are trying to do. Could you explain to me like I am 5 years old (my wife says I act that old anyways

Trent
February 9, 2007 at 2:11 am #1371Topic: Discriminate content depending on BBPress or WP
in forum Themesmacwise
MemberOk, I am trying to serve up content based on whether a user is on the WP side of my site, or on the BB side. Trent, you helped me with this earlier, but you helped me find a much more common sense solution to the problem in that situation.
Here’s what I’m wondering: Is there any way to say “if bbpress” then do this, or “if wordpress” then do this? I can’t seem to find the code I need to tell wordpress AND bbpress to both understand and accept this discrimination. Thanks
Ron
February 9, 2007 at 12:59 am #54237In reply to: bb-ratings problem with 0.8
Geezerjim
ParticipantOutstanding. Works as advertised.

Now I have to “borrow” your path structure and fix my graphic-display-ranks plugin
February 9, 2007 at 12:02 am #54234In reply to: bb-ratings problem with 0.8
ardentfrost
Memberjust hardcode it. Change BBPLUGINDIR to “/my-plugins”
February 8, 2007 at 11:55 pm #54152In reply to: 404 upon innstall
Scoop0901
MemberYou have the new link for Customizing Permalinks? If so, could you please send it to me in email? I have a contact form on my site. I followed the Documentation link, but it isn’t there any longer. Not having a search function on the site hurts. Ouch.

TIA,
-dave
February 8, 2007 at 11:50 pm #54228In reply to: The Display Name stopped working
Michael Adams (mdawaffe)
MemberI’m stumped then. You win the prize
!
February 8, 2007 at 11:46 pm #1370Topic: bb-ratings problem with 0.8
in forum PluginsGeezerjim
ParticipantI’m having a problem with the plugin bb-ratings using 0.8
I think the problem is here:
<img src="<?php bb_option( 'uri' ); echo BBPLUGINDIR; ?>/star.gif" />From the source code:
<img src="http://www.brightandearlyblog.com/bbPress//home/brightan/public_html/bbPress/my-plugins//star.gif" />February 8, 2007 at 11:46 pm #54150In reply to: 404 upon innstall
Trent Adams
MemberI would imagine that you have the following in config.php:
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = true;Maybe change that to the following until you get the install up and running:
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = false;After that, head over to the documentation => Custimization = > Permalinks of the navbar at the top.
Trent
February 8, 2007 at 11:22 pm #54224In reply to: The Display Name stopped working
Trent Adams
MemberI 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: 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/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
February 8, 2007 at 10:51 pm #54220In reply to: The Display Name stopped working
Michael Adams (mdawaffe)
MemberHey, that’s me!

Try this:
<?php
/*
Plugin Name: Force Login
Description: No one can see your forums unless they are logged in.
Plugin URI: https://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' );
?>February 8, 2007 at 10:46 pm #1369Topic: User Type problem
in forum Installationpg2design
MemberI tried something… I changed the User Type to Blocked for the main user, the only user… And it worked… I couldn’t use bbpress anymore…
Is this a bug? The user shouldn’t be able to disable itself…
February 8, 2007 at 10:38 pm #54217In reply to: The Display Name stopped working
zapata
MemberTrent… 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: 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' );
?>Haven’t checked it the bbpress-integration (bbpress-wp same users share) is working or not.
February 8, 2007 at 10:31 pm #54215In reply to: The Display Name stopped working
Trent Adams
MemberPost 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
February 8, 2007 at 9:41 pm #54204In reply to: default templates being used
Michael Adams (mdawaffe)
MemberPlease don’t put anything in bb-templates! This will be problematic for you later.
Put your templates in a subdirectory of my-templates/

-
AuthorSearch Results