Search Results for 'code'
-
AuthorSearch Results
-
February 27, 2010 at 3:15 am #33447
Topic: RSS Feeds
in forum Troubleshootingthelobbyist
MemberJust doing some searching and see that RSS feeds for forums were broken. I discovered this myself when I tried to load my forum feeds for my new site into Google Reader today and it couldn’t find the feed. I have updated my code with the patch update and feed validator says my feed is fine, but it still won’t load in Google Reader.
From what I’ve read on the forums there was a wide spread problem, but I can’t seem to locate if there was ever a definite solution. I am running the latest WP with BBpress 1.0.2 with deep integration.
Anything I can do to fix this? RSS feeds for my forums are pretty vital because this particular site won’t have posts, just pages for research content, and forums for feedback and discussion.
Thanks
February 26, 2010 at 3:23 pm #83588kevinjohngallagher
MemberCause I have no knowledge on how to recode the php.
It’s JavaScript.
You didn’t want to edit PHP files.
February 26, 2010 at 3:11 pm #83587Marius-
MemberHi, forgot this was my problem.
Where should I put that php code?
February 26, 2010 at 2:31 pm #85473In reply to: Get parent name from subforum
Jonathan Stegall
MemberNevermind. I found it. You can do it like this:
<?php echo forum_name($forum->forum_parent); ?>February 26, 2010 at 11:39 am #85470In reply to: new to BBpress
cary1221
MemberI second that Marius!
But looks/feel apart haven’t really had a problem with php BB. I want to shift but am skeptical of other internet forums, functionality-wise. Any suggestions ?
February 26, 2010 at 10:41 am #33442Topic: new to BBpress
in forum Requests & Feedbackcary1221
Memberhey guys!
I’m using php BB forums currently, why should I shift to BBpress? Pls help!
Thanks !
February 26, 2010 at 5:21 am #85169In reply to: Paid bbPress Developer needed for mod
Ashish Kumar (Ashfame)
ParticipantHi,
I tried contacting you by email but had no success (it says it has been delayed).
I can work for you.
Email me –
ashishsainiashfame[at]gmail<<<dot>>>comFebruary 25, 2010 at 10:57 pm #85381rlebowitz10463
MemberOK, I think I got it working. I hired someone to code it for me–now I have to figure out how he did it!
Thanks.
February 25, 2010 at 10:28 pm #84733In reply to: Plugins You Want !!!
toniperdew
MemberAn avatar plugin that works when just installed/activated, without needing to modify php code would be great!
February 25, 2010 at 9:10 pm #85282kevinjohngallagher
MemberPlease, don’t say that I have said things that i have not. Feel free to quote me, but don’t make things up or wrongly generalise and attribute them to me.
That said, i apprecaite you finally getting round to being polite to the people who have helped you out thus far. Finally finding manners to Thank people like John who went out of their way to help you was the decent thing to do
February 25, 2010 at 9:02 pm #83304kevinjohngallagher
MemberEither way, don’t think it really matters.
Personally i’ve found that pointing my post form towards WP is better because if something is going to change/break in a future version it will happen in WordPress long before bbPress. People are patching/plugins/writing-guides on how ot make bbPress work with WordPress not the other way around, so i stick with the strongest/most stable software as my login base. But really, thats just me being careful; i shouldn’t matter
February 25, 2010 at 6:20 pm #85443lynx13
MemberOkay, I think I solved it myself.
The working code is as follows:
# BEGIN bbPress
#Options +MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forum/
RewriteRule ^page/([0-9]+)/?$ /forum/index.php?page=$1 [L,QSA]
RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forum/forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ /forum/forum.php?id=$1 [L,QSA]
RewriteRule ^forum/?$ /forum/ [R=302,L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /forum/topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ /forum/topic.php?id=$1 [L,QSA]
RewriteRule ^topic/?$ /forum/ [R=302,L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /forum/tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ /forum/tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /forum/tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /forum/profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ /forum/profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /forum/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ /forum/profile.php?id=$1 [L,QSA]
RewriteRule ^profile/?$ /forum/profile.php [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /forum/view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ /forum/view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ /forum/rss.php [L,QSA]
RewriteRule ^rss/topics/?$ /forum/rss.php?topics=1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ /forum/rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/topics/?$ /forum/rss.php?forum=$1&topics=1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ /forum/rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ /forum/rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/topics/?$ /forum/rss.php?tag=$1&topics=1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ /forum/rss.php?profile=$1 [L,QSA]
RewriteRule ^rss/view/([^/]+)/?$ /forum/rss.php?view=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /forum/index.php [L]
</IfModule>
# END bbPressAs you can see, I commented the
Options +MultiViewsout and let the bbpress-generated .htaccess do the rest.I was just lucky and experimenting with different .htaccess in this subfolder for hours.
Thanks anyway!
February 25, 2010 at 5:52 pm #85451In reply to: Any simple chatbox plugins?
kevinjohngallagher
MemberI say it’s not likely to happen becuase we only have 2 or 3 plugin developers left, and your requirements are very specific. We’ve seen from all the other plugins that you’re unhappy with about how you want something that fits your needs exactly, and you never say please or thank you. I told you days ago where you could get one, and you didn’t like it even though it does everything you said you wanted.
I’m not your enemy mate, everytime you ask for help i step up. You’ve still not thanked me for the code i sent last week to solve your issues you could have googles (they weren’t bbPress issues).
I dont think a simple chatbox is something thats specific to me and my needs alone. I think its a perfectly logical thing to make in context with the philisophy of BBPress.
Cool, then go make it
February 25, 2010 at 5:14 pm #85448In reply to: Any simple chatbox plugins?
Marius-
MemberI want a box on the side of the forum, with two fields.
One field of posted messages, and one input-field to write them in.
I dont want tabs, smileys, list of users, links to php-shit, bubbles-background, different colors in text or bb code buttons at all.
Just a simple simple SIMPLE chatbox.
Look at my _shout_box on http://www.michaeljackson.no. Thats a plugin called WP-Wall, and its great.
I want something similar to that, just optimised for chatting.
When I say optimised, I mean = room for more comments with better readability, and live refreshing.
February 25, 2010 at 5:12 pm #85442kevinjohngallagher
MemberOk, i’m coding on my iPhone – expect errors.
function kjg_custom_feed_rewrite($wp_rewrite)
{
$feed_rules = array
(
‘forum/(.+)/(.+)’ => ‘/bbpress_folder/index.php?variable1=’ . $wp_rewrite->preg_index(1) . ‘&variable2=’ . $wp_rewrite->preg_index(2),
);
$wp_rewrite->rules = $feed_rules + $wp_rewrite->rules;
}
add_filter(‘generate_rewrite_rules’, ‘kjg_custom_feed_rewrite’);
function kjg_add_custom_page_variables( $public_query_vars )
{
$public_query_vars[] = ‘variable1’;
return $public_query_vars;
}
add_filter( ‘query_vars’, ‘kjg_add_custom_page_variables’ );
Basically, whenever you try and load “domain.com/forum” the .htaccess file would load wordpress. WordPress then hits it’s own htaccess rules (how it does permalinks etc), which it stores as an array you can manipulate and it then loads the page you tell it with the $_GET variables you can also maipulate. The thing is, WordPress does this AFTER it’s loaded it’s variables and plugins, but obviously before it’s done any form of outputting to the screen… so in theory you could just tell it to load the bbpress index instead, and as it’s already got wp-load.php processed, all of the user-ids/logins/permissions etc should be already generated – not to mention, you could call WP functions etc.
Basically, it’s deep integration but form the WordPress side rather than the bbpress side. There might be some BackPress function un-compatability (i can think of a few right now that would be iffy) – but it basically looking at the problem from a different viewpoint.
Instead of trying to bridge WordPress and bbpress, why not have WordPress load bbPress as a “plugin”, and then we could take advantage of plugins like WP-Role-manager and facebook connect etc.
Ok, my code may be very very wrong, give me a day to hack out something
February 25, 2010 at 4:03 pm #85447In reply to: Any simple chatbox plugins?
kevinjohngallagher
MemberCan you define what it is you want your chatbox to do please?
As you’ve already said you don’t want a shoutbox, and now you don’t want the above linked AJAX chat. If you gave us strict definitions of what you’re after we could help
February 25, 2010 at 5:14 am #85445chrishajer
ParticipantThe fact that
functions.bb-pluggable.phpis listed leads me to believe it’s a conflict with a plugin. What plugins are you running?February 25, 2010 at 1:01 am #33279Sabuntu
MemberWhen I tried to delete one of my posts i get this error
Database error: [Column ‘topic_last_poster_name’ cannot be null]
UPDATE
bb_topicsSETtopic_time= ‘2010-02-25 00:46:31’,topic_last_poster= ‘1’,topic_last_poster_name= NULL,topic_last_post_id= ’10’ WHEREtopic_id= ‘3’Caller: bb_delete_post, bb_topic_set_last_post
Warning: Cannot modify header information – headers already sent by (output started at /home/ssmmid/public_html/forums/bb-includes/backpress/class.bpdb.php:569) in /home/root/public_html/forums/bb-includes/functions.bb-pluggable.php on line 232
Can any body please tell what’s going on ??
February 25, 2010 at 12:20 am #33278lynx13
MemberHey!
I finally setup bbpress inside http://example.com/forum/
Of course I would like to use permalinks, because they are already working with my WordPress-Blog http://example.com
I am not a specialist in setting up .htaccess, so I would like to request your help.
The “main” .htacess reads as follows:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Redirect permanent /zsblog http://example.com
Redirect permanent /zsblog/feed/ http://example.com/feed/As you can see my blog runs inside /zsblog which is located in / on my server.
bbpress runs inside /zsblog/forum
Here the .htaccess of “bbpress”:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forum
RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ /forum.php?id=$1 [L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ /topic.php?id=$1 [L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ /tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ /profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ /profile.php?id=$1 [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ /view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ /rss.php [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ /rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ /rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ /rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ /rss.php?profile=$1 [L,QSA]
</IfModule>Unfortunately, when clicking on a new created forum or on a topic I get redirects to random(?) articles inside my WordPress-Blog.
Any ideas how I can fix that?
BTW.:
Option +MultiViewsdidn’t work for me. Need to set it up separately.Thanks in advance!
All the best,
lynx
February 24, 2010 at 6:40 pm #85421Ashish Kumar (Ashfame)
ParticipantIts good to have people like Kevin here.

People don’t need to shell out money for small fixes.
P.S. - I am going home tomorrow (for a small vacation) or else I would have left my email ID here
February 24, 2010 at 6:28 pm #85420kevinjohngallagher
MemberHi Robert,
I’m guessing really but i’d suggest:
in style.css
Line 31:
#header, #posts {
width:760px;
}
should read:
#header, #posts {
width:[input new width];
}
in style.css
Line 45:
#header h1 {
background:url(“images/jillijheader4.jpg”) no-repeat scroll center top #999999;
border-bottom:1px solid #999999;
font-size:2em;
height:182px;
line-height:80px;
width:760px;
}
should read:
#header h1 {
background:url(“images/jillijheader4.jpg”) no-repeat scroll center top #999999;
border-bottom:1px solid #999999;
font-size:2em;
height:182px;
line-height:80px;
width:[input new width];
}
replace [input new width] with either a fixed width (1000px) or a percentage (100%).
Good luck
February 24, 2010 at 6:24 pm #33276Topic: function bb_get_topic_move_dropdown
in forum InstallationJuan
MemberLine 1508:
$defaults = array( ‘id’ => 0, ‘before’ => ” );
really disrupts the layout. Changing to:
$defaults = array( ‘id’ => 0, ‘before’ => NULL, ‘after’ => NULL );
Fixes the nasty template issue.
Can this line of code be modified in the core code for distribution?
Thanks
February 24, 2010 at 6:14 pm #85337In reply to: bbPress Simple?
kevinjohngallagher
MemberJimJiber,
I, we, all feel your pain – but you’re confusing two issues here; because you’re viewing bbPress as a WP plugin. It’s not, it’s a standalone forum, and there is a “bridge” that connects the logins/users to wordpress.
1) bbpress is very very simple to set up and use if you have basic technical knowledge (ability to edit a file and FTP).
2) bbPress is not simple to integrate into WordPress.
It is random, annoying, and requires you to know so much it’s unreal, and most of the information you’re meant to know is buried inside forum threads you’ll struggle to find. If you want to stick with it, shoot us over the steps you took, linking which of the guides on here you followed would be great if possible, and we’ll try and sort you out.
The forum appears to be a completely seperate entity to my WP site
It is, and will be.
Seems like no-one can make a decent forum for wordpress.
You’re kinda right. This is actually really good, but WordPress has a tendancy to change it’s securty protocols quite randomly and often. 2.1, 2.5 and 2.7 all had major changes and whenever that comes we’re all playing catch up. Sadly automattic took the decison to integrate bbPress into BackPress and then decided not to integrate WordPress into BackPress, so we’re left in the state of limbo you now see.
this has been a total waste of an afternoonand I needed to vent.
Thats ok, i cant think of one person that has come to bbpress and gotten integration working on their first day, let alone afternoon. Matt (head of automattic) annouced that Integration was the highest priority to get working back in December, but then decided we should work on anonymous posting instead, so we’re all a tad confused.
Before deciding on forum software or swapping to joomla, i’d spent the time doing a bit of research on them all. There are positives and negatives for many of these – but on the plus side you now know the 2nd biggest flaw of bbPress

Hardly intuitive is it?
No, but then it’s not trying to be

My suggestion is to get your forums working first, without trying integration. Then once you know it’s all working you can follow one of the countless integration guides here, and shout us when things go wrong. Sadly, it’s the best that can happen.
February 24, 2010 at 5:59 pm #85380rlebowitz10463
MemberAshfame,
Thanks. I tried that but to no avail.
I would be willing to hire someone to fix this. If anyone is interested, I can send them the code.
rlebowitz AT yahoo.com
Thank you!
February 24, 2010 at 5:16 pm #82419In reply to: CollegeTimes – integrated WordPress and bbPress
Ashish Kumar (Ashfame)
Participant -
AuthorSearch Results