Search Results for 'code'
-
AuthorSearch Results
-
July 30, 2008 at 2:04 pm #66421
In reply to: Ning layout?
gio500000
MemberI’m a newbie to the bbpress framework. Is there a function in bbpress that can call each forum and show the most recent topics for each one? Any help on how to getting started is appreciated. If you could provide some code to get started I feel confident to take it from there. I’m sure this layout isn’t for everyone but its a refreshing social-like layout that others may like.
Thanks,
Gio
July 30, 2008 at 5:53 am #66483In reply to: Display only if is_front ?
thion
MemberThat’s how I’m writing Static Pages plugin now
.
July 30, 2008 at 5:26 am #66478In reply to: config.php new installation error
_ck_
ParticipantThe (new) config.php name is
bb-config.phpYou are getting the error because you renamed it to
config.phpwhen it should bebb-config.phpJuly 30, 2008 at 5:20 am #66481In reply to: Display only if is_front ?
thion
MemberHmm – documentation is really needed…
July 30, 2008 at 1:10 am #66480In reply to: Display only if is_front ?
_ck_
ParticipantThere already is a function
is_front()if (is_front()) {
// do stuff
}lots of related functions in
template-functions.phpif you need multiple pages, a trick I like to use is
if (in_array(bb_get_location(),array('topic-page','tag-page','forum-page'))) {
// do stuff
}July 29, 2008 at 8:20 am #66462In reply to: Do you plain to write bbpress?
wiseacre
MemberAnd bbpress has had many weeks of … nothing. And some funny old bugs.
Look at WordPress. How many lines of code you can find? And how many tickets are closed for a week? This is “development time” for me.
In other hand the bbpress development team does not give people timely versions … and news. For now this project looks like a hobby.
July 29, 2008 at 7:15 am #66477In reply to: config.php new installation error
793412
InactiveI used the version 0 9 0 2 that appears here like the lastest. I’ve upgrade it like it was an older version… nothing happens.
July 29, 2008 at 1:18 am #66015In reply to: WordPress + bbPress Integration 101
_ck_
ParticipantHmm, is this the default in WordPress?
define('COOKIEHASH', md5($_SERVER[HTTP_HOST]));does that actually appear in wp-config.php by default? Because that would override the cookiehash calculation. Make sure then you have this in your
bb-config.phpdefine('BB_HASH',md5($_SERVER[HTTP_HOST]));also, since you are trying to do “full” (complex) integration. You may want to see here for more ideas: http://www.adityanaik.com/integratepress-part-i/
July 28, 2008 at 10:30 pm #66460In reply to: Do you plain to write bbpress?
Detective
MemberUse SMF then

