Search Results for '"wordpress'
-
AuthorSearch Results
-
May 17, 2010 at 4:53 pm #88493
In 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/
May 14, 2010 at 10:47 pm #34288Topic: [After the Deadline] error: require_once(includes/admin.php)
in forum Pluginsgerikg
MemberThe error
Warning: require_once(includes/admin.php) [function.require-once]: failed to open stream: Not a directory in /homepages/0/d188981313/htdocs/.org/wordpress/forum/my-plugins/after-the-deadline/after-the-deadline.php on line 68
Fatal error: require_once() [function.require]: Failed opening required 'includes/admin.php' (include_path='.:/usr/lib/php5') in /homepages/0/d188981313/htdocs/.org/wordpress/forum/my-plugins/after-the-deadline/after-the-deadline.php on line 68I know I don’t have an “includes” folder
/**
* Require Admin/Public/AJAX File
*/
if ( defined( 'DOING_AJAX' ) && DOING_AJAX == true && in_array( 'ignorealways', (array) $atd_plugopts['enableuser'] ) ) /* Load Ignore Phrase file as we are doing AJAX */
require_once( 'includes/ajax-ignore.php' );
elseif ( bb_is_admin() ) /* Load admin.php file if it is the admin area */
require_once( 'includes/admin.php' );
else /* Else load public.php file as it is the public area */
require_once( 'includes/public.php' );May 14, 2010 at 3:23 pm #82753kevinjohngallagher
MemberI think in the long run, that rather than porting bbPress to a WordPress plugin as a “straight port”, there will be a halfway house of using WP3.0’s custom post types and taxonomies. I’m guessing at this, but haven seen some attempts at this on the beta already, it seems to make alot of sense.
EDIT: found justin tadock’s example @ http://justintadlock.com/blog/wp-content/uploads/2010/04/forum-post-type.png
(sorry for the number of spelling mistakes, i simply can’t read these hideously small text they’ve forced on us by using font-size in pxels)
May 14, 2010 at 3:00 pm #88407In reply to: Plugin release – elf Akismet
_ck_
ParticipantYour code is very decent so keep writing

You have the status right.
WordPress finally has an admin menu generator? Good to hear.
Sadly I’ve lost touch with the WP codebase since 2.5 or so, I was getting really turned off by the bloat.
May 14, 2010 at 2:55 pm #82752_ck_
ParticipantThe problem is every website has different needs.
Some have only 10 visitors a day but the site operator wants every feature including the kitchen sink. They don’t care if it takes several seconds for their page to render as long a they have every fancy feature available and they can just use wp-super-cache to deal with the load.
But other sites have thousands of visitors a day and when a page takes too much cpu time or mysql time to render, then you multiply that by hundreds of simultaneous connections. Then you fail and your host kicks you off or you have to buy a bigger server.
WordPress started lean and mean, 1.5 was good, 2.0-2.1 was a great product. Then they started throwing in the kitchen sink. Then with every next release started breaking compatibility with every release, changing cookies, changing admin structure. 3.0 is a scary creature indeed.
There is no doubt in my mind that a bbPress plugin under WordPress is going to require 1 megabyte of code executing per instance with plugins in a realistic environment. The site operator with 10 visitors per day won’t care because they have every feature the could want in one package. The operator with an active, growing user based is going to have to constantly upgrade their server to handle the problem.
Active forums don’t deal well with caching, unlike blogs.
Blogs are write once, read many times.
Forums are write many times, read many times.
Different environment, different needs.
But performance should always be designed into software.
May 14, 2010 at 2:54 pm #88406In reply to: Plugin release – elf Akismet
Rich Pedley
Member[edit: thanks for the feedback
]Yeah, the option settings is a pain, they finally added that into WordPress, so I’m hoping it’ll be added into bbPress as well at some point. I copied the form from akismet, thought that way I’d get it right first time

