Search Results for 'code'
-
Search Results
-
Hi Guys,
I’ve been at this all morning and I cannot figure out why its broken. I’ve looked at the code so much I’m cockeyed.
I’m trying to integrate bbPress into a clients already established site which uses a server side includes so I figure I’ll just use php includes to call the same files but it just isn’t working out.
site: radioavivamiento.com
board: radioavivamiento.com/foro
I would appreciate any help.
Topic: Call to undefined function:
Hi, first of all, Thank You For Doing This
I uploaded the folder and trying to run the install.php (http://www.gaszappers.com/forum/bb-admin/install.php), and all I got is this:
Fatal error: Call to undefined function: bb_install_header() in /home/2206/domains/gaszappers.com/html/forum/bb-admin/install.php on line 11
Any Clues?
I triple check the dbName, user, password, directory and all that jazz, here’s my config.php:
<?php
// ** MySQL settings ** //
define(‘BBDB_NAME’, ‘db2206_gaszappers’); // The name of the database
define(‘BBDB_USER’, ‘********’); // Your MySQL username
define(‘BBDB_PASSWORD’, ‘*********’); // …and password
define(‘BBDB_HOST’, ‘internal-db.s2206.gridserver.com’); // 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://gaszappers.com’; // 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 = ‘/forum/’; // Example: ‘/forums/’
// What are you going to call me?
$bb->name = ‘GAS ZAPPERS Development Forum’;
// This must be set before running the install script.
$bb->admin_email = ‘kenneth@tinkin.com’;
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = true;
// 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 = ”; // WordPress table prefix. Example: ‘wp_’;
$bb->wp_home = ”; // WordPress – Options->General: Blog address (URL) // No trailing slash. Example: ‘http://example.com’
$bb->wp_siteurl = ”; // 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’ );
?>
Topic: Installing Plugins
I’m new at bbpress so please bare with me.
I’ve searched and read the plugin instructions and I can’t figure out how to get the plugins workin.
I created the my-plugins directory and added the plugins inside and yet nothing. Is there supposed to be a plugins management area in the admin? How are they activated? I’m confused.
I’m trying to add the following plugins (instructions included):
allow images = Add the
allow-images.php
file to bbPress’my-plugins/
directory.post notifications = Add
notification.php
to your/my-plugins/
directory.bb-ratings = Add
bb-ratings.php
,bb-ratings.css
,bb-ratings.js
, andstar.gif
to your/my-plugins/
directory.None of them seem to be available
“Location” is in the user Profile, but doesn’t appear when they post. I’d like to add it, so that it reads “Location: Ohio” or whatever.
I tried guessing and inserted this:
<?php post_author_location(); ?>
But that didn’t work.
And finally, are all these functions listed somewhere?
Topic: login form wordpress
At my site I have a login form put in the header (generated by wordpress, with wordpress functions) that displays either the form for the user to login or the welcome text with the username etc.
The reason I don’t want to use wordpress own login function is because that forwards the user to their wordpress profile which they shouldn’t be using.
The problem I now encountered using the usernames_i18n_fix.php plugin is that wordpress doesn’t display the usernames properly. For the time being I’ve removed the username from the welcome text. But is there any way to make this work through wordpress without including bbpress every time wp loads?
Is it possible somehow to redirect the user to the page they logged in from instead of sending them back to the forum main page?
To echo the username I use
<?php $user = wp_get_current_user(); echo $user->display_name; ?>
I followed the discussion in “Updated to Desmond But Theme Not Working”, however the proposed solutions are not working for me.
I have a IIS 6.0, windows 2003 server, MySQL 5.x and PHP 5.0 installation. Both directories “my-templates/” and “my-plungins/” are in the bbpress root. The “patch-to-URL.php” plugin is inside the “my-plugins” folder.
When looking at the source code in Firefox 2.0 I get
“<link rel=”stylesheet” href=”http://129.82.32.135forums/my-templates/kakumei/style.css” type=”text/css” />” (notice the “” before forums) and inside the admin section for the forum the themes previews are not visible, tough their names and the options to select are present.
However when using IE 7.0 the source code I get
“<link rel=”stylesheet” href=”http://129.82.32.135/forums/bb-admin/style.css” type=”text/css” />” and the themes previews are visible.
Any ideas how to fix this errors. Thanks.