That’s the magic of open source. YOU can choose.
July 28, 2008 at 9:37 pm #66014In reply to: WordPress + bbPress Integration 101
dankelly613
MemberMy WordPress/bbPress still does not integrate.
RE: FIVE things must be identical in WordPress and bbPress
configuration for cookies to be sync'ed and logins to be shared:
1. DATABASE secret key
2. wp-config.php/bb-config secret key
3. cookie DOMAIN
4. cookie PATH
5. cookie hash1. I have checked the database secret_key – it matches.
2. I have updated the SECRET_KEY in both config files – they match.
3. 4. & 5. I have the following code in my wp-config
define('COOKIEPATH','/');
define('SITECOOKIEPATH', '/');
define('COOKIEHASH', md5($_SERVER[HTTP_HOST]));And, my bb-config INCLUDES wp-config because of previous instructions on WP/BB integration.
define('WP_BB', true);
if ( !defined('DB_NAME') ) {
require_once( 'full/path/to/wp-config.php');
}NOTE: “full/path/to” was changed to the real ‘full path’
Any thoughts?
July 28, 2008 at 8:22 pm #66442In reply to: Uh – oh…I made a mistake and cant fix it
John Conners
ParticipantRemove the brackets – this is what you want to execute:
UPDATE bb_topicmeta SET
meta_value='http://www.portcityunderground.com/bbpress/'
WHERE meta_key='uri' LIMIT 1July 28, 2008 at 6:35 pm #66441In reply to: Uh – oh…I made a mistake and cant fix it
781521
InactiveOk, Thanks.
Heres what I have in the bb-config.php:
$bb_table_prefix = 'bb_';So heres what I put:
UPDATE (bb_)
topicmeta SET
meta_value='http://www.portcityunderground.com/bbpress/' WHERE
meta_key='uri' LIMIT 1Heres its response (I really didnt know if I need to leave the parenthesis etc in it…I have never queried a database before):
- SQL query:
UPDATE (
bb_
)topicmeta SET meta_value = ‘http://www.portcityunderground.com/bbpress/’ WHERE meta_key = ‘uri’ LIMIT 1
MySQL said:
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘topicmeta SET
meta_value=’http://www.portcityunderground.com/bbpress/’ WHERE
m’ at line 2
any suggestions on what next?..
Thank You!
July 28, 2008 at 6:00 pm #66440In reply to: Uh – oh…I made a mistake and cant fix it
Ben L.
MemberGo into your database, do the following query:
UPDATE(your $bb_table_prefix found in the config file goes here)topicmeta SET meta_value='http://www.portcityunderground.com/bbpress/' WHERE meta_key='uri' LIMIT 1July 28, 2008 at 2:18 pm #65708In reply to: Intergrating the theme
793634
InactiveAnd I get this if I try to edit any of the settings
Warning: Cannot modify header information - headers already sent by (output started at /home/crusaders4christ/public_html/bbpress/bb-includes/db-mysql.php:130) in /home/noproblem/public_html/wp-includes/pluggable.php on line 770July 28, 2008 at 2:07 pm #65707In reply to: Intergrating the theme
793634
InactiveThe script from the website that you gave me…
There is stuff in wordpress everywhere saying on the top of the thing (like the top of the page)(but it only happens in the admin control panel) saying
bbPress database error: [Table 'c4cwp.wp__users' doesn't exist]
SELECT * FROM wp__users WHERE ID = 3Thats one of the main reasons why I want to fix it…and it also changed my homepage to my blog. And when I remove the script well thats where things get extremely messy.
July 28, 2008 at 11:15 am #3693Topic: Looking for a template like official WP
in forum Themes795625
InactiveHi all,
i’m looking for a template which seems like official forum of WP : http://wordpress.org/support/
i’ve seen many template, but this seems to be th nearest that i’m looking for for my forum ( http://www.mummujoruxu.com/forum )
If you know where i can find a similar template, or this
thanks
July 28, 2008 at 6:47 am #57459In reply to: *seamless* wordpress integration
Vili
Participantdeliciousbass:
The “latest discussions” list at http://akirakurosawa.info/forums/ is compiled without the use of WordPress or bbPress loops. Instead, it makes use of two direct hand-crafted MySQL queries to the database, one to the WordPress tables and the other to the bbPress ones.
Basically, both queries search for all the posts (or comments, in the case of WordPress) written in the past month, then put these posts into various arrays. The arrays are then sorted so that the items are in a reversed chronological order, and finally the resulting list is displayed on the page with only the latest post/comment from each thread/blogpost/page included.
In case it is any help, here is the code that I use — I wouldn’t suggest just copy-pasting it to your site though before reading it through and knowing what you are doing. You may at least need to change the table names. I have added comments to give some idea what is done where.
There most probably is a simpler way to do this, the php code could be streamlined, made more error-resistant, and it could possibly also be done with WordPress/bbPress tags, or it could be turned into a plugin, if someone has the time and the energy.
July 28, 2008 at 4:42 am #66408In reply to: Possible way to upload image to post
chrishajer
ParticipantOn another note, I fixed the JavaScript error and was able to use the [INSERT] link to insert the code into the post, but this is what appears:
[attachment=1,undefined]I am guessing the undefined is part of the problem. That code still remains in the post though. I read this in the plugins page:
(extra BBcode plugin not actually needed)I don’t have any bbCode plugin installed (I have no plugins installed actually) so I’m not sure why this bbCode is not being converted by the plugin.
July 28, 2008 at 4:38 am #65705In reply to: Intergrating the theme
793634
InactiveOK this is how I have it set up…
wordpress is at /
bbpress is at /bbpress
I don’t care if I do or do not integrate it I just don’t want to have any errors. And when I took out the script everything went blank white and displayed the error message…so I decided to put it back in but I am getting this type of error instead when I try to log in to bbpress(which I can’t ever since I tried to integrate it)
bbPress database error: [Table 'c4cwp.wp__users' doesn't exist]
SELECT ID FROM wp__users WHERE user_login = 'Noproblem'
bbPress database error: [Table 'c4cwp.wp__users' doesn't exist]
SELECT * FROM wp__users WHERE user_login = 'Noproblem'I am running 2.6 of wp
and the latest for bbpress as well…
Thanks for the help,
Noproblem
July 28, 2008 at 4:03 am #66405In reply to: Possible way to upload image to post
chrishajer
ParticipantI tried inserting the bbcode directly, like the JavaScript would have done (I think), but it does not appear to work either.
[attachment="2","1"]The above just displays in the post.
July 28, 2008 at 3:48 am #66404In reply to: Possible way to upload image to post
chrishajer
ParticipantThere are two different options here.
1. Allow Images plugin. The member needs to link to an image available in the Internet somewhere. If that’s not a problem, then that’s the way to go. It allows members to insert images into their posts. Pretty easy.
2. Attachments plugin. This you have working as attachments now, but you want the image inline, not attached. The newest version is supposed to do that, and I just read this on the plugin page:
After uploading, an [INSERT] link will appear next to each attachment.So, the user needs to upload it first, then go back and edit their post, and click the [INSERT] link. I actually just noticed that: I have the link, but it doesn’t work. It seems like a JavaScript error.
Error: myField is not defined
Source File: http://www.example.com/bbpress/edit.php?id=2
Line: 76If you cannot use the Allow Images plugin, instead of the Attachments plugin, then you might want to post your concerns on the plugin page, or wait for _ck_ to show up here. The plugin was released early because a lot of people were looking for the inline functionality, and I’m sure _ck_ will appreciate feedback from anyone using it.
July 28, 2008 at 3:03 am #64545In reply to: How to Add custom Nav Bar to Theme?
RossB
MemberChris – need some clarification PLEASE.
I’ve changed the HTML tags, put them in a div and given it a CSS class, exactly as you suggested. I’m stuck at your point 3. I’ll enumerate for ease of reply.
1. Should I still be in the header.php file when making the CSS code you have suggested? Or should all CSS code be in the style.css file?
2. I don’t understand what you mean by “add it right around the lines for the #header, since you’re still in the #header div”. Specifically:
a) Where are the #header lines you refer to, and
b) When you say “add it right around the lines for the #header”, I’m not sure what you mean by “right around”, exactly. Do you mean immediately under #header?
I didn’t anticipate these questions. I am very ignorant technically. Thanks for your patience.
thion
MemberBecause I have no idea how to deal with all this SVN stuff in Ubuntu (I’m just a “user”, not a geek), and I want to share plugin no matter what – here it is:
http://astateofmind.eu/freebies/bbflickr/
I’ve made modifications to original FlickrRSS to make it working under bbPress – you can display your photos, your set, group or community photos from Flickr on your forum now
.You can see demo here on sidebar.
July 27, 2008 at 3:12 pm #66389In reply to: Need help with plugin submission
thion
MemberOh my… this will be more difficult than I thought in first place
. Thanks for links, I’m going to look for some SVN “manager” for my Ubuntu…Edit:
OK, topic is resolved. Although my knowledge is not enough to deal with SVN yet…
July 27, 2008 at 3:00 pm #66393In reply to: Just a question…
chrishajer
ParticipantYes, put it in it’s own folder, inside the WordPress folder. So you might have something like this:
/var/www/public/website/wordpress
/var/www/public/website/wordpress/bbpress/The 404 error might be because you are trying to use permalinks, either “slugs” or true, and they’re not set up on your server. I would change them to
falsefor now and see if you can get the links to work. If that works, then you know that was the problem and you just need to set up permalinks.https://bbpress.org/documentation/faq/#pretty-permalinks
phpBB3 conversion:
https://bbpress.org/forums/topic/phpbb3-converstion
I don’t think so, not easily, not yet. I think there was a script to export phpBB2 to bbPress:
https://bbpress.org/forums/topic/a-phpbb-to-bbpress-database-converter
- SQL query:
-
AuthorSearch Results