Search Results for 'code'
-
AuthorSearch Results
-
July 16, 2010 at 2:35 pm #91047
In reply to: Latest on better editor?
Joe Gibson
MemberThe one change I made to Zaerl Editor was snipping out the part of the code that put that needless “Code” button on the top.
The only disappointment is that it doesn’t seem to understand strikethrough fonts. I tried both “strike” and “del” (using both HTML and backticks) but no joy. Any thoughts?
July 16, 2010 at 1:44 pm #91107In reply to: forumlist table wrapping issue
pastorbobsforum
MemberHello.
I managed to identify my problem. Both your advices worked perfectly, it was my lack of attention to be blamed here.
When I was uploading the file via FTP (filezilla) I wasn’t paying attention to the new file size on the server (which proved to be different – smaller – than the one that was being uploaded). I know that I have the possibility to compare them, so I would have spotted this much earlier but…
After I’ve changed the permissions again (755, an issue that I had before) and uploaded it from their (the server’s) file manager, things turned out just fine.
I thought that you had a way of *getting* my line number, even if I was modifying my style.css, since you’ve quoted it so accurately. I understand that the main use is referential. Which is good!
The only reference to
white-space:nowrap;was at 697, as you said, and I have removed it.Are this guy’s suggestions ( http://www.devcomments.com/Display-Sub-forum-on-2-or-mocolumns-to17176.htm ) of any use? And if yes, I go back to my question from my last post, where can we find functions_display.php?
Thank you once again.
Regards,
Bob
July 16, 2010 at 1:38 pm #91106In reply to: forumlist table wrapping issue
_ck_
ParticipantSomewhere on your page or in your stylesheets the word NOWRAP appears.
So do a view source and search for NOWRAP.
Then look in style.css for NOWRAP
Somewhere, one of them is causing the trouble.
Another nasty workaround might be
.num, #forumlist small {
overflow:hidden;
max-width:400px;but I highly recommend finding the real source of the problem.
July 16, 2010 at 1:25 pm #91105In reply to: forumlist table wrapping issue
pastorbobsforum
MemberHello.
Firstly, thank you for your responses.
I’ve tried
white-space: wrap !important;with no effect unfortunately.Thank you for you Polls and Instant Password plugins. I admire the practical approach.The “}” has been simply overlooked when I pasted in the lines. It exists in my style.css
Your explanations were very good, since I got it working once. But now it isn’t any more. The only thing that I have installed afterwards was the BBcode Buttons Toolbar plugin, but even after having deactivated it, things are still the same.
I found this piece of advice though, http://www.devcomments.com/Display-Sub-forum-on-2-or-mocolumns-to17176.htm , but now I cannot seem to find functions_display.php , so I can try this man’s idea as well.
Bob
July 16, 2010 at 1:07 pm #91104In reply to: forumlist table wrapping issue
kevinjohngallagher
MemberHi Pastor Bob,
Apologies you were getting my quick/little-explanation replies this morning.
The Line Numbers aren’t important at all, its jsut to give you a quick indication of where things were.
Here’s the crux of the issue, this CSS command
white-space:nowrap;overwrites any Styling you specify in the stylesheets by the HTML conent.Its something I would remove compeltely from your stylesheets if possible.
July 16, 2010 at 12:51 pm #91088pagal
ParticipantSupport Ticket Answer,
Core files are generated when one of your scripts fails
I advise to check/update your plugns in order to fix this problem.
You are free to delete them all
Thank you.
Kind regards,
Yuri Peters
Just Host
It’s definately not from bbPress mate
@ Rich Pedley I’m still confuse that which bbpress/wp plugin is creating trouble and generating core files.
July 16, 2010 at 12:46 pm #91103In reply to: forumlist table wrapping issue
_ck_
ParticipantYou could try the lazy way and force a CSS override.
white-space: wrap !important;
Basically in one of the earlier or later rules you have nowrap set.
make certain you have a closing
}though on this block.num, #forumlist small {
font: 11px Verdana,Arial,Helvetica,sans-serif;
text-align: center;
} <<<<<
missing ?July 16, 2010 at 12:21 pm #91102In reply to: forumlist table wrapping issue
pastorbobsforum
MemberOK, but it’s not working. I don’t think that the line nr matters that much, does it?
Anyway, I’ll post everything that involves my forumlist from my stylesheet here, to prove that I did exactly what you’ve suggested.
.num, #forumlist small {
font: 11px Verdana,Arial,Helvetica,sans-serif;
text-align: center;#latest td, #forumlist td, #favorites td { padding: 5px 10px; }
#forumlist tr td div.nest {
padding-left: 2.5ex;
}
#latest tr:hover, #forumlist tr:hover, #favorites tr:hover { background-color: #d8dcf2; }
#latest th, #forumlist th, #favorites th {
text-align: left;
background-color: rgb(102, 102, 102);
font: 11px Verdana,Arial,Helvetica,sans-serif;
font-weight: normal;
padding: 5px 9px;
color: rgb(255, 255, 255);
}
#latest th a, #forumlist th a, #favorites th a {
color: rgb(200, 200, 200);
font-style: italic;
}
#latest th a:hover, #forumlist th a:hover, #favorites th a:hover {
color: rgb(255, 255, 255);
}#latest, #forumlist, #favorites {<br />
background-color: #f7f7f7;<br />
margin-bottom: 3em;<br />
}</p>
<p>#latest, #forumlist {<br />
margin-top: -0.9em;<br />
padding-right: 10px;I hope that it is of some use.
Bob
July 16, 2010 at 11:43 am #90919In reply to: bbPress Plugin is Born
_ck_
ParticipantWith all the eyeballs looking at WordPress and all the new faces every few years, it’s amazing to me how much code optimization falls through the cracks and is never addressed.
bbPress as a plugin is now going to be exposed to that. In fact, ironically in 0.9 there are functions from earlier versions of WordPress that were never optimized and do “expensive” recalculations and yet it’s STILL significantly faster than 1.0 with the newer functions from BackPress.
WordPress still has places where it calculates kinds of conversion tables yet never stores them statically for when it will likely be used again in the same page load. All those eyeballs looking at the code never see it and never fix it.
WordPress after all these years STILL uses the poorly performing SQL_CALC_FOUND_ROWS, something that was discovered and fixed in bbPress 0.9 but ironically was re-introduced with BackPress in 1.0, and will likely continue as a plugin.
My problem with “progress” is regression. It happens often because no-one questions the bloat and then the bloat starts to hide mistakes because the code is too hard to follow and people forget the original purpose of a function.
But by all means, keep throwing junk into the core, don’t dare keep it isolated in a plugin where it can be examined and improved easily (ie. avatars, tinymce, phpmailer, etc.)
They never do version freezes for long periods of time to clean up and optimize code, they just pile on features in the name of progress.
Go install WP 2.1 and check the memory and query footprint.
Then install WP 3.0 and compare. It’s fairly disgusting in comparison.
July 16, 2010 at 11:36 am #91100In reply to: forumlist table wrapping issue
pastorbobsforum
MemberHello again.
I’m back to the unwrapping issue again.
Even though I’ve got
.num, #forumlist small {font: 11px Verdana,Arial,Helvetica,sans-serif;
text-align: center;
} forumlist is still unwrapped, as in the screenshot.
http://i896.photobucket.com/albums/ac166/nobody5973/screenshot_003.png
Any ideas?
Bob
July 16, 2010 at 11:23 am #90666In reply to: Congrulations bbPress 1.0!
_ck_
Participant@Marius, but everyone downloads different ones.
I’d never want to see even a handful of my plugins built into bbPress by default.
As much as people express the desire for a program to do everything they want out-of-the-box, it’s a VERY bad idea with software. Makes things too bulky. WordPress today is a perfect example of what happens when you give into that desire, you get bloated, overloaded, slow code.
But sadly they don’t believe in plugins – I’m kinda surprised even akismet is not hard coded into WordPress.
bbPress should have been a lightweight framework, half the size that it is now, that maybe shipped with a dozen plugins that are OFF by default. Too late now though.
July 16, 2010 at 10:40 am #90664In reply to: Congrulations bbPress 1.0!
kevinjohngallagher
MemberThats a leap mate.
The joy of bbPress is that if you want something, you can use a plugin. It keeps things nice and light for those that don’t want it

