Search Results for 'code'
-
AuthorSearch Results
-
July 14, 2009 at 11:40 pm #76128
In reply to: integrating with external authentication system
dz7
MemberOh, last post was a mistake.

I finally figured it out. I was right with the last thing I tried…the function to change was validate_auth_cookie, which should return an integer representing the user ID. (It wasn’t working because I hadn’t yet set that user’s capabilities in the database.)
So, for anyone trying to do the same thing: the function that needs to be rewritten is validate_auth_cookie in class.wp-auth.php. Write your own function to validate the cookie, and return a user ID (int).
July 14, 2009 at 8:56 pm #76223In reply to: Installation madness o_O
katastrov
MemberGrblrlblrlblll… now it works but i had to recreate database with different names, password is all diferent etc etc. Forum is installed but that was quite something

thanks again for your help Ipstenu
July 14, 2009 at 7:14 pm #76221In reply to: Installation madness o_O
Ipstenu (Mika Epstein)
ModeratorDon’t rename bb-config-sample.
Finally, I have also created the database in phpMyAdmin. Of course there’s 0 tables.
That’s fine
You have to create the DB before bbPress can connect to it. bbPress doesn’t make the DB for you (any more than WordPress does so this should be familiar).You should be able to run the install now, though make sure bbPress can write to the bbpress folder, so it can create the bb-config.php file as it goes (you can remove the access later).
July 14, 2009 at 6:32 pm #76210In reply to: Closed registrations
Ipstenu (Mika Epstein)
ModeratorI put this in my .htaccess for my forums:
Redirect /forums/register.php http://mysite.com/wpmu/wp-signup.php
Redirect /forums/bb-reset-password.php http://mysite.com/wpmu/wp-login.php?action=lostpasswordNot so much a disable but ‘Ignore the man behind the curtain’.
July 14, 2009 at 5:27 pm #76142In reply to: Step two questions
Ipstenu (Mika Epstein)
ModeratorAll that means is you should go into your wp-config and copy the whole lines for AUTH and SALT. Then paste those into bb-config, but name ’em BB_AUTH and BB_SALT

Example:
In wp-config.php I have
define('AUTH_KEY', 'blahblah');
define('SECURE_AUTH_KEY', 'blahblah');
define('LOGGED_IN_KEY', 'blahblah');
define('NONCE_KEY', 'blahblah');
define('AUTH_SALT', 'bliddyblah');
define('LOGGED_IN_SALT', 'bliddyblah');In bb-config.php I have
define('BB_AUTH_KEY', 'blahblah');
define('BB_SECURE_AUTH_KEY', 'blahblah');
define('BB_LOGGED_IN_KEY', 'blahblah');
define('BB_NONCE_KEY', 'blahblah');
define('BB_AUTH_SALT', 'bliddyblah');
define('BB_LOGGED_IN_SALT', 'bliddyblah');July 14, 2009 at 4:25 pm #76155In reply to: Want to add a navigation header
andywilliams244
MemberI cannot find any tutorials online, i’ve been looking all afternoon.

Any chance somebody could give me a step by step guide?
July 14, 2009 at 4:18 pm #76190In reply to: Can I edit my tags?
deadlyhifi
Participantsorry, it’s actually
ul#tags-list li(missed the s off)I think you need to do some reading about stylesheets and how they work. It’s quite straight forward and will stand you in good stead.
July 14, 2009 at 4:12 pm #76188In reply to: Can I edit my tags?
Ashish Kumar (Ashfame)
ParticipantNo, we just need to include CSS.
Take a look at the page source, its
tags-listnottag-listtry
ul#tag-list li { display: inline; }July 14, 2009 at 3:55 pm #75835In reply to: Fatal Error on Plugin Activation
citizenkeith
ParticipantYeah, it’s too late to go back now, huh?