And yes I did use that, nice starting point – hadn’t realised what was being passed to the trusted (must have missed that part). So yeah that’s trivial enough to add in.
One reason I didn’t add in the trusted was that I totally missed it after intending to put it in! This was due to my not being able to add a user profile field in the form of a select. So I’ll re visit that and see if I can utilise radio buttons instead.
Wasn’t sure what post_status were… so is it:
0 for standard posts, 1 for deleted and 2 for spam ?
I’ll work on it …
I’ve released a few WordPress plugins (and have loads of small unreleased ones), I’m not saying I’m good, but have experience. Plus it is why I have moved back to bbPress after years of using other forums, I should be able to code plugins for it!
May 14, 2010 at 1:03 pm #87418In reply to: Add form field to exisiting admin page
Rich Pedley
MemberLooking back at WordPress it look like it may not have been added into bbPress as yet. Ahh well one page for one setting is bit OTT but looks like I’ll have to stay with that for now.
May 14, 2010 at 9:15 am #82750_ck_
Participantpaulhawke, there is nothing “clean” about wordpress design. The code may have been cleaned up over time, but the result after 5+ years is there is a ton of code.
But the critical part is it loads EVERYTHING, regardless of the task at hand, all functions, all options, all plugins. Only the admin area is excluded from the load. But even the admin functions in plugins are loaded because there is no api structure to load those portions only in admin. (I’ve attempted to address that last problem in some of my later plugins for bbPress).
Loading a bbPress page as a plugin for WordPress will require the same process, EVERYTHING has to load, but now it will be worse.
This is why caching is critical with WordPress or it gets slaughtered when there are many requests. As soon as bbPress 1.0 was retooled to use backpress, it inherited the same problems as WordPress.
bbPress as a plugin will have the same problems as with backpress, but now even more so as all the wordpress plugins are loaded. It’s deep integration regardless if the user wants it or not. You will not be able to use bbPress functions without all of WordPress loaded because it will be substituting for backpress.
It’s forced deep integration, easiest way to explain it, and that’s a very bad idea.
May 14, 2010 at 3:31 am #88316In reply to: Plugin Request: bbP Export
paulhawke
MemberI’m running into an issue writing the “import” side of things – my first thought is to create a plugin that mimics what is in WordPress. I found myself creating the infrastructure that is already present in the main body of WP.
Writing both import and export tool really would be a lot simpler when bbPress is a WordPress plugin. Why make it like the WP one, when we can utilize the real one?
May 14, 2010 at 3:06 am #82749paulhawke
MemberComing at this as a software engineering problem I cant see why a both/and rather than either/or situation shouldn’t prevail. Let me explain, as it’s not particularly outside the box for it to happen.
I write a lot of automated tests for the code I produce day-to-day and that means I need to isolate the most important pieces of business logic from how they are invoked. For instance, a given request comes into the a webservice telling it to create a user for the system. I would separate the code that handles the webservice part (pulling parameter data from the incoming HTTP request, etc) from the code that then creates the user. I would isolate the steps, wrap automated unit tests around each, and be done.
Applying the same thing to bbPress, there is some core code that handles the management of forums containing topics, that contain posts by users. This code is packaged into a clean unit of deployment – the WordPress plugin – and there is absolutely no reason why the code shouldn’t also have a second wrapper that allows for its deployment stand-alone from the main body of a WordPress installation.
Just as I might have a webservice making calls to a body of well-tested code in my day-job, I dont see why a cleanly written WordPress plugin shouldn’t make calls into the tested bbPress core code. The body of WordPress code provides additional services that another wrapper could also provide – the core of bbPress should be unaware of the actual physical storage mechanisms being employed, or how it’s being invoked (assuming its written correctly).
At the end of the day the conversion to a WordPress plugin should bring health to the codebase – a level of focus on what is most important (managing structured conversations in a forum/topic format), and an abstraction from what is not important (that is, the underlying physical storage, web-hosting, etc).
May 13, 2010 at 3:25 pm #88344In reply to: wpmu integration old users cant post
bonechair
ParticipantI tried renaming the user to lowercase but no luck. These users were imported into wordpress from another system. So they are just in wp_users. So I figured I had to ad into wp_signups but that didnt work.
May 13, 2010 at 3:09 pm #88285In reply to: How to fix links after increasing "Items per page"
_ck_
ParticipantThis could be handled with javascript and (unfortunately) a page reload.
PHP cannot see the hash because it’s not sent by the browser to the server.
But javascript can see it.
When the page loads, javascript could look at the hash and then see if an object with that id exists on the page. If not, it could do a proper request from the server via a plugin.
per your example:
http://www.domain.org/forum/topic.php?id=5579&page=8#post-56412
pseudo code:
if (window.location.hash
&& window.location.hash.substring(0,5)=="post-"
&& !document.getElementById(window.location.hash)) {
document.location="?post="+window.location.hash;
}Then on the server side a plugin would look for the post request and return the proper new url.
A little bit messy but would allow backwards compatibility if there are links out there which cannot be fixed, especially on other sites.
WordPress has the same problem with post and comment pagination as the pages constantly move. It’s a poor design.
-
AuthorSearch Results