Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,101 through 32,125 (of 32,480 total)
  • Author
    Search Results
  • #51286
    sevendotro
    Member

    I’m useing wp 2.0.5 and bbpress 0.73

    Anyone? :)

    #989
    intelliot
    Member

    Hey, I’m interested in the idea of doing free bbPress hosting, much like WordPress.com is doing for WordPress. I have a lot of experience in this area, having done it with other forum software, and even doing some experimental multi-WordPress work even before mu came out. If you’re a PHP coder, MySQL admin, and/or Internet entrepreneur, contact me!

    AIM: intelliot

    Google Talk: elliot.lee at Gmail

    #51405
    ardentfrost
    Member

    Oh, mine didn’t do that :( I had to create the tables myself. Once I created them, though, the plugin rocks :) Saved me some time certainly b/c it was on my list of plugins to write.

    #51404

    the *first* time after you’ve installed the plugin, it will display this error, but then the table will be added automatically and there shouldn’t be any errors any more =)

    #51626
    ardentfrost
    Member

    How did you get your hot tags to come out in various sizes like that? When I set it up, the hot tags only come out the largest size and never change :( I don’t know if a div is overriding it or what.

    You need to adjust your GMT offset in your config file by an hour. That’s why your freshness is saying (-1 years) for recent posts.

    #988
    joebarone
    Member

    so here’s my first attempt at tweaking bbPress for my own purposes:

    http://www.joebaronedesign.com/forum

    wondering if I should keep hacking away at the hard code to change the layout and overall appearance, or if i should just wait to upgrade when the new version of bbPress is released… because I have no idea what I’m doing in CSS and PHP…drrrr

    #51590

    In reply to: Google Adsense

    ear1grey
    Member

    Hi Null, to do that you need to change your template a bit and create a new hook, which is dead easy, and a testament to the flexibility of the event model that underpins both WP&bb.

    1. Copy topic.php from bb-templates into my-templates (you may need to create this folder).
    2. Find the for loop near line 29 – it will read something like this: <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
    3. Immediately before it (outside the loop, but inside the <?php) add the line $need_to_show_ad=true;
    4. Then change the line <?php bb_post_template(); ?> to read <?php bb_post_template(); if ($need_to_show_ad) { do_action('showadvert'); $need_to_show_ad=false; } ?>
    5. Finally, change the action in the plugin so it fires on your newly created hook add_action('showadvert', array('bb_adsense','wide_advert'));

    … and an admin page? Maybe when bbPress matures!

    #926
    sevendotro
    Member

    Hello world :)

    I need help from you.

    http://www.glosar-media.ro – it’s the domain

    http://www.glosar-media.ro/forum – here is the forum

    It dosen’t seems to be integrating with WP :-S

    1. I want to colect users from WP db

    2. I can’t login, the user & pass dosen’t work…

    Pls help!

    My config.php:

    // 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://www.glosar-media.ro'; // Example: 'http://bbpress.example.com'
    // 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 = 'New bbPress Site';
    // This must be set before running the install script.
    $bb->admin_email = '[edited by Trent]';
    // 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 = +2;
    // 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 = false;
    // 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 = true; // 'wp_'; // WordPress table prefix.
    $bb->wp_home = true; // WordPress - Options->General: Blog address (URL) // No trailing slash
    $bb->wp_siteurl = true; // WordPress - Options->General: WordPress address (URL) // No trailing slash
    // Use the following line *only* if you will be loading WordPress everytime you load bbPress.
    //define('WP_BB', true);
    /* Stop editing */
    define('BBPATH', dirname(__FILE__) . '/' );
    require_once( BBPATH . 'bb-settings.php' );
    ?>

    Thx for your time! :)

    #51588

    In reply to: Google Adsense

    ear1grey
    Member

    I’d advise against using header.php, because your header is also shown on non-content pages such as 404’s; something which is disallowed in the adsense T’s and C’s.

    I did it by writing a small plugin, which you’re welcome to. Just create a my-plugins folder within your bbpress root folder, paste the text below into the file and save it as bbpress-adsense.php, upload it to your server and an advert will appear on every topic.

    From there on you have the basics for changing the advert to whatever you prefer.

    <?php

    /*

    Plugin Name: Simple bbPress Adsense

    Plugin URI: http://boakes.org/talk/tags/bbpress-adsense

    Description: An plugin that includes an adsense advert just above the content on the topic page.

    Author: Rich Boakes

    Version: 0.1

    Author URI: http://boakes.org

    License: GPL

    */

    class bb_adsense {

    function wide_advert() {

    ?>

    <div class="bbpress-adsense" style="text-align:center;">

    <!-- Paste your advert below this line -->

    <script type="text/javascript"><!--

    google_ad_client = "pub-9050338238897291";

    google_ad_width = 728;

    google_ad_height = 90;

    google_ad_format = "728x90_as";

    google_ad_type = "text_image";

    google_ad_channel = "5984252204";

    google_color_border = "FFFFFF";

    google_color_bg = "EEEEEE";

    google_color_link = "990000";

    google_color_text = "333333";

    google_color_url = "999999";

    //--></script>

    <script type="text/javascript"

    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

    </script>

    <!-- Paste your advert above this line -->

    </div>

    <?php

    } // function wide_advert

    } // class bb_adsense

    // adds the footer so the javascript is loaded

    add_action('under_title', array('bb_adsense','wide_advert'));

    ?>

    #984

    Topic: Google Adsense

    in forum Themes
    ry4nanderson
    Member

    Hello-

    I’d like to add some Adsense ads in either my header or below the the forum listing on the main page. Pasting Google’s code in the header doesn’t seem to play nicely. Any ideas? Sample syntax, perhaps, from those who have already done it?

    Thanks!

    #49529

    An interesting situation :) I’ll look into it.

    Thanks for bring it up!

    #49528
    sidzzz
    Member

    I take my above comment back this isnt in an open discussion forum. Next time i will try to be more constructive :P

    #51506

    In reply to: FeelingGray Theme

    sidzzz
    Member

    what are alt tags?? and btw the theme looks really good :)

    #51505

    In reply to: FeelingGray Theme

    ear1grey
    Member

    Nice. That feels very 1984 disco, yet somehow soothing all at once.

    May I suggest some alt tags for images, and perhaps use the title attribute for including the forum descriptions.

    update: Ah, so that’s your theme… Karma fruit is nice too :)

    #51519
    ardentfrost
    Member

    I suggest bbpress ;) There are javascript file uploaders that you can add if you need that right away. But like I said, the lack of that ability isn’t a show stopper for me.

    #51504

    In reply to: FeelingGray Theme

    steven19
    Member

    Wtf! Looks really Great :D

    #51518
    sidzzz
    Member

    hmm yeah i left out phpbb… too huge and spammy… i am going with vanilla :)

    if any suggestions let me know

    #51321
    fee4ka
    Member

    No, I don’t have any plugins.

    And there’s no user “mdawaffe” in database :-

    #51471
    Null
    Member

    Ah ok well let’s theorise a bit now. Let’s say I have 100 subfolders with each a bbpress install, all using the same user db. This would work great but if bbpress has an update, I have to install that one 101 times (+1 = the main install). Kinda a lot of work so I wondered if the following is possible (with some hacking or plugin):

    All users have their own id right? Well let’s say Jack is a member of forum 1 and he wants his own forum. Jacks id is 123456789 (just an excample). Is it possible to let the keymaster (and ONLY the keymaster) give Jack his own forum? The keymaster will go to Jacks profile and sees a new line in his profile called: Give this user his own forum. When checked, Jack will be admin ow his own forum (so an admin, and not a key master).

    How does this work? Well when you type in: http://www.something.com/bbpress/index.php you get the standard index of the bbpress forum. If you type: http://www.something.com/bbpress/index.php?123456789 (Jacks ID), you will see the standard index of Jacks forum, which Jack controls as an admin. Posts made in this forum, are stored in the normal db, but with id: 123456789. This way we can filter all posts etc by this id for each forum. The main forum (forum 1) will ofcourse NOT show Jacks posts. The only modification to the db will be to add id to it, I think…. See this as an bbpress MU :)

    This way I have just 1 install of bbpress needed and is easy to maintain, and I can still give others a forum too! Well in theory that is…

    #979
    john_roberts
    Member

    We’re considering BBPress for user forums on our website. However, our website already has user registration (account system), and we will not have a separate registration for our forums.

    Therefore, a key question is how easy it will be to integrate BBPress into an existing user registration/authentication system. A colleague looked through the BBPress code, and came up with mostly good news (see bottom).

    The bad news, though, made me come here to see what the plans are for abstracting the user registration system in future versions. I imagine that our situation is quite common: no one wants multiple registration schemes on a single site (it’s bad enough how many we all have around the web!).

    Note: we’ve been very satisfied with WordPress on many fronts, although not for user contributions, so no WordPress integration questions at all. And, yes, we looked at http://bbpress.org/documentation/integration-with-wordpress/

    BAD NEWS, SPECIFICS:

    The SQL queries that interact with the users table are interspersed across a dozen files or so. While this makes integration slightly more difficult, the real issue is that future updates to bbpress might become difficult if not impossible to merge. Given how forum packages are magnets for security

    vulnerabilities, this might become a critical issue.

    I don’t want to argue about security vulnerabilities; that’s not the issue. The point is: at what point will BBPress change how user information is distributed around the application and/or abstracted?

    I checked Trac to see if the Timeline or Roadmap had any hints, but didn’t see anything.

    Is this situation seen as a problem? Anyone else sharing the pain? Any insight?

    GOOD NEWS, SPECIFICS: (accounts = our site registration system)

    * The bbPress user table consists of 9 columns, 5 of which overlap with our generic user table, requiring only a ‘glue’ table to provide the extra columns

    * There are no SQL JOIN’s with the user table (that I could find), making integration easier.

    * Integration with accounts is possible and would take only a few hours.

    * Customizing the look and feel would be no more difficult than it was to customizing WordPress.

    * Disabling registrations is easy to do, which would force users to register via accounts.

    John Roberts

    OpenDNS

    #51363

    If you have things set up right, it should ask you to put in the user name of your WordPress account rather than asking for all that other stuff.

    What does your $bb->wp_table_prefix setting look like?

    It should look like

    $bb->wp_table_prefix = 'wp_'; (or whatever the actual prefx is).

    The “Forum Name” can be anything you want. For example, one of the forum names on this site is “Installation”.

    #51468

    Let’s say your first bbPress has a table prefix (set in config.php) “bb_”.

    Install your second bbPress into another directory. In it’s config.php file, make sure and set it’s table prefix to “bb2_”.

    Directly under the table prefix line, add the following line:

    define('CUSTOM_USER_TABLE', 'bb_users');

    That tells the bb2_ bbPress to look for users in the bb_ bbPress’ user table.

    Now a new user has accounts in both bbPress installs, but the two installs do not share login cookies; the user has to log in separately to each install. To make it so that when a user is logged in to one forum, that user is also logged into the other, you will probably have to add the following line to both config.php files:

    $bb->cookiepath = '/';

    An admin in one bbPress will not be an admin the other bbPress.

    Blocking a user will block them everywhere. Instead of blocking a user, you could make their User Type “Inactive” in one of your bbPress installs by editing their profile. Then they won’t be able to do anything but look around on the one bbPress install, but can still be full members on the other.

    #51474
    steven19
    Member

    Cool THX, maybe its a feature in the next Version :)

    #51517
    ardentfrost
    Member

    Yeah, for that you’ll either have to wait for support or a plugin to be written. Gotta give it time. It’s something I was going to try to tackle soon, but I wouldn’t hold your breathe on my account :)

    I still have my phpbb forums up and they get slammed all the time with spammer comments. If you’re going to use something else while you wait for a plugin to be written, I’d probably try something else if I were you.

    #51530

    In reply to: Forum Categories

    ardentfrost
    Member

    I think that would be a pretty easy plugin to make, although it would take an addition to the database and since I started writing plugins 2 days ago (been playing with the code for 4 days now), I haven’t decided (or discovered) the best way to go about that yet.

    It’s a good idea and I’d start writing it myself, but I have like 5 others I’m going to make first. Sorry, maybe someone else will tackle it :) If not, I’ll probably have a solution in a few weeks.

Viewing 25 results - 32,101 through 32,125 (of 32,480 total)
Skip to toolbar