Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,451 through 30,475 (of 32,463 total)
  • Author
    Search Results
  • #56920
    tiszenkel
    Member

    Hmm — forums/tags is being redirected to a page that exists, tags.php. But even navigating straight to tags.php causes the same error. I opened up tags.php in a text editor to see what was in there, and it referenced several files that don’t seem to be anywhere in my bbPress installation: bb_tag-single.php, tag-single.php and bb_tags.php. Could this be the problem? I downloaded a completely new copy of bbPress and couldn’t find them in there, either.

    Here’s the tags.php code:

    <?php
    require_once('./bb-load.php');

    bb_repermalink();

    // Temporary, refactor this!

    if ( !$tag && $tag_name )
    bb_die(__('Tag not found'));

    if ( $tag_name && $tag ) :

    $topics = get_tagged_topics($tag->tag_id, $page);
    do_action( 'bb_tag-single.php', $tag->tag_id );

    bb_load_template( 'tag-single.php', array('tag', 'tag_name', 'topics') );
    else :

    do_action( 'bb_tags.php', '' );

    bb_load_template( 'tags.php' );
    endif;
    ?>

    #56900

    In reply to: Installing Plugins

    ProSam
    Member

    Scratch that, post notification is also working. So bb-rating is the one that is giving me a head ache.

    Has anyone else installed this plugin? Is it working for you? How did you install it? The instructions say to

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

    But it doesn’t seem to show up on the site. Is there anything else I need to do to activate it.

    #1741
    ProSam
    Member

    Hi Guys,

    I’ve been at this all morning and I cannot figure out why its broken. I’ve looked at the code so much I’m cockeyed.

    I’m trying to integrate bbPress into a clients already established site which uses a server side includes so I figure I’ll just use php includes to call the same files but it just isn’t working out.

    site: radioavivamiento.com

    board: radioavivamiento.com/foro

    I would appreciate any help.

    #56875

    In reply to: Outlet

    Ahhh it looks great! Question!!

    How did you get the first poster section? Since there’s no Codex for this yet and I’m not much of a PHP Guru, I couldn’t figure out what to sue to get the original post authors name to show up on the posts listing :-/.

    #1733
    kennethhung
    Member

    Hi, first of all, Thank You For Doing This :-)

    I uploaded the folder and trying to run the install.php (http://www.gaszappers.com/forum/bb-admin/install.php), and all I got is this:

    Fatal error: Call to undefined function: bb_install_header() in /home/2206/domains/gaszappers.com/html/forum/bb-admin/install.php on line 11

    Any Clues?

    I triple check the dbName, user, password, directory and all that jazz, here’s my config.php:

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘db2206_gaszappers’); // The name of the database

    define(‘BBDB_USER’, ‘********’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘*********’); // …and password

    define(‘BBDB_HOST’, ‘internal-db.s2206.gridserver.com’); // 99% chance you won’t need to change this value

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://gaszappers.com&#8217;; // Example: ‘http://bbpress.example.com&#8217;

    // There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/forum/’; // Example: ‘/forums/’

    // What are you going to call me?

    $bb->name = ‘GAS ZAPPERS Development Forum’;

    // This must be set before running the install script.

    $bb->admin_email = ‘kenneth@tinkin.com’;

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = true;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = -4;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ‘***************’; // Example: ‘0123456789ab’

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave the rest as it is.

    $bb->wp_table_prefix = ”; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ”; // WordPress – Options->General: Blog address (URL) // No trailing slash. Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ”; // WordPress – Options->General: WordPress address (URL) // No trailing slash. Example: ‘http://example.com&#8217;

    /* Stop editing */

    if ( !defined(‘BBPATH’) )

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( BBPATH . ‘bb-settings.php’ );

    ?>

    #56638

    In reply to: bbpress future

    c00l2sv
    Member

    Oh, thanks Trent…

    I also did something, well not so great as you did… :)

    I wrote about bbPress on my blog, including some of our reviews from here. The blog is of course on WordPress.com.

    So far not to much responses… But I saw some referrers coming here from there.

    #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/&#8221; 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.

Viewing 25 results - 30,451 through 30,475 (of 32,463 total)
Skip to toolbar