2. Less (code) is more
3. Simplicity is a feature
That said, _ck_, congratulations!!
Its wonderful for it to be so obvious as to how much you’ve contributed.
July 16, 2010 at 9:55 am #90989In reply to: bbCode toolbar with markItUp! editor
Ivaylo Draganov
MemberJust came to my mind that bbPress does not support bbCode without a plugin.
But the good thing is that this technique can be easily adopted for use with HTML input by simply changing the toolbar set used by markItUp.
July 16, 2010 at 9:51 am #91045In reply to: Latest on better editor?
Ivaylo Draganov
Memberwoot – that zaerl editor is right on the point, I hadn’t noticed it before. You could also check out this topic on how to implement markItUp as editor for bbPress:
https://bbpress.org/forums/topic/bbcode-toolbar-with-markitup-editor
The explanation is for bbCode, but it could be easily changed for HTML input.
July 16, 2010 at 9:23 am #90988In reply to: bbCode toolbar with markItUp! editor
Ivaylo Draganov
MemberA well written post too!
Thanks! Just a bit too many links for Akistmet though

And of course it could not be seen in action on my forum, because it is visible only to logged in users… silly me

The bbpress.org forums could also use a simple toolbar. Not so sophisticated but at least like the one on wordpress.org
July 16, 2010 at 9:17 am #90918In reply to: bbPress Plugin is Born
kevinjohngallagher
MemberMorning Peter,
It’s cool if you disagree. I’m confident we could all pick something in WordPress in the core that we think should still be a plug-in; and of course there is no right answer. What I’m not sure you’re aware of though, and you might be, is just how different the “overhead” between bbPress and WordPress is.
bbPress0.9 loads and runs at 10 or under SQL queries per page. Including the front page. Thanks to certain DB/query tweaks, and some wonderful _CK_ code, I have that at 8 SQL queries on one of my smallest intranet forums.
This is in comparison to the same 8 queries generated by the new wp_nav_menu in WP3.0. In fact the wp_nav_menu calls a not totally-in-expensive INNER JOIN for each post-type reference in the menu. It’s not a set 8 calls, without judging anything based on what it will become, if wp_nav_menu starts to accept custom post types natively, that’s going to shoot way up.
In a flat comparison, the default theme of WP3.0 with no plug-ins running, generates 19 SQL queries. Twice as much as bbPress0.9.
As someone mentioned earlier, the new bbPress plug-in would be lighter or sleeker. If it takes more SQL calls to generate the header and footer of WP than it does to load an entire bbPress forum – how does that work?
(I do realise that not all SQL queries are equal, but I do think it’s quite a good initial benchmark. Especially if you look at SAVEQUERIES output and see what sort of query each is, and its execution time.)
Additionally, as someone with your background with WP, I would love to hear your take on the caching issue. For two of my websites that have relatively ok traffic, caching is essential on WP. There are plug-ins that do this brilliantly, so thats no worries. But thats very much a “1 to n” nature. Forums are an “n to n” nature; and really don’t lean well with caching, especially in the flat-file constant-updated format.
How would one percieve that to affect WP based websites with a forum plugin of this nature attatched?
=================================
I think there is a viewpoint that is being missed here.
People are falling into 3 groups:
- Need a forum that works with WordPress
- Need a standalone forum, but some WordPress integration is ideal (sign in/users)
- Needs a standalone forum.
There appears to be a presumption is that we’re all in Group 1 and that we’re fighting change. That’s not the case at all.
I’m actually in favour of there being a WordPress forum plug-in. I think loads of people here will be. I also think that with JJJ working on it, and Justin Tadlock’s second attempt out there in the wild that it will go really well. I wish it the best of luck, and if we can offer advice or war stories or anything to help out – we’re here. We’re here because we support FOSS