Like I said, this isn’t a mission critical forum… it’s a place for my friends to chat and hang out. My other site, which is a public forum that gets decent traffic, is still on 0.9.
Just hoping my posts are helping development, and not just wasted bandwidth…
July 14, 2009 at 3:52 pm #76187In reply to: Can I edit my tags?
andywilliams244
MemberI put the code in style.css and it’s not refecting the change.
Is there a specific area in style.css where the code has to go?
July 14, 2009 at 3:44 pm #76179In reply to: Adventure Canoe Forum
Ashish Kumar (Ashfame)
ParticipantUtilize the space on the right properly. How about expanding the width of tables?
July 14, 2009 at 3:40 pm #76185In reply to: Can I edit my tags?
andywilliams244
MemberI can’t seem to find exactly where to put that code?
Any help?
July 14, 2009 at 2:51 pm #15333Topic: Can I edit my tags?
in forum Themesandywilliams244
MemberAt the moment my tags are in a list, which causes a lot of empty space on my page when a lot of tags are entered. Is there any way I can change the coding to make it go in a line? Or Limit the amount? Or both?
Thanks guys.
July 14, 2009 at 2:22 pm #76173In reply to: What will happen to all these abandoned plugins?
johnhiler
MemberI sometimes see plugins patched by people other than the original developer… usually they just upload the patch to a private server or to pastebin, and then submit a link to the path on the plugin comments page. The original author then often releases a patched version using the code fixes.

If the plugin is completely abandoned, there have been cases where a new developer has taken things over. Those situations are pretty rare though…
You should definitely submit your patches in the comments of the plugin pages, if you’re willing!
July 14, 2009 at 1:58 pm #76171In reply to: What will happen to all these abandoned plugins?
Ipstenu (Mika Epstein)
ModeratorIf WordPress is any indication, people just spin-off the abandoned plugins and make newly named ones with credit given. A branch, if you will.
Go ahead and submit them as ‘new’, but be a mench and credit where it’s due
July 14, 2009 at 1:57 pm #76151In reply to: Want to add a navigation header
andywilliams244
MemberThanks a bunch!
I’m trying to copy over my nav bar from my wordpress website, would that be possible?
Every time I try and copy over the code under “main” there an place it under “main” on the forum header.php it doesn’t appear.
July 14, 2009 at 1:46 pm #15330Topic: What will happen to all these abandoned plugins?
in forum Pluginsdeadlyhifi
ParticipantThere appear to be quite a few plugins that have been abandoned by their developer.
Under open source is it allowed to take over the development of someone else’s plugin, and then resubmit it (obviously crediting the original author)?
Perhaps all the current plugins should be thrown into some kind of code vault for people to use, and actively developed plugins be resubmitted?
I’ve just fixed two plugins to work with V1.0 but have no way of knowing if their original authors are planning on updating them at any point. I’d want to do more work on them if I was going to resubmit them, but I’m not sure whether to wait a bit to see if the original developer decides to do anything with them.
I know _ck_ is holding off a little bit for bbP to get more established before making fixes (which is fair enough). Have we just entered a stage of limbo?
July 14, 2009 at 1:42 pm #76170In reply to: Edit Link not working for Users
AdventureCanoe
MemberOk I think I resolved it. I downloaded the new files and uploaded the newer version of Akismet which still says its 1.0
But it seems to be working. Thanks for pointing me in the right direction.
Now its time to do a full upgrade to 1.0.1 and make sure to recode all my fancy core changes.
Thanks for the help
James
July 14, 2009 at 1:37 pm #76119In reply to: How to insert ads other than google ads
Ipstenu (Mika Epstein)
ModeratorBirdy, can you link to the plugin page instead? If you want to show code, you have to put it between backticks (and when I figure out how to post them without zooming into code formatting…)
July 14, 2009 at 1:36 pm #76150In reply to: Want to add a navigation header
_ck_
ParticipantOpen your
header.phptemplate and find the<div id="main">near the end.Put any kind of html you want after there for navigation.
Put it before the php profile part.
July 14, 2009 at 1:36 pm #76138In reply to: Step two questions
Ipstenu (Mika Epstein)
Moderatorkipperman, if the database has the tables in it, it’ll show up as needing to upgrade. You have to delete the tables, not just wipe them.
In regards to the KEYs and SALTs, you should be able to pull them right from the wp-config.php file for WPMU. It’s not quite right in the setup, I noticed last week.
Can I give the forum the same database as my WP and enter the same settings in the set up?
Yes you can

Stoke me a flipper, I’ll be back by lunch.
July 14, 2009 at 1:32 pm #76146In reply to: Cookie sharing – bbPress 1.0.1 & WPMU 2.7.1
Ipstenu (Mika Epstein)
ModeratorWhat part isn’t working? Just not at all, you can’t log in with the same ID on both, or is it the logging in on one logs you out on the other? There are a few similarish errors, but they’re debugged differently.
As always, re-copy/paste the KEYs and SALTs from WPMU to BB, flush your cache and cookies, and try again. Even if you’re sure they’re right, it doesn’t hurt

