Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,826 through 21,850 (of 32,481 total)
  • Author
    Search Results
  • #84946
    deadlyhifi
    Participant

    Have 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?

    #85834

    In reply to: username function

    deadlyhifi
    Participant

    Have a look at bb-includes/functions.bb-template.php you’ll see the functions function get_post_author( $post_id = 0 ) and function post_author_link( $post_id = 0 ).

    You’ll need to recreate those in a plugin or in your functions file to use $user->user_login instead 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.

    #52921
    talatorre
    Member

    I 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.

    Kevin Ryman
    Participant

    Thanks qayqay12! That worked! :)

    jdrancor
    Member

    Hi, 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.”
  • “;}

    ?>

#85846
pagal
Participant

@ Gautam

it works :D

you are simply awesome…thanks dude… :-)

#85845
Gautam Gupta
Participant

@pagal

Where 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 } ?>

#85512

In reply to: Toggle Forums

chrishajer
Participant

Right. 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.

#85511

In reply to: Toggle Forums

driz
Member

But that’s not the case with your code though.

#85743
wemaflo
Member

@Arturo:

That’s great! It would be very nice to release it in public ;) Thanks a lot!

#85742

Yeah! 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. :)

#85741
Arturo
Participant

this 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

#85738

@Arturo

Nice work mate!

Just a glitch in images of pagination.

Any chances of releasing it in public?


@wemaflo

You are lucky! ;)

#85736
wemaflo
Member

Yes, 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 :)

#85735

I 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 ;)

#85720

In reply to: Smiley`s and pictures

Michael
Participant

I 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

#85507

In reply to: Toggle Forums

driz
Member

Any 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)

#82550
excalibur_
Member

gerikg;

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

#85781
chrishajer
Participant

What are these “user” and “core” directories? bbPress themes you create should be in a my-templates directory. The my-templates directory should have 755 permissions.

#85713

In reply to: Additional Field

johnhiler
Member

Yah 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!!

#85779
johnhiler
Member

Here 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! :-)

#85770

In reply to: Main Theme

Sorry 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? “


#68052
NiksE
Member

It’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!!!

#85693

In reply to: Login/Register bridge

Just 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

#85722
Sam Bauers
Participant

I 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.php

In any case, moving from cookies to sessions would be difficult as most of the non-login cookie usage is not setup to be pluggable.

Viewing 25 results - 21,826 through 21,850 (of 32,481 total)
Skip to toolbar