Search Results for 'code'
-
AuthorSearch Results
-
March 16, 2010 at 11:18 am #84946
In reply to: Change the URL in registration e-mail
deadlyhifi
ParticipantHave you looked at bb-includes/functions.bb-users.php?
In
function bb_send_pass( $user, $pass ) {
if ( !$user = bb_get_user( $user ) )
return false;
$message = __("Your username is: %1$s nYour password is: %2$s nYou can now log in: %3$s nnEnjoy!");
return bb_mail(
bb_get_user_email( $user->ID ),
bb_get_option('name') . ': ' . __('Password'),
sprintf($message, $user->user_login, $pass, bb_get_uri(null, null, BB_URI_CONTEXT_TEXT))
);
}have you tried changing the
bb_get_uri(null, null, BB_URI_CONTEXT_TEXT)to your web address?March 16, 2010 at 7:28 am #85834In reply to: username function
deadlyhifi
ParticipantHave a look at bb-includes/functions.bb-template.php you’ll see the functions
function get_post_author( $post_id = 0 )andfunction post_author_link( $post_id = 0 ).You’ll need to recreate those in a plugin or in your functions file to use
$user->user_logininstead of$user->display_name.Have a look at profile.php in your theme to see how it is generated there. But remember that on post.php you’ll have to pass in the ID of the post to get the username otherwise you’ll be fetching details on the logged in user rather post author.
I hope that helps, good luck.
An easier way would be to take away the ability to allow change of display name. Then it will default to username anyway. Have a look at topic/help-with-basic-command-to-add-new-profile-fields if that’s the avenue you want to take. If you do, don’t forget to set everyones ‘nicename’ back to what their username is.
March 16, 2010 at 6:13 am #52921In reply to: MediaWiki, bbPress, and WordPress integration..
talatorre
MemberI am trying to integrate MediaWiki user authorization but after hours of searching I can’t find the code for AuthPress.php.
http://spectaclar.org is no longer online. Can someone post the code here or link to a working site? If I can find the code I would love to resurrect this project; that is unless someone has a better way of creating a single sign on setup for WP, bbPress, and MediaWiki.
March 16, 2010 at 1:14 am #77923Kevin Ryman
ParticipantThanks qayqay12! That worked!
March 15, 2010 at 11:12 pm #33680jdrancor
MemberHi, I’m trying to list topics from the forum in a WP post. I’m wanting to just show the topics that have the same tags as the particular post that is being viewed.
This is basically a display relevant posts. How can this be done? I’ve tried a bunch of PHP, but I’m not having luck navigating the codex between the two databases. I’ve mucked around alot, but I can’t get beyond the basic display the last 10 posts functionality.
Here’s where I’m at: HELP?
<?php
global $wpdb;
$query=”SELECT * FROM bb_topics WHERE topic_status=0 ORDER BY topic_time DESC LIMIT 10″;
$results=$wpdb->get_results($query);
foreach ($results as $result) {echo “
- topic_id.”‘>”.$result->topic_title.”
“;}
?>
March 15, 2010 at 1:22 pm #85846In reply to: Welcome Note should be hide after login
pagal
Participant@ Gautam
it works

you are simply awesome…thanks dude…
March 15, 2010 at 1:15 pm #85845In reply to: Welcome Note should be hide after login
Gautam Gupta
ParticipantWhere you have added that message, just before that add this:
<?php if ( !bb_is_user_logged_in() ) { ?>And just after the message, add this:
<?php } ?>March 15, 2010 at 2:04 am #85512In reply to: Toggle Forums
chrishajer
ParticipantRight. The code can be improved. Please feel free to do so on your site. The owner of this site is not worried about it right now. There’s always room for improvement. Sometimes you need to just call it good and move forward.
March 14, 2010 at 10:49 pm #85511In reply to: Toggle Forums
driz
MemberBut that’s not the case with your code though.
March 14, 2010 at 4:29 pm #85743In reply to: BuddyPress Default Theme for bbPress?
March 14, 2010 at 2:01 pm #85742In reply to: BuddyPress Default Theme for bbPress?
Ashish Kumar (Ashfame)
ParticipantYeah! I just pointed it to be one of those things which need to be fixed.
Just get in touch with me when you release it.
March 14, 2010 at 1:10 pm #85741In reply to: BuddyPress Default Theme for bbPress?
Arturo
Participantthis is the background image original with bbpress kakumei theme… i make some changes to pagination