Also:
define( 'WP_AUTH_COOKIE_VERSION', 1 );should be in your bb-config, not wp-config.July 14, 2009 at 1:00 pm #15326Topic: Want to add a navigation header
in forum Themesandywilliams244
MemberWondering how I would go about doing this?
I want it to consist for 3-4 buttons.
I seen a thread about this a little lower down but it had been locked without a answer.
So was wondering how i’d go about this?
July 14, 2009 at 12:28 pm #76118In reply to: How to insert ads other than google ads
birdy404
Memberi downloaded the plugins ADSENSE FOR BBPRESS and GOOGLE ADSENSE CONFIGURATION. The former gives an option to insert codes but when i put in my OpenX code nothing shows up. The latter, however, displays my OpenX ads, only problem is it shows up in the footer when i want it in the header and between posts. i tried inserting the html codes directly in my themes but it shows as html codes and not as an ad. am i doing something wrong? please let me know.
Also, can any of you please help me configure it to not only show up in the footer? here’s the coding for that plugin:
<?php
/*
Plugin Name: Simple Google Adsense
Plugin URI: http://www.strapontins.org/people/rentendre/simple-google-adsense-bbpress/
Description: Add Google Adsense code in your bbPress forum, in the footer
All users are welcome to improve on it :pAuthor: Frédéric Petit
Author URI: http://www.strapontins.org/
Version: 0.2
License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/
*/
add_action(‘bb_admin_menu_generator’, ‘bb_gad_configuration_page_add’);
add_action(‘bb_admin-header.php’, ‘bb_gad_configuration_page_process’);
function bb_gad_configuration_page_add() {
bb_admin_add_submenu(__(‘Google Adsense Configuration’), ‘use_keys’, ‘bb_gad_configurtion_page’);
}
function bb_gad_configurtion_page(){?>
<h2><?php _e(‘Google Adsense Configuration’); ?></h2>
<form class=”options” method=”post” action=””>
<fieldset>
<label for=”ga_key”>
<?php _e(‘Google Adsense User Id:’) ?>
</label>
<div>
<textarea class=”text” name=”ga_key” id=”ga_key” value=”<?php bb_form_option(‘ga_key’); ?>” ></textarea>
<?php _e(‘Put your adsense code, without the code of the script pagead2.googlesyndication.com/pagead/show_ads.js’); ?>
</div>
</fieldset>
<fieldset>
<?php bb_nonce_field( ‘ga-configuration’ ); ?>
<input type=”hidden” name=”action” id=”action” value=”update-ga-configuration” />
<div class=”spacer”>
<input type=”submit” name=”submit” id=”submit” value=”<?php _e(‘Update Configuration »’) ?>” />
</div>
</fieldset>
</form>
<?php
}
function bb_gad_configuration_page_process() {
if ($_POST == ‘update-ga-configuration’) {
bb_check_admin_referer(‘ga-configuration’);
if ($_POST) {
$value = stripslashes_deep( trim( $_POST ) );
if ($value) {
bb_update_option(‘ga_key’, $value);
} else {
bb_delete_option(‘ga_key’ );
}
} else {
bb_delete_option(‘ga_key’);
}
$goback = add_query_arg(‘ga-updated’, ‘true’, wp_get_referer());
bb_safe_redirect($goback);
}
if ($_GET) {
bb_admin_notice( __(‘Configuration saved.’) );
}
}
// Bail here if no key is set
if (!bb_get_option( ‘ga_key’ ))
return;
function createGAdCode($accountId) {
$code .= ‘<div class=’bbpress_adsense’>’ . “n”;
$code .= ‘ ‘ . $accountId . ‘ ‘ . “n”;
$code .= ‘<script type=’text/javascript’ src=’http://pagead2.googlesyndication.com/pagead/show_ads.js’></script>’ . “n”;
$code .= ‘</div>’ . “n”;
return $code;
}
function insertGAdCode() {
$accountId = bb_get_option(‘ga_key’);
if ($accountId != ”) {
echo createGAdCode($accountId);
}
}
add_action(‘bb_foot’, ‘insertGAdCode’);
?>
July 14, 2009 at 11:07 am #69738In reply to: phpbb3 -> bbpress converter
MrPresident
MemberJust done this myself on a live phpBB3 forum, worked like a dream, no issues. Thanks very much!
-
AuthorSearch Results