Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,201 through 20,225 (of 32,517 total)
  • Author
    Search Results
  • #92920

    Hello again.

    It worked like a glove. Thank you chrishajer. And thank you Kevin as well.

    For posterity’s sake now, this is what one should modify in their style.css in order to achieve a vertical scrollbar for their tag list:

    #topic-tags {
    border-left: 1px solid #ccc;
    float: right;
    padding: 0 0 0 1em;
    overflow:auto;
    height: 240px;}

    I sometimes wonder where should one start if one wanted to build a solid foundation in PHP? For I only use (basic) logics and ask for help when I’m stuck.

    Nevertheless, thank you all once again.

    Regards,

    Pastor Bob

    #92968

    In reply to: Permalinks Error

    zaerl
    Participant

    This is the way relative URLs function. You must modify your template and put on the absolute URL.

    <a href="<?php bb_uri('/videos.php'); ?>">video</a>

    #92948

    In reply to: can't access bb-admin

    xtremetoonz
    Participant
    #92939
    chrishajer
    Participant

    If you want to reinstall, you will need to drop all the bb_ tables from the database. You will get this “upgrade” notice when there are bb_ tables in the database.

    It almost looks like you used main_ for your bbPress database table prefix? I hope that is not the table prefix for your WordPress installation. If it is, then using the same prefix for bbPress means the bbPress installer tried to install into your WordPress tables.

    #92938
    Zauxst
    Member
    Oh dear!

    bbPress is already installed, but appears to require an upgrade.

    Perhaps you meant to run the upgrade script instead?

    This is what showes now when the Database Table is active with the current error. Clicking on the Upgrade Script does nothing only refreshes the web-page.

    #92937
    Zauxst
    Member

    Ah yeh i’ve forgot to mention that i use sub-domain for bbPost and not a URL like www.example.com/forum

    My main blog and website is www.nightheaven.co.cc and the forum is located at www.forum.nightheaven.co.cc so might that be a problem?

    #35111
    Zauxst
    Member

    I get these strange errors after trying to install bbPress

    Forum could not be created!
    Key master email not sent!

    Referrer is OK, beginning installation…
    >>> Setting up custom user table constants

    Step 1 - Creating database tables
    >>> Database is already installed!!!

    Step 2 - WordPress integration (optional)
    >>> WordPress address (URL): http://nightheaven.co.cc/
    >>> Blog address (URL): http://nightheaven.co.cc/
    >>> WordPress cookie keys set.
    >>> WordPress "auth" cookie salt set from input.
    >>> WordPress "secure auth" cookie salt set from input.
    >>> WordPress "logged in" cookie salt set from input.
    >>> User database table prefix: main_
    >>> WordPress MU primary blog ID: 1

    Step 3 - Site settings
    >>> Site name: forums
    >>> Site address (URL): http://forum.nightheaven.co.cc/
    >>> From email address: address@yahoo.com
    >>> Key master role assigned to existing user
    >>>>>> Username: username
    >>>>>> Email address: me@yahoo.com
    >>>>>> Password: Your existing password
    >>> Description: Just another bbPress community
    >>> Forum could not be created!
    >>> Key master email not sent!

    There were some errors encountered during installation!

    #92919
    chrishajer
    Participant

    You *do* need to set the height, at least, to create the vertical scrollbar. So what size do you want to constrain it to? Can you show an example of a page where the tag list is too long that you want to add the scrollbar to?

    Maybe this page?

    http://www.pastorbob.co.uk/forum/bible-study/are-we-invincible

    Add this to the topic-tags CSS right where you added the overflow: auto

    height: 110px;

    That will make it about as tall as the information to the left (at least on this page, with the amount of information there.)

    #92916

    Hello.

    This is what I’ve done with my topic.php:

    <div style="overflow:auto"><?php topic_tags(); ?></div>

    No result. Also, shouldn’t I set a width and a length somewhere?

    I’ve also tried:

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

    No result.

    Suggestions?

    Regards,

    Bob

    #92905

    In reply to: Favicon

    Could you give us a link?

    Could you tell us what version of the browser you’re on?

    (did you google, cos FF3.6 had this issue from 3.6.2 to 3.6.6)

    http://support.mozilla.com/tiki-view_forum_thread.php?comments_offset=0&comments_threadId=0&comments_parentId=562600&comments_threshold=0&thread_sort_mode=commentDate_asc&forumId=1&time_control=3600

    Is your favicon in the root?

    Is your favison called via code?

    It’ll be a nice quick fix if you could give us some more info :)

    #90519

    Hi Bob,

    Finished is not quite the word i’d use to describe it, but it works as intended.

    I generally like to scope out all of the thing I want a plugin to do, and then I can add to it incrementally, which is why there are 4 functions with no code in them (but they’re never called, it’s more placeholders).

    The code isn’t released under a GPL yet, not that I’d try submitting them here anyway given past horrors with the system, but please feel free to use it on your forums Bob, and shout me if you’ve any issues.

    #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

Viewing 25 results - 20,201 through 20,225 (of 32,517 total)
Skip to toolbar