Search Results for 'code'
-
AuthorSearch Results
-
May 18, 2007 at 3:15 am #57694
davidbaldiwn
MemberThis is what the config file looks like:
<?php
// ** MySQL settings ** //
define(‘BBDB_NAME’, ‘turner_wrdp3’); // The name of the database
define(‘BBDB_USER’, ‘***********’); // Your MySQL username
define(‘BBDB_PASSWORD’, ‘*****************’); // …and password
define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
// Change the prefix if you want to have multiple forums in a single database.
$bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!
// If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.
// Adjust the domain and path to suit your actual URL.
// Just the domain name; no directories or path. There should be no trailing slash here.
$bb->domain = ‘http://forums.ppacp.org’; // Example: ‘http://bbpress.example.com’
// There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.
$bb->path = ‘/’; // Example: ‘/forums/’
// What are you going to call me?
$bb->name = ‘Professional Photographers Againsts Copying Photographs’;
// This must be set before running the install script.
$bb->admin_email = ‘*********@ppacp.org’;
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = false;
// The number of topics that show on each page.
$bb->page_topics = 30;
// A user can edit a post for this many minutes after submitting.
$bb->edit_lock = 60;
// Your timezone offset. Example: -7 for Pacific Daylight Time.
$bb->gmt_offset = -4;
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’
// to enable German language support.
define(‘BBLANG’, ”);
// Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
// of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at
// http://wordpress.com/api-keys/
$bb->akismet_key = ‘*************’; // Example: ‘0123456789ab’
// The rest is only useful if you are integrating bbPress with WordPress.
// If you’re not, just leave the rest as it is.
$bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;
$bb->wp_home = ‘http://ppacp.org’; // WordPress – Options->General: Blog address (URL) // No trailing slash. Example: ‘http://example.com’
$bb->wp_siteurl = ‘http://ppacp.org’; // WordPress – Options->General: WordPress address (URL) // No trailing slash. Example: ‘http://example.com’
/* Stop editing */
if ( !defined(‘BBPATH’) )
define(‘BBPATH’, dirname(__FILE__) . ‘/’ );
require_once( BBPATH . ‘bb-settings.php’ );
?>
May 17, 2007 at 6:06 pm #56978In reply to: bbpress / wordpress avatar?
Vili
ParticipantHmm. Actually, the code that I copy-pasted from the above seems to be different from what I have on my hard drive. At least a number of “<p>” tags appear to be missing.
May 17, 2007 at 6:01 pm #56977In reply to: bbpress / wordpress avatar?
Vili
ParticipantThere’s something odd there, as the code is 193 lines long, i.e. the line 193 includes only “?>”.
Anyway, I’ll send you the code in a sec by email.
May 17, 2007 at 3:48 pm #56697In reply to: Plugin: Avatar Upload
fel64
MemberAnaon, delete the old files from this plugin, download the plugin again and put the files back where they belong. Hopefully that will work. If not, download the latest version of bb and replaces the files on your server with new ones. It’s a strange error which seems to indicate to me that loading
bb-load.php
did not succeed fully.If a required file requires another file and that fails, does the original requirement also fail or generate a warning/error?
May 17, 2007 at 3:34 pm #57649In reply to: WP and BBpress in 2 separate dbs?
fel64
MemberI don’t know. I doubt it, because bbdb (the object used to do any database stuff) is hardcoded all over the place and you need a new bbdb object for every database you connect to, as far as I’m aware. So integration – which consists of sharing the users and usermeta table I think – would be impossible, unless you changed all references to the user tables to use your second bbdb object.
Why do you want to?
May 17, 2007 at 11:53 am #56696In reply to: Plugin: Avatar Upload
anaon
MemberHello,
I’m installing this plugin for my forum. Evering goes well, I have the default avatar, the avatar tab but I can’t upload anything: when I click on the avatar tab, I have this error:
Fatal error: Call to undefined function: bb_get_current_user_info() in /home.13/s/p/l/spleenar/www/forum/avatar-upload.php on line 24
Can you help me?
May 17, 2007 at 7:31 am #57647In reply to: limited functions
fel64
MemberI think it’s possible using a cleverly-written plugin that will kill the postform to reply to a thread if you’re not a mod or admin. It hasn’t been done, though, so you’d need to make it yourself.
To make mods or admin, the best thing is to let people register and then go to their Profile > Edit and change their role to mod or admin.
May 16, 2007 at 11:42 pm #57237In reply to: Hack: bb replies as wp comments; using bb API?
fel64
MemberHow does this crazy devlist thing work? Signed up but got no emails, so I assume no-one’s talking. I send an email to
bbdev@lists.bbpress.org
? I don’t want to completely break etiquette or somesuch first time, so I thought I’d wait and see but there isn’t that much to see.May 16, 2007 at 7:28 pm #57561In reply to: WordPress 2.2 is out! Any news about bbPress!
fel64
MemberYup. I think it is, I heard about it in the context of bb a while back. No news, no secrets, although there seems to be some code for view management in the bb-includes which may mean that a proper views system will be introduced (… sometime).
May 16, 2007 at 12:33 pm #56975In reply to: bbpress / wordpress avatar?
dyaddydad
MemberWordPress. I have deleted Dan’s. When I try to activate it or on every single page when it is activated. Can you e-mail me the code so that I have the exact version or post it in the plugins bit. Awgandrews ATHIS gmail.com .
Same again through:
Parse error: parse error, unexpected $ in /homepages/27/d120217802/htdocs/wp-content/plugins/cmdavatar.php on line 193
I haven’t intergrated it with bbpress yet, but since I can’t get it to activate, this doesn’t seem to be the problem.
Thanks!
May 16, 2007 at 12:28 am #51020In reply to: Close – but 404 on topics and profiles
Robert
MemberI had the same partial 404-links.
For me the right htaccess solved the issue.
It was really the missing
Options +MultiViews
in the .htaccess (root or bbpress-folder – both works). So maybe You’ve a further look?May 15, 2007 at 8:47 pm #57630In reply to: 2Checkout.com using WordPress / bbPress
fel64
MemberManually query the category database and output it? Not that it matters.
May 15, 2007 at 7:47 pm #56974In reply to: bbpress / wordpress avatar?
Vili
ParticipantIs this on a WordPress or a bbPress page, dyaddydad? Have you done a full bbPress integration, including the “functions” section? Do you use the $forumpage variable as suggested in my post with the code? Did you uninstall Dan’s plugin before uploading mine?
May 15, 2007 at 3:20 pm #57628In reply to: 2Checkout.com using WordPress / bbPress
fel64
MemberI would’ve thought the duplicated code wouldn’t be more than some basic HTML; CSS can easily be linked to and you have a different API anyway. I can’t say I really know, I haven’t done it. Your function to create the links could easily check if it was called from bb or WP automatically and respond appropriately, but I understand needing the WP API.
bbolman: https://trac.bbpress.org/timeline
May 14, 2007 at 10:53 pm #57626In reply to: 2Checkout.com using WordPress / bbPress
atomastro
MemberFew things regarding the wordpress header. The main reason for this is that I want access to the wordpress functions. This is because the sidebar has bbPress user account functions, such as view / edit profile. I need to know what the user’s wordpress id is in order to create these links when bbPress isn’t running. Granted, I could just send them to the wordpress profile, however I don’t care for the wordpress user profile page. It takes them completely out of the site. In addition to this, I dont really want them on the dashboard, for any reason. I eventually plan to extend the profile pages to include user comment activity in addition to forum activity, etc. I couldn’t do that without both systems running. As for the rest of the general integration, faking this functionality by copying and pasting code and duplicating everything seems lazy and sloppy.
May 14, 2007 at 10:40 pm #57624In reply to: 2Checkout.com using WordPress / bbPress
fel64
MemberThat’s a nice site, and I love the fact that you made a ‘fancy’ menu without using Flash. Also I really like the effect of that Start Selling badge
. The colour for stickies in your forum is a bit dodgy though, it might look nicer if you used the sidebar orange for that (and for the green headers maybe).
I don’t understand the necessity to use WP headers, though. Surely the amount of work needed to standardise the header is far less when you just copy the code? That’s got poor maintainability I admit, but there shouldn’t be anything you need to edit often in templates and if you really needed it you could write and use some wrapper functions that would determine which stuff to load.
May 13, 2007 at 10:16 pm #57611In reply to: How do you add moderators?
fel64
MemberActually, when I just try to add a new identity for testing, it seems to have automatically been set as a moderator.
That’s a bit worrying! What happens if every user becomes a mod?
Also remember WP is in version 2.1, while bb is still before official release at version 0.8.
May 13, 2007 at 4:34 pm #56971In reply to: bbpress / wordpress avatar?
Griffology
MemberWorks great vilimaunula! I really love Dans/Vili avatar thingy
It’s a nice solution.
May 13, 2007 at 4:25 pm #56970In reply to: bbpress / wordpress avatar?
Vili
ParticipantSorry for the confusion.
It’s a WordPress plugin. And no, you don’t need to install any avatar-upload thing, or indeed any other extra plugin to get this to work.
The function works both on WordPress and bbPress, but since it is a WordPress plugin (and thus a WordPress function) you will need to make WordPress functions available to bbPress. This is covered in the Integration with WordPress page in the bbPress documentation (see the last section, “Functions”).
I hope this clears things up a little.
May 13, 2007 at 3:45 pm #57516In reply to: Users display page with avatar
tecfre
Memberohhh i really wish i could do that . I am no where close to programming in php . Is it not possible for me to request such kind of plugin as normally if you see its a feature in most of the sites as they show the lastest joined users and also online users with avatars
May 13, 2007 at 1:17 pm #57235In reply to: Hack: bb replies as wp comments; using bb API?
fel64
MemberTrent, do you think you could point this topic out to one of those people with mighty WP/bb mojo? Just a gentle pointing out or something. Nothing pushy.
May 13, 2007 at 4:21 am #57606chrishajer
ParticipantI have my wordpress install as the root of my website and then there is a folder beneath that for ‘forums’.
So, my directory structure looks like this:
/var/www/wp-config.php
/var/www/forums/config.phpIn the bbpress config.php I have these (relevant) lines:
$bb->path = '/forums/';
$bb->wp_home = 'http://www.website.com';
$bb->wp_siteurl = 'http://www.website.com';For yours, since you have WordPress at wp_01, you would have something like this:
/var/www/index.html <---- your website home, not WP home
/var/www/wp_01/wp-config.php
/var/www/wp_01/forums/config.phpyour config.php:
$bb->path = '/wp_01/forums/';
$bb->wp_home = 'http://www.intar.org/wp_01';
$bb->wp_siteurl = 'http://www.intar.org/wp_01';HTH
Chris
May 13, 2007 at 4:10 am #57535In reply to: Plugin: lotsolinks
fredvee
MemberThanks for the brainstorming!
Exactly, something relevant to the keyword. Cause as things are now, they give ways to ‘cheat’ somehow, and for example put in very common keywords. This would be partially avoidable by blacklisting articles and stuff like that maybe. I think it would be cool to read the page they wanna promote and get the keywords from the meta-tag “keywords” in that page. Just cause it is less comfortable to change those just for a forum, I hope people have more interesting things to do
Furthermore they would be supposed to be relevant to the content.
But this introduces other complications… As far as I know this would imply the use of function calls like get_file_contents and stuff, that many hosters deny for not local files. There is a way to get around this by using the curl libraries (?), but will they be installed on the hoster?
Your idea is cool cause it basically resolves the problem! The only flaw I see is this would improve the pagerank of GOOGLE and not of the poster’s website. Cause I was in a ‘business stuff’ mood…
Yeah, it would raise the visit counts. And in a trend of helping the spread of informations sounds like a plan. If I’ve seen right, it would definitely be more ‘forum users’ oriented than ‘topic poster’ oriented.
Let’s not forget what fel64 said… cause if this system is based on the keywords (not tags) I still tend to think it would spoil the content of the topic itself. While if all is shifted to the tags of the topic, the magic happens (links from google, whatever) if the topic is well formatted (good tags etc.)
But it’s early in the morning again, sorry.
May 13, 2007 at 3:16 am #52912In reply to: MediaWiki, bbPress, and WordPress integration..
citizenkeith
ParticipantOk, this time I deleted all the Media Wiki tables from the database, then reinstalled Media Wiki. This time, I didn’t use a prefix for the table names.
I uploaded Authpress.php and added the code to Localsettings.php.
Now when I try to login, I get these errors:
Warning: Compilation failed: characters with values > 255 are not yet supported in classes at offset 33 in /web/abc/abc/citizenkeith.com/forums/wiki/includes/User.php on line 224
Fatal error: Call to a member function on a non-object in /web/abc/abc/citizenkeith.com/forums/wiki/includes/SpecialUserlogin.php on line 320May 13, 2007 at 2:10 am #57580In reply to: Hide a Topic?
citizenkeith
Participantfel64 – Thanks for the rundown. Unfortunately, I know very little about coding, so I’ll leave it up to somebody else. And that somebody may be dyaddydad!
dyaddydad, I’d love to check out the plugin. Can you send it over to me so I can test it? kamera at gmail dot com. Thanks!
-
AuthorSearch Results