Search Results for 'code'
-
AuthorSearch Results
-
August 18, 2009 at 7:26 am #77793
In reply to: Sometimes Less Is Just Less
Sam Bauers
ParticipantI didn’t say “trivial” to be snarky. It is actually a trivial amount of code. Probably no more than a few lines.
I’m working on a plugin that will do it comprehensively. Just waiting for the plugin repository to catch up with requests.
August 18, 2009 at 7:18 am #77064In reply to: bbpress and memcache?
Sam Bauers
ParticipantYou can setup a new memcached instance to avoid clashes with wordpress, but if you are sharing user tables then it shouldn’t matter.
If you add another memcached instance on a different port you can point bbPress to it by adding this to bb-config.php (default IP and port shown here)…
$memcached_servers = array( 'default' => array( '127.0.0.1:11211' ) );August 18, 2009 at 6:22 am #31513Topic: hide subforms with crystal theme
in forum Themespikatore
MemberI have a problem, i don’t know what to do. I am using the crystal theme, which instead of having:
<?php if ( bb_forums() ) : ?>
it has
<?php if ($forums) : ?>
compared to the default theme.
I want subforums to be hidden on the front page. How do i modify code to do this?
August 18, 2009 at 5:56 am #74277Olaf Lederer
Participantright no session at all

@rareexample, just use the cookies created by bbpress (using firefox it’s easy to discover the cookies)
August 18, 2009 at 2:59 am #15343Topic: Number shows on the top of header
in forum ThemesVannak Eng
ParticipantHi,
I modified the default theme of bbpress and it worked fine at first but lately it shows the number like “6d53″ on the top of header. when i view the source code i see it is ‘<body id=”front-page”>6d53’. Please help to advise on that.
Regards,
Vannak
August 17, 2009 at 10:42 pm #78131In reply to: Announcement Forum
agibbins
MemberOh sorry, I thought you meant settings within the admin panel. Yes, I’ve edited the script and edited the templates as instructed.
global $read_only_forums,$bb_current_user, $bb_roles;
// edit users (and forums) by NUMBER below until an admin menu can be made
//$read_only_forums=false; // true = stop ALL members from starting topics in ALL forums
//$read_only_forums=false; // true = stop ALL members from replying to topics in ALL forums
$read_only_forums=array(5); // which forums should ALL members NOT be able to start topics
//$read_only_forums=array(9,15,22); // which forums should ALL members NOT be able to reply to posts
//$read_only_forums= array(1=>array(1,2,3,4,5,6,7), 2=>array(9,10,11)); // allow override for this member=>forums
//$read_only_forums= array(1=>array(1,2,3,4,5,6,7), 2=>array(9,10,11)); // allow override for this member=>forums
//$read_only_forums= array(54321=>array(1,2,3,4,5,6,7), 34567=>array(1,2,3)); // deny this specific member=>forums
//$read_only_forums = array(54321=>array(1,2,3,4,5,6,7), 34567=>array(1,2,3)); // deny this specific member=>forums
$read_only_forums=array(‘moderator’,’administrator’,’keymaster’); // these types of users can always start/reply
$read_only_forums=__(“Sorry, only moderators can start topics in this forum.”);
$read_only_forums = __(“Posting in this topic has been restricted.”);
// stop editing here
August 17, 2009 at 10:15 pm #78130In reply to: Announcement Forum
johnhiler
MemberThe instructions in the readme file should mention the settings?
* Until an admin menu is created, edit
read-only-forums.phpand change settings near the top as desired* Add the
read-only-forums.phpfile to bbPress’my-plugins/directory and activate.https://bbpress.org/plugins/topic/read-only-forums/installation/
August 17, 2009 at 10:15 pm #78171In reply to: Default Installation directory
Tomcraft1980
MemberThx for the immidiate answer!
That saves me a lot of time!

