|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
bbPress theme project: Functionality
Welcome to the "Adding plugin-like functionality" phase of the official SitePoint bbPress theme development project. For this stage of the development, we need to make some decisions about what sort of functionality we would like in the theme. The existing themes available for bbPress tend to be super-skinny and not have many features standard in other forum softwares. We can also potentially include functionality which is more commonly seen in plugins.
If you have any opinions on what sort of functionality should be added and the best way to go about adding it, then please post your comments below. Feel free to list out all of the features you think should be added to the new theme. Once we have compiled opinions from everyone and determined whether the various options suggested are possible then we can plow straight into the development of the new functionality. I have crudely added some functionality into the demo site to demonstrate the sorts of changes which can be added directly to the theme. Most of the code used was simply copy and pasted from existing bbPress plugins and could probably be done a lot better, this was purely for demonstration purposes. Some of the extra functionality currently added to our demo site are:
SitePoint member rhysboy84 has also created a series of bbPress plugins which could potentially be included within the new theme. Quote:
|
|
|
|
|
|
|
#2 |
|
SitePoint Addict
![]() ![]() ![]() Join Date: May 2007
Location: Colwyn Bay, North Wales, UK
Posts: 370
|
Seems like a great list. Furthermore a lot of it is kinda half there with plugins already (I know that a lot of plugins that mimic that functionality are compatible with 0.9, rather than 1.0). I will suggest this:-
Anyway those are just my thoughts on what should be included, as well as pitfalls. I'm assuming we're using prewritten plugins & implementing them directly into the theme (with attribution)? Looking forward to hear everybody elses thoughts. |
|
|
|
|
|
#3 | ||||
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Quote:
http://bbpress.org/plugins/topic/mini-stats/ What if the forum stats were displayed on a separate page instead of on the forum index? This would reduce the server load issue so that it only applied to a single page. Quote:
Quote:
Quote:
If that is the best approach, then yep, otherwise they could be rewritten. Some parts of the plugins would need to be modified to work with the theme, I'm particularly thinking of bbCode buttons for that.[/quote] |
||||
|
|
|
|
|
#4 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
The things which I'd like to see included are:
Forum signatures are very important IMO. That sort of functionality is fundamental to the way a forum theme is designed. If it needs to be added via a plugin, then that plugin would need to be able to add the forum in the exact place that it is required in the theme and be able to be styled and theme directly from the theme, ie: you would need to be able to control the markup for the signatures from the theme. I can't see how you could do that with a plugin, or at least not without making a plugin to accompany your theme. I find the lack of BB Code support in bbPress bizarre. The BB Code needs to be controllable via the theme. Like the forum signature issue, I can't see it being very convenient to add this sort of functionality via a plugin. Likewise for smilies. The code necessary to add these features is fairly straightforward, literally just a matter of copy and paste from existing plugins. Quick quote functionality should also be added IMO, ie: a javascripted system so that when you click the quote button on a post it automatically adds the quoted text/BB code to the quick reply box on the page. Images in posts is definitely plugin functionality, but the code required to get it working in a theme is negligible anyway so I think that should be added (I've already got that working perfectly on the demo site). I'm not sure that adding a captcha or other anti-bot tools is necessary or a good idea. That is the sort of thing which users will want to individualise anyway and there are multiple ways of doing it. Report post button's are quite specific and could easily be added via a plugin anyway. "Resolved/unresolved/non-support button" seems quite specific too. I wouldn't have a use for that on any forums I use. I like the idea of adding some basic forum stats. That's not even really 'plugin-like' functionality IMO. It just happens to be that it is usually done with a plugin. It's something to output directly to the front end, so adding it to a theme seems entirely sensible to me. rhysboy84 mentioned that it may add overheard to the pages though. The styling for polls needs to be coded into the theme, otherwise you have no way to modify the markup for it without hacking whatever plugin you are using. So perhaps that should be included too? Anyone else with opinions on these issues? |
|
|
|
|
|
#5 | |||||
|
SitePoint Addict
![]() ![]() ![]() Join Date: May 2007
Location: Colwyn Bay, North Wales, UK
Posts: 370
|
Quote:
Quote:
Quote:
Quote:
. I don't think Ministats has that big an overhead. So yeah, stick that in.Quote:
I think the list you put is ideal, with possibly adding Image Resizer if I may to the Images in Posts (so that any that are too big are automatically resized). If there are no further objections, thoughts, I think we should start with those and then see if we need anything else. |
|||||
|
|
|
|
|
#6 |
|
32,817
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2001
Location: Toronto, Canada
Posts: 10,496
|
Guys, given that b5 pushed bbpress from it's past level of "the suck" to its current level of "quite useful", it might be helpful to leverage some of the plugins b5's been releasing, modifying, etc...
|
|
|
|
|
|
#7 | |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Quote:
You can see it in use here ... http://bbtheme.net/topic/another-test-topic The demo site hasn't been updated to the latest 1.0 release yet, but I'm assuming it will work fine in that too. |
|
|
|
|
|
|
#8 | ||
|
SitePoint Addict
![]() ![]() ![]() Join Date: May 2007
Location: Colwyn Bay, North Wales, UK
Posts: 370
|
Quote:
Quote:
![]() |
||
|
|
|
|
|
#9 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
|
|
|
|
|
|
#10 |
|
SitePoint Zealot
![]() ![]() Join Date: Dec 2007
Location: Pakistan
Posts: 177
|
i also want to get involved in this project but how ?
i myself good in php and wordpress. have done projects like wordpress themes and used wordpress as a CMS. here it is sample of my work http://whizbangsolutions.com/ourwork/avudu/ |
|
|
|
|
|
#11 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Thanks for offering to help
![]() Once we've sorted out what sort of functionality we require then it would be great if you could volunteer to implement any of the functionality. We don't have a clear plan set out for how this will all work, but I guess the idea would be to have people volunteer for various jobs and report back once they're done. If we don't hear back from anyone then the job could be taken up by someone else. Once the code is provided, we can all test it, critique it and if it's up to scratch whoever is in charge of maintaining the code (currently me) will implement it into the core theme on the demo site. At this stage it's just a jerry rigged version of Kakumei. I'll post a download file for the crude job I've done so far tomorrow so that you guys can see how it works. Most of it will need to be redone though and some of it is extraordinarily buggy, ie: the admin pages don't work at all. Plus some of the functionality is presumably not wanted anyway. |
|
|
|
|
|
#12 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Based on what is posted above, we've so far got:
Mini-stats Forum signatures BB code support List of members online Smilies Polls Images in posts Image Resizer There's also quick-quotes (ie: when you click the quote button on a post it automatically adds the quoted text/BB code to the quick reply box on the page) which I think should be added, although I'm not sure I'd call that a plugin. That's just a simple javascript script and I'm surprised it was ever a plugin. Plus private messaging if it can be done without modifying/adding core files. I can't see why you could do it via a basic plugin-type functionality though. I'd have thought it was just require some extra database entries to store everything. I wouldn't be comfortable writing something like that myself though so we would need a volunteer who knows what they're doing. This seems like it would be one of the more complicated features to add, particularly since there doesn't seem to be any suitable off-the-shelf plugins available which haven't been reported to have serious problems. |
|
|
|
|
|
#13 | |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Quote:
SMF2 has the best system I've seen so far, but that's one heck of a complicated system and I don't think adding something like that into a theme would be a good idea. My opinion is that a Captcha type system should be in the core, and if not it would be better suited as a plugin. There isn't really a one-stop solution for Captcha unless you create something really complicated, so chances are you would need to install a plugin to customise it anyway or the spam-bots will find ways around it anyway. |
|
|
|
|
|
|
#14 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Here's the code I used to allow the use of the <img> tag in forum posts. The plugin it came from () says it's only compatible up to 0.7.3, but it seems to work fine in version 1.0.
I just added it as a separate file and it included it via the functions.php file. PHP Code:
|
|
|
|
|
|
#15 | |
|
SitePoint Zealot
![]() ![]() Join Date: Dec 2007
Location: Pakistan
Posts: 177
|
Quote:
|
|
|
|
|
|
|
#16 | |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
I just noticed in the BBcode Lite plugin by _ck_ that it has the following text so I'm assuming that if we included that plugin then it would fix the IMG tag issue for us automatically (assuming it works in 1.0):
Quote:
|
|
|
|
|
|
|
#17 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Yep, that other method of adding images works perfectly too. So no need for the other plugin if we incorporate BBcode Lite.
|
|
|
|
|
|
#18 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Here is a zip file with the theme currently running on the demo site.
There's a bunch of plugin files strewn through the folder which are included via the functions.php file. http://bbtheme.net/ryan/sitepoint.zip They're not very well organised and many of them would need modified quite a bit or totally rewritten for the final theme. There is a Google Code repository which I need to update too. But in the mean time I thought I'd post that in case any of you are interested in seeing how I hacked together this existing theme. |
|
|
|
|
|
#19 |
|
32,817
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2001
Location: Toronto, Canada
Posts: 10,496
|
Ryan, maybe grab me on skype over the next few days and I can download a lot of our learning to you. But you can see the bbpress installs up @ www.splendicity.com/community, and many of these features (and many others) are in there.
I'm happy to help out with this, just so busy that I can't be involved daily right now (and wifi access is limited this week)... but I'm a huge fan of bbpress, just also a huge fan of folk not duplicating effort, y'know? |
|
|
|
|
|
#20 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Thanks Jeremy, I'll try to track down your Skype address (searching for "Jeremy Wright" didn't show up anyone from Canada).
And yeah, duplicating effort would be silly. |
|
|
|
|
|
#21 |
|
32,817
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2001
Location: Toronto, Canada
Posts: 10,496
|
|
|
|
|
|
|
#22 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Thanks. I found it on your personal blog just before you posted. I've now added you on Skype.
|
|
|
|
|
|
#23 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
I met with Sam Bauers the other weekend and discussed this side of the project with him. He seemed quite supportive of our intention to add some plugin-like functionality to the theme as it allows us to provide a convenient way for people to setup a bbPress site with a suite of extra features but without bloating the bbPress core in the process.
So it looks like the following features are what we will be adding. If anyone objects, please speak up now ![]() Mini-stats Forum signatures BB code support List of members online Smilies Polls Images in posts Image Resizer Quick-quotes Private messaging (if it can be done without modifying/adding core files) As Jeremy W pointed out, B4 Media has done a lot of customisation of their bbPress setup, but they don't seem to have released any of the code for the rest of us to use. If you are interested in helping to implement these features please volunteer ![]() Here's the zip file containing what I've done so far ... http://bbtheme.net/ryan/sitepoint.zip. You can find the various chunks of code via the functions.php file. |
|
|
|
|
|
#24 |
|
SitePoint Mentor
![]() Join Date: Oct 2006
Location: New Zealand
Posts: 2,248
|
Looks like there are no objections to the above set of suggestions, so I've started implementing some of the PHP code.
The first thing I've done is to make a copy of the new Kakumei theme released with the final bbPress 1.0 release. Then I added a functions.php file to it (which loads automatically on page loads just like functions.php in WordPress): And in the the functions.php file I added this: PHP Code:
Which loads the "BBcode Lite" plugin file from _ck_. I made a few modifications to the code to make it more readable, adding indents etc. etc. Feel free to critique and rewrite where appropriate (post your changes below). PHP Code:
You can see the code in action on the demo site ... http://bbtheme.net/topic/another-test-topic Since I've started from scratch the various functionalities which were present on the site before have now been removed. |
|
|
|
|
|
#25 |
|
SitePoint Addict
![]() ![]() ![]() Join Date: May 2007
Location: Colwyn Bay, North Wales, UK
Posts: 370
|
Cool. I'm keeping an eye on this topic, please don't take the lack of response as "not caring"
![]() |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 09:16.








. I don't think Ministats has that big an overhead. So yeah, stick that in.




Linear Mode