The issue arises here is if you’re in Group 2, you have a decision whether to “upgrade” to running everything through WordPress or not. It’s just been presumed that’s your actual goal. At this point in time, we’d like some information (positives/negatives at a minimum) and info on how this decision has came about. People in Group 2 could move into Group 1 easily if given more information than:
“everything is going to be A-okay”
“Like it or not, this is the hand we’ve been dealt…”
But the users in Group3, the people who chose this as standalone forum software and didn’t make that decision based on WordPress – they’re being thrown out on their ear. With no warning. JJJ has stated, and I think we all appreciate that he’s taken the time to sit and answer some questions, that bbPress1.1 will be it’s last. Well, thats announced as bbPress1.1 is 1 trac ticket away from being released. How much warning is that??
If you’re in Group3, and large chunk of our support questions come from people who are, you will now be ‘forced’ to run WordPress if you want to stick with bbPress.
==============================================
I suppose what I’m saying is this. Changes in Life and in FOSS happen. Some we like, some we don’t. But there has to be a carrot with every stick, or people start to feel publicly flogged.
I want JJJ and Pete and anyone who helps them to succeed in achieving their goals. But I’ve scanned this forum page, and the emails they were kind enough to send me, and right now, if you didn’t come here specifically to use a forum inside WordPress… I can’t see the carrot.
There are people here alot cleverer than me, and alot better at wording than myself, so if i’m missing the carrot, please do a Denzel “explain it to me like a 3 year old”.
July 16, 2010 at 8:16 am #91097In reply to: forumlist table wrapping issue
kevinjohngallagher
Memberstyle.css line 697
.num, #forumlist small {
font:11px Verdana,Arial,Helvetica,sans-serif;
text-align:center;
white-space:nowrap;
}
You need to remove the line in bold
July 16, 2010 at 8:09 am #90917In reply to: bbPress Plugin is Born
Peter Westwood
ParticipantIt will probably also suffer from what I call the “kitchen sink” syndrome of WordPress where massive chunks of code are added as features which should have been plugins. But Automattic in general has a “not invented here” attitude towards plugins – if it’s not in the core, it doesn’t count.
Firstly, it’s not “Automattic” that decides what ends up in the core of WordPress – we have open discussions to set the feature lists for each release and the decisions are driven based on input from a large base of regular contributors.
Secondly, I strongly disagree with the implication that WordPress has a “kitchen sink” feature set – in fact we try very hard to only bring in the things which have a wide audience and leave the more niche things for plugins.
One of the factors which helps a feature come into the core is the existence of a plugin which is popular showing a clear demand for a feature and sometimes providing a starting point for the implementation as well.
July 16, 2010 at 7:54 am #34740Topic: forumlist table wrapping issue
in forum Themespastorbobsforum
MemberHello.
Why would one table come up ok (latest), but forumlist would look like this? http://i896.photobucket.com/albums/ac166/nobody5973/screenshot_003.png
This is what I have in style.css
#latest, #forumlist, #favorites {background-color: #f7f7f7;
margin-bottom: 3em;
width: auto;}
Isn’t the wrapper in the body supposed to *wrap* things up nicely?
#wrapper {margin: 0 0 0 0;
background: #fff;
width: 850px;
padding: 0 20px;}
I hope that people have been confronted with this issue before and successfully overcame it,
Thank you.
Bob
July 16, 2010 at 7:32 am #90621In reply to: Support Forum plugin updates?
mr_pelle
ParticipantJuly 16, 2010 at 7:32 am #90915In reply to: bbPress Plugin is Born
_ck_
Participant@gswaim, except history is about to be repeated with nothing learned. “Very near” is also not likely this year. Completely different people worked on 0.9/1.0 and now the plugin version. There is going to be a learning curve.
The plugin version is going to have the same tumultuous development pattern that bbPress 0.7, 0.8, 0.9, 1.0 did and probably take a couple years to get stable and feature rich. It will probably also suffer from what I call the “kitchen sink” syndrome of WordPress where massive chunks of code are added as features which should have been plugins. But Automattic in general has a “not invented here” attitude towards plugins – if it’s not in the core, it doesn’t count.
There is also the problem that anyone on a shared host will unlikely be able to run WP 3.0 with the bbPress plugin unless they have a very small forum/memberbase. The resource demand is going to be massive and require hours of fine tuning which most novices will not be able to do. Forums cannot be heavily cached like blogs can.
Then you are right back to the same old WP problems which will be introduced into bbpress after avoiding them previously, plopping regular users into confusing WP admin menus to change settings and completely different than the site theme.
For the casual WP user that has a few dozen members and wants a simple forum, the bbpress as plugin will be very handy. For those with thousands of members and end up with a very active forum, they will spend a great deal of time dealing with the resource loads.
Remember, there are already a couple of plugins for WordPress that bring forum functionality – go look at their problems to foresee what is going to happen. That’s how I ended up adopting bbPress standalone in the first place, I decided it was the best way to deal with the problems (work AROUND wordpress, instead of through it).
July 16, 2010 at 7:05 am #91061In reply to: Populate forum_slug and topic_slug fields
kevinjohngallagher
MemberGood Morning Dan,
It definately sounds like a conversion issue. It’s not one i’ve heard of before, but it shouldn’t be too hard to fix (though there is no existing pluign that I know of).
Baiscally you’re going to need a Title to Slug function, then iterate through every forum & topic and update the database accordingly
Basically, something like this:
$sql = "SELECT * from $bbdb->topics WHERE topic_slug ='' LIMIT 100";
$rows = $bbdb->get_rows($sql);
foreach($rows as $row)
{
$topic_slug = bb_sanitize_with_dashes($row['topic_title'],200);
$sql = "UPDATE $bbdb->topics SET topic_slug='". $topic_slug ."' WHERE topic_id=". $row['topic_id'] ." LIMIT 1; ";
}So i’ve not tested this code at all, just guessing at it really.
It should update 100 topics at one page load.
(I do this incase i made a horrible mistake)
Then do the same for bb_forum table.
Kev
July 16, 2010 at 5:34 am #34739Earthman Media
ParticipantI just found a huge file “core” (no extension) in my bbpress root folder…
it is a binary file which has a lot of unreadable characters, interspersed with segments of code from bbpress and what appears to be log entries…
Is this supposed to be there, or is this some kind of viral invasion.
any advice would be most appreciated, before I delete it.
Thanks!
July 16, 2010 at 2:21 am #90914In reply to: bbPress Plugin is Born
gswaim
ParticipantAt the end of the day it’s free, open source software. Polarized or not, bbPress has a team now. If this can just be summed up as a years worth of pent up frustration coming out, I can understand that, but we’ve all been going at this for almost 3 days now, and I’d rather write code and fix stuff and make progress than rehash bbPress’s tumultuous existence.
Exactly. There comes a time when it is time to move on. IMHO that time is very near.
JJJ has patiently articulated, to this group, the mission he was commissioned to handle and IMHO it is time to code. As I watched this thread, I feared that he would get bogged down and burnt out trying to make everybody happy. However, he seems to be keenly aware of this and has done a good job of keeping his eye on the prize.
I am a WordPress user that has been waiting for a core forum plug-in for well over a year. As soon as it is available I am installing it, and I suspect I will not be alone.
If only 10% of the WordPress.org-powered websites install this plug-in, the bbPress plug-in user base would dwarf the stand alone bbPress user base. Making bbPress available to a much larger audience cannot be a bad thing, in the long run.
July 16, 2010 at 12:54 am #90913In reply to: bbPress Plugin is Born
John James Jacoby
KeymasterLooking back through a lot of this discussion, I can see how some of my posts in here sound a little crass; and that isn’t my intention or goal.
So, let me apologize to each of you for that, if it came across that way.
My intentions with bbPress are to be helpful, provide guidance, be a sounding board, commit patches, and make the bbPress plugin something everyone here can be proud to use.
I don’t want anyone to fork anything; to feel left out, pushed out, forced out, any of that stuff. I very badly want everyone to feel comfort that we’re putting bodies and eyes on something that’s needed it for a long while, even if it isn’t exactly the way everyone agrees it should be.
You all have my word that I’ll be combing the trac, and helping things around and about as much as I can. My concentration is on bbPress the plugin, and BuddyPress, but any place else I can spread some bandwidth, I’m glad to do it. If anyone else wants to help out, I’m happy to have you aboard.
Pete Mall stepped up right away to help several months ago when this idea first cropped up in IRC and at a few WordCamps, so naturally he’s on board. The existing committers aren’t going anywhere, and everything is going to be A-okay.
-
AuthorSearch Results