Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'register'

Viewing 25 results - 4,026 through 4,050 (of 4,248 total)
  • Author
    Search Results
  • #1916

    Topic: Private Forum

    in forum Troubleshooting
    Sean Wing
    Member

    I am sorry if this has already been posted, but I seem to not be able to find the exact answer to my question.

    Question: I want to make my bbPress forum completely private so that no one can see the post of anything like that UNLESS that register AND I also want it so that I have to approve a user before they can view and use the forum. So that everything displayed on the forum if completely private.

    Answer: I have the answer to the first question (http://bbpress.org/plugins/topic/34?replies=1) but I need the answer to the second and I want to make sure that is will work with making the forum complete private (the first question).

    Thank you. =)

    #1911
    deepaksamaga
    Member

    Hi,

    Was wondering if there is a way to enable registered users to vote(or rate) other users comments & replies.

    Thanks

    Deepak

    #57805
    igos
    Member

    Probably I found a solution: bozo status.

    But there is another question, why all my registered users all bozos by default, how to change it?

    #57647

    In reply to: limited functions

    fel64
    Member

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

    #1861
    deva8
    Member

    hello everyone

    the bbpress is great and simple i love it thanks for developing it.

    i installed and it works well.

    i wanted to have an option in admin like i create 3 or 4 user as moderator or administrators and only those peoples have rights to answer the forum questions all other new users can register just to ask questions but they cannot post the answers.

    is it possible any how ?

    sorry for my english

    Deva

    #56215
    Shawn Maddock
    Participant

    Okay, more info:

    • In Firefox, when I log into bbPress, I am logged in, but the log in form does not auto refresh to “Welcome, username! View your profile…” Same problem when I log out, it does not refresh to “Register or login…”

    • In Safari and IE 7, it does refresh when logging into bbPress, but not when logging out.

    • In any browser, it does not refresh when logging into WordPress, but does when logging out.

    • In all instances if I hit refresh/reload, it displays the correct message.

    • Cookie integration between WordPress and bbPress is otherwise successful, once I’m logged into one, I’m logged into both, and vice-versa.

    • Identical problems on multiple computers/ users.

    #1856
    binimoti
    Member

    Hi,

    I installed bbpress and adapted the design, but now, when a users attempts to register or login, appaers a blank page or apparently does nothing.

    When I reload the bbpress page (for example, http://www.mydomain.com/bbpress) the user appaers login it.

    How can I do resolve the problem with blank pages? Thank you,

    #1854

    Sorry to be asking so many questions, but I’m having trouble finding answers to these basic questions and I figure it’s easiest to ask them one at a time. Also, I think I was seduced a little by how easy it was to get WordPress going. bbPress seems a lot harder. Anyway:

    How do you add moderators? In the admin page, I can see who they are, but can’t add anybody.

    Do I have to get the people that I am inviting as moderators to register themselves, and then I can go and change their privileges? Or can I somehow add them on my own (which is what I’d like).

    Thanks!

    #56805

    In reply to: What is a bozo?

    soggybag
    Member

    I need some clarification of the BOZO setting. It looks like all of my registered users have a BOZO setting of “1”. I know that some these are bogus and that some are not.

    Is there any documentation of this feature anywhere? What kind of settings can you use in this field and what do they mean?

    #1833
    tecfre
    Member

    Hi .

    I am not sure whether any plugin is available for this .

    I have integrated wordpress and BBpress and in my wordpress blog i want to have a page which should show the lastest users who have registered in my forum along with their avatar if available. Is it possible .

    More or less like we have contact me plugin for wordpress , is there any plugin to display the users ..

    Thanks and regards

    blog : http://www.tecfre.com

    forum ( under testing) : http://www.tecfre.com/forum

    #57234
    fel64
    Member

    Got a problem on my hands. I’m trying to simplify a lot of things by require’ing bb-load.php and then using the bb API. However bbdb loads with a fatal error if I do this when wordpress has fully loaded, but it works perfectly fine if I require bb-load when the plugin is run.

    What I mean is require( 'path/to/bb-load.php' ) works fine if placed anywhere inside the main code of the plugin. If I call it using the wp hook init it no longer works, nor does calling it by other hooks (that I’ve tried) or through function calls in templates and the like.

    I went through wp-settings.php and require’d bb-load systematically until I found that it only worked once wordpress had loaded general-template.php (line 153). It worked from any point onwards, including after do_action('init'); (which I don’t understand at all). Using the init hook in my plugin to require it does not work.

    I suspect this means that the init hook in wordpress maybe does something or other, then loads plugins, then does something else that stops bb being included, then runs any other funtions registered with the init hook – but my wp mojo is not impressive. I tested this with all other plugins deactivated.

    The output if bb-load is required too late in the code:

    Fatal error: Call to a member function get_row() on a non-object in D:xampphtdocsforumsbb-includesfunctions.php on line 1224

    That makes me think bbdb is not created, but I can’t see why it wouldn’t be.

    Can someone help me with this please? I’d much rather use the API than duplicate functions.

    #57395
    bozzy
    Member

    I’m not sure I get it… here is what my css file looks like:

    /*

    Theme Name: K2 for bbPress

    Theme URI: http://www.linickx.com/blog/archives/253/k2-for-bbpress/

    Description: A port of the famous k2 to bbpress

    Version: 0.01 theta-beta

    Author: Nick [LINICKX] Bettison

    Author URI: http://www.linickx.com

    */

    /*

    Derrived from Bryan Veloso orriginal style sheet that ships with bbpress, added a little style from the sheet availble from http://getk2.com, copyright of that to the people at http://binarybonsai.com !

    */

    /* Globals

    =================================== */

    * { margin: 0; padding: 0; }

    body {

    font: 62.5% ‘Lucida Grande’, Verdana, Arial, Sans-Serif; /* 62.5% sets 1em to about 10px */

    background: #EDEDED;

    color: #444;

    text-align: center;

    margin-bottom: 30px;

    }

    a { color: #27d; text-decoration: none; }

    a:hover { color: #27d; text-decoration: underline; }

    .alt { background: #fff; }

    code { font: 1.0em Monaco, ‘Courier New’, monospace; }

    p { margin-bottom: 1.0em; }

    .left { float: left; }

    .right { float: right; }

    .delete:hover {

    background: #c00;

    color: #fff;

    }

    h1 { font-size: 2em; }

    h2 { font-size: 1.5em; }

    /* Structure

    =================================== */

    #wrapper {

    width: 780px; /* controls the main width of the page, if changed also change #content and .sidebar */

    margin: 0 auto;

    background: white;

    text-align: left;

    }

    #header {

    padding: 0;

    margin: 0;

    position: relative;

    height: 200px;

    background: #3371A3; /* header color default is #3371A3, for images – background-image: url(example.jpg); */

    }

    h1, h2, h3, h4 {

    font-family: ‘Trebuchet MS’, Verdana, Sans-Serif;

    }

    #header h1 {

    font-size: 3em;

    font-weight: bold;

    letter-spacing: -1px;

    margin: 0;

    padding: 75px 0 0 40px;

    }

    #header p { margin-bottom: 0; }

    #header h1 a, #header h1 a:visited { color: #fff; text-decoration: none; }

    #header h1 a:hover, #header h1 a:active{ text-decoration: underline; }

    #main {

    font-size: 1.2em;

    width: 760px;

    margin: 10px auto 25px;

    position: relative;

    }

    .bbcrumb {

    text-transform: uppercase;

    font-size: 0.9em;

    letter-spacing: 1px;

    }

    #footer {

    margin: auto;

    color: #666;

    font-size: 1.0em;

    letter-spacing: 2px;

    text-transform: uppercase;

    padding-top: 10px;

    clear: both;

    text-align: center;

    width: 760px;

    }

    #footer a:link, #footer a:visited { /* more link link color fixes for nav & admin stuff */

    color: #777;

    text-decoration: none;

    font-weight: bold;

    }

    #footer a:hover, #footer a:active {

    color: #000;

    text-decoration: underline;

    font-weight: bold;

    }

    .notice {

    border: 2px solid #4c9545;

    background: #abd8a2;

    color: #4c9545;

    font-size: 1.1em;

    font-weight: bold;

    padding: 10px 15px;

    margin: 0 0 1.1em;

    }

    .notice p { margin-bottom: 0; }

    /* Login Form

    =================================== */

    .login {

    color: #000;

    margin: 10px 40px;

    }

    .login a, .login a:visited { color: #000; text-decoration: none; }

    .login a:hover, .login h1 a:active{ text-decoration: underline; }

    .login p { padding: 0 0 5px; }

    .login label {

    display: block;

    float: left;

    padding-right: 10px;

    }

    .login #submit {

    font-size: 1.2em;

    margin-top: 13px;

    float: left;

    }

    p.login {

    font-weight: normal;

    font-size: 1.2em;

    }

    form.login input {

    margin-top: 3px;

    border: 1px solid #999;

    }

    /* Front Page

    =================================== */

    #front-page #hottags {

    position: absolute;

    top: 0;

    left: 0;

    width: 150px;

    overflow: hidden;

    }

    #front-page #discussions {

    margin-left: 0px;

    width: 500px;

    float: left;

    }

    .frontpageheatmap {

    font-weight: normal;

    line-height: 30px;

    padding-bottom: 10px;

    }

    #front-page #main h2, h2.post-form, #userlogin, #currentfavorites, #register {

    color: #333;

    border-bottom: 1px solid #ddd;

    margin: 0 0 10px;

    padding: 0 0 5px;

    }

    #front-page #discussions ul { padding: 0 0 0 14px; }

    .sticky {

    background: #EDEDED;

    }

    /* Topic Page

    =================================== */

    .infobox {

    border: 1px solid #ccc;

    border-width: 1px 0;

    padding: 1em;

    width: 500px;

    }

    .infobox ul {

    margin: 10px 0 10px 12px;

    padding: 0;

    }

    .infobox ul li { padding-bottom: 3px; }

    #topic-tags {

    border-left: 1px solid #ccc;

    float: right;

    margin-top: -2em;

    padding: 0 1em 1em;

    }

    .nav {

    margin: 15px 0;

    padding: 12px 0;

    }

    .nav span { font-weight: bold; }

    .nav span, .nav a { padding: 6px; }

    #thread {

    background: #eee;

    list-style: none;

    margin: 0 0 0 100px;

    padding: 0;

    width: 500px;

    }

    #thread li {

    padding: 1.5em 1.0em;

    line-height: 1.5em;

    }

    #thread li ol, #thread li ul { margin-left: 40px; }

    #thread li ol li, #thread li ul li { padding: 0; }

    .threadauthor {

    margin-left: -110px;

    overflow: hidden;

    position: absolute;

    width: 95px;

    }

    .threadauthor small { font: 11px Verdana, Arial, Helvetica, sans-serif; }

    .poststuff {

    border-top: 1px dotted #ccc;

    margin: 10px 0 0;

    padding: 5px 0 0;

    font: 10px Verdana, Arial, Helvetica, sans-serif;

    text-transform: uppercase;

    width: 500px;

    }

    .num, #forumlist small {

    font: 11px Verdana,Arial,Helvetica,sans-serif;

    text-align: center;

    }

    .postform {

    background: #fff;

    padding: 1em;

    width: 500px;

    }

    .postform textarea {

    height: 12em;

    margin: 5px 0;

    padding: 5px;

    width: 500px;

    display: block;

    }

    .postform label { display: block; width: 500px;}

    .admin { padding: 10px 0 0; }

    #manage-tags {

    margin: 10px 0;

    list-style: none;

    }

    #manage-tags li {

    float: left;

    width: 200px;

    padding-bottom: 10px;

    }

    .submit { text-align: right; }

    .topiclink { display: block; }

    .topictitle {

    font-size: 26px;

    font-weight: normal;

    display: inline;

    }

    /* Other

    =================================== */

    #content .frontpageheatmap a {

    font-weight: normal;

    text-decoration: none;

    }

    #content .infobox li { margin-bottom: 2px; }

    #content .nav a {

    border: 1px solid #ccc;

    font-weight: normal;

    }

    #content .nav a:hover {

    border: 1px solid #999;

    }

    #content a:visited {

    font-weight: normal;

    }

    #front-search {

    float: right;

    margin-top: -8px;

    }

    #latest td, #forumlist td, #favorites td { padding: 5px 10px; }

    #latest tr:hover, #forumlist tr:hover, #favorites tr:hover { background: #cbd9e4; }

    #latest th, #forumlist th, #favorites th {

    /* border-bottom: 1px solid #aaa; */

    background: #3371A3;

    color: #fff;

    padding: 5px 10px;

    text-transform: uppercase;

    font-weight: bold;

    }

    #latest th a:link, #latest th a:visited, #latest th a:active {

    color:#fff;

    }

    #latest, #forumlist, #favorites {

    background: #f7f7f7;

    margin-bottom: 2em;

    width: 100%;

    }

    .bozo { background: #eeee88; }

    .alt.bozo { background: #ffff99; }

    .deleted { background: #ee8888; }

    .alt.deleted { background: #ff9999; }

    /* Profile Page

    =================================== */

    #profile-menu {

    margin: -35px 0px;

    padding: 0 0 30px 0;

    float:right;

    }

    #profile-menu ul {

    margin: 0;

    padding: 0;

    position: absolute;

    bottom: 0;

    left: 20px;

    width: 90%;

    }

    #profile-menu li {

    display: inline;

    margin: 0;

    }

    #profile-menu,

    #profile-menu li a {

    padding: 5px 15px 6px;

    }

    #profile-menu li a {

    font-size: 1em;

    color: white;

    margin: 0;

    }

    #profile-menu li a:hover {

    background: #333;

    color: #eee !important;

    text-decoration: none;

    }

    #profile-menu li.current a,

    ul.menu li.current a:hover {

    color: #333 !important;

    background: white;

    text-decoration: none;

    }

    #userinfo { margin-top: 10px; }

    #userinfo dt { font-weight: bold; }

    #userinfo dd { margin: 0 0 5px; }

    #useractivity { margin: 15px 0 5px; }

    .user-recent { margin: 0 0 10px; }

    .user-recent ol { margin: 5px 0 0 28px; }

    .user-recent ol li { margin: 0 0 3px; }

    /* Profile Edit

    =================================== */

    fieldset {

    border-top: 3px double #ccc;

    border-bottom: 1px solid #ccc;

    border-left: none;

    border-right: none;

    padding: 10px 0 10px 10px;

    margin-bottom: 15px;

    width: 500px;

    }

    legend {

    font-weight: bold;

    padding: 0 15px;

    }

    fieldset table {

    text-align: left;

    margin: 0 15px;

    }

    fieldset table td { padding: 2px 0; }

    fieldset p {

    font-size: 11px;

    margin: 10px 16px;

    }

    /* further additions by Nick */

    /* this is for my 48 x 48 avatars */

    .post {

    min-height: 60px;

    }

    Can you tell me if it’s right?

    #56961
    Vili
    Participant

    Ok, here’s what I have, commented. The comments that start with “VILI” are mine.

    Please keep in mind two things:

    a) This is strictly speaking a WordPress plugin, not a bbPress one. The functionality is simply extended to also cover an integrated bbPress installation. (And yes, this means that you need to install this in your WordPress, not your bbPress.)

    b) I hacked this for my own purposes, so it may not be pretty, and it certainly won’t be ready for use without you reading through the code. If someone is interested in working to make it functional as an “out of the box” solution, then by all means go ahead.

    Finally, the original Dan’s Avatar Thingy can be found here.

    <?php
    /*
    Plugin Name: Vili's Avatar Thingy
    Plugin URI: http://www.vertebratesilence.com/
    Description: Displays an avatar next to posts or comments based on username. Based on Dan's Avatar Thingy (http://www.cheesemasterdan.com/).
    Version: 0.1
    Author: Vili Maunula
    Author URI: http://www.vertebratesilence.com/
    */

    // Variable declarations
    // VILI: These were changed from Dan's Avatar Thingy, in which you only had default
    // size settings into which all avatars were resized.

    $avatar_max_width = 100; // Max avatar width
    $avatar_max_height = 100; // Max avatar height
    $avatar_max_upload_size = 15360; // Max file size in bytes
    $avatars_path = ABSPATH."wp-content/avatars";

    function cmd_show_avatar()
    {
    global $wpdb;
    global $avatars_path;

    // VILI: The following is a boolean setting I use to detect whether the page
    // being served is a forum page. In practice, I have
    // <?php global $forumpage;
    // $forumpage = TRUE; ?>
    // at the beginning of each forum page (I use WordPress headers in my integrated
    // setup, but if your bbPress uses its own headers, just stick it there). If
    // anyone knows a more cost-efficient way of detecting whether a page shown is
    // a forum page, let me know.
    global $forumpage;

    if ($forumpage == FALSE) {
    $the_author_name = get_comment_author();
    if($the_author_name == "" or $the_author_name == __('Anonymous'))
    { // Avatar for posts
    $the_author = get_the_author_id();
    $the_author_name = get_the_author();
    } else { // Avatar for comments - only for registered users
    $the_comment_ID = get_comment_ID();
    $the_author = $wpdb->get_var("SELECT user_ID FROM $wpdb->comments WHERE comment_ID='$the_comment_ID'");
    }
    } else {
    $the_author_name = get_post_author();
    $the_author = get_post_author_id();
    }

    $image_path = get_bloginfo('wpurl')."/wp-content/avatars/";
    $the_avatar = $image_path.$the_author.".jpg";
    if(file_exists("$avatars_path/$the_author.jpg"))
    {
    echo '<img src="' . $the_avatar. '" alt="' . $the_author_name . '" class="cmd-avatar" />';
    } elseif(file_exists("$avatars_path/default.jpg")) {
    echo '<img src="' . $image_path . 'default.jpg" alt="Unregistered" class="cmd-avatar" />';
    }
    // If the file doesn't exist then return nothing...
    }

    add_action ('admin_menu', 'cmd_avatar_menu');

    function cmd_avatar_menu()
    {
    add_submenu_page('profile.php', '', 'Your Avatar', 0, __FILE__, 'cmd_avatar_profile');
    }

    function cmd_avatar_profile()
    {
    global $userdata;
    global $avatar_max_width;
    global $avatar_max_height;
    global $avatar_max_upload_size;
    global $avatars_path;
    get_currentuserinfo();

    if(!file_exists($avatars_path))
    {
    $mkdir_result = @mkdir($avatars_path, "0755");
    if(!$mkdir_result)
    {
    echo '<div id="message" class="error fade">The folder' . $avatars_path . ' does not exist and could not be created automatically. Please create it and assign 0755 permissions then try using this plugin again.
    </div>';
    die();
    }
    }

    if ($_POST['cmd_action'] == 'upload_avatar')
    {
    if ($_FILES['cmd_avatar_file']['size'] > 0 && $_FILES['cmd_avatar_file']['size'] < $_POST['MAX_FILE_SIZE'])
    {
    $uploaddir = ABSPATH."wp-content/avatars/";
    $uploadfile = $uploaddir . $userdata->ID . '.jpg';
    list($width, $height, $type, $attr) = getimagesize($_FILES['cmd_avatar_file']['tmp_name']);

    // VILI: The following calculates the size into which the
    // image needs to be put. If it's under the MAX limits, nothing
    // is done, otherwise resizing takes place. This probably
    // could be written more elegantly.

    $widthratio = $width / $avatar_max_width;
    $heightratio = $height / $avatar_max_height;
    if ($widthratio > 1 && $heightratio > 1 && $widthratio > $heightratio) {
    $usewidth = $width / $widthratio;
    $useheight = $height / $widthratio;
    } elseif ($widthratio > 1 && $heightratio > 1 && $widthratio < $heightratio) {
    $useheight = $height / $heightratio;
    $usewidth = $width / $heightratio;
    } elseif ($widthratio > 1) {
    $usewidth = $width / $widthratio;
    $useheight = $height / $widthratio;
    } elseif ($heightratio > 1) {
    $useheight = $height / $heightratio;
    $usewidth = $width / $heightratio;
    } else {
    $usewidth = $width;
    $useheight = $height;
    }

    $cmd_avatar_image = imagecreatetruecolor ($usewidth, $useheight);
    switch ($type)
    {
    case 1: // GIF
    $image = imagecreatefromgif($_FILES['cmd_avatar_file']['tmp_name']);
    imagecopyresampled($cmd_avatar_image, $image, 0, 0, 0, 0, $usewidth, $useheight, $width, $height);
    $avatar_created = (imagejpeg($cmd_avatar_image, $uploadfile, 100) ? TRUE : FALSE);
    imagedestroy($image);
    imagedestroy($cmd_avatar_image);
    break;
    case 2: // JPEG
    $image = imagecreatefromjpeg($_FILES['cmd_avatar_file']['tmp_name']);
    imagecopyresampled($cmd_avatar_image, $image, 0, 0, 0, 0, $usewidth, $useheight, $width, $height);
    $avatar_created = (imagejpeg($cmd_avatar_image, $uploadfile, 100) ? TRUE : FALSE);
    imagedestroy($image);
    imagedestroy($cmd_avatar_image);
    break;
    case 3: // PNG
    $image = imagecreatefrompng($_FILES['cmd_avatar_file']['tmp_name']);
    imagecopyresampled($cmd_avatar_image, $image, 0, 0, 0, 0, $usewidth, $useheight, $width, $height);
    $avatar_created = (imagejpeg($cmd_avatar_image, $uploadfile, 100) ? TRUE : FALSE);
    imagedestroy($image);
    imagedestroy($cmd_avatar_image);
    break;
    default:
    $avatar_created = FALSE;
    break;
    }
    if ($avatar_created) {
    echo '<div id="message" class="updated fade">File uploaded successfully.
    </div>';
    } else {
    echo '<div id="message" class="error fade">File upload failed.
    </div>';
    }
    }
    }
    echo '
    <div class="wrap">
    <h2>Your Avatar</h2>
    <form name="cmd_avatar" id="your-profile" action="' . $PHP_SELF . '" method="post" enctype="multipart/form-data">
    <fieldset>
    <legend>Avatar</legend>';

    $the_user = $userdata->ID;

    $avatars_path = ABSPATH."wp-content/avatars";
    $image_path = get_bloginfo('wpurl')."/wp-content/avatars/";
    $the_avatar = $image_path.$the_user.".jpg";

    if(file_exists("$avatars_path/$the_user.jpg")){
    echo '
    <img src="' . $the_avatar . '" alt="' . $userdata->user_login . '" class="cmd-avatar">';
    } else {
    echo 'No avatar found...';
    }
    echo '

    <label>Filename: </label>
    <input type="file" accept="Pictures" name="cmd_avatar_file" />

    <input type="hidden" name="MAX_FILE_SIZE" value="' . $avatar_max_upload_size . '" />
    <input type="hidden" name="cmd_action" value="upload_avatar" />
    Click browse to find your avatar image. It can be JPG, GIF or PNG and should be ' . $avatar_max_width . ' x ' . $avatar_max_height . ' pixels or less (if bigger, it will be resized).Images should also be no larger than ' . $avatar_max_upload_size / 1024 . 'KBCurrently animated GIFs are not supported.
    </fieldset>
    <br clear="all" />
    <p class="submit">
    <input type="submit" name="cmd_avatar_update" value="Update Profile &raquo;" />

    </form>
    </div>';
    }

    ?>

    #1793
    wittmania
    Member

    I am working on a “Topic Views Count” plugin, and I’m just about finished with it. You can see a working version of it here: http://blog.wittmania.com/bbpress/, and see the source code as it is right now here: http://blog.wittmania.com/files/bb-topic-views.txt

    The only thing holding me up is this; I can’t figure out a way to keep the views count from including page views. For example, when page one of a topic loads, the view count will go up by one. But, when page two loads it will also go up by one. So, a visitor has only viewed the topic once (albeit they’ve viewed more than one page), but the counter has registered two views).

    I know this isn’t a huge deal, and a counter that over-counts is better than no counter at all. Still, I was wondering if anyone would have any ideas. I’d like to avoid using cookies, if possible, because I have no experience with them at all to even know where to start.

    Any ideas? I’m also open to any other ideas or suggestions for the rest of the code.

    Thanks!

    #56109
    archasek
    Member

    just register on ram.org.pl then go to the forums (on the right), and edit your profile. you’ll see ‘location, occupation and interests’ fields. i want to translate it and display in profile (not only edit profile)

    #54417
    Nicki Faulk
    Member

    “What I ended up doing was removing the forum registration”

    That’s exactly what I did for mine. Instead, I just pointed to the WP register link and that works out beautifully for me. :)

    #55555

    In reply to: Hooks & Filters Docu

    Sam Bauers
    Participant

    I think you started with looking at the wrong plugin.

    I’ve got the code here if you want it, if you want a challenge, then *don’t* read on…:

    <?php
    /*
    Plugin Name: Disable registration
    Plugin URI:
    Description: Disables registration
    Author: Sam Bauers
    Version: 0.0.1
    Author URI:
    */

    add_action('bb_init', 'disable_registration');

    function disable_registration() {
    global $bb;
    if ($_SERVER['PHP_SELF'] == $bb->path . 'register.php') {
    bb_die(__('Registration is temporarily disabled for this forum.'));
    }
    }
    ?>

    Make a new file from this code and drop it into your plugins folder. You may need to add some values in the header part to allow it to be registered in the admin area.

    #57126

    In reply to: How I change theme?

    gtim
    Member

    AstRonot: The keymaster is the user that was registered when you installed bbPress, unless you changed it afterwards.

    #57110
    startribe
    Member

    Not sure if I was completely clear on this one. If you view the bbPress forum page, then under the latest discussions there are stickies. I am not sure if this a feature unique to the forum located here, but when I turn a topic into a sticky it only sticks inside the forum it is registered, and it doesn’t stick in the latest discussion section (like the stickies on this forum’s latest discussions).

    Thanks for the help.

    #1776
    rovii
    Member

    I have installed wpPHPmailer plugin with WordPress so that I can use an external SMTP server with password protection. The the same time I have integrated bbPress. But when a user registers, there is this message:

    “Great! Your registration as was successful. Within a few minutes you should receive an email with your password.” .

    But then there is a message on the top:

    “Warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in C:Program FilesApache GroupApache2htdocsmydomainforumsbb-includesregistration-functions.php on line 105″

    Cannot I use wpPHPmailer with bbPress. Alternatively, how can I use the native sendmail or whatever functionality comes with bbPress.

    #57019
    fel64
    Member

    it doesn’t matter if you login at bbPress or WordPress when you are integrated.

    Unfortunately it does, I reckon that the cause of a problem I’ve been having – when you register in WP, it only calls WP hooks, register in bb and only bb hooks are called. Short of duplicating plugins and changing the hooks/function names etc, I don’t think there’s anything you can do, and that’s obviously a real hassle.

    Maybe a trac ticket is in order, to get some coordination between appropriate hooks?

    #56672

    In reply to: Plugin: Avatar Upload

    fel64
    Member

    A really useful plugin, it works very nicely. :) I’ve had my eye on Identicons for a while and wanted to integrate them, the result being that I hacked up Scott’s identicon plugin to only contain the class, wrote a function to make identicons for users and integrated it with your plugin (so, changes made to all three files). It assigns users identicons when they register, and they’re kept in the same way as you do things now. I personally love identicons. :D It’s running now at http://forums.loinhead.net/ – just look in any thread.

    I was wondering, is there a reason for storing the metavalues in the database? An alternative is to go to the folder directly and look for all possible variants in turn (considering the standard naming, you’re just checking extensions), saving on the database read and writes – but I’m not sure which would be faster. You’d have to delete the old avatar of course in case you don’t overwrite it because of different filetypes.

    There’s a final modification I want to make, purely aesthetic. Any idea how to get the avatar link into one of the profile tabs (like Edit or Favourites)?

    #1557

    Topic: Hooks & Filters Docu

    in forum Plugins
    fel64
    Member

    Rather than just keeping private notes on the hooks and filters I found, I thought it best to maybe start a list here with everyone, just as a rough working documentation of the hooks and filters.

    For future ref/for people that don’t know, a hook is a means of bbPress making your plugin run every time a certain thing happens. To get that to work, put this code at the very bottom of your plugin:

    add_action( 'hook_name', 'functionname' );

    Filters are very similar to hooks, only it gives your plugin some data, you can then do something with the data (filter it), and then pass it back. To register for filters, put this code at the bottom of your application; remember to accept the parameters in your function and return them as appropriate.

    add_filter( 'filter_name', 'functionname' );

    Note that in both cases you want the name as a string and the function’s name as a string, no brackets or parameters at the end of it! An optional third parameter is the priority of your function; default is 10, so set this higher if you want it to execute last or lower if you want it to execute earlier.

    Some Filters

    topic_title – this passes the topic title to your function when the threads are being listed, like on the (default) front page.

    bb_allowed_tags – this is the array of HTML tags you can use in your posts. Hang a filter on this and add elements to the array if you want to allow more tags.

    Some Hooks

    bb_head – this is called when the HTML <head> element is being filled, so you can add stylesheets or javascript and the like.

    bb_user_logout obviously gets called when someone logs out.

    bb_init when someone logs in?

    bb_new_user when someone registers; passes the ID along I think

    bb_profile_menu – haven’t figured out how it works; I think it’s to do with the tabs at the top of the profile.

    If you know any more hooks or filters, or find ’em, please post them here with a quick description if necessary!

    #56940

    In reply to: Registration issue

    Morbid
    Member

    Nevermind. Fixed it. I have no idea how my rss.php became my register,php, but it happened. Everything back to normal.

    #56939

    In reply to: Registration issue

    Morbid
    Member

    Well, everything is working fine with the forum now…just not the register function. It’s the strangest thing. As already stated, all the other root files work, just not that one.

    Click it and you go to a non-styled version of the forum.

    http://www.dreamindemon.com/Blog/forum/register.php

    It takes you to some type of 35 Posts page.

    Anyone got anything I could try?

Viewing 25 results - 4,026 through 4,050 (of 4,248 total)
Skip to toolbar