Search Results for 'bbpress'
-
AuthorSearch Results
-
May 18, 2010 at 12:58 pm #88462
In 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:03 am #87753In reply to: Whoa! (bbPress.org 2.0 is live)
ioloman
MemberFont size looks good on (IE/GC/FF), big avatars are absolutely nice and fit the forums, the new bbpress 2.0 rocks.
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 11:15 pm #34302Topic: bbPress bilingual
in forum Pluginslekhoi
MemberI am looking for some howto resources on implementing bilingual for bbPress, anyone with some experience in this or know some resources can you please point me to it. Much appreciated.
May 17, 2010 at 11:05 pm #76472In reply to: Language problems with with v.1.0.1
lekhoi
MemberHi Johnhiler
I am also interested in the bbpress bilingual, can you help?
Please PM me with your suggestions/proposal much appreciated.
May 17, 2010 at 10:32 pm #88452In reply to: bbPress 1.0.2 not finding my-templates
TrishaM
Participant@chrishajer – thanks for the tip on the folder names – even though the older version of bbPress did not have trouble with a space in the folder name, the latest version does – so I used an underscore in place of the space, and that fixed the problem for me…..many, many thanks again for your help!
May 17, 2010 at 9:33 pm #88451In reply to: bbPress 1.0.2 not finding my-templates
GW
Member@Rich Pedley, thanks for the tip. I had to move out the contained businesslike directory, delete my-template/businesslike. Then I replaced the contained businesslike and it worked.
Thanks @chrishajer for all your help. Much appreciated.
May 17, 2010 at 9:12 pm #88450In reply to: bbPress 1.0.2 not finding my-templates
Rich Pedley
Memberwell that’s easy then, move all the files from the subdirectory into the main one.
they should not be in my-template/businesslike/businesslike but in my-template/businesslike.
How to fix? you can move them them up a directory, then delete the contained businesslike directory.
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 7:38 pm #88449In reply to: bbPress 1.0.2 not finding my-templates
GW
MemberHere is another screen shot: http://guywingfield.com/wp-content/uploads/2010/05/Snap.png
Yes, I’m not sure why businesslike is inside the businesslike directory or how I would fix this. In the new shot, you can see style.css is present there.
May 17, 2010 at 7:11 pm #88448In reply to: bbPress 1.0.2 not finding my-templates
chrishajer
ParticipantThe last time I recall hearing about a permissions thing it was on a mac client as well. I remember the screenshot.
Why is there no style.css shown in the my-templates/businesslike/ directory?
Also, why is there a businesslike directory INSIDE the businesslike directory? Shouldn’t there just be one level under my-templates?
What is inside the directory my-templates/businesslike/businesslike/ ? Is that where your theme is? Is style.css present there?
Where did this header information come from:
https://bbpress.org/forums/topic/bbpress-102-not-finding-my-templates#post-68683
May 17, 2010 at 5:45 pm #88447In reply to: bbPress 1.0.2 not finding my-templates
cillianjoandidioninfo
MemberAlso, I have no idea how to view error logs. I’m using Cyberduck for my ftp if that helps
May 17, 2010 at 5:41 pm #88446In reply to: bbPress 1.0.2 not finding my-templates
cillianjoandidioninfo
Member@Gautam I tried renaming kakumei something else and the forum displayed an error message and would not load so I switched the name back.
@chrishajer Here is a pic of my ftp and permission for my-templates: http://guywingfield.com/wp-content/uploads/2010/05/Ftp-.png
Also, there are no spaces in the folder names.
May 17, 2010 at 5:33 pm #88445In reply to: bbPress 1.0.2 not finding my-templates
Gautam Gupta
ParticipantTry renaming kakumei folder and see if bbPress still displays that or not.
May 17, 2010 at 5:15 pm #88494In reply to: getting HTML validation errors…
mzimmers
MemberAh, OK, I get it. I didn’t realize that the window.open stuff was a javascript method (I told you I’m a novice!). Thanks for the clarification.
I think I also found another way to get the target=”_blank” code to validate (sort of): I noticed that my main site (www.scopedin.com) doesn’t return errors on that same sidebar code. I think it’s because the DOCTYPE at the top of the page is 1.0 transitional. I suppose I could use this in my bbpress header as well?
Thanks again for the help.
May 17, 2010 at 4:59 pm #88444In reply to: bbPress 1.0.2 not finding my-templates
chrishajer
ParticipantDo any of the folder names have spaces in them? The Internet hates spaces.
May 17, 2010 at 4:49 pm #88443In reply to: bbPress 1.0.2 not finding my-templates
chrishajer
ParticipantThis was the discussion of mod_security changes by Hostgator causing (admittedly different) problems:
https://bbpress.org/forums/topic/suddenly-getting-error-when-posting-videos
May 17, 2010 at 4:47 pm #88442In reply to: bbPress 1.0.2 not finding my-templates
chrishajer
ParticipantI think either or both you you (cillian and TrishaM) need to find someone you trust who may be local who knows what they are looking at. It’s difficult to troubleshoot without being able to look at things first hand.
Can you post a screenshot of an FTP listing of the files and directories, showing permission and ownership?
Also, do you have access to error logs? It’s possible some sort of PHP function is turned off that is required for accessing these files.
FWIW, I use 1and1 as well and have no problem on several servers.
May 17, 2010 at 4:37 pm #88441In reply to: bbPress 1.0.2 not finding my-templates
gerikg
MemberI have 1and1, I use dreamweaver and it doesn’t change permission smoothly. SOmetimes I need it change it through admin.1and1.com
May 17, 2010 at 4:24 pm #88092iq9
MemberI heard back from Network Solutions about this issue. Their response was basically:
Our SSL proxy doesn’t allow server-side variables to detect HTTPS (secure). All server-side coding will always detect HTTP (non-secure), and for programs that attempt to redirect non-secure connections (http://) to a secure connection (https://) will result in an infinite loop and server error after 30 seconds (newer technology browsers such as Firefox will detect this loop almost immediately and give up before 30 seconds). We cannot change this setting on our servers.
There is a 2nd paragraph with their recommended workaround, which is similar to my approach above of looking for ‘https:’ in the scheme of the URL.
I’m going to see if the bbPress developers would include the above code in their core. Seems like a worthwhile addition, or maybe they are aware of this and intentionally do not include it for various reasons.
-
AuthorSearch Results