Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,426 through 30,450 (of 32,432 total)
  • Author
    Search Results
  • #53214
    wmarcy
    Member

    Any chance we can get a chunk of functioning code to implement bb_top_topics()

    (the code in the first message and subsequent messages are not working for me…)

    I have been playing with it for better pat of a day and no go.

    Thanks!

    #1734
    ProSam
    Member

    I’m new at bbpress so please bare with me.

    I’ve searched and read the plugin instructions and I can’t figure out how to get the plugins workin.

    I created the my-plugins directory and added the plugins inside and yet nothing. Is there supposed to be a plugins management area in the admin? How are they activated? I’m confused.

    I’m trying to add the following plugins (instructions included):

    allow images = Add the allow-images.php file to bbPress’ my-plugins/ directory.

    post notifications = Add notification.php to your /my-plugins/ directory.

    bb-ratings = Add bb-ratings.php, bb-ratings.css, bb-ratings.js, and star.gif to your /my-plugins/ directory.

    None of them seem to be available

    #56636

    In reply to: bbpress future

    Sam Bauers
    Participant

    I can understand the concerns about JavaScript being written into the core. The point that cool2sv and others are making is that all the javascript that is written inline into the core code could be removed and the same functionality could be provided by adding events to DOM objects in external scripts. By doing this we could abstract away the absolute need for any particular JavaScript library, even though we would almost certainly include one in the core. If this was done then people could emulate the JavaScript functionality included in the core using other JavaScript libraries that better suit them. It is a cleaner and more flexible approach. That being said, there is quite a lot of work and testing to be done to achieve this for what may generally have limited benefit. Still, I think it should be considered and maybe even ticketed as an enhancement.

    #56266

    In reply to: Login unsuccessful

    davidzollo
    Member

    THANKS!!!! :)

    #56858

    In reply to: I demoted myself

    fel64
    Member

    It may be easiest to modify the database entry. Backup your databases, then open PHP MyAdmin or the like.

    You need to know your user id number, which is probably the number in the URL when you go to your profile. Run a query like

    SELECT * FROM wp_usermeta WHERE user_id = 1 AND meta_key = 'bb_capabilities' (changing 1 to your user id) to show the relevant field. Edit this entry so that you’re made a Key Master again. I don’t know what it should be, but for my account (I’m a Key Master) it’s

    a:1:{s:9:"keymaster";b:1;}

    Since this may break things, you need to have a database backup first.

    #56873

    In reply to: Outlet

    fel64
    Member

    It’s a simple case of a tiled (but large, so you can’t see it) background Trent. Here’s the CSS to do it.

    #wrapper {
    background:#202020 url(images/page_header_tile.png) repeat-x scroll 0px -25px;
    }

    That’s a really nice forum. I like your bold black/white/pink colour scheme :)

    #56870
    fel64
    Member

    You seem to have renamed the kakumei directory which would be a problem. It should be named kakumei and nothing else I think.

    #56869
    minkuei
    Member

    Thx Trent so patience to help me out.

    Actually, yes this is still problem. I didn’t fix it and i just copy the css file from http://kaespace.com/bbpress/my-templates/kakumei_i and put it in the “http://kaespace.com/bbpress/” directory.

    When you visit my site, look at the source code and the css link shows

    <link rel=”stylesheet” href=”style.css” type=”text/css” />

    I looks others fourm’s source code they have address like http://domain.com/my-templates/kakumei/style.css in the href.

    So I am wonder, is it my config.php didn’t set it right or some other thing I have to do.

    I do put the patch-to-URL.php in my-plugins folder

    #56867
    minkuei
    Member

    I was try to fix the fourm this afternoon, so if you can’t access maybe is because I was worrking on it XD.

    The Fourm address is right

    http://kaespace.com/bbpress/

    #56848
    slozano
    Member

    Thank you for the help. I tried the plug in proposed by Tren

    and the solution at https://bbpress.org/forums/topic/988?replies=4#post-6373. Only Charly54’s solution worked (Thank you Charly54), but only partially. The solution works with the default theme (Kakumei). I downloaded Bloody Gray 1.1 by Aditya Naik, removed Tren’s patch-to-URL plugin, Kakumei still works, I can see the preview of “Bloody Gray” in the Admin/presentation page. Once “Bloody Gray” is selected as the theme Firefox 2.0 show nothing and no code. When looking at the same page in IE 7.0 I get `<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>

    <HTML><HEAD>

    <META http-equiv=Content-Type content=”text/html; charset=utf-8″></HEAD>

    <BODY></BODY></HTML>`

    An empty page!. Thank you for you help, I will get another theme and try to understand what is happening, looks like many have struggle with this issue.

    #56857

    In reply to: login form wordpress

    fel64
    Member

    To change where the user is redirected, add a hidden field to the login form called redirect_to, with a value of where-ever you want the user to end up (default is in the dashboard).

    #1730
    citizenkeith
    Participant

    “Location” is in the user Profile, but doesn’t appear when they post. I’d like to add it, so that it reads “Location: Ohio” or whatever.

    I tried guessing and inserted this:

    <?php post_author_location(); ?>

    But that didn’t work. :(

    And finally, are all these functions listed somewhere?

    #56863
    minkuei
    Member

    I found out that most people’s bbpress has this code in index.php

    <link rel=”stylesheet” href=”http://yourdomain.com/style.css&#8221; type=”text/css” />

    however my index.php shows

    <link rel=”stylesheet” href=”style.css” type=”text/css” />

    in the bbpress root there is no css file, so I think that’s why it didn;t work.

    Can anyone told me how to fix it?

    Right now I just dump my css file in the root so index can reads it.

    #1725
    #55786

    In reply to: Slug based permalinks

    fel64
    Member

    Thanks a lot Sam!

    Another problem I have is that the bb Post plugin doesn’t automatically add a slug. I tried addressing this but couldn’t make it work. The function bbpress_bb_new_topic is responsible for adding the topic to bb.

    function bbpress_bb_new_topic( $title, $forum, $author, $author_name, $now ) {	// making new topic in bbPress
    global $wpdb ,$otherdb;
    $bb_table_prefix = bbpress_getoption('bb_prefix');

    if ( $forum && $title ) {
    if (bbpress_getoption('bb_other_base') === "no") {
    $wpdb->query("INSERT INTO <code>&quot;. $bb_table_prefix .&quot;topics</code> (topic_title, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id ) VALUES ('$title', $author, '$author_name', $author, '$author_name', '$now', '$now', $forum)");
    $topic_id = $wpdb->insert_id;

    $wpdb->query("UPDATE <code>&quot;. $bb_table_prefix .&quot;forums</code> SET topics = topics + 1 WHERE forum_id = $forum");
    $wpdb->query("UPDATE <code>&quot;. $bb_table_prefix .&quot;forums</code> SET posts = posts + 1 WHERE forum_id = $forum");
    } else {
    $otherdb->query("INSERT INTO <code>&quot;. $bb_table_prefix .&quot;topics</code> (topic_title, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id, topic_slug) VALUES ('$title', $author, '$author_name', $author, '$author_name', '$now', '$now', $forum, $feltopic_slug)");
    $topic_id = $otherdb->insert_id;

    $otherdb->query("UPDATE <code>&quot;. $bb_table_prefix .&quot;forums</code> SET topics = topics + 1 WHERE forum_id = $forum");
    $otherdb->query("UPDATE <code>&quot;. $bb_table_prefix .&quot;forums</code> SET posts = posts + 1 WHERE forum_id = $forum");

    }

    return $topic_id;
    } else {
    return false;
    }
    }

    What needs to be done? I need to change the INSERT INTO statement, by adding the column name to the list of columns and the variable I want to insert for that to the list of variables?

    #56826
    Nola1974
    Participant

    oh neat! :) You’re very welcome.

    #56641

    In reply to: Plugin: BB-Ads

    wittmania
    Member

    UPDATE: The sample ad file now includes the code necessary to display different ads based on the context. For example, if it is a topics page, it will display one ad and if it is a forum page, it will display a different one.

    The code is something like this:

    <?php
    if ( strpos($_SERVER['REQUEST_URI'], 'topic.php') ) { ?>
    <div>An ad for a topics/posts page</div>
    <?php
    } elseif { another specific page;
    } else { default ad;
    } ?>

    The sample file includes elseif checks for topic.php, forum.php, profile.php, and a “default” if none of the above pages are detected.

    This would allow you to have one file per sponsor/advertiser, with a different context-based ad for each situation.

    #56662

    In reply to: Maintenance Mode?

    gtim
    Member

    I couldn’t make a plugin for it, but you can restrict users without the “administrate” capability from accessing the site by appending this line to bb-settings.php:

    if ( ! bb_current_user_can( 'administrate' ) ) { die('<p>The site is down for maintenance.</p>'); }

    slozano
    Member

    I followed the discussion in “Updated to Desmond But Theme Not Working”, however the proposed solutions are not working for me.

    I have a IIS 6.0, windows 2003 server, MySQL 5.x and PHP 5.0 installation. Both directories “my-templates/” and “my-plungins/” are in the bbpress root. The “patch-to-URL.php” plugin is inside the “my-plugins” folder.

    When looking at the source code in Firefox 2.0 I get

    “<link rel=”stylesheet” href=”http://129.82.32.135forums/my-templates/kakumei/style.css&#8221; type=”text/css” />” (notice the “” before forums) and inside the admin section for the forum the themes previews are not visible, tough their names and the options to select are present.

    However when using IE 7.0 the source code I get

    “<link rel=”stylesheet” href=”http://129.82.32.135/forums/bb-admin/style.css&#8221; type=”text/css” />” and the themes previews are visible.

    Any ideas how to fix this errors. Thanks.

    #56844
    H
    Participant

    It’s possible, but I think it’s difficult (much work).

    What about making a template which looks the same as your XHTML document? (Featuring the same menus, navigation system etc. as your XHTML document). Then the bbPress forum looks like it’s integrated without being so. :-)

    #56825
    suleiman
    Member

    thanks for the hack vincent, I’m glad to see you got it integrated into bbpress. I’m using your hack myself :)

    #1720
    binialas
    Member

    Hi, i’ve downloaded bbPress because i’m a lover of WordPress amb because i like bbPress very much. But now i’im in a big trouble.

    I want to integrate bbPress in an standard XHTML website with any line of WordPress code, and so i need to know how i can integrate it from the beggining of the process.

    Now i’ve just installed bbPress in a url rute like /mydomain.com/bbpress but i need to be shown in a basic xthml document, like mydomain.com/phorum.php

    How can i do this?

    I think it’s possible, but can you help me?

    Regards guys from Mediterranean sea. ;)

    I’m waiting a good response form you as soon as you can, thanks guys. ;)

    #56596
    archasek
    Member
    <?php if ( !is_topic() ) : ?>
    <p>
    <label for="topic"><?php _e('Tytuł:'); ?>
    <input name="topic" type="text" id="topic" size="50" maxlength="80" tabindex="1" />
    </label>
    </p>
    <?php endif; do_action( 'post_form_pre_post' ); ?>
    <?php do_action( 'post_form_pre_post' ); ?>
    <p>
    <label for="post_content"><?php _e('Treść:'); ?>
    <textarea name="post_content" cols="50" rows="8" id="post_content" tabindex="3"></textarea>
    </label>
    </p>
    <?php if ( !is_topic() ) : ?>
    ...

    it’s post-form.php. doesn’t work :( e.g: http://ram.org.pl/forum/topic.php?id=3&page&replies=9 still doesn’t have any quicktags. should i use tiny MCE?

    #56838

    In reply to: Candy!

    fel64
    Member

    I can’t find the Category Patch plugin, sorry. That plugin browser is annoying. >_<

    The statistics are included by default, but not linked to in the default theme. Just go to www.example.com/forums/statistics.php and it’s there. The file for it is in your root forum folder.

    #56595
    fel64
    Member

    I hate Tiny MCE. It’s slow and nannies you too much.

    Archasek, I think you haven’t called some hooks or something. Find something like

    <p>
    <label for="post_content"><?php _e('Post:'); ?>
    <textarea name="post_content" cols="50" rows="8" id="post_content" tabindex="3"></textarea>
    </label>
    </p>

    and insert

    <?php do_action( 'post_form_pre_post' ); ?>

    In front of it, on a new line. That should make it work. :)

Viewing 25 results - 30,426 through 30,450 (of 32,432 total)
Skip to toolbar