Search Results for 'bbpress'
-
AuthorSearch Results
-
March 20, 2009 at 10:27 pm #70908
In reply to: ColumbusUnderground.com
_ck_
ParticipantVery nice conversion and I am very partial to the blue vs default green of bbPress.
March 20, 2009 at 10:23 pm #72527In reply to: Overwriting Template functions
kevinjohngallagher
MemberHI _ck_,
thanks for this. I’m not trying to stop something being called with an add_action, but i’m sorry if i didn’t phrase it well enough. What I have found is that i cannot either get an added filter nor an action to add to certain functions in BBpress. Thats the issue i’ve hit.
Nor am i wanting dynamic theme’s, as your wonderful plugin covers that.
My plugin does this:
ON activation checks for wordpress integration.
If wordpress integrated copies the header file form the wordpress template to a directory.
Inserts BBcode Hooks into the new file.
Now that bit works well and dandy; but what i want in this instance is to overwrite the function BB_GET_HEADER as it’s hardcoded in the template_functions.php file.
So here is my question, how can i/we overwrite the BB_GET_HEADER function ?
1) can we overwrite functions in the template-functions.php file?
2) how?
3) is there an example of this anywhere?
I ask not to be pedantic, but because i think you answered my post based on what you think i’m trying to do with my plugin rather than the issue at hand – namely that i can over write some functions and not others.
You are pretty much the authority on this, so i really appreciate any help insight you might have on how to overwrite the BB_GET_HEADER function. thank you!
March 20, 2009 at 10:08 pm #72586In reply to: Logged into one – logged into all.
kevinjohngallagher
MemberI hardly think that it is fair to imply that I don’t ‘care for BBpress (sic) development’
I didn’t say that nor suggest it, i said that “Name calling, on an anonymous internet forum, is hardly the way to get help, and i think that’s a true statement. If you call people “dick” and “bitch”; you are less likely to get help. I don’t think that is a false statement, and if you’re taking more from it than i had intended then i think you’re just trying to look for a fight rather than apologising for calling me a “dick” for trying to help you.
After all, i did try and help.
English is not my first language (nor my second – so my tone may be very off), but i wasn’t being intentionally rude or argumentative. I think it’s fair to say that people who have English as a non-primary language sometimes write sentences in a way that people some people find harsh or blunt – especially on internet forums where tone and intination do not come across. If that’s not something that you or anyone else who reads this agrees with then i’m sorry, it’s my experience that some cultures say things in a different way to others.
As for the unasked for advice, it was asked for. You asked what your next step should be, and in my honest opinion it should be to test everything on a development enviroment. You may think it “self righteous” of me to say so, but there have been many examples of people on these forums who upload and install on a live environment first (there are 3 on the first page of this forum btw), so i was being honest and offering you and answer to the question YOU ASKED. I didn’t get bored and decide to write you an email, you asked for help and i took time to answer. If you think that was unasked for, then i apologise.
You know man it’s like this, folks like me try our best. We try and asnwer in the best way possible in a language thats not our own, and if you go around picking out phrases out of context and saying things like we “tried to imply” – you’re reading way too much into simple sentances. If i wnted to say something i would, i wouldn’t hide behind an implication or worse, hide behind an attempted implication of something i really wanted to say. It’s hard to post here in English and we do our best. We dont expect to be called a “dick” or suggesting that we’re a “bitch” for doing so. And if you think that’s acceptable behavior to someone who was trying to help, then thats your own thing man, frankly i think it’s a little uncool – but if you think swearing at someone who is trying his best to help you is cool then there’s nothing i can add to that. Namecalling never got anyone anywhere, and i’d be surprised it if got you help on this forum either.
Good luck in your endeavours.
March 20, 2009 at 9:57 pm #72357In reply to: Bulgarian translation
wiseacre
MemberI have a general question. How updated language files can be uploaded to
http://svn.automattic.com/bbpress-i18n/
?
March 20, 2009 at 9:54 pm #72588In reply to: Multiple Templates Simultaniously!
_ck_
ParticipantMy theme switcher plugin is capable of doing this quite easily, it already allows each visitor to select the theme they want.
All you would need to do is change the cookie support code into session support code so the server controls which theme is seen instead of the visitor.
Should take all of an hour to convert for someone who understands cookies and sessions.
Actually if the domain is fixed you can just use
$_SERVER['HTTP_HOST']
or$_SERVER['SERVER_NAME']
to determine the theme to use which makes it even easier.March 20, 2009 at 9:51 pm #72526In reply to: Overwriting Template functions
_ck_
ParticipantYou need a basic understanding of filters vs actions in WordPress before you can get this done.
You can’t replace anything via add_action(‘post_form’… because it’s an action and not a filter. Calling it as a filter doesn’t change the fact that the hook itself is an action.
Filters give you the opportunity to change the data passed.
Actions are just points in the processes that you can inject activity into, but you can’t change what was before or what is coming after. No data is passed to you, no data is taken from your activity.
You cannot change forms this way on the fly, it’s impossible (unless maybe via javascript).
If you want dynamic themes, start with my theme switcher plugin and find some way to keep track of what theme is used without cookies (maybe sessions instead).
March 20, 2009 at 9:20 pm #72585In reply to: Logged into one – logged into all.
pierrottorreip
Memberkevinjohngallagher,
I run six installations of bbPress – so I hardly think that it is fair to imply that I don’t ‘care for BBpress (sic) development’ or that I was trying to ‘bump’ my website views. I honestly couldn’t care less about the one or two views I might get from this forum. Furthermore, it is an annoyance to have Google bring up this post – so if anything I am generally inclined not to include the link – except that a) I thought it might be helpful to see the set up and b) as I said, people usually bitch when I don’t include a link.
I do think you need to learn how to show a little restraint though. On top of going too far in your first post you go on to imply that I am trying to bump my views, have bad forum decorum, don’t care about bbPress, read English insensitively and perhaps most incorrectly, say things on this forum that I wouldn’t say in person.
I thanked you for the step by step – for which I am sincerely grateful. Unfortunately, it came with a condition – a little unasked for advice and a little self righteousness.
I don’t want to fight with you though. You think I was in the wrong + I think you were in the wrong = nothing gets solved.
Thanks again for the help, I’ll try it out soon.
March 20, 2009 at 8:50 pm #72584In reply to: Logged into one – logged into all.
kevinjohngallagher
MemberWow,
PierrottorreiP, i was only trying to help, i think you could drop the attitude man. Rest assured, i’ll not try to help again.
My first point, about using a development environment, is a sound technical point. The point of doing things locally is to plan/develop/test until it’s right then push live. If as you said you “I did put the site together locally and realized that I wanted them to talk to each other after I made it live.” that just shows poor planning, and it’s not my fault for not realising that you had decided to make things on your live server different from your testing environment.
That said, your site currently has 1 user, you, so taking down the forums until you fix it locally isn’t going to be a disaster.
As for my suggesting you only include a link when needed, again, it wasn’t to persecute or “bitch”, but was honest advice. If you have something you want us to look at please include a link by all means, but make it a link to your forums and or the page you’re having an issue with. ‘bumping’ your website via views from a BBpress support forum aren’t going to help (of the top 10 google links form your website name are from this website – and many people have tried to bump their site this way before which is why i mentioned it).
You also have to accept that English isn’t everyone’s first language, and while not bad at it myself, taking offence because of the way something is worded – especially in a post that gave you step by step instructions on how to fix your issue – is frankly very bad form.
Name calling, on an anonymous internet forum, is hardly the way to get help from those of us who care for BBpress’ development.
March 20, 2009 at 5:49 pm #72577In reply to: What’s the state of WordPress theme integration?
kevinjohngallagher
MemberRather than using the crazy structure of BBpress’s header.php file – actually while i’m on that can i ask why BBpress DID NOT use the same div nesting as WP so that integration was simple? madness – if you use this one, your BBpress forum should automatically look 90% like it’s in your WordPress page if you use the default theme, default K2 or sandbox.
You will have to tweak bits of course, this isn’t fool proof, but in terms of the basics, it makes life alot easier.
I mentioned these changes back in October, so i’m used to the copying and pasting of them now as it doesn’t look like making thing easy for the end user is part of the goal here; hence the plugin. I too hope we get an answer on the bug soon
March 20, 2009 at 5:45 pm #72576In reply to: What’s the state of WordPress theme integration?
kevinjohngallagher
MemberHi Vernal,
In terms of integration in a software sense, you have to answer yourself this:
1) Do they need to look the same?
2) Do I need shared login ?
3) Do i need shared wordpress functions (menu, sidebar, otehr cool wordpress stuff) ?
If you answered yes to 1) and no to 2) and 3) you only need to make your style sheets and HTML look similar and dont need any integration.
If you answered yes to 1) and 2) and no to 3) then you should be able to use the latest alpha and latest wordpress and all should be fine. Personally, i’d not ouch with with a bargepole and i’d use BBpress 0.9 and WP 2.7.1 with _ck_’s Freshly Baked Cookies plugin (link coming up in a bit).
If you answered yes to 1) 2) and 3) then you need to use Ann’s plugin (again link coming up).
In terms of fixing your BBpress to integrate into your wordpress theme easily, that one is simple. Replace the code in your header.php file with this:
<body id="<?php bb_location(); ?>">
<div id="page">
<div id="wrapper">
<div id="header">
<div id="headerimg">
<h1 id="blog-title"><!-- PUT YOUR WP LINK HERE --></h1>
<div id="blog-description">
<div class="description">
<!-- PUT YOUR WP DESCRIPTION HERE -->
</div> <!-- #description -->
</div> <!-- #blog-description -->
</div> <!-- #headerimg -->
<!--
K2 USERS
THIS IS WHERE YOU PUT YOUR MENU CODE
-->
</div>
<div id="access">
<div class="skip-link"><a href="#content" title="Skip to content">Skip to content</a></div>
<div id="menu">
<!--
SANDBOX USERS:
THIS IS WHERE YOU PUT YOUR MENU CODE
-->
</div>
</div><!-- #access -->
<div id="container">
<div id="primary">
<div id="current-content">
<div id="content">
<div id="post">
<div id="main">
<h1><a>"><?php bb_option('name'); ?></a></h1>
<?php if ( bb_get_option('description') ) : ?><p class="description"><?php bb_option('description'); ?>
<?php endif; ?>
<?php login_form(); ?>
<?php if ( is_bb_profile() ) profile_menu(); ?>March 20, 2009 at 3:52 pm #72565In reply to: How to get the link to the second post?
Ipstenu (Mika Epstein)
ModeratorbbPress isn’t, by nature, designed for that. You’re kind of looking for blog functionality in a forum. Looking at the related functions, I see there’s a way to get first and last, but the posts aren’t sequential. Or rather, they are but they aren’t directly consecutive so you can’t just get the first post and add 1. There’s nothing built in, or easily hackable for that.
March 20, 2009 at 3:41 pm #72557In reply to: Install help
DTI
MemberChrishajer, thank you for your detailed help.
Before I installed the bbpress, I have created a database as below:
1, mysql> create database MyForum_database;
2, mysql> show database; it is displayed.
3, to create a dbconnect.php file to test it,
<?php
$con = mysql_connect(“localhost:3306″,”myname”,”mypassword”);
if (!$con)
{ die(‘Could not connect: “.mysql_error());}
else
echo “Successful connect.”
mysql_select_db(“MyForum_database”, $con);
?>
4, to run this dbconnect.php file in the
http://localhost/mrm/bbforum/dbcon.php //mrm is root of my website
To get the “Successful connect.”
This means my website host is “localhost” and the database is on the same server as the web site, then this probably should remain localhost in Database Host.
5, my web site host is ‘localhost’ in my Apache setting in my server.(We have static IP address)
6, please see my setting in bbpress installation:
Database name: MyForum_database
Database user: myname
Database password: mypassword
Database host: localhost
Database character set: utf8
Database character collation: forum
bbPress cookie secret key: skyisblue
Table name prefix: f_
Where is I wrong? My MyForum_database has been connected, why bbPress installation can’t connect it.
My database and website are on same server, same host.
So I wander why…
Please help again.
March 20, 2009 at 1:04 pm #72575In reply to: What’s the state of WordPress theme integration?
Postmatic
MemberHey kevin,
Thanks a lot for your great info. I hope that someone in the know picks up your request.
In the meantime, is there anything you could point me to that will at least get me started in allowing some WordPress template tags to function from within bbpress? I’m using a shared database, 2.7.1, and the latest bb alpha.
Does that still work?
And of course, I ‘d love to hear more about your plugin if things get fixed up on it.
Best,
Jason
March 20, 2009 at 9:26 am #72587In reply to: Multiple Templates Simultaniously!
kevinjohngallagher
MemberHi GGwarpig,
It is possible with my “themer” plugin, which has an option to dynamically load a different header/footer file or just a different stylesheet depending on the domain you’re looking at. While this doesn’t load in an entirely different theme, it incorporates most of the changes you’re looking for.
Sadly it can’t be released until we get an answer to this (what appears to be) bug in the core: https://bbpress.org/forums/topic/overwriting-template-functions
March 20, 2009 at 8:53 am #72574In reply to: What’s the state of WordPress theme integration?
kevinjohngallagher
MemberHi Chris,
I’ve actually made a plugin that makes theme integration between BBpress and WordPress an absolute breeze (one click!), but it used to require one of my customized baseline theme’s.
Last week I converted it to work with any standard BBpress installation but alas hit some bugs in the BBpress core. I have posted about them, but have had no reply yet. You can find the post here: https://bbpress.org/forums/topic/overwriting-template-functions
Basically all of my original customized themes have a far more usable div nesting in the header and footer, so that it matched 3 of the most common wordpress theme’s (standard, sandboz, K2); thus anyone loading up an integrated BBpress would see their own website styling/menus etc. While not 100% accurate, it saved me a great deal of time when customising.
But then last week i converted this into a much better plugin. It reads the directory of the wordpress theme you are using and automatically outputs the WordPress theme’s header and footer files with the necessary BBpress code injected. It effectively encapsulates your BBpress forum inside wordpress pages for seemlesss moving around (basically like simpleforums).
But the whole thing’s on pause until we can get answer to https://bbpress.org/forums/topic/overwriting-template-functions . On a side note, as someone who is attempting to build plugins for BBpress, getting answers to questions like these to help development is really difficult, and the standard answer of “read other plugins that’s how i learnt” really doesn’t help when you come up against something new. Maybe we should have a plugin developer section (as the current plugin section has become a request section)?
March 20, 2009 at 7:43 am #5036Topic: Multiple Templates Simultaniously!
in forum Installationggwarpig
ParticipantI need to have two domains pointing at the same bbPress setup each with a different template.
Should I setup two installations and point them both at the same database. Can you even do that?
Any ideas?
March 20, 2009 at 6:15 am #5035Topic: Logged into one – logged into all.
in forum Troubleshootingpierrottorreip
MemberHi All,
Here’s my situation…
I have installed 3 instances of bbPress on one WordPress blog. I want to keep them separate in case I need to scrap one – but I’d like to make them so if someone creates an account on one they are logged into all.
I currently have them sharing cookies but not a database.
What should my next step be?
Thanks
March 20, 2009 at 3:44 am #71927In reply to: Instant Password
pierrottorreip
Member_ck_,
I might be missing something here –
I just installed bbPress (0.9.0.4) on a different site and still get the same message with instant password. I don’t have bbPress and WordPress integrated.
What could I be doing wrong?
Here’s the link – just started building it live yesterday so not much action yet…
March 19, 2009 at 10:14 pm #72573In reply to: What’s the state of WordPress theme integration?
chrishajer
ParticipantThere is no simple theme integration solution that I am aware of. Because bbPress is in a state of flux, many people are saving their energy for developing for it once 1.0 stable comes out.
March 19, 2009 at 10:12 pm #72556In reply to: Install help
chrishajer
Participant> 1, Do I create database first before running install.php?
> Both I try ( no database to install and after create database
> to install), it doesn’t work.
You need to create a database first, then supply that database name to the installer. In addition, you will need a database user, password and maybe host name.
> 2, I can’t find the path where is I created database save in, so
> I entered localhost in the Database Host. I really don’t understand
> what is the database host and search it in internet, is it belong
> to company? I use Mysql 5.0.45 . and bbpress-0.9.0.4 . How can find
> the path about my database in Linux.
This information comes from the company that hosts your website. If they allow you to set up a database, somewhere on that page or near that page will show the database name, user name, password and maybe host.
> 3, I don’t choose the Show Advanced Settings (default), it is still stuck step 1.
You probably need to do this, but first you need to get the host name from your website host.
> It is always (There was a problem connection to the database you specified.
> Please check the settings, then try again.)
I am going to guess this is because you have not entered all the proper information, or you entered incorrect information. Your host may have to help you with some of these details.
> Is it terrible to install it?
No, not once you have all the correct details. If you can’t tell bbPress how to connect to your database, you’re going to be stuck right there until you get some help.
March 19, 2009 at 8:40 pm #5034Topic: What’s the state of WordPress theme integration?
in forum ThemesPostmatic
MemberI’m using WordPress 2.7.1 and just installed the latest alpha of bbpress. Looking around I see lots of very old chatter about Themepress being the best solution for sharing a theme between the two products.. but it doesn’t seem to be available/work anymore.
So what’s the latest? I’m going to make the assumption that someone picked up on themepress’s work and has come up with a solution to integrate WordPress and Bbpress themes. What’s the latest and greatest?
Best,
Jason
March 19, 2009 at 6:20 pm #72555In reply to: Install help
DTI
MemberThanks, Chrishajer.
More question:
1, Do I create database first before running install.php? Both I try ( no database to install and after create database to install), it doesn’t work.
2, I can’t find the path where is I created database save in, so I entered localhost in the Database Host. I really don’t understand what is the database host and search it in internet, is it belong to company? I use Mysql 5.0.45 . and bbpress-0.9.0.4 . How can find the path about my database in Linux.
3, I don’t choose the Show Advanced Settings (default), it is still stuck step 1.
It is always (There was a problem connection to the database you specified. Please check the settings, then try again.)
Is it terrible to install it?
March 19, 2009 at 3:49 pm #72552In reply to: how to configure bbPress to send registration email?
chrishajer
ParticipantMarch 19, 2009 at 3:47 pm #5032Topic: Install help
in forum InstallationDTI
MemberI take some days to install the bbpress forum software and still can’t pass step 1.
I have checked many topics at “install”, “installation” and “config.php” etc. in FORUMS and try it.
After read these topics, I was confused.
1. If I only need forum and don’t need blog. Do I need install WordPress?
2. Do I need to fill the Show Advanced Setting in step 1? I checked the bb-config-sample.php file, it prompt “If you are installing for the first time, leave them here.”
March 19, 2009 at 3:12 pm #72551In reply to: how to configure bbPress to send registration email?
dvdvideosoft
MemberWP and bbPress are not integrated.
Registration is not required on my WP blog, so it does not send any emails at all.
We used to use some Perl classes with previous versions of bbPress engine to send emails, but after upgrading, we did not managed to configure them. So I want to see if there are any other ways to send emails.
-
AuthorSearch Results