Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 6,326 through 6,350 (of 6,773 total)
  • Author
    Search Results
  • #49513

    In reply to: sample plugins?

    Leo Plaw
    Member

    Why have the authors of BBPress been so daft as to not add a “my-plugins” directory to the default installation of BBPress?

    It was my first question, just like everybody else on the forum, “where’s the plugin folder”.

    Hey, it might seem obvious to those of you who know the BBPress, but for heaven’s sake make it easy for the newbies. You did it for WordPress, so why not BBPress?

    Get with it and think of the users you programmers! 8)

    #61005

    In reply to: Hot Tags Font size

    chrishajer
    Participant

    http://blueplato.com/forums/bbpress is not accessible (gives a 404). I was going to look at the theme you are using because that is not the default for the bb_tag_heat_map: <?php bb_tag_heat_map(9 38 ‘pt’ 80); ?>

    This is the default from https://trac.bbpress.org/browser/trunk/bb-templates/kakumei/front-page.php#L7

    <?php bb_tag_heat_map(); ?>

    So, what do the numbers mean? Looking at that function in bb-includes/teamplate-functions.php around line 1574, here’s what the defaults are, and mean:

    $defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'limit' => 45, 'format' => 'flat' );

    Looks like you define the smallest size, largest size, the unit of measure, the max size and then a format (not sure what that last one does.)

    So, my guess is you would change those. At the very least you need to put comments between the arguments in the function call in your front-page.php: your example shows none. And you might want to add that last argument – not sure what happens when it’s missing.

    #2466
    ronjroy
    Member

    Looking at previous posts, I see a similar question pertaining to changing the font size of the hot tags. The answer however means nothing to me, i.e.

    <?php bb_tag_heat_map(); ?>

    The default as it looks to me is:

    <?php bb_tag_heat_map(9 38 ‘pt’ 80); ?> What do these numbers mean and by changing them I still see no change on the forum.

    This looks like:

    <div id=”hottags”>

    <?php bb_tag_heat_map(9 38 ‘pt’ 80); ?>

    </div>

    I have made changes to these numbers, but since I do not know what they affect, I can not get the font-size to change.

    I have also made changes to the stylesheet with no luck.

    .frontpageheatmap {

    font-size: 1em;

    font-family: “Eras Medium ITC”, sans-serif;

    font-weight: 600;

    font-style: italic;

    line-height: 1.4em;

    padding: 10px 0;

    }

    Can the tags be changed and if so is there a simple approach that is easy to follow and not too difficult to explain?

    blueplato.com.

    Thanks for any help!

    #60961

    In reply to: Cannot select DB

    lookfab
    Member

    Yes, the wordpress user exists. The passwords are the same.

    The really strange thing now is that WP has stopped working (it did before I started tinkering with bbpress). I get “Error establishing a database connection” when I try to view the blog.

    Even weirder, it seems that IIS “forgot” that index.php was a valid default page. I had to go back in and change this setting.

    #60517
    Jaithn
    Member

    hello…

    after upgrading to .83 the error-message changed…

    maybe somebody could help me!!! please!!

    Fatal error: Call to undefined function __() in /home/www/kunden/fsj-community.de/wordpress/forum/bb-includes/default-filters.php on line 81

    jaithn

    #60957
    chrishajer
    Participant

    If you would like to watch the whole forum, there are lots of RSS feeds set up by default in bbPress (tags, new posts, topics, etc), and you could just have those feeds emailed to you by something like Feedblitz http://www.feedblitz.com

    You’re also looking for a way to post to the forum via email though, and I don’t know of a way to do that. I know you can post to a blog via email, but I have not seen anything like that for bbPress (or any other forum actually.)

    #60754
    chrishajer
    Participant

    > Where it says “$bb->wp_table_prefix” – where do I find

    > the prefix?

    It would be listed in your WordPress wp-config.php – by default, it’s wp_

    > $bb->wp_home & $bb->wp_siteurl – that is just my

    > site url only, nothing more – http://www.blah.com

    That’s fine, no trailing slash.

    > Once I do the above how to I make the forum part of

    > wordpress, will it automtically look like this forum?

    Nope – it’s an independent application that you need to style to get it to look like your WP site.

    Search for threads tagged “integration”:

    https://bbpress.org/forums/tags/integration

    This was a good summary I thought:

    http://www.adityanaik.com/integratepress-part-i/

    #55810
    Detective
    Member

    I use this plugin ported from a Vanilla Extension:

    <?php
    /*
    Plugin Name: Video Tags
    Plugin URI: http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=33
    Description: Ported from SirNot's HtmlFormatter for Vanilla
    Author URI:
    Version: 0.1
    */

    //allow youtube and google videos to be posted, tags are:
    //<video type="google">docid</video> (google video) -or-
    //<video type="youtube">video id</video> (youtube) -or-

    function video_embed($texto){
    $sReturn = preg_replace_callback(
    '/<video(?>s+)type=(["'

    ])((?>w+))1(?>s*)>([A-Za-z-_d]+?)</video>/is’,

    ‘VideoLink’,

    $texto

    );

    return $sReturn;

    }

    function VideoLink($Matches)

    {

    $Type = strtolower(trim($Matches[2]));

    $ID = $Matches[3];

    switch($Type)

    {

    case ‘google’ : return (‘<embed style=”width: 400px; height: 326px;” id=”VideoPlayback” ‘.

    ‘type=”application/x-shockwave-flash” src=”http://video.google.com/googleplayer.swf?docId=&#8217;.$ID.'”></embed>’);

    case ‘youtube’ : return (‘<object width=”425″ height=”350″><param name=”movie” value=”http://www.youtube.com/v/&#8217;.$ID.'”></param>’.

    ‘<embed src=”http://www.youtube.com/v/&#8217;.$ID.'” type=”application/x-shockwave-flash” width=”425″ height=”350″></embed>’.

    ‘</object>’);

    default : return $Matches[0];

    }

    }

    function allow_video_tags( $tags ) {

    $tags = array(‘type’ => array(‘maxlen’ => 10));

    return $tags;

    }

    add_filter( ‘bb_allowed_tags’, ‘allow_video_tags’ );

    add_filter( ‘post_text’, ‘video_embed’ );

    ?>

    `

    It allows you to embed video only from YT or Google Video.

    #60745

    In reply to: WP 2.3 breaks bbpress?

    oledole
    Member

    EDIT

    Looks like it has something to do with “wp-blog-header.php” beeing called in from BB’s config.php. When I run a basic config.php and default theme it works fine …

    #58410
    neyoung
    Member

    Kahil, your method works well if your users use their login name as their display name. However if a user who’s login is user23 changes his display name to John Doe then your code looks for this image. /forum/avatars/John Doe.jpg instead of the correct avatar image which would be /forum/avatars/user23.jpg. I couldn’t figure out a clean way to fix this (I’m using wpmu, not wordpress). But here’s a dirty hack.

    <?php
    $comment_author_dn = get_comment_author();
    $comment_author = $wpdb->get_row("SELECT <code>user_login</code> FROM <code>wp_users</code> WHERE <code>display_name</code> = '$comment_author_dn'");
    echo '<img id="comment-avatar" height="50" width="50" src="/forums/avatars/' . (empty($comment_author->user_login) ? "default" : $comment_author->user_login) . '" alt="avatar" />';
    ?>

    That code should find images for a user if they use a display name or not.

    /shrug

    I haven’t fully tested it, but it seems to work ok.

    #60733
    chrishajer
    Participant

    Sounds like permalinks are creating a problem. Turn them off in your config.php and see if you can view posts.

    Make this line in your config.php look like this:

    $bb->mod_rewrite = false;

    (maybe it says true or slugs now)

    I don’t believe an .htaccess files comes with a default install. You would need to create one, so there won’t be one anywhere unless you created it, and it goes in the root folder of your forum. You can take care of that later, once you can at least see your posts.

    #52551
    outchy
    Member

    I can’t figure out how to hack this :/ Does anyone feel like helping me? :)

    #2393
    dvdiveguy
    Member

    During installation when I go to step 2 I get the following access violation message

    PHP has encountered an Access Violation at 0AF7B927

    bbPress

    Second Step

    Now we’re going to create the database tables and fill them with some default data.

    1. Created table dvdgbb_forums

    2. Created table dvdgbb_posts

    3. Created table dvdgbb_topics

    4. Created table dvdgbb_topicmeta

    5. Created table dvdgbb_users

    6. Created table dvdgbb_usermeta

    7. Created table dvdgbb_tags

    8. Created table dvdgbb_tagged

    At this point the tables have actually been created in the database but I can’t go forward with the installation. So if I start again I get the following.

    First Step

    We found Steve who is already a “Key Master” on these forums. You may make others later.

    First Forum

    Forum Name:*

    Description:

    Double-check that username before continuing.

    From here everything goes fine and I get this

    Finished!

    Now you can log in with the username “Steve” and password “*Your WordPress password*”.

    Username

    Steve

    Password

    *Your WordPress password*

    Login address

    Diver Forums

    Were you expecting more steps? Sorry to disappoint. All done! :)

    Unfortunately, I never got a valid password in the process so I can’t login. So I tried the password reset and the send me the password features but to be able to email from my server I need to put 2 ini_set statements before the mail statement so it knows which smtp account to use (this is for server security). the problem is that I will have to search all the files looking for the mail function.

    Can you help me out here.

    Here is my System Info

    PHP Version 5.0.4

    mySQL Versions:

    Server: 4.1.12

    Client: 4.1.7

    Steve

    I’m adding to this because I have since found and edited the registriation_functions.php file so it would send emails. I used the reset password functions to get a new password via email. The first step had me go to a url with a key at the end. Once I got the password I tired to login and got a Key Not Found error. So I took the key part of the url from the first email and forced it into the user meta table in the database. After that, I could login successfully. However, now when I create a topic and post it and then try to view it or any other things like edit users or forums it always returns an unable to locate page error. Well that’s where I’m at now. Its 2am so I going to bed.

    #60650

    In reply to: Cookies

    Trent Adams
    Member

    Not sure which file actually ‘writes’ the cookie, but as you know you can play around quite a bit by changing things in config.php. For example:

    For default installs this effectively makes the cookie names:
    'bb_user_' . md5('bb_')
    'bb_pass_' . md5('bb_')

    You can override the name of the cookie by setting values for the following somewhere in config.php:
    $bb->usercookie = 'my_great_user_cookie_name'
    $bb->passcookie = 'my_great_pass_cookie_name'

    Other than that, another user might have to tell you what function creates the cookie and then check the code. function.php maybe?

    Trent

    #56760

    In reply to: Plugin: Avatar Upload

    LMD
    Participant

    Thumbnails are now an undocumented feature in version 0.8.3.

    It’s undocumented because I think it ought to be road tested first. To use thumbnails you have to enable the feature in the plugin file itself, it is not configurable in the admin options page.

    1. Open up bb-avatar-upload.php and in the configuration settings class, scroll down to the following section:

    // Use a thumbnail image (hidden feature for now). 1 = yes / 0 = no (default)
    $this->use_thumbnail = 0;
    $this->thumb_width = 25;
    $this->thumb_height = 25;

    Set $this->use_thumbnail to 1 to enable and change the dimensions if desired.

    When enabled, whenever a user uploads an avatar a smaller copy is created with the prefix ‘thumb.‘ So the avatar username.jpg will have a thumbnail called thumb.username.jpg (the file type changes with the avatar file type, so PNG avatars produce PNG thumbnails etc).

    2. You can access the thumbnail image with the following function call:

    echo avatarupload_displaythumb($user->ID);

    An image tag is returned with the class name avatar_thumb.

    <img src="thumb.username.jpg" width="25" height="25" alt="Username" class="avatar_thumb">

    I think that covers everything, let me know if you have any problems.

    #2362

    Topic: User ID bug

    in forum Troubleshooting
    amalinow
    Member

    Problem with inserting users.

    Now, I am having a problem where my last insert id on the bb_users table is 10,000,000,430 and the user registration is broken.

    So I have looked at the code in bb-includes/registration-functions.php

    and I’ve found that this line in the bb_send_pass() function is causing trouble:

    $user = (int) $user;

    After this line $user is set to zero, where it was 10,000,000,430 before.

    After examining further, I found numerous places where you had $user = (int) $user;

    It seems like PHP cannot handle the type cast of 10,000,000,430…

    Btw… I do not know why the last_insert_id is 10,000,000,430, seems like something done by the previous website owner. However, looking at the bb_users.ID column it looks like it is BIGINT by default – which is too large for php integers which is only 32 bit signed…

    #60527
    fel64
    Member

    Actually the function works just fine, you’re just expecting it to work differently. Try using different flow control or rewriting your logic.

    if( blah_is_true() ) {

    } elseif( foo_is_true() ) {

    } elseif( third_thing_is_true() ) {

    } else {
    // default
    }

    The elseifs mean that if a previous if statement was true, none of the successive ones will be tried. That way, if it is bb, it won’t even check if it’s single or a page.

    Alternatively,

    if( ( is_single() || is_page() ) && !is_bbpress() ) {

    }

    will work just fine.

    If you’ve integrated bb into wp that way, of course some of the WP template tags will work that way. If you wanted everything else to return false when you loaded bb, you’d have to do this:

    function adjust_flags_to_bb() {
    global $wp_query;
    $wp_query->init_query_flags();
    }
    add_action('bb_init', 'adjust_flags_to_bb', 999);
    //not sure if that's the right action, but meh

    but that’s really quite unnecessary.

    #60455

    In reply to: Advanced Search

    fel64
    Member

    It’s pre-1.0. What did you expect?

    > so you can not search by poster name, or a date range?

    Yes, you can. That is only the default.

    > Your search page may need a template change: https://trac.bbpress.org/ticket/694#comment:1

    #2360
    Jaithn
    Member

    hello guys,

    i have succesfully integrated bbpress and wordpress…i’m still working on the template integration, but is in progress…

    but i also have some little problems…

    1. i can only logout through the script i login…wordpress login -> only wordpress logout works

    2. the side doesnt let me download files…wenn i click on a link to a pdf the following error occurs:

    Fatal error: Call to undefined function load_default_textdomain() in /home/www/kunden/fsj-community.de/wordpress/forum/bb-settings.php on line 182

    direkt link: http://zuhause-weltweit.de/files/2007/09/zwev-satzung-beitrittsformular.pdf

    side: http://zuhause-weltweit.de

    can you guys help me out?

    jaithn

    #60507

    In reply to: tr td .num font size?

    chrishajer
    Participant

    In your theme’s style.css (or the default theme style.css) you want to find this at around line 255:

    .num, #forumlist small {
    font: 11px Verdana,Arial,Helvetica,sans-serif;
    text-align: center;
    }

    That controls the styling of <td class=”num”>.

    I also recommend you use the Firefox web browser with the Web Developer add-on by Chris Pederick for finding things like this.

    #60492

    In reply to: Unread Topics

    fel64
    Member

    Err, no. :P I read your description here. I thought about that approach before but I like the time-based implementation, especially as my hosting is a bit creaky (and edit: having come to the finish of this post, I realise that it’s actually not that bad at all! Maybe it is a good idea, especially as it’s a lot more convenient). It’s good that you’ve done it though, and cool that you’re sharing it (in the face of adversity :P). I hope you don’t mind; here’s some suggested changes that could speed things up a lot.

    For installing the table, you may want to use bb_dbDelta() (should work exactly as wp’s implementation: https://codex.wordpress.org/Creating_Tables_with_Plugins ).

    There are also a lot of queries made that you could probably avoid. For example, in the topic listing the current topic will be in the global $topic, and you can get its last_post_id by this:

    $last_post_in_topic = $topic->topic_last_post;

    You can do the same for the number of posts.

    Every column in the table will be available as a member variable (don’t know how familiar you are with PHP? Member variables are just like above, $member->!!!member_variable!!!) – that’s true for users, posts, topics and forums alike. (Meta entries are too, if there’s an entry topic_colour in the topicmeta table you can call it by $topic->topic_colour.)

    Right now you’re making at least three additional queries per topic:

    if ( utplugin_is_topic_unread($topic, $user) || utplugin_is_topic_new($topic, $user) )

    utplugin_is_topic_unread() makes three queries. If it’s not unread, it’ll check if it’s new, too, which is another two. For the default 30 topics, that’s 90 – 150 additional database queries per single view of a page. Since db queries are usually the bottlenecks in website speed that could be a problem. (_ck_ would probably blow an artery.)

    By using the already-queried stuff from global $topic you can cut that down to one or two topics per query. Also, in utplugin_is_topic_new() you’re using exactly the same value again, but making a new query for it, if I see that right. You could either move the check to utplugin_is_topic_unread() (which would return true for unread and for new) or make that a global itself.

    That would make it at most one query per topic.

    Finally, IIRC data for all topics on the page is being called in a single query. If you can find the right filter or hook, you may find that you can get all the relevant topic_ids at once, at the start, then do a _single_ query on your table that gets data for all of them, make that a static (so it’s preserved every time the function is called) and use that data every time. Then the overhead generated by your plugin wouldn’t even be so bad.

    #60188
    neyoung
    Member

    ok. I’ve figured out whats causing the problem. It comes down to the Default Role Plugin. There is nothing wrong with the plugin itself other than the fact that it relies on wordpress functions. Thus you need to load wp along with bbpress. To do so I have the following added to the top of my config.php file.

    require_once('../wp-blog-header.php');
    define('WP_BB', true);

    With the two lines in the config.php file the allow images plugin does no work. I even tried disabling the Default Roles plugin and leaving the 2 lines in config.php to make sure the plugin wasn’t the culprit. If I remove the two lines the Allow Images plugin works as expected.

    I don’t know much, but I could take a stab at whats happening. Is it possible that when a reply/topic is made, bbpress is calling wordpress functions instead of bbpress functions?

    #60091

    In reply to: top 100 bbPress sites

    henrybb
    Member

    _ck_: have you considered hacking up a plugin that gathers information about the forum upon activation and once per month after that and submits it to you in some way? Would automate the process way more for you and admins instead of having to post the link to you, and then you having to review all the sites.

    I’m thinking it would fill out an HTML form and submit it to a site you had. Then people could log in and see updated information about the most active bbPress boards and what their functionality was. And you could compile a static list regularly.

    If it was well written, I’d be interested in seeing it in bbPress by default so new admins who wouldn’t find the plugin here could activate it and submit statistics.

    Ofcourse, there’d be some bozos trying to inflate their numbers sometime down the line..

    #60409
    fel64
    Member

    To delete a topic, you have to open the topic, scroll to the bottom and click [Delete Entire Topic]. You can’t rename the theme as it’s a default, but you can make your own theme (and name it whatever) by creating a my-themes folder in root and creating a style.css file (you can just copy the one from bb-templates/kakumei to start with, as a reference).

    #59876
    _ck_
    Participant

    Oh sorry, I’ve created a new main theme so this one isn’t visible anymore by default.

    However thanks to a theme switcher I pieced together you can now see it this way:

    http://bbpress.dreamhosters.com/forums/?bbtheme=kakumei-too

    (I’m calling it “Kakumei Too” for lack of a more creative name right now)

    You can switch to other themes using the toggle in the bottom right.

Viewing 25 results - 6,326 through 6,350 (of 6,773 total)
Skip to toolbar