1 week or so, atm i don’t have time to complete the theme, sorry
March 14, 2010 at 11:23 am #85738In reply to: BuddyPress Default Theme for bbPress?
Ashish Kumar (Ashfame)
ParticipantMarch 14, 2010 at 11:05 am #85736In reply to: BuddyPress Default Theme for bbPress?
wemaflo
MemberYes, you’re right

I was looking for an existing free option… Seems as if I were really out of luck
Thanks for the offer, but I will port the Theme by myself
March 14, 2010 at 9:57 am #85735In reply to: BuddyPress Default Theme for bbPress?
Ashish Kumar (Ashfame)
ParticipantI just hit the nail, you see

Well if you are looking for free option, then may be you are out of luck but if you are looking fo a paid option, then the sun is under your umbrella
March 14, 2010 at 7:05 am #85720In reply to: Smiley`s and pictures
Michael
ParticipantI have also released a new smiley pack for bb-smilies, you might find it quite useful.

https://bbpress.org/forums/topic/new-smilie-pack-for-bbpress-smilies
March 13, 2010 at 12:31 am #85507In reply to: Toggle Forums
driz
MemberAny updates on this pal? I’ve copied the code you use on your website to test, but the icon appears on all forums and not just the category ones (I noticed this is also the case on your forums)
March 12, 2010 at 1:04 pm #82550In reply to: wp integration cookie does not work
excalibur_
Membergerikg;
I’ve followed your instructions to the T – I’m getting the issue where logging into one system logs you out of the other.
I am using WP 2.9.2 (not MU) and bbPress 1.0.2.
Some noted things:
– in the wp-admin/options.php page, there is no secret_auth_salt variable
– the bbPress integration plugin only generated one line of code ( define(‘COOKIEAUTH’, ‘/’); ) rather than Brevica’s 4 statements
Everything else looks normal as per your instructions.
Other possibly useful info:
forum – http://monucs.aicsa.org.au/forums/
blog – http://monucs.aicsa.org.au/
running PHP 4.4.8/MySQL 5.0.77 – these can’t be changed
March 11, 2010 at 8:57 pm #85781In reply to: trouble with bbPress Themes, invisible.
chrishajer
ParticipantWhat are these “user” and “core” directories? bbPress themes you create should be in a
my-templatesdirectory. The my-templates directory should have 755 permissions.March 11, 2010 at 4:58 pm #85713In reply to: Additional Field
johnhiler
MemberYah sorry, that plugin doesn’t exist in either form.