Kind regards
Tom
August 17, 2009 at 10:09 pm #78170In reply to: Default Installation directory
chrishajer
ParticipantYou can call that directory whatever you want. There should be no plugin that has the installation directory hard-coded. (I’ve never seen one in any case.) You can call it ‘discussions’ or ‘abcdefzyx’ or ‘forum’ or ‘forums’ and it should not matter.
August 17, 2009 at 9:59 pm #78127In reply to: Announcement Forum
agibbins
MemberThanks jonhiler. Problem is, this seems a tad buggy.
I’ve restricted a forum so no one but moderators+ can post in it, but at the bottom of the forum theres still: “New Topic in this Forum” for users. How can I remove this?
I also get errors like this:
Warning: in_array() expects parameter 2 to be array, null given in /forum/my-plugins/read-only-forums.php on line 62August 17, 2009 at 9:34 pm #31520Topic: Default Installation directory
in forum InstallationTomcraft1980
MemberIs there for any reason a dafault directory name which should b used for installation? For example /forums because some early plugins use this name hardcodet?
Currently my forum is installed in /forum and I ask myself if I should change it to /forums
Any suggestions?
August 17, 2009 at 8:03 pm #78161In reply to: A button in header of bbpress
gerikg
MemberIt depends on the theme. Go into your theme folder in BBpress and open header.php. Figure out where the links are being created. Then just insert an html tag (no need for php) `<a href=””> blah</a> etc etc Just make sure you have the correct surrounding tags. Sometimes they use
<li> </li>and throw in class=""..An easy way to do it on WPMU is create a page the same as the directory. If it’s in http://www.website.com/forums then create a page call forums.
August 17, 2009 at 7:41 pm #31518Topic: A button in header of bbpress
in forum Themesnataliya1977
MemberHello!
I create e social network on WordPress MU+Buddypress+bbpress.
I want to create a button “Home” in header of bbpress to unite my social network and forum. And in header of Buddypress create a button “Forums”. How can I do it?
I’m not a programmer and I don’t know php-code veru well.
Help me!
August 17, 2009 at 7:31 pm #30616Topic: A plugin, which changes header or footer
in forum Pluginsnataliya1977
MemberHello!
I need a plugin, which can change header and footer in bbpress.
I create a social network. I use for it WordPress MU+Buddypress+bbpress.
I want to create a button “Home” in header of bbpress to unite WordPress MU and bbpress. And vice-versa I want to create a button “Forums” in header of Buddy Press.
I’m not a programmer and I don’t know php-code very well.
How can I do these changes?
Thanks
August 17, 2009 at 4:24 pm #77207In reply to: plugin and limited memory bbpress
Ipstenu (Mika Epstein)
ModeratorYes, it’s an issue with bbPress. It’s an issue with WordPress too. It’s an issue that means you need more memory. The memory limit (see the WP Codex for more on WP_MEMORY_LIMIT) means you need to increase your blog’s PHP memory limit. Why they call it limit and not something that implies ‘adding’ I don’t know.
Which usually means your webhost hasn’t allocated enough to run WP/BB. Which means it’s actually an issue with your webhost that MAY be work-aroundable with manual tweaking.
While you’re welcome to try
BB_MEMORY_LIMIT(which is the logical name for it), I don’t think it exists.If you actually read the links I gave you, you’d know that PerishablePress (a fantastic resource) mentions you may be able to increase memory limits by editing wp-config.php like so:
<?php
@ini_set("memory_limit","16M");Try that on bb-config.php and see how it works.
You’re probably going to need to dig into your php settings to see how much memory you’ve got right now, and how much you have to play with. You’ll need to savvy up on your error logs too, to see where it’s barfing.
August 17, 2009 at 2:21 pm #77205In reply to: plugin and limited memory bbpress
Ipstenu (Mika Epstein)
ModeratorNo, it’s a known issue with WP and php memory, so I’m not surprised to see it crop up with bb as well.
Read here:
http://www.narfstuff.co.uk/2008/03/14/php-memory-and-wordpress/
But seeing as you don’t know how to do that now, I suspect you’ll need to talk to your webhost for help. If you have a good host, they’ll help you out
August 17, 2009 at 1:29 pm #77792In reply to: Sometimes Less Is Just Less
Ipstenu (Mika Epstein)
Moderator@sambauers Could you post that “trivial” code that allows for a BB login box in WP that will redirect back to the page after login?
This is where I think Shallow Integration has the upper hand. I have the bb login on the bb side, and the WP in-line login on the WP side, and no matter where my peeps log in from, there they are. All I do is redirect registration to the WP side, which kicks them back to the main WP page. And that’s okay, since 92% (I love stats) of visitors start there anyway.
As for includes on bbpress … Actually smilies, which are built into WP, would be nice, but they’d have to be easy to customize and expand. Some people like a million, some people like 10. Avatar upload isn’t going to happen unless Automattic dumps Gravatar. Quote ‘options’ would be a nice plugin.
August 17, 2009 at 12:16 pm #78045In reply to: What kind of server i need?
Olaf Lederer
ParticipantGo for the second, otherwise you have to move to a new one very soon.
I guess the prices for the servers are not very different

or take the first with more memory…
August 17, 2009 at 11:25 am #77791In reply to: Sometimes Less Is Just Less
Gautam
Membera. Private message
b. Avatar upload
c. Memberlist
d. Quote option in topics
e. Smilies
I prefer them to be as plugins, not integrated within bbPress. If we need to update some part of code of those features, we could just update the plugin not the full forum board. The plugins can also be managed by individuals, not by the creators of bbPress.
You rarely have to do any template edits to use the plugins, all possible of
add_actionandadd_filterAugust 17, 2009 at 11:00 am #77790In reply to: Sometimes Less Is Just Less
DennisH
Member@sambauers Could you post that “trivial” code that allows for a BB login box in WP that will redirect back to the page after login?
BTW: I have deep integration.
August 17, 2009 at 7:55 am #78136In reply to: How to: allow headings in post
Olaf Lederer
ParticipantBy default mage tags are not allowed too.
create you own plugin and use this code
function allow_img_tag($tags) {
$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array());
return $tags;
}
add_filter('bb_allowed_tags', 'allow_img_tag');You can the same kind of function for your header elements
August 17, 2009 at 3:14 am #77788In reply to: Sometimes Less Is Just Less
Navin
MemberI really love bbPress, but still wished some features existed by default. I know it’s doable via plugins, but default features are more cool, you can always turn it off. I really dislike the fact that some of the solutions I have seen on this forum, are related to “integrate your forum with WordPress, and use this plugin and it will work”, no, I don’t like that. bbPress should be able to do stuff on its own, without WordPress.
I don’t want to install WordPress for the sake of making some things work. I have been a WordPress user for so many years already, but still I refuse to do that. I have managed to convert my forum, which was originally SMF into bbPress (SMF > phpBB > bbPress), that was a lot of work, but I’m really happy I did that.
bbPress is by default very EMPTY, very very very empty. I was not used to a forum, with so less features and options. My users didn’t like it. I managed to add a lot of features via plugins. Now my users are a bit happy, I’m also very happy.
The best part I love so far is, that making changes not always is so difficult compared to SMF or phpBB. phpBB is the last forum software on this planet I’d want to use, OMG so difficult to make changes. SMF is one of the best out there, but has some limits due to their copyright system.
Some things I’d really love to see happening anytime very soon:
1. A codex page, with detailed instruction about the codes, just like its big brother WordPress has, at least a start, so we, the webmasters, can do more cool stuff
2. More features by default, such as:
a. Private message
b. Avatar upload
c. Memberlist
d. Quote option in topics
e. Smilies
These are some very basic options.
I’m sure bbPress will be one of the most professional forum software out there one day, it’s not so far yet, but I see it happen.
That’s why I’m a proud user of this software.
August 17, 2009 at 2:29 am #77787In reply to: Sometimes Less Is Just Less
Sam Bauers
ParticipantIf you have cookies and users integrated it is a pretty trivial amount of code required to force logins to occur on either the bbPress login page or the WordPress login page. It’s also possible to redirect the profile editing pages either way. If you want to list author posts from WordPress on the bbPress Profile page I can’t think of any solution for that except customising your theme with direct queries or using WordPress API if you are deep integrating.
The only way to get bbPress activity listed in WordPress is via “bbPress Live”. It’s currently broken in WP 2.8 due to widget changes there, but I am planning to fix it one of these days. Again, you could also write custom queries to the bbPress tables in your theme.
August 17, 2009 at 1:57 am #77061In reply to: bbpress and memcache?
Sam Bauers
ParticipantWe don’t use memcache to store user sessions, user sessions are stored in the browser cookie.
There is a memcache capable object cache though which is built in to bbPress via BackPress. To enable it (with default memcache settings) all you need to do is add this to your bb-config.php:
define( 'BB_OBJECT_CACHE_TYPE', 'memcached' );Note that this will not work if you are using the memcache object cache in WordPress, and you have WordPress deep integrated into bbPress.
August 17, 2009 at 1:49 am #78155In reply to: Posting error
johnhiler
MemberWoah, did you hack the core? (i.e. edit something besides a plugin)
I strongly suggest you restore the core code and find another way to fix the earlier problem! If you post details of the earlier problem, we can try to troubleshoot it for ya here.
-
AuthorSearch Results