Search Results for 'code'
-
AuthorSearch Results
-
November 21, 2008 at 1:57 pm #69115
In reply to: Theme: iNove Release (v0.1)
_ck_
ParticipantVery nice! Perhaps one of the top 3 themes so far IMHO.
Alternate demo on bbShowcase:
http://bbshowcase.org/forums/?bbtheme=inove
I would maybe move Views under Hot Tags and therefore make the views list visible all the time too. Also a small search box in the nav bar instead of the word “search” (or next to it) would be useful. I notice your site has a nice search box, also the RSS link on your site is nice too

I’m definitely making a 960px theme next year for my site, you’ve proven how good/useful it looks.
November 21, 2008 at 1:12 pm #68568In reply to: 1.0a2 + 2.6x cookies: so close!
WebDev WaxLotus LLC
MemberAll fixed. This post by deadmedic fixed all my issues! It explains why all the ‘worked for me!’ posts seemed like nonsense to me.
The fix:
Change line 673 in bb-settings.php from:
$bb->sitecookiepath = rtrim($bb->sitecookiepath, '/');to:
$bb->sitecookiepath = '/' . trim($bb->sitecookiepath, '/');Thank you deadmedic!
November 21, 2008 at 12:52 pm #69073In reply to: WP 2.6.3 & bbPress 1.0A2 slight fix
WebDev WaxLotus LLC
Memberwhile ($stars_in_heavens) {
deadmedic.karma += extra_scoop_of_icecream();
deadmedic.praise_sung += 1;
}You fixed it.
Here I was searching for all instances of setcookie…novice error!
WP2.6.3; bbPress 1.0a2; PHP5; Apache 1.3
I can log in and out of WP and bbPress from any direction!
I did not use the .htaccess edits, just the rtrim line.
Thank you, so very much!
I wonder if this is going to solve my bbSynch and bbLive issues?
BTW, there is a WP plugin to skin the wp login. They have a flickr group to share what people have done.
I like the idea of funneling registrations through bbPress, as most of my members will hit the fora.
I have to go and clean up some nasty things I’ve been saying around the web about integration…
Thanks again, man.
Cheers.
November 21, 2008 at 10:13 am #4307Topic: Remove ‘dash’ from forum description
in forum Themespuleddu
MemberIs possible to remove the emdash from the forum description?
The function that generate the description: forum_description()How can I obtain this?
Thank you in advance!
November 21, 2008 at 7:57 am #4306Topic: Move Topic from one bbPress install to another
in forum Pluginsjohnhiler
MemberI have a site with two separate bbPress installs that share a single users table: one is a Message Boards forum, while the other one is for Classifieds. They are on two separate subdomains:
* boards.weddingbee.com
* classifieds.weddingbee.com
Some users post classifieds listings to the Boards, which creates tons of admin work: I have to mark the listing as spam, message the user and ask them to repost it to Classifieds. It’s a big pain, and the problem is only growing.
After doing this several hundred times, I finally realized that maybe there was a better solution
. It’d be great if I could click a button and have the topic be deleted from the Boards server and added to Classifieds.Is it possible to have a plugin “cross over” and send data to another bbPress install? In this case, both the Boards and the Classifieds bbPress installs are on the same physical server… maybe that helps here? Or maybe that doesn’t matter, and this can all be done through API’s or something…
Any insight on this one? Thanks!
November 21, 2008 at 5:01 am #69110In reply to: in which folder upload bbpress?
chrishajer
ParticipantPut it in your root, but in a folder of its own. So, if you have WordPress here
/home/www/example.com/wordpress/you can put bbPress here:
/home/www/example.com/wordpress/bbpress/Then, your website/blog is http://www.example.com and your forum is http://www.example.com/bbpress/
You can call your folder whatever you want, it might be forum, forums, bbpress, anything at all.
November 21, 2008 at 1:28 am #69099In reply to: Redirection to new bbPress board?
Ipstenu (Mika Epstein)
ModeratorAt a guess…
RewriteRule ^forum/faq(.*)$ http://www.domain.com/forum/ [L,R=301]
RewriteRule ^forum/mcp(.*)$ http://www.domain.com/forum/ [L,R=301]
RewriteRule ^forum/member(.*)$ http://www.domain.com/forum/ [L,R=301]
RewriteRule ^forum/search(.*)$ http://www.domain.com/forum/ [L,R=301]
RewriteRule ^forum/ucp(.*)$ http://www.domain.com/forum/ [L,R=301]
RewriteRule ^forum/view(.*)$ http://www.domain.com/forum/ [L,R=301]That’s the majority of the links, I think. At least the ones off the main page of a forum.
November 21, 2008 at 12:48 am #69107In reply to: Blockquotes are broken
Ipstenu (Mika Epstein)
ModeratorHey, my site works fine. I’m saying bbpress.org’s quotes are broke.
Someone should fix the CSS here.
November 20, 2008 at 10:09 pm #69106In reply to: Blockquotes are broken
chrishajer
ParticipantThe blockquotes are there in the source, but there is no corresponding CSS. This was brought up before here, but not addressed. If you are working on your own theme, just define blockquote in the style.css however you like, for example:
blockquote {padding: 0 0 0 20px;
background-color: red;
}
November 20, 2008 at 8:03 pm #69008In reply to: BBpress. Mindset, features and where now? discuss…
kevinjohngallagher
MemberGreat answers again _CK_.
As always you bring an authoritative voice to this discussion.
“Tables have vertical rows that can be sorted which would be 100x times harder with lists. Javascript has specific abilities on tables that don’t exist in lists. Lists do not have vertical relationships between their “cells”.”
I’m going to be one of those guys here a sec and say you’re totally and utterly wrong about this.
The DOM of a browser treats a TABLE like an XML file that it iterates through in a singular parent/child relationship.
The DOM of a browser treats a LIST like an XML file that it iterates through in a singular parent/child relationship.
Both are sorted based on their parent AND their attributes.
The perception that tables are easily sorted natively by JavaScript is only brought to the fore because libraries such as jQuery etc. have built in functions to sort tables. The same underlying code works for lists in exactly the same way.
eg. The browsers DOM can’t tell the difference between:
TABLE
– TR
– – TH
– TR
– – TD
and
DIV
– DIV
– – DIV
– DIV
– – DIV
or
OL
– LI
– – SPAN
– LI
– – SPAN
Let me give you an example again; Back to the backpacker website (real world examples are good I find).
UK (Category)
– England
– – London
– – – Travel
– – – Hostels
– Scotland
– – Edinburgh
– – – Travel
– – – Hostels
– – Glasgow
– – – Travel
– – – Hostels
Now if we output these as 1 flat tables (even with fancy CSS tags), and we use JavaScript to sort it (lets say alphabetically), we get this:
Edinburgh
England
Glasgow
Hostels
Hostels
Hostels
London
Scotland
Travel
Travel
Travel
UK (Category)
Because, again, if things are in a singular flat table structure there is not way of knowing which child belongs to which parent.
Again, i’m only advocating the use of lists for the forums, not the topic list, which is a singular list, and therefore well suited to using tabular data.
==============================================
What I want to stress here, because i’m feeling like i’m repeating myself a little and thats never good, is that i’m NOT here to get BBpress to change from tables to lists or divs or anything else.
What i’m here to discuss is that BBpress is going down a route, a route that solves one set of needs. Can you list the topics in a singular table in a singular order while the only differentiation between each row/cell is in the CSS worked out after the tag has been sent to the browser.
That is a very very singular way of doing things. My point is that all over the shop here in BBpress 1.0a we’re doing things in a singular method, and not in any way giving any for of extensibility to the software.
I use the forum parent/child output example cos it’s on the front page. I could use the example of having template functions HARD CODED in the bb-includes folder as opposed to being in the template folders. I could use the example of “forum” or “topic” being slapped before all the permalinks with no option to remove them.
Lets be honest here, in terms of changes from 1.0a1 to 1.0a2 the first 17 changes were style changes to the template file that we’re all (hopefully) going to replace with our own template.
The 3 latest changes to the repository have been to fix TYPOS in the comments.
There was 85 days, almost a 1/3 of a year between 0.9 release and 1.0alpha, and I may be wrong here but the biggest change seems to be that XML RPSeeWhoCaresAboutThisReally was added.
People are complaining about the same things on this board over and over. Most plug-ins were written over a year ago, and have been hacked to death. Vital information is stored on Page 3 of a forum thread started 18 months ago because no-ones updated the website.
Heck, saying that 0.9.0.2 the STABLE bbpress release doesn’t actually work with anything beyond 2.5.1 of wordpress, let alone the stable wordpress release of 2.6.3 ISN’T EVEN ON ANY OF THE WEBSITE PAGES. It’s stored on the forum software, in a random post.
This is not a complain against the great men and women who have done some marvellous work here, _CK_ so far is a screaming example of someone who’s given up huge amounts of time and created some amazing code, but come on.
If we try to develop something with no roadmap, no feature list; if we try to solve single problems with singular solutions; if we do this all with no documentation; heck if we do this with no project management whatsoever then we’ll end up with a bunch of things that look somewhere between a blog and a forum all with slightly different colours and a different header picture.
Then we can all pretend that we’ve build a totally extendable bit of software that every user has just decided to use exactly the same way out of pure luck, and not because they’re effectively forced to.
Heck while we’re at it, i’m going to pretend i’m Brad Pitt. Make believe is SO much fun. I’d suggest you all try it, but maybe you’re already there…
November 20, 2008 at 7:04 pm #69007In reply to: BBpress. Mindset, features and where now? discuss…
_ck_
ParticipantHeh, Kevin you made what I had been working on at random times. A phpbb template for bbPress. Except my project was to use real phpbb templates and translate them into bbPress templates from the raw files. Kinda gave up on that one after the first week so I’m glad you made it happen (at least the default template).
To the best of my knowledge, no one has made a theme with non-table front-page/forum-page. But hey I have 5000 bbPress sites sitting in my db so I can do a scan for you later and let you know if any of them managed to pull it off.
This is a list of all the existing, public/free bbPress themes to date:
http://bbshowcase.org/forums/view/available-themes
Oh and yes, there is no documentation. This has always been a complaint, but no-one has risen to the task. The problem is bbPress has been constantly changing – there isn’t even an official/final 1.0 release yet, which is probably why no-one has pinned it down. The database from 0.9 to 1.0 changed somewhat radically too. Now that 1.0 beta is in sight, someone should probably start working on some notes for plugin and theme developers.
What would probably help is an official codex for bbPress. There’s an unofficial wiki but it’s barely used. If it was a tab here, that would be entirely different.
ps. I completely disagree with the idea of trying to uses lists where tables currently are. Tables have vertical rows that can be sorted which would be 100x times harder with lists. Javascript has specific abilities on tables that don’t exist in lists. Lists do not have vertical relationships between their “cells”.
I am not at all discouraging you from trying it as it would be interesting to see. But lists for the sake of simply not using tables is wrong IMHO.
November 20, 2008 at 4:05 pm #69096In reply to: Redirection to new bbPress board?
fontadoni
ParticipantHello Ipstenu, thanks for your response. Sorry, I should have mentioned that the new bbpress board is actually on the same folder as the previous phpbb one (/forum), however, I get people coming from google trying to find phpbb pages like:
/forum/viewtopic.php?p=66sid=c72c343df3c37339b4d5094a1296566d
,but the new pages now look more like: forum/topic.php?id=38 on bbpress.
I was wondering if there’s a code I can add so people coming from google at least can be redirected to the forum’s index, right now they’re getting a 404 (sorry, I said 401 previously) because the old page can’t be found.
At least until google indexes everything again.
Thanks.
November 20, 2008 at 3:28 pm #69025In reply to: Parent / Childrelationship in forum loop
kevinjohngallagher
MemberHi _CK_,
Once again thanks for a great technical answer.
Can i follow it up with a quickie though:
Where in the documentation is all of those methods listed?
Are there other things i can call from $bb_forums_loop that may help is theme developers?
Where is the documentation for them?
P.S. your answer really helped me alot, i’ll rewrite by current code now
November 20, 2008 at 3:10 pm #69095In reply to: Redirection to new bbPress board?
Ipstenu (Mika Epstein)
ModeratorYou mean to just redirect one folder to another?
Pretend your old forum was at http://www.domain.com/phpbb2 and the new one is at http://www.domain.com/bbpress
Delete the phpbb2 folder and in your .htaccess add this:
RewriteRule ^phpbb2(.*)$ http://www.domain.com/bbpress/ [L,R=301]That will make what’s called a Permanent redirect, and in theory teach site crawlers what’s up. Mind, a 401 is for unauthorized access, which is an odd error to get.
November 20, 2008 at 2:12 pm #4299Topic: Blockquotes are broken
in forum TroubleshootingIpstenu (Mika Epstein)
ModeratorIt seems blockquotes are broken on this board.
<blockquote>Test</blockquote>gives:
Test
November 20, 2008 at 1:53 pm #4297Topic: Redirection to new bbPress board?
in forum Troubleshootingfontadoni
ParticipantNow that I converted my board from phpbb to bbpress I need to know how to redirect the old stuff to where the new board is (so people coming from google can at least get to the new bbPress index and not just get a 401 – which is what is currently happening). I suppose I need to do this in my htaccess file. Does anyone have the code for this? Thanks.
November 20, 2008 at 11:49 am #68973In reply to: bbPress – using bb_top_topics()
_ck_
ParticipantTotal shot in the dark here as I can’t debug this code but try replacing in your routine above:
<?php // $top_topics = bb_top_topics(); ?>with
<?php // $top_topics = bb_top_topics();
global $bbdb;
$where = apply_filters('get_latest_topics_where','WHERE topic_status=0');
$query = "SELECT * FROM $bbdb->topics LEFT JOIN $bbdb->meta ON object_id=topic_id $where AND object_type='bb_topic' AND meta_key='avg_rating' ORDER BY cast(meta_value as UNSIGNED) DESC LIMIT 10";
$top_topics = bb_append_meta($bbdb->get_results($query),'topic');
?>November 20, 2008 at 11:27 am #68972In reply to: bbPress – using bb_top_topics()
_ck_
ParticipantUpon further examination,
function bb_rating_init() {may need further modifications under bbPress 1.0Unfortunately I am unfamiliar with what to do with that query under 1.0 so mdawaffe may have to do it.
Just a complete guess, you can try changing line #94:
$query_args = array( 'meta_key' => 'avg_rating', 'order_by' => '0 + tm.meta_value' );to
$query_args = array('object_type'=>'bb_topic', 'meta_key' => 'avg_rating', 'order_by' => '0 + tm.meta_value' );November 20, 2008 at 9:55 am #68971In reply to: bbPress – using bb_top_topics()
_ck_
ParticipantTry replacing this line #205
if ( $topics = (array) $bbdb->get_col("SELECT topic_id FROM $bbdb->topicmeta WHERE meta_key = 'rating'") ) :with this one for 1.0 compatibility:
if ( $topics = (array) $bbdb->get_col("SELECT object_id as topic_id FROM $bbdb->meta WHERE object_type='bb_topic' AND meta_key='rating'") ) :and use the admin menu to do a recount of ratings.
November 20, 2008 at 9:39 am #69024In reply to: Parent / Childrelationship in forum loop
_ck_
ParticipantYou can work around this problem by doing a scan of the $forums global before entering the main loop and checking the “rank” or “type” of forum for each listing.
In fact you can replace the loop entirely with your own routine, as long as you
global $forumyou can set the $forum to any which one you want and the internal functions will still work.So essentially do a pre-loop through the forums, build your own array of how you’d like the output, and then do the main loop to output the forums in the order/design that you’d like. Just be sure to set
$forumto the current forum you are working with before calling any of the forum functions.ps. You *can* access
$bb_forums_loop->first_child
$bb_forums_loop->last_child
$bb_forums_loop->bb_rootif you wish. Just do a
global $bb_forums_loop;outside of the loop, then inside the loop they are available to you.November 20, 2008 at 2:35 am #69090chrishajer
ParticipantI believe it’s edit-forum.php in your template. Have you looked there? If you mean what in bbPress uses that, I can’t help you there.
November 19, 2008 at 11:06 pm #68970In reply to: bbPress – using bb_top_topics()
mithrandir321
MemberAfter much research it seems the view ‘top-rated’ gives no results. I checked the DB and found noplace where ratings are stored. It’s really mind-boggling and a little over the top for my knowledge

Can anybody please help. I have the latest bbPress 1.0-alpha-2 and bbRatings 0.8.5
November 19, 2008 at 9:37 pm #4287vadi
MemberHi,
Where can I find the code that generates the “edit a post” page?
The bbcode buttons and live preview plugins don’t appear to be working on this page and I’d like to add support for them.
Thank you,
November 19, 2008 at 9:20 pm #69006In reply to: BBpress. Mindset, features and where now? discuss…
Ipstenu (Mika Epstein)
Moderator… as long as we have tags (which are great) we feel we’ve a fluid cross pollination forum going on. But if you take tags away for a sec (lets say the users didn’t put them in); then what your left with is 1 list of topics and 1 list of forums. That’s the definition of rigid.
I see where we differ
I see bbPress as ‘One big ass list of topics in one big ass forum.’ That’s not rigid so much as it’s just a list. Probably organized by last post date, but a list none the less. I don’t see it as rigid, I see it as unstructured. But I can see where you’d call it the other.
November 19, 2008 at 9:02 pm #69032In reply to: Member’s ID issue after conversion
John James Jacoby
KeymasterDepending on what version of phpMyAdmin you’re host is running, I find this ability currently under…
“Operations > Table Options > auto_increment”
There you can change that value back down to what it should be and cross your fingers!
-
AuthorSearch Results