Search Results for '"wordpress'
-
AuthorSearch Results
-
May 18, 2010 at 2:41 pm #86869
In reply to: WordPress 3.0 beta with bbpress 1.0.2 integration
Kevin Muldoon
MemberI’ve integrated with 3.0 and 2.92 so it does work.
Just to check: you did change bb-config-sample.php to bb-config.php didn’t you?
May 18, 2010 at 2:15 pm #88463In reply to: Using login_form from bbPress on a WordPress site
pagal
ParticipantDear buddies I want to correct you both..
the code was https://codex.wordpress.org/Function_Reference/is_user_logged_in
<?php
if ( is_user_logged_in() ) {
echo ‘Welcome, registered user!’;
} else {
echo ‘Welcome, visitor!’;
};
?>
and with this there is no need to call bb-load.php into wp…
Now I’ve replaced kevinjohngallagher’s html form with, Welcome, visitor!.. and its working fine now..
but the problem is the after login I want to display the register user’s name and his profile and log out link..suppose
Edit My profile | Admin | Log out wanna replace with “Welcome, registered user!”
but I’m not able to execute the php code to display the logged in user name into echo ‘php code’;
is there any solution?
Thanks
May 18, 2010 at 12:58 pm #88462In reply to: Using login_form from bbPress on a WordPress site
mr_pelle
Participantmikkelsen said:
I want to call up <?php login_form(); ?> from bbPress and show it in my WordPress header.
I thought bbPress were not yet loaded in his WP header…
Hardcoding is not a good choice IMHO, because it means you have to update many pages everytime you change your mind just on a single line of code. Not to mention that the code you suggested does not handle login errors…
I’ve successfully completed a “deep integration” and I’m currently testing another pretty integrated installation, without users db sharing and it works fine.
Why do you think bbPress and WordPress don’t play that nice together (reguardless of what the front page of this website says)? Wasn’t bbPress born for this (and more)?
May 18, 2010 at 11:03 am #88461In reply to: Using login_form from bbPress on a WordPress site
kevinjohngallagher
MemberI’m really confused, how can you be using bbpress and not have bb-load be called? bbPress doesn’t load if it’s not called :S
First:
If you’re building a wordpress website and want to include bbPress functions, I’d strongly suggest re-reading this:
Deep Integration, the allowing of wordpress functions to be called in bbPress, is totally unsupported and unintentional. If you can hack it to make it work then cool, but really, you’re on your own for the most part.
Calling bbpress functions in wordpress is always always always going to cause issues in the long run. it wasn’t built for it in any way shape or form. It’s a square peg in a round hole scenario, and if you can push something through then awesome, but sometimes it’s just not worth it.
Second of all, you could do this:
<br />
if(function_exists('bb_is_user_logged_in'))<br />
{</p>
<p>}<br />Third:
in WordPress:
<br />
<?php<br />
if ( is_user_logged_in() ) {<br />
// Logged in user<br />
// Hardcode your form here<br />
} else {<br />
// Not logged in<br />
// Hardcode your form here<br />
}<br />
?><br />in bbPress:
<br />
<?php<br />
if ( bb_is_user_logged_in() ) {<br />
// Logged in user<br />
// Hardcode your form here<br />
} else {<br />
// Not logged in<br />
// Hardcode your form here<br />
}<br />
?><br />Overall:
I suppose what I’m trying to put across to mr_pelle, pagal and mikkelsen is that you’re trying to come up with an eloquent/easy/catch-all solution that doesn’t really exist.
bbPress and WordPress don’t play that nice together (reguardless of what the front page of this website says). Integrated cookies (logged into one means you’re logged into the other) is really where the buck stops; and any deeper integration is really really unsupported.
You’re best bet, without a shadow of a doubt, is to hardcode things to look and act the way you want them; and treat wordpress and bbpress differently. The realism is if you can’t code, then bbPress is definately not for you – sadly. We can help and guide the best we can, and there are some great people helping on this board, but at the end of the day, we can’t give out generic answers that are sure to work I’m afraid (honestly we’d love to).
May 18, 2010 at 9:02 am #88460In reply to: Using login_form from bbPress on a WordPress site
mr_pelle
ParticipantThe simplest and most straight forward solution is to work out what you want to do, and code that directly.
In this case:
<?php
if ( is_user_logged_in() || bb_is_user_logged_in() ) {
// Logged in user
// Hardcode your form here
} else {
// Not logged in
// Hardcode your form here
}
?>You cannot call
bb_is_user_logged_in()without prior inclusion ofbb-load.php, though…May 18, 2010 at 7:35 am #88459In reply to: Using login_form from bbPress on a WordPress site
kevinjohngallagher
MemberWell thats the bit thats up to you, you can have anything you want in there, just add the HTML you need. For most people though you can just copy the HTML output of the form you currently have. For me, that’s this:
<form class=”login” method=”post” action=”/forums/bb-login.php”>
<label>Username: <input name=”user_login” type=”text” id=”user_login” size=”13″ maxlength=”40″ value=”” tabindex=”1″ />
</label>
<label>Password: <input name=”password” type=”password” id=”password” size=”13″ maxlength=”40″ tabindex=”2″ />
</label>
<input name=”re” type=”hidden” value=”” />
<input type=”hidden” name=”_wp_http_referer” value=”/forums/” /> <input type=”submit” name=”Submit” id=”submit” value=”Log in »” tabindex=”4″ />
<input name=”remember” type=”hidden” id=”remember” value=”1″ tabindex=”3″ checked />
</form>
May 18, 2010 at 2:52 am #34306Topic: I can't get Akismet working with BBpress
in forum Installationbluesteel1
MemberI have a WordPress blog integrated with BBpress.
and I”m having trouble Akismet.
I activated the Akismet plugin after I
installed BBpress then several days later I noticed no one was posting. I
thought this was strange because in those few days I had about 100 people
register.
I selected the check box next to “Create a page that shows spam
statistics” on the Akismet page. The page showed there was 26 post in the spam section.
I selected spam in the drop down box but the messages do not show up even
after I click on filter. I don’t know of any other way to get to the
messages to see if they are all spam.
I deactivated Askismet and a post showed up within 30 minutes. Any ideas? I would like to have a
spam filter.
May 17, 2010 at 8:55 pm #88458In reply to: Using login_form from bbPress on a WordPress site
pagal
Participant@ kevinjohngallagher … I’m not a techi person.. can you please tell me what code of bbpress will use in “Hardcode your form here” and”Hardcode your form here” to show the bbpress login form into wordpress…
May 17, 2010 at 8:18 pm #88457In reply to: Using login_form from bbPress on a WordPress site
kevinjohngallagher
MemberHey guys,
You’re really trying to do something here that was never intended.
bbPress was coded to create the same (or a readable) cookie from wordpress.
Deep Integration, the allowing of wordpress functions to be called in bbPress, is totally unsupported and unintentional. If you can hack it to make it work then cool, but really, you’re on your own for the most part.
Calling bbpress functions in wordpress is always always always going to cause issues in the long run. it wasn’t built for it in any way shape or form. It’s a square peg in a round hole scenario, and if you can push something through then awesome, but sometimes it’s just not worth it.
The simplest and most straight forward solution is to work out what you want to do, and code that directly.
In this case:
<?php
if ( is_user_logged_in() || bb_is_user_logged_in() ) {
// Logged in user
// Hardcode your form here
} else {
// Not logged in
// Hardcode your form here
}
?>
Remember, hardcoding is your friend, because YOU control it
May 17, 2010 at 7:59 pm #88456In reply to: Using login_form from bbPress on a WordPress site
pagal
Participant@ mr_pelle & Gautam … I’ve tried it.. but nothing happened… I’m also searching the same solution..but not found any answer yet.. can you people please solve this topic…
We really need it..
here is my topic…
https://bbpress.org/forums/topic/wordpress-registration-and-login-via-bbpress
Thanks,
pagal
May 17, 2010 at 6:45 pm #88010In reply to: Linking to WordPress
bluesquares
ParticipantThis PHP redirect worked beautifully for my exact same situation, thanks.
May 17, 2010 at 4:53 pm #88493In reply to: getting HTML validation errors…
chrishajer
ParticipantYou don’t need a plugin at all, since these are not posts with the links: they’re sponsored images in your template.
You need to find this:
target="_blank"And replace it with this:
onclick="window.open(this.href); return false;"in whatever file you added the target=”_blank” to. Sounds like it’s in your sidebar. You will need to manually edit that file. If it’s not a static file and is being generated by WordPress or something, then you would need a WordPress plugin to add the links with the javascript onclick instead of deprecated target=”_blank”.
May 17, 2010 at 1:27 pm #88455In reply to: Using login_form from bbPress on a WordPress site
mr_pelle
Participant@Gautam: yeah sorry, I suggested that because I’m testing with no users db sharing, so I’ve to use
bb_is_user_logged_in()instead of WP’s function.May 17, 2010 at 9:16 am #88454In reply to: Using login_form from bbPress on a WordPress site
Gautam Gupta
ParticipantYou can use
is_user_logged_in()WordPress function for that, like:<?php
if ( is_user_logged_in() ) {
// Logged in HTML here
} else {
// Login form HTML here
}
?>The solution suggested by Pelle would work, but would add a lot of load on your blog.
May 17, 2010 at 9:07 am #88453In reply to: Using login_form from bbPress on a WordPress site
mr_pelle
ParticipantBefore calling the bbPress function just add:
<?php require_once ABSPATH .'/forum/bb-load.php'; ?>May 16, 2010 at 11:20 pm #34291Topic: Using login_form from bbPress on a WordPress site
in forum Troubleshootingmikkelsen
MemberI’ve managed to integrate everything perfectly between my WordPress and bbPress site except this last part. I want to call up <?php login_form(); ?> from bbPress and show it in my WordPress header.
The reason I want to do this because I have a “Login” and “Register” button that changes to something different if the user is logged in. Like this;
Is this possible? Thanks for all help so far. The bbPress community has been very helpful so far
May 16, 2010 at 11:10 pm #88124In reply to: bbPress role-changes does not transfer over to WP
mikkelsen
MemberI had the same problem. After I had transfered all my bbPress users over to wp_users, I just logged back into the bbPress adminpanel, went to WordPress integration settings and just clicked saved again.
Then all the user roles was correct and updated when I refreshed the WordPress adminpanel.
May 16, 2010 at 8:42 pm #88474In reply to: Menu Items not visible
cloudadmin
MemberI am using bbPress 1.0.2 and WordPress 2.9.2.
I originally did hardcode the menu items however the dropdown menu did not seem to work when hardcoded so I went back to including the header.
I will give hardcoding another try.
Thanks,
David
May 16, 2010 at 8:34 pm #66195In reply to: WordPress + bbPress Integration 101
Rich Pedley
Memberwould be far better to start a new thread.
May 16, 2010 at 8:32 pm #66194In reply to: WordPress + bbPress Integration 101
rcplanes
Memberim wondering how to recover the admin password, i lost it and im stuck,
thanks guys, sorry for the off topic post, seems like you guys know how to get around bbpress
May 16, 2010 at 4:23 pm #88473In reply to: Menu Items not visible
kevinjohngallagher
MemberWhat version of bbPress are you using ?
What version of WordPress are you using?
Are you using “deep integration”?
That said, I’d hardcode them if I were you. Given that you know you’re going to be on your forum page, and therefore dont need to having anything dynamic or highlighted, you can just hardcode it to work.
Not an ideal solution, but its one that you can control completely

Good Luck
May 15, 2010 at 4:44 pm #88433In reply to: any news on bbPress plugin .. maybe for WP3?
chrishajer
ParticipantNot going to happen for WordPress 3.0. I wouldn’t plan on it any time soon.
May 15, 2010 at 3:06 pm #84913In reply to: bbPress as a WordPress Plugin – Thoughts
Marius-
MemberI want BBPress to be a standalone program. But I want it to be possible to include it as a page in WordPress.
May 15, 2010 at 1:18 pm #84912In reply to: bbPress as a WordPress Plugin – Thoughts
Anonymous User
InactiveI would love to see bbPress as a WordPress plugin.
May 15, 2010 at 2:34 am #88414In reply to: the rise of pay-only bbPress themes
Ryan Hellyer
ParticipantYou are totally incorrect.
There is nothing in the GPL license which prohibits you from selling GPL licensed themes.
WordPress.org even has a page dedicated to promoting the sale of various GPL themes … https://wordpress.org/extend/themes/commercial/
-
AuthorSearch Results