Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,726 through 25,750 (of 32,481 total)
  • Author
    Search Results
  • #63385
    mikeumus
    Member

    And how would you get that relationship?

    More direction please. 8)

    I’m trying to link my wonderful WordPress blog and bbPress Forum(live @ http://www.l4dt.com/) with some wonderful tournament management code(testing, but live @ http://www.a-mnow.com) and have already quite shyed away and scared myself at the thought of trying to connect any two databases, so direction at all would be great.

    Here’s what the tournament management _config.php file consists of:

    _config.php

    _______________________________________________________________________________________

    <?php

    //This is the new config file, almost all settings have been moved to the database.

    //You no longer need to edit this file,

    //unless the installer is not able to edit this file because of permissions.

    //Just run the installer at /install/install.php

    //Database server connection settings

    $database = ‘mysql’;

    $database = ‘apltest’;

    $database = ‘?????????????????’;

    $database = ‘apltest’;

    $database = ‘p50mysql71.secureserver.net’;

    //Do not change strict_mode, unless you know what you are doing

    $database = -1;

    ?>

    _______________________________________________________________________________________

    ^ There is no table specification!? wtf, but that’s not how you link databases, by giving them the same table prefix, right? But does it have to do with the table(s)?(I’d think so, but that’s all I can fathom)

    _______________________________________________________________________________________

    Here is the link to the site which gave me the tournament management code, “Autonomous LAN Party”:

    http://www.nerdclub.net/alp/

    _______________________________________________________________________________________

    Any hint at making that relationship would be most excellent.

    Thank you for your time and input.

    8D

    #4829
    stevedrum
    Member

    hello. i just want to check something… before i go and do it and mess everything up.

    askimet has caughts loads of spam comments on my forum, which is great, but they are still in the database. i would like to remove them completely.

    i reckon that this is the correct entry, but does anyone know for sure?

    delete from bb_posts where post_status = '2';

    #71832

    Hey!

    I just need a CMS and forum functionality with possible solution for added accounts where they can have access to certain content like download links and I want the login credentials to be same throughout the site. This way I will make everybody a account and they will then need to login into the account even for posting comments.

    Either I use some plugin (if it exists) or write my own code that can use the same username and password from the WP or bbPress database. I think that is pretty much feasible but I am concern about the security as I am not an advanced user.

    Please guide in some direction.

    #71570
    Malice
    Member

    Obviously I’m not sure, I’m just wondering :)

    #71698
    Malice
    Member

    That sounds like very good news!

    Always found the url.com/forum/forum/ a bit wicked :)

    #71697

    It would be nice if the /forum/ could be totally removed :)

    …and to be given the option to be changed to be the name of the forum you are viewing when viewing a topic, similar to WordPress…

    #71696
    ganzua
    Member

    The main difference that is coming is the ability to change the directory names, e.g…

    http://example.org/forum/first-forum

    Can potentially be…

    http://example.org/fora/first-forum

    It would be nice if the /forum/ could be totally removed :)

    #71826
    chrishajer
    Participant

    I disagree on the WordPress page function not being powerful enough to understand parent/child. It always seems to work for me. For example, check this page:

    http://www.woods-metal-shaping.com/machine-shop/machining/risers/

    Those are WordPress pages, grandparent is machine-shop, parent machining, child risers. Check the left nav for the current page highlighted, and check the top tabs for the grandparent highlighted. So, it’s certainly possible to do whatever you want with the current class in WordPress.

    On this site, when you are on the blog page, they are probably just using the WordPress current_page_item class to highlight (home, about, documentation, blog, download.) When you click forum, you go to bbpress. So, in your bbPress template, you hard code that nav item as current. I’m not certain how the extend section works, if it’s bbPress or WordPress.) But, basically, you hard code current for the forum/forums/bbpress tab since once you click it, you’re outside WordPress.

    Now, with integration, and including the WordPress nav, I have no idea how it would work. I always thought if you had a Page called “forums” and then you installed bbPress in a directory called “forums” that the directory will override the WordPress Page, so the forum is shown, but I don’t know what happens in the nav, i.e. if WordPress still thinks you’re on a Page called “forums”.

    HTH

    #4815

    I know this is a question geared more towards the WordPress.org forums, but because it also could be a bbPress integration question, I figured I’d post it here.

    Case:

    1.) When you are within the Blog area of the site, that the Blog tab always displays a “current” class.

    2.) When you are within the bbPress/Forum area of the site, the “Forums” tab also always shows “current.”

    To my understanding, the WordPress page function isn’t powerful enough to understand the parent/sub relationship. Curious if anyone knows of a way within WordPress to make this act in a similar fashion apart from hard-coding it. I don’t believe the WordPress.org site is hard-coded that way, but of course I could be wrong.

    #71229

    johnhiler, you are awesome. that is exactly what he is asking. =)

    #71812

    Oops! My bad :) When you said

    Would a BB version be helpful?

    I didn’t re-read the whole thing.

    #71695
    Sam Bauers
    Participant

    Well, for what it’s worth it doesn’t look like I’ll be changing any filenames. The main difference that is coming is the ability to change the directory names, e.g…

    http://example.org/forum/first-forum

    Can potentially be…

    http://example.org/fora/first-forum

    Or some other langauge. Also there are going to be a few additional permalink styles like…

    http://example.org/post/27/edit
    http://example.org/new

    And I’m experimenting with URL driven intersections, so…

    http://example.org/tag/ice-cream/tag/chocolate
    http://example.org/forum/support/tag/alpha/search/release+date

    …might be something we see in the future.

    The newer styles are very hard to detect with existing functions which are available to plugin devs, but I am trying to supply the tools required for easy detection and interaction with the new setup.

    #70087
    Stephanie Leary
    Participant

    I’m having the same problem with a new 0.9.0.4 installation. In addition, I have an error message in my Latest Activity box on the Dashboard:

    bbPress database error: [Unknown column 't.topic_id' in 'on clause']

    SELECT p.* FROM bb_posts AS p JOIN bb_topics as t ON ( t.topic_id = p.topic_id ) WHERE p.post_status != '0' AND t.topic_status = '0' ORDER BY p.post_time DESC LIMIT 5

    #71810

    Regarding anomaly #1, WP standard does have both URL and site URL, so that’s kinda ‘WPmu is bad’ in this instance.

    About the rest … MRH. I’m a little lost. Yes, please do tell us what BB version you’re using :)

    #4811
    MrPeteH
    Member

    I’m a not-quite-noob on WP/WPmu, and a total noob here on bbPress. I’m attempting my first integrated install, from scratch. WPmu latest (2.7 trunk as of a couple weeks ago) and bb 1.0 alpha 6. I thought I’d share a new-user experience… knowing that this kind of stuff is hard to remember later.

    I’m wanting integration of users and logins, and went through the install with that in mind.

    Anomalies, strangeness and bugs found:

    1) It asks for both the site URL and blog URL. WPmu doesn’t have both items, so that’s confusing. Should mention that the same value can be copied in.

    2) It doesn’t suggest the URL needs “http://&#8221; attached until after you save settings and get an error.

    3) [suggestion] why not ask for the location of the WP/WPmu install, and pull the keys etc from wp-config.php??? That would save a ton of typing and confusion.

    4) Once I got everything entered, it let me login ok… HOWEVER:

    5) It quickly LOST all my settings and the database appeared broken. Here’s how:

    * I clicked on “Admin” to go to the admin panel

    * Went to Settings->WordPress Integration

    * Set up role mappings and saved

    * Either at that point, or with one more click (Save in User Integration), I was suddenly locked out and getting mysql connect errors in the header.

    * Examining the page I was on showed the “advanced database settings” had defaulted to different info: apparently it used my admin login (user admin) rather than the WP db user/pass I had provided.

    * It was impossible to reset this info on that page due to the DB connect error. [suggestion: maintain ‘admin’ login/pw in a bb_* table for emergency admin use of the WP connection breaks!]

    * Confusingly, the DB info in bb-config.php is correct and I could not find the (wrong) wp DB info in any text file. Presumably it is stored in the bb-* database?!

    My workaround, which is now in use: hand code the settings ($bb->user_bbdb_user etc) into bb-config.php. That works.

    Bottom line: either the integrated installation process, or perhaps the settings->Integration page, is busted.

    Hope that helps!

    [PS: I’m the author of the wptuner performance analysis/debugging plugin for WP/WPmu. Would a BB version be helpful?]

    #71212

    In reply to: List all Tags?

    deadlyhifi
    Participant

    To get the ‘who posted that tag’ functionality in 1.06 you need to edit a core file (which is frowned upon – but we really need to moderate inappropriate tags and ban if necessary).

    bb-includes/function.bb-template.php

    and replace line 2529 with this:

    $poster = get_user_name( $tag->user_id );
    return "<small> - <a href="/forum/profile.php?id=$tag->user_id">$poster</a></small> [<a href='$url' class='delete:$list_id:tag-{$tag->tag_id}_{$tag->user_id}' title='$title'>&times;</a>]";

    where /forum/ is the subfolder of your forum.

    It appears to be working well – users have their name next to the tags they posted, and the ability to delete their own tag; whilst not seeing who added the other tags.

    #4809

    BadBehavior is one of my favorite plugins for web-apps, EVER. You can insert it on pretty much any php driven site, even SMF and IPB, so I went one extra step and slapped the ‘standard’ bbpress plugin header to make it a plugin.

    I do not support BadBehavior, so if these directions don’t work, I can’t really offer much help, and for that, I apologize. That said, it’s really straight forward, and using this and Akismet, I’ve had very few spammers on my blog/forum since I co-mingled them in November.

    1) Download Bad Behavior (current version 2.0.26)

    2) Put the file bad-behavior-generic.php and the subfolder bad-behavior into your my-plugins folder so it looks like this:

    my-pluginsbad-behaviorbad-behavior-generic.php
    my-pluginsbad-behaviorbad-behavior(many files)

    3) In bad-behavior-generic.php change this:

    <?php
    /*
    Bad Behavior - detects and blocks unwanted Web accesses
    Copyright (C) 2005-2006 Michael Hampton

    to this:

    <?php
    /*
    Plugin Name: Bad Behavior
    Version: 2.0.26
    Description: Deny automated spambots access to your PHP-based Web site.
    Plugin URI: http://www.bad-behavior.ioerror.us/
    Author: Michael Hampton
    Author URI: http://www.homelandstupidity.us/
    License: GPL

    Bad Behavior - detects and blocks unwanted Web accesses
    Copyright (C) 2005-2006 Michael Hampton

    4) Activate bad-behavior as a plugin in the bbPress admin side.

    Now, this DOES NOT give you the tracking like it does in WP. I tried to find a way to make all that work, but it kept telling me things existed. It’s probably because I’m sharing DBs, but that’s okay by me. I’ve been using it this way with the 1.0-alpha string of installs without issue.

    I hope this helps someone else out :)

    #71785
    deadlyhifi
    Participant

    in topic.php in your theme folder use

    <?php bb_topic_admin(); ?> instead of the ‘<?php topic_delete_link(); ?> <?php topic_close_link(); ?> <?php topic_sticky_link(); ?>

    <?php topic_move_dropdown(); ?>’ (line 55)

    Come to think of it I may have updated a core file.

    and topic-tags.php becomes

    <div id="topic-tags">
    <p><?php _e('Tags:'); ?></p>

    <?php if ( bb_get_topic_tags() ) : ?>

    <?php bb_list_tags(); ?>

    <?php else : ?>

    <p><?php printf(__('No <a href="%s">tags</a> yet.'), bb_get_tag_page_link() ); ?></p>

    <?php endif; ?>

    <?php tag_form(); ?>

    </div>

    (just replace the entire page)

    This does break the improvements I suggested in https://bbpress.org/forums/topic/list-all-tags#post-23142 though. Although I have edited the core files (which is not encouraged) to bring back the functionality of showing who posted a tag to moderators.

    #4806
    Daiv Mowbray
    Member

    I wanted all info on the admin page which lists all users, so I have edited admin-functions.php.

    I thought someone may be looking to do the same , so here you are. Nothing to difficult.

    Just change the function bb_user_role to something like the following:

    function bb_user_row( $user_id, $role = '', $email = false ) {

    $user = bb_get_user( $user_id );

    $r = "t<tr id='user-$user->ID'" . get_alt_class("user-$role") . ">n";

    $r .= "tt<td>$user->ID</td>n";

    $r .= "tt<td>ID ) . "'>" . get_user_name( $user->ID ) . "</td>n";

    if ( $email ) {

    $a = bb_get_user_email( $user->ID );

    $r .= "tt<td>$a</td>n";

    $a = $user->user_url;

    $r .= "tt<td>$a</td>n";

    $a = $user->from;

    $r .= "tt<td>$a</td>n";

    $a = $user->occ;

    $r .= "tt<td>$a</td>n";

    $a = $user->interest;

    $r .= "tt<td>$a</td>n";

    ...

    And change function display to have somthing like this:

    $r .= "<thead>n";

    $r .= "t<tr>n";

    $r .= "tt<th style='width:10%;'>" . __('ID') . "</th>n";

    if ( $show_email ) {

    $r .= "tt<th style='width:10%;'>" . __('Username') . "</th>n";

    $r .= "tt<th style='width:20%;'>" . __('Email') . "</th>n";

    $r .= "tt<th style='width:20%;'>" . __('Url') . "</th>n";

    $r .= "tt<th style='width:10%;'>" . __('From') . "</th>n";

    $r .= "tt<th style='width:10%;'>" . __('Occ') . "</th>n";

    $r .= "tt<th style='width:10%;'>" . __('Interest') . "</th>n";

    } else {

    $r .= "tt<th style='width:60%;'>" . __('Username') . "</th>n";

    }

    $r .= "tt<th style='width:15%;'>" . __('Registered Since') . "</th>n";

    $r .= "tt<th style='width:5%;'>" . __('Actions') . "</th>n";

    $r .= "t</tr>n";

    $r .= "</thead>nn";

    #4807
    circuit
    Member

    i was merrilly adding tags to a topic and then hit a weird error.

    DB Error in BB_Taxonomy::set_object_terms: Duplicate entry '3609-10' for key 1

    INSERT INTO bb_term_relationships (<code>object_id</code>,<code>term_taxonomy_id</code>,<code>user_id</code>) VALUES ('3609','10','1')

    Warning: Cannot modify header information - headers already sent by (output started at /home/xx/public_html/messageboard/bb-includes/backpress/class.bpdb.php:293) in /home/xx/public_html/messageboard/bb-includes/functions.bb-pluggable.php on line 214

    i also cannot delete any tags…

    what’s wrong?

    #71783
    deadlyhifi
    Participant

    When I switched to 1.0 the problems I remember were mostly on the administration side of things.

    deleting tags with the little x in threads broke – there was a new function that pulled in all the moderator functions.

    Moving topics to a different forum code.

    From a users point of view their username linking to their website.

    There may have been a few more…

    all these were easily fixed by comparing with the kakumei theme that came in 1.0.

    #71767

    In reply to: Use HTML code in post

    chrishajer
    Participant

    You can use the “Admin can post anything” plugin to allow certain roles to post HTML.

    https://bbpress.org/plugins/topic/admin-can-post-anything/

    Not sure what version you’re using, and what version this will work with.

    #4801
    marcoapaulo
    Member

    Hi

    As said in the title, can I use HTML code in the posts I made in bbpress? I don’t want to show the code itself, I want to use code to insert, for example, tables and that sort of thing.

    Thanks in advance

    #71752

    Try forcing in the // WordPress cookie integration speedup stuff.

    #71747
    Sam Bauers
    Participant

    This code used as a plugin should do it.

    <?php
    /*
    Plugin Name: Kill URL
    Description: Kills URL field in profile
    */

    function kill_url_in_profile_keys( $keys )
    {
    unset( $keys['user_url'] );
    return $keys;
    }

    add_filter( 'get_profile_info_keys', 'kill_url_in_profile_keys' );

    ?>

Viewing 25 results - 25,726 through 25,750 (of 32,481 total)
Skip to toolbar