But it’s definitely technically possible, and shouldn’t take too long to build.
You should be able to hire someone to program it for relatively cheap…Good luck!!
March 11, 2010 at 3:59 pm #85779In reply to: Default user permissions
johnhiler
MemberHere are all the capabilities of each role, as defined in bb-includes/functions.bb-capabilities.php:
function bb_init_roles( &$roles ) {
$roles->add_role( ‘keymaster’, __(‘Key Master’), array(
‘use_keys’ => true, // Verb forms of roles – keymaster
‘administrate’ => true, // administrator
‘moderate’ => true, // moderator
‘participate’ => true, // member
‘keep_gate’ => true, // Make new Key Masters //+
‘import_export’ => true, // Import and export data //+
‘recount’ => true, // bb-do-counts.php //+
‘manage_options’ => true, // backend //+
‘manage_themes’ => true, // Themes //+
‘manage_plugins’ => true, // Plugins //+
‘manage_options’ => true, // Options //+
‘edit_users’ => true,
‘manage_tags’ => true, // Rename, Merge, Destroy
‘edit_others_favorites’ => true,
‘manage_forums’ => true, // Add/Rename forum
‘delete_forums’ => true, // Delete forum
‘delete_topics’ => true,
‘close_topics’ => true,
‘stick_topics’ => true,
‘move_topics’ => true,
‘view_by_ip’ => true, // view-ip.php
‘edit_closed’ => true, // Edit closed topics
‘edit_deleted’ => true, // Edit deleted topics/posts
‘browse_deleted’ => true, // Use ‘deleted’ view
‘edit_others_tags’ => true,
‘edit_others_topics’ => true,
‘delete_posts’ => true,
‘throttle’ => true, // Post back to back arbitrarily quickly
‘ignore_edit_lock’ => true,
‘edit_others_posts’ => true,
‘edit_favorites’ => true,
‘edit_tags’ => true,
‘edit_topics’ => true, // Edit title, resolution status
‘edit_posts’ => true,
‘edit_profile’ => true,
‘write_topics’ => true,
‘write_posts’ => true,
‘change_password’ => true,
‘read’ => true
) );
$roles->add_role( ‘administrator’, __(‘Administrator’), array(
‘administrate’ => true,
‘moderate’ => true,
‘participate’ => true,
‘edit_users’ => true, //+
‘edit_others_favorites’ => true, //+
‘manage_forums’ => true, //+
‘delete_forums’ => true, //+
‘manage_tags’ => true,
‘delete_topics’ => true,
‘close_topics’ => true,
‘stick_topics’ => true,
‘move_topics’ => true,
‘view_by_ip’ => true,
‘edit_closed’ => true,
‘edit_deleted’ => true,
‘browse_deleted’ => true,
‘edit_others_tags’ => true,
‘edit_others_topics’ => true,
‘delete_posts’ => true,
‘throttle’ => true,
‘ignore_edit_lock’ => true,
‘edit_others_posts’ => true,
‘edit_favorites’ => true,
‘edit_tags’ => true,
‘edit_topics’ => true,
‘edit_posts’ => true,
‘edit_profile’ => true,
‘write_topics’ => true,
‘write_posts’ => true,
‘change_password’ => true,
‘read’ => true
) );
$roles->add_role( ‘moderator’, __(‘Moderator’), array(
‘moderate’ => true,
‘participate’ => true,
‘manage_tags’ => true, //+
‘delete_topics’ => true, //+
‘close_topics’ => true, //+
‘stick_topics’ => true, //+
‘move_topics’ => true, //+
‘view_by_ip’ => true, //+
‘edit_closed’ => true, //+
‘edit_deleted’ => true, //+
‘browse_deleted’ => true, //+
‘edit_others_tags’ => true, //+
‘edit_others_topics’ => true, //+
‘delete_posts’ => true, //+
‘throttle’ => true, //+
‘ignore_edit_lock’ => true, //+
‘edit_others_posts’ => true, //+
‘edit_favorites’ => true,
‘edit_tags’ => true,
‘edit_topics’ => true,
‘edit_posts’ => true,
‘edit_profile’ => true,
‘write_topics’ => true,
‘write_posts’ => true,
‘change_password’ => true,
‘read’ => true
) );
$roles->add_role( ‘member’, __(‘Member’), array(
‘participate’ => true,
‘edit_favorites’ => true,
‘edit_tags’ => true,
‘edit_topics’ => true,
‘edit_posts’ => true,
‘edit_profile’ => true,
‘write_topics’ => true,
‘write_posts’ => true,
‘change_password’ => true,
‘read’ => true
) );
$roles->add_role( ‘inactive’, __(‘Inactive’), array(
‘change_password’ => true,
‘read’ => true
) );
$roles->add_role( ‘blocked’, __(‘Blocked’), array(
‘not_play_nice’ => true // Madness – a negative capability. Don’t try this at home.
) );
http://svn.automattic.com/bbpress/trunk/bb-includes/functions.bb-capabilities.php
Hope that helps!
March 11, 2010 at 12:09 pm #85770In reply to: Main Theme
ajithkpunnoose
MemberSorry I haven’t found a plugin. I am searching for one.
But Your post should read
“I want the bbpress theme to be a custom one, but needs the default theme to be available for some selected categories only. Is there a plugin that allows me to use specific themes for specific categories? “
March 11, 2010 at 9:07 am #68052In reply to: Here’s how to install Avatar Upload plugin
NiksE
MemberIt’s still not working for me
Maybe somebody can tell why? When I press on Avatar icon then openning the forum homepage? I really need this plugin!!!
March 9, 2010 at 12:19 pm #85693In reply to: Login/Register bridge
Ashish Kumar (Ashfame)
ParticipantJust write the code how you want bbPress to handle passwords (the way your app does) and then put it in functions.php to override the function defined in pluggable file
March 9, 2010 at 11:03 am #85722In reply to: shift bbpress to sessions
Sam Bauers
ParticipantI think the advice you’ve been given is wrong. Public computers are all setup differently, but very few will have cookies disabled.
If you are worried about peoples security, you can disable the “remember me” checkbox on the login form by just removing it from the theme.
This is in
bb-templates/kakumei/login-form.phpIn any case, moving from cookies to sessions would be difficult as most of the non-login cookie usage is not setup to be pluggable.
-
AuthorSearch Results