Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,176 through 30,200 (of 32,208 total)
  • Author
    Search Results
  • #56951
    fel64
    Member

    My guess is $_SERVER['HTTP_HOST']. Give it a shot.

    #54996
    Null
    Member

    Good luck with phpBB 3 dude, see you back in a couple of weeks :D:D:D:D:D

    #54995
    spencerp
    Member

    The Gathering theme is on http://spencerp.net currently… :P I could always import the content from WP to MT though, couldn’t I? LOL! I already had MT setup within 15 minutes on a sub domain name a few weeks back, shouldn’t take me too much longer to set it up this time.. whee!

    Maybe could setup phpBB 3.0 whatever the hell the latest version is now… Got up that over here now: http://www.vindictivebastard.net/forum

    I don’t know though.. hmm

    spencerp

    #56949
    fel64
    Member

    Of course. Exactly the same principle applies.

    Replace this

    // Change the prefix if you want to have multiple forums in a single database.
    $bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!

    With

    // Change the prefix if you want to have multiple forums in a single database.
    $bb_table_prefix = ereg_replace('^(www.)', '', $_SERVER['HTTP_HOST']);
    $bb_table_prefix = ereg_replace('.', '', $table_prefix);
    $bb_table_prefix = $table_prefix . '_';

    That is all.

    #54994
    fel64
    Member

    Sorry Spencer, I haven’t seen the Gathering theme and aren’t particularly looking for a forum theme right now anyway. It’d be cool to see, though.

    But please don’t take down WordPress, I need that WP/bb/Mediawiki integration article for future reference! :P

    #56934
    ProSam
    Member

    Yeah I know the HTML is quite horrid. I was not the original webmaster and I don’t get enough to clean that mess :).

    I have suggested several times that the site be overhauled but the owner does not want to spring for it.

    Oh Well.

    Thanks for the style update it fixed it right up.

    #56928
    john24
    Member

    Thank you so much for your support. :)

    #56887
    gtim
    Member

    I doubt that this is the most efficient way, but it seems to work. Add the following code in post.php in the default theme (/bb-templates/kakumei/post.php), you probably want it within the .threadauthor div.

    <?php
    $puser = bb_get_user( get_post_author_id() );
    if ( isset( $puser->from ) ) {
    echo $puser->from;
    }
    ?>

    It is not possible to do this with a plugin yet because there is no hook there, but there is a Trac ticket for it.

    Also, I compiled a list of all template functions.

    #56907
    Null
    Member

    Darn you beat me too it fel64 :D

    #56927
    fel64
    Member

    Oh, I see what you mean. I just thought of those as seperate sub-forums of the main forum.

    I don’t know how that option works. Perhaps it tags threads according to their category if that category is there? Just experiment with it a bit, and if you find out tell us :)

    #56935

    In reply to: BbLD problem

    Null
    Member

    Each link in that side bar misses the “&page” at the end of the linkurls. Add that and it works fine

    #52229
    wmarcy
    Member

    Thanks Fel64, I wrapped your code up into a table and it dragged the recalcitrant submit button into the proper position. <lol> How come it is the little things that eat away?

    #56933
    fel64
    Member

    Just hang this code onto the bottom of your style.css file and it’ll be dandy.

    p.menulink {
    margin-bottom: 0;
    }

    If you do not want the gap to be that small, change 0 to #px (there must be no gap between the number and the px!).

    Incidentally, I don’t know what your control of the situation is but that site is not particularly pleasant HTML. You have tables in tables in tables, for god’s sake! What you’re doing in the sidebar could be so much easier done using a <ul> element. Are you using Frontpage or something?

    Please, it’ll be much less work for you if you use clean HTML; at least in future! Tables are so very rarely a good solution.

    #52228
    fel64
    Member

    Not sure what it was originally, wmarcy, but it’s all a bit screwy. They’re in seperate paragraphs, which means they can’t be side-by-side (unless they’re both ID’d and have seperate float rules). So basically, find the form (as in, form HTML element) for the search and replace it by:

    <form method="get" action="http://www.wetworx.com/forums/search.php">
    Search: <input type="text" value="" name="q" maxlength="100" size="40"/>
    <input type="submit" class="inputButton" value="Search ยป"/>
    </form>

    The Submit button however still won’t be on the right, but at least it’ll be level and since it wantonly jumps about when you text-align or float it right I can’t be bothered with making it right-aligned. Make the width of your search bar wider or something if you need to push it over.

    #56903

    In reply to: Installing Plugins

    wmarcy
    Member

    Wow, my code doesn’t really look as bad as that <s>.

    #56902

    In reply to: Installing Plugins

    wmarcy
    Member

    This is the code running on http://www.wetworx.com/forums/topic/28?replies=1

    I edited the topic.php file and added:

    <table align=”left”>

    <tr>

    <td>

    Overall Post Rating:

    </td>
    <td><?php bb_rating();?></td>
    </tr>
    <tr>
    <td>

    How do you rate this post?   

    </td>

    <td><?php bb_rating_dingus(); ?></td>

    </tr>

    </table>

    Hope that helps.

    #56901

    In reply to: Installing Plugins

    wmarcy
    Member

    ProSam,

    bbRatings needs you to edit system files to include the tag code into them. Once you add these tags, it will work. I also am struggling with bbRatings, and would love to get a snippet of code that made us of the bb_top_topics() function. Anyone?

    #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

Viewing 25 results - 30,176 through 30,200 (of 32,208 total)
Skip to toolbar