Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,176 through 20,200 (of 32,481 total)
  • Author
    Search Results
  • #35108

    Hello.

    How can I create a scrollbar for the list of tags in my topics?

    I want to keep the search form though.

    This is how my style.css looks like:

    #topic-tags {
    border-left: 1px solid #ccc;
    float: right;
    padding: 0 0 0 1em;

    Any suggestions greatly appreciated.

    Regards,

    Bob

    #92902
    Xevo
    Participant

    Never mind, solved it.

    Had a conflict with one of my own plugins.

    Thanks though! :)

    #92901
    chrishajer
    Participant

    What happens when you try to use it? Is there an error message?

    #35104
    Xevo
    Participant

    Hi guys,

    I just download bbcode_lite hoping it would work, but it didn’t. So anyone has a fix for this?

    Or perhaps another plugin that does work?

    Thanks,

    Mitchell

    jhyslop
    Member

    OBSERVED BEHAVIOUR:


    In Installation Step 3, the ‘”Key Master” Username’ is a text entry box, with no pre-populated values.

    EXPECTED BEHAVIOUR:


    The ‘”Key Master” Username’ should be a drop-list, with the admin IDs of the primary blog in it.

    DETAILS


    When integrating with an MU site, Step 2 asks for the WordPress Primary Blog ID.

    In step 3, the install program uses the value entered to find administrators for the specified blog. The function populate_keymaster_user_login_from_user_tables concatenates the database prefix, the blog ID specified, and the constant ‘_capabilities’. For example, if the prefix is ‘wp_’ and blog ID is 1, you get ‘wp_1_capabilities’.

    There’s only one problem with this. When you install WordPress, you have to complete the standard installation, and then reconfigure it to be a multi-site blog. For the standard installation, the first blog does not contain the numeric ID, and neither does the capabilities meta_key – it is simply ‘wp_capabilities’.

    SUGGESTED FIX:


    In Step 2, the pop-up help text for the “WordPress MU primary blog ID” field states:

    “If you are integrating with a WordPress MU site you need to specify the primary blog ID for that site. It is usually 1. You should probably leave this blank if you are integrating with a standard WordPress site.”

    Change the wording, to more accurately reflect what needs to be entered:

    “If you are integrating with a WordPress MU site, you need to specify the primary blog ID for that site. If you have changed the primary site, enter the site ID. You should probably leave this blank if you have not changed the primary site, or if you are integrating with a standard WordPress site.”

    jhyslop
    Member

    If you install bbPress integrated with WordPress, the installation fails with a message “Your installation failed with some minor errors.”

    Looking at the error log, the message was:

    “Forum could not be created!”

    I dug through the code, and found the problem, in bb-admin/includes/functions.bb-admin.php, in the function bb_new_forum:

    // Expects forum_name, forum_desc to be pre-escaped

    function bb_new_forum( $args ) {

    global $bbdb;

    if ( !bb_current_user_can( ‘manage_forums’ ) )

    return false;

    bb_current_user can ONLY return true if you are currently logged into WordPress as an administrator. I recommend changing the ‘if’ condition to:

    if ( !BB_INSTALLING && !bb_current_user_can( ‘manage_forums’ ) )

    #92870
    slee
    Member

    I got it to work is was the path to the wordpress header i ha wrong with a silly typo, all good now :)

    #92863
    brucini
    Member

    sorry didn’t see this

    Possible to make certian forums not appear in latest discussion?

    the core bit of info posted in this thread below. this worked fine for me with BBPress 1.0.2:

    Just edit it to exclude whatever forum numbers you want and add it to the plug-ins folder.

    <?php
    /*
    Plugin Name: exclude
    */
    function filter_front_page_topics($where){
    $exclude_forums=array ("13","19"); // enable this to manually specify specific forums by id #
    // $forums = get_forums(); foreach ($forums as $forum) {if ($forum->forum_parent) {$exclude_forums[]=$forum->forum_id;}} // exclude ALL sub-forums
    if ( is_front() ) {foreach($exclude_forums as $forum) { $where.=" AND forum_id != ".$forum." "; }}
    return $where;
    }
    add_filter( 'get_latest_topics_where', 'filter_front_page_topics');
    add_filter( 'get_latest_posts_where', 'filter_front_page_topics');
    ?>

    #92792

    Hello.

    I apologise for reopening this topic, but I have a question.

    Is it possible to show a message to the users, after they have made their first post, letting them know that their post is being moderated?

    If yes, how?

    This is the plugin that I am using.

    Is it based on the following principle? add_action('action_name','function_to_fire',priority);

    I might be terribly wrong, so please bear with me.

    Which in my case would mean that after this function mod_notification_new_post fires, my own function (say, notification_to_user) would go. So I should add_action('bb_notify_user', 'notification_to_user',9);

    Then after these 3 actions:

    add_action('bb_new_post', 'mod_notification_new_post',1);
    add_action('extra_profile_info', 'mod_notification_profile');
    add_action('profile_edited', 'mod_notification_profile_edit');

    I should add the other one.

    Say this would work, how can I have the user see the message in the (empty) box of the post that he has just made?

    I hope that I haven’t insulted anyone’s intelligence with my question(s).

    Thank you.

    Bob

    #89123

    In reply to: s2member integration

    mackeyk
    Member

    I am having a huge issue with this as well. All I want is for my bbpress roles to match up with what their wordpress role is with s2member. (Deep Int)

    I copied that code, but still their role in bbPress never changes, and it’s driving me nuts!

    edit: Maybe because I’m trying to update users roles, not create news ones? They are all Level 1 now, but when upgrade to Level 2, I need their role to update in bbpress as well, same when then downgrade.

    Any help would be greatly appreciated!!

    #85811
    邹 毅
    Participant

    i love this theme but i only got it form here http://hotfile.com/dl%2F41099708%2F7751e0e%2FCF-bb-vanilla_1.0.zip.html?uploadid=41099708&fname=CF-bb-vanilla_1.0.zip.html&hash=7751e0e&lang=chs

    and i found no imgs in the images dir.So i think i did not get the full pack.

    #92790

    Hello again.

    Good news. I realised (by reading properly) that I only had to change one thing in this line.

    if (!defined('POST_NUMBER_MODERATION')) define('POST_NUMBER_MODERATION', 5);

    From define('POST_NUMBER_MODERATION', 5) to define('POST_NUMBER_MODERATION', 1).

    And now it does exactly what I want. Let me resume it all.

    An user signs up for the first time on my forum. These two plugins take action: Yu-Jie Lin’s Enhanced Registration to guard me from uninterested users, giving them a specific deadline to login; and New User Notification Email to notify me that a new user has signed up.

    After that, 3 other plugins come in. First, Moderate new members’ first posts, notifies me that a new user has made his first post. Depending on the type of the post (spam/non-spam), Spam Notification will take action, and let me know what’s happening and so I can take action myself. At the user’s second post and from there onwards, xili New Post Notification (xnpn) steps in, and notifies me whenever a new post is made, but is no longer moderated, and so the users post freely.

    These 5 plugins are brilliant, and if someone was to implement them all in bbPress Moderation Suite, as selectable modules, that would truly become a must-have plugin.

    Anyway, another thank you to the developers and thank you Kevin as well.

    Best regards,

    Bob

    #34591

    Topic: Sub Forums

    in forum Installation
    aspen102
    Member

    Example:

    Let’s say front-page.php lists 3 categories

    Fruits

    Veggies

    Meats

    If you were to click on Fruits; I’d like the next page to show the subforums of that parent excluding veggies, & meats forums. Any comments appreciated.

    Basically, I want categories with sub-forums but in a format/structure that you would find in phpbb where subforums are cleanly kept on the next page. Why? Because showing everything in one location can get a bit messy. Especially with subforums.

    I have searched through the bbpress forum for this and was able to get the following to work related to the front-page.php portion. Now I just need to get the 2nd page to show the children of the category. Currently it isn’t doing that.

    *****front-page.php which works in only displaying the categories****************

    <?php foreach( $forums as $forum ) : if( !$forum->forum_parent ) { ?>

    <tr<?php alt_class(‘forum’); ?>>

    <td>“><?php forum_name(); ?> <small><?php forum_description(); ?></small></td>

    <td class=”num”><?php forum_topics(); ?></td>

    <td class=”num”><?php forum_posts(); ?></td>

    </tr>

    <?php } endforeach; ?>


    Now I would like the child accounts to show up in forum.php

    Any suggestions? Or where I could look? Once you click on the parent forum it just takes you to that category forum.php page, with no children. i need the children to show up but only for that parent.

    *****forum.php which I need to show the children*********************

    <?php bb_get_header(); ?>

    <?php if ( is_bb_profile() ) profile_menu(); ?>

    <?php login_form(); ?>

    <div id=”main”>

    <div id=”forums”>

    <h3 class=”bbcrumb”>“><?php bb_option(‘name’); ?> » <?php forum_name(); ?></h3>

    <?php if ( $topics || $stickies ) : ?>

    <table id=”latest”>

    <tr>

    <th><?php _e(‘Topic’); ?> — <?php new_topic(); ?></th>

    <th><?php _e(‘Posts’); ?></th>

    <th><?php _e(‘Last Poster’); ?></th>

    <th><?php _e(‘Freshness’); ?></th>

    </tr>

    <?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>

    <tr<?php topic_class(); ?>>

    <td><?php _e(‘Sticky:’); ?> <big>“><?php topic_title(); ?></big></td>

    <td class=”num”><?php topic_posts(); ?></td>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”><small><?php topic_time(); ?></small></td>

    </tr>

    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>

    <tr<?php topic_class(); ?>>

    <td>“><?php topic_title(); ?></td>

    <td class=”num”><?php topic_posts(); ?></td>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”><small><?php topic_time(); ?></small></td>

    </tr>

    <?php endforeach; endif; ?>

    </table>

    <p>“><?php _e(‘RSS feed for this forum’); ?></p>

    <div class=”nav”>

    <?php forum_pages(); ?>

    </div>

    <?php endif; ?>

    <?php post_form(); ?>

    </div>

    </div>

    <?php bb_get_footer(); ?>

    </div>

    ******************************************************************************

    Thank You —

    #92789

    Hello Kevin.

    “I thought you wanted notification of a first post (or a new topic) and not every reply”. That is exactly what I want to achieve with this plugin. It is not you who has caused the confusion, but me, due to my inability to explain myself.

    Again, you have identified precisely how I want it to work.

    1) New post

    2) Check and make spam

    3) A plugin Email you if first time poster.”

    These are the actions for Moderate new members’ first posts:

    add_action('bb_new_post', 'mod_notification_new_post');

    add_action('extra_profile_info', 'mod_notification_profile');

    add_action('profile_edited', 'mod_notification_profile_edit');

    And this for xili New Post Notification (xnpn):

    add_action('bb_new_post', 'admin_notification_new_post');

    I intend to leave xili’s plugin always activated, so my designated email address will receive all post notifications.

    Now, using the moderator’s plugin, the admin_email should receive only the first post notification.

    So, the changes should look like this?

    add_action('bb_new_post', 'mod_notification_new_post', 7);. This is the action that marks a post as spam and sends the email to the admin. Is the other email address going to receive the same email?

    But I don’t understand how is a second post from that same user, going to activate the other plugin and send an email only to the second email address and not the first.

    add_action('bb_new_post', 'admin_notification_new_post', 9);

    Have you, by any chance, tried the two plugins?

    Anyway, I cannot try any of these settings at the moment, since I have to deal somehow with an unexpected 403 error.

    Oh, and the custom plugin sounds like a very nice idea, but I’m afraid that it is something way beyond my abilities.

    Thank you.

    Bob

    #35076

    I was making a custom plugin to make users subscribe to topics so I attached my function to hook bb_insert_topic but bb_subscription_management() doesn’t work here.

    Its working under a different function hooked to register_user though.

    Any ideas what could be wrong? And how can I actually debug it.

    Kojichan
    Member

    Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [datetimezone.–construct]: Unknown or bad timezone (UTC-7)’ in /home/neosmcn1/public_html/hsti/forum/bb-admin/options-general.php:180 Stack trace: #0 /home/neosmcn1/public_html/hsti/forum/bb-admin/options-general.php(180): DateTimeZone->__construct(‘UTC-7’) #1 {main} thrown in /home/neosmcn1/public_html/hsti/forum/bb-admin/options-general.php on line 180


    Here’s a random question, does BBPress support timezone differences?

    I see the option in the options-general.php in bb-admin, but, I’m beginning to wonder if it’s implemented yet. Doesn’t’ appear to be, yet. As I can change the time-zone willy-nilly, and the times listed below are not affected. (IE, I’m GMT-7, so I have selected Edmonton as the closets city to me. At the time of writing, it is 12:43p here, and my forum says it’s 6:43p. Mind you, it ALSO says that UTC ALSO is 6:43p. … whut??)

    Moreover, the options drop-down seems to be populating false timezones toward the end, the UTCxxxx portions. UTC itself is fine under ETC, but under the “Manual offsets” there are a set of UTC-7, UTC+7, UTC-1, etc. However, in PHP, DateTimeZone does not recognize the UTC-xx or UTC+xx values. They are incorrect. Shouldn’t they be GMT-xxx or GMT+xxx?

    I’ve tried looking in the code for some answers, (bb-includes/backpress/functions.core.php and bb-admin/options-general.php ) but neither of them seem to be shedding any light…

    #92788

    Pastor Bob,

    I’m sorry, i’ve gotten it wrong.

    I thought you wanted notification of a first post (or a new topic) and not every reply. So i’ve caused some confusion, sorry.

    It seems to me that everything is working well, just not in the right order for you.

    The way it works:

    1) New Post

    2) A plugin Email’s you

    3) Checks and makes spam.

    The way you want it to work:

    1) New post

    2) Check and make spam

    3) A plugin Email you if first time poster.

    To that end, what you’re looking for is something called “add_action”. It’s the plugin API call. It looks like this:

    add_action('action_name','function_to_fire',priority);

    priority can be left empty (and is then classed as 9? by default) and the lower number is fired first.

    The theory is, if you make sure that your “mark as spam” plugin fires before your email plugin (give them numbers 7 and 8), then you should be ok.

    So go through each plugin, looking for the add_action line. See if there’s a time when they both fire at the same “action name”, and then add/change the priority.

    Other than that, it seem slike a custom plugin would be the way forward.

    #92787

    Hello Kevin.

    Thanks again for your intervention.

    So, instead of post_status = 0 I should use post_position=1?

    But then how is it going to be handled by askimet after that? Because I read here that 0,1 and 2 are statuses that akismet sets.

    Or is this another solution to my first post moderation?

    I am sorry that I cannot follow. I wish I would be quicker.

    Regards,

    Bob

    #92786

    HI Pastor Bob,

    writing on an phone, so can’t write out full code, but you also want to test for “post_position=1” to check if it’s the first post.

    #35068

    Hello.

    I want to start by thanking the following developers: _ck_, Nightgunner5, Yu-Jie Lin, Olaf Lederer and michelwppi; for their time and effort in bringing about some very useful plugins.

    I have a few comments of my own, and in some cases, very important questions as well.

    Even though I have very few genuine users on my forum – four to be more precise, I have decided to (try to) offer as good of a service as I can. I have had a couple of spam posts (5.88%), which Akismet handled impeccably so far.

    Also, in the last few days I have had about 20-25 new users that only registered, and considering some of their email addresses, have no other intention but to spam. In this case, another useful plugin came to my rescue, Enhanced Registration, which appears to be doing the perfect job. In conjunction with this plugin, I am using New User Notification Email, so I am always notified whenever a new user registers and if in X hours he/she doesn’t login, then their username is removed and my database kept clean. A very good combination in my opinion.

    Further on, a common plugin for moderation that I am also using is bbPress Moderation Suite, and I am sure that it would prove its worth when people will be more interested in what I have to say on my forum. Anyway, I think it’s missing a very useful feature, provided (luckily enough) by Moderate new members’ first posts. Now, I have no doubt that this last plugin is working fine with some people, but not with me. What I wanted was to be notified once at an email address of my own choice (other than admin_email), whenever a new member made his first post (or after two). After that, he/she would post unhindered.

    So, I (think that I) have identified the section in the plugin that needs attention, where the post count is made:

    if(!is_moderator($bb_current_user->ID)) {
    $sql = "
    SELECT COUNT(*)
    FROM $bbdb->posts
    WHERE poster_id = $bb_current_user->ID AND post_status = 0
    ";
    $userpostcount = intval($bbdb->get_var($sql));
    }

    And where they are marked for moderation (as spam):

    if($userpostcount <= POST_NUMBER_MODERATION) {
    $sql2 = "
    UPDATE $bbdb->posts
    SET post_status = 2
    WHERE poster_id = $bb_current_user->ID
    ";
    $markedasspam = $bbdb->get_results($sql2);
    }

    Now, I wouldn’t know what or where to edit in order to have it do what I want, and that is why I would appreciate it if someone who does know it would assist me. No matter how many times my dummy user called “testing” makes a post, I always get a notification, at the default email address.

    I only want to be notified of the first post because I am using xili New Post Notification (xnpn) for the rest of them, at a different email address. What I like about this plugin is that it gives me the possibility to assign an email address of my own choice. It’s true that I would get an email twice when an user would post for the first time (2 plugins), but I can live with that, since they are at different email addresses (the default and my choice).

    Thank you,

    Bob

    #92776
    extremejacob
    Member

    I’m not using the same theme, but my theme came with a bunch of place holders for links e.g. “Link A”, “Link B”, … inside the different theme files (in the theme folder) which I could edit manually. That made it easy to find where to fix it.

    Look in your theme folder for header.php, sidebar.php, footer.php or similar. Put the link code (a href .. ) in there where appropriate. If you don’t have place holders, you have more work to do.

    #92769
    zaerl
    Participant

    It writes the option in the database. Open phpmyadmin. Locate the meta table (usually bb_meta.) Change the bb_option called uri to whatever you want.

    #92764
    Trilijan
    Member

    Ok, thank you very much :)

    #35058
    ph23man
    Member

    I’ve had this very odd issue suddenly crop up. All deleted posts on my forum have automatically become undeleted. Basically the post_status field in the bb_posts table is getting reset to 0 for all posts.

    I’m running bbpress 1.02 that’s deep integrated with WP Multisite 3.0.1 (with Buddpress 1.2.5.2). It’s deep integrated, but I run bbpress by itself, NOT as a component of Buddypress (in the groups component). The site’s been running for a year and I’ve never experienced this issue until now.

    Is there any code in bbpress that could cause something like this? Reseting all posts?

    My web host recently upgraded PHP from 5.2.13 to 5.2.14 very recently, could there be some kind of incompatibility?

    Another side-effect of this is that it throws off paging on topics and cuts off newer posts in the topic. The number of pages shown for each post stays the same even though deleted posts are visible again so this essentially pushes newer posts back. Doing a recount doesn’t fix this.

    I’m having a hard time finding the cause although I somehow reproduced the problem. I had thought a moderator had restored deleted posts so I was going back deleting some posts that had been undeleted. When I was all done, I did a full recount. A few minutes later I found that all the posts that I had just re-deleted were restored again! I tried deleting some more posts and doing some recounts haven’t been able to reproduce the problem again.

    I’m running the following plugins:

    – Ajaxed Quote 1.2

    – Allow Images 0.8

    – BBcode Lite 1.0.3

    – bbPress Moderation Suite 0.1-rc2

    – bbPress signatures 0.2.0

    – bbPress Smilies 0.0.8

    – bb Topic Views 1.6.4

    – BBVideo 0.24

    – BuddyBar in bbPress 1.0.4

    – Forum Last Poster 0.0.5

    – Hidden Forums 0.0.9

    – Post Count Plus 1.1.11

    I’ve been running these plugins for a long time. The most recent one was bbpress Moderation Suite but I tested it pretty extensively on a development site (mirror) without issue.

    Any help is greatly appreciated!

    #35057
    Trilijan
    Member

    I’ve just tried to install bbpress forum, and during installation and after at the top of the screen I have got this warrnings:

    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwbbpressbb-settings.php on line 186

    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwbbpressbb-includesbackpressfunctions.wp-object-cache.php on line 108

    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwbbpressbb-includesbackpresspomomo.php on line 171

    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwbbpressbb-includesfunctions.bb-l10n.php on line 484

    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwbbpressbb-includesbackpressclass.wp-taxonomy.php on line 581

    Does anybody know what is it, and what to do?

    Thnaks :)

Viewing 25 results - 20,176 through 20,200 (of 32,481 total)
Skip to toolbar