Search Results for 'code'
-
AuthorSearch Results
-
December 19, 2007 at 1:09 am #60856
Sam Bauers
Participant> I suspect bbPress of having hard coded a connection to localhost and thus configuring define(‘BBDB_HOST’, ‘…’) to be something else than localhost doesn’t really matter.
That’s simply not the case.
December 18, 2007 at 10:18 pm #62083In reply to: Extended descriptions for forums?
alderete
MemberYeah, I guess it would work for now, we only have a few forums. But I’m reluctant to put that kind of thing into the templates, where it’s hard to update, and prone to typo problems, etc., if the conditional code gets accidentally mucked up.
Is there any way to add arbitrary meta attributes to things in bbPress, the way you can add them to posts in WordPress?
December 18, 2007 at 9:40 pm #62092In reply to: define database name ? – config.php
livibetter
MemberCheck Step 2 of https://codex.wordpress.org/Installing_WordPress#Detailed_Instructions
It’s written for WordPress, but you can use it for installing bbPress.
December 18, 2007 at 8:21 pm #62066In reply to: Email all users from bbpress
chrishajer
ParticipantYou could extract all the email addresses from the database with a tool like phpMyAdmin. I don’t know of a plugin that does this. If it’s a onetime thing, I would just grab the email addresses from the database with a query like:
SELECT DISTINCT user_email
FROM bb_users
ORDER BY user_email ASCWith all the email addresses, then just send out a mass email with your email client putting their email addresses in the BCC field.
Are you looking to do this regularly, and are you thinking this should be a plugin? I guess you’d need to know if the installation were integrated or not, then query the correct table, and also if it is an integrated installation, you’d need to separate out the bbPress registrations from the WordPress registrations.
December 18, 2007 at 8:13 pm #62090chrishajer
ParticipantIf you are going to do something like bb_installation_ and bb_plugins_, it sounds like you want subforums. You would have one installation in a directory like /forums/ then you create subforums in your admin panel.
You would NOT create multiple
$bb_table_prefix =lines – that wouldn’t work.December 18, 2007 at 4:09 pm #61967In reply to: Broken Profiles for users with spaces in the names.
bloggerdesign
Membersambauers, is there an ETA on that? I’m not trying to rush it, just wondering.
December 18, 2007 at 4:37 am #61892In reply to: Limiting RSS Feed to First Post Only
livibetter
MemberI just noticed I gave you wrong link to
rss.phpThis is the correct one: http://llbb.pastebin.com/f1aee01cf
December 18, 2007 at 1:54 am #61886In reply to: Limiting RSS Feed to First Post Only
livibetter
MemberThe generated result, when you navigate to
/wrdp2/bbp1/rss/.The thing starts with
<?xmlDecember 17, 2007 at 10:14 pm #62076In reply to: Installation woes
livibetter
MemberWell I updated WP…
You probably need to ask in WordPress Support.
Here is a document: https://codex.wordpress.org/Upgrading_WordPress_Extended#Detailed_Upgrade_Instructions_for_1.5.x.2C_2.0.x.2C_2.1.x.2C_or_2.2.x_to_2.3.1
December 17, 2007 at 10:09 pm #61882In reply to: Limiting RSS Feed to First Post Only
livibetter
MemberWhat is that line of generated RSS?
<link></link>? (posting completely to pastebin would be better to find out)Have you set
$bb->uriin your config file?What browser are you using?
December 17, 2007 at 7:35 pm #62079In reply to: Posts lost :(
r4zv4n
MemberUnfortunately, not only they aren’t in the DB, but I don’t have a usable backup either (the last full backup I have is from about two weeks ago and the daily backup has the same thing as.. what i see).
Another weird thing is that some days ago, in my Akismet spam list I found some posts from way back (that weren’t spam, but.. why check them if they were already “accepted” ?).
So I suspect that something might have triggered a full check and it automagically deleted what it considered spam or something..
So, I lost about a month and some of posts
fel64
Memberlivibetter, if you can separate the logic code from the presentation it’d be even better. You can always put a hook into the template and put the code into a plugin, or use the
queryfilter to find when the topics are being looked for.December 17, 2007 at 12:02 pm #62057In reply to: Having trouble integrating WP functions
livibetter
Member!defined('DB_NAME')is redundant, since you should be only one can code on your files.I will use
if ( !strpos($_SERVER["PHP_SELF"], 'bb-admin') )
require_once('../wp-blog-header.php');Anyway, you did a great job!
PS. could you show us your forums?
December 17, 2007 at 11:12 am #62056In reply to: Having trouble integrating WP functions
ixray2
MemberHere is a quick workaround I just figured out, but I’m not sure this is state of the art:
Instead of
require_once(dirname(__FILE__) . '/../wp-blog-header.php');in config.php, I put
`if ( !defined(‘DB_NAME’) && !strstr($_SERVER[“PHP_SELF”],’bb-admin’) )
require_once(dirname(__FILE__) . ‘/../wp-blog-header.php’); `
December 17, 2007 at 11:07 am #60927In reply to: DB access problem in the first installation step.
Asbjørn Ulsberg
MemberThere is still a set of problems with this. The value of
$this->$dbhnameisn’t checked before it’s used inmysql_get_server_info()on line 75 indb-mysqli.php. If the connection fails, the error won’t be echoed to the user because the use of@on themysql_connect()call and then the script just continues, assuming the connection went fine, which in my case, it din’t. Also, the call should be tomysql<b>i</b>_connect()and notmysql_connect(), as far as I can understand.The patch doesn’t fix these problems and they need to be fixed for bbPress to work on my host. I’d write these comments on the associated ticket, but there doesn’t seem to be any way to register or comment anonymously there.
December 17, 2007 at 10:41 am #60854Asbjørn Ulsberg
MemberI have the same problem and overwriting
db-mysqli.phpwithdb.phpdidn’t help. Just for completeness, here’s the error messages I encounter:Warning: mysql_get_server_info() [function.mysql-get-server-info]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/<snip>/bbpress/bb-includes/db-mysqli.php on line 73I suspect bbPress of having hard coded a connection to
localhostand thus configuringdefine('BBDB_HOST', '...')to be something else thanlocalhostdoesn’t really matter. I don’t have MySQL and Apache installed on the same physical server, so I have to access MySQL through a hostname and thuslocalhostwon’t work.December 17, 2007 at 9:14 am #2712Topic: Posts lost :(
in forum Troubleshootingr4zv4n
MemberThis morning when I logged in, I noticed a big chunk of the posts on my forum were gone. I still have posts from the beginning and some recent ones, but a large batch of posts from the middle was lost

Any ideas on why or how I could get them back ?
December 17, 2007 at 7:28 am #62071In reply to: Installation woes
chrishajer
ParticipantYou really, really, really need to upgrade your WordPress:
<meta name="generator" content="WordPress 1.5.1.2" />Until then, I think it would be silly to try and fix any errors in your install.
Current WordPress version is 2.3.1: 1.5.1.2 was released 2.5 years ago and has security issues as well as limited functionality.
December 17, 2007 at 6:36 am #61878In reply to: Limiting RSS Feed to First Post Only
livibetter
MemberHere is a temporary solution:
rss.php: http://llbb.pastebin.com/f5c1a8a37rss2.phpof template: http://llbb.pastebin.com/f24cd6fd3If you need the last post content of each topic, please find a recent topic
Excerptand combine this with it.Edit: Oops… just find out you are also the starter of that topic.
December 17, 2007 at 6:31 am #62031In reply to: Forum linking back to blog page
chrishajer
ParticipantIt’s working for me. I clicked on some forum names and was brought to a page that listed that forum name. There were no topics though so it said “you must be logged in to post.” So, I created an account and I can look around and everything looks normal.
If any link that had ‘forum’ in it redirected to the main blog, my guess is you had a permalink issue. I would set your mod_rewrite line to false for the time being (which you may have done already to get it working, since it seems to be fine right now.)
$bb->mod_rewrite = false;December 17, 2007 at 6:26 am #62069In reply to: Installation woes
chrishajer
ParticipantWhy is your bbPress calling a WordPress function?
wp-includes/functions.phpIs there more to your setup than it appears?
Actually, I just went to your forum and it is working?
December 17, 2007 at 4:15 am #61875In reply to: Limiting RSS Feed to First Post Only
Doobus
MemberAfter all my slicing and dicing with bbPress, I’m finally coming close to completing everything, except one thing. This RSS thing is really killing me
. I’m wracking my brain trying to explain this the best way possible. So here I go. Each forum has a feed, how do I only show the topics in the feed? As it stands right now, the feed is showing the replies as well, I just want topics to show.
Sorry for sounding redundant, but I’m desperate >_< to complete. Thanks in advance.
December 16, 2007 at 11:22 pm #62054In reply to: Having trouble integrating WP functions
livibetter
MemberThe workaround won’t work for plugins.
@sambauers: I think there is no complete working solution if you don’t touch the core files.
First, load_default_textdomain and load_plugin_textdomain are WordPress version, they only look language files in WordPress directories. So, in bbPress, all text won’t be translated since language file are not loaded because WordPress load_*_textdomain won’t find language files in bbPress’ directories.
Second, WordPress and bbPress both use
defaultas textdomain when calling __() or _e() without assigning textdomain, that means we can only use either WordPress’ or bbPress’ language files at the same time, not both.(edit: plugin’s problem can be solved by add a bb_load_plugin_textdomain, but bbPress’s part. If we don’t want to use something like bb__(), bb_e(), maybe we can try to merge bbPress translations into WordPress’ in runtime? or search bbPress’ first, then WordPress’ if can’t find)
December 16, 2007 at 11:11 pm #62052In reply to: Having trouble integrating WP functions
livibetter
MemberSorry, didn’t read bbPress source carefully. Replace first if clause with
if ( defined('BBLANG') && '' != constant('BBLANG') ) {
if ( function_exists('load_default_textdomain') ) {
global $l10n;
$locale = BBLANG;
$mofile = BBPATH . BBINC . 'languages/' . "$locale.mo";
if ( is_readable($mofile) ) {
$input = new CachedFileReader($mofile);
$l10n['default'] = new gettext_reader($input);
}
}
else {
include_once(BBPATH . BBINC . 'streams.php');
include_once(BBPATH . BBINC . 'gettext.php');
}
}PS. That “..” is how you put variable to be parsed in string in PHP ( Variable parsing )
December 16, 2007 at 10:56 pm #62048In reply to: Having trouble integrating WP functions
ixray2
Membertried out your workaround, does not seem to work (doesn’t load language file).
also, shouldn’t it be
$mofile = BBLANGDIR . $locale . ".mo";?but even with that fixed, it doesn’t work.
but still, thanks a lot!!
-
AuthorSearch Results