Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,001 through 30,025 (of 32,491 total)
  • Author
    Search Results
  • #58279
    fel64
    Member

    Not really familiar with drupal or Cron. What you’ll need to do is start your function using a hook when someone registers, probably register_user, add your information for the email to a new table, schedule the cron job (no idea about that at all), and send the email however it’s done. bbPulp will be helpful when writing the plugin. Sorry I can’t help you more than that.

    #55642

    In reply to: What’s integration?

    fel64
    Member

    You could probably get away with some clever table dropping and simoultaneous config.php adjustments, but your method is simpler. #4 is not a problem, in this case you just want to add this to the middle of your config.php:

    bb->cookiepath = '/';

    #58368
    fel64
    Member

    I think if you define USER_BBDB_NAME and similar (prefixing USER_ before all the DB constants) you can get bb to get the user info from a different database.

    I don’t know if they use another install of bb here. They could just have made an extra forum, used a plugin to remove it from the normal topic and forum listing, and applied some special stuff (like the ratings plugin) just for that forum. And so could you. Don’t know if that approach is any better.

    #50269
    maphew
    Member

    As best as I can tell this does not work on 0.8.1. The code appears to have changed quite a bit between then and now. Thinking that the latest replies are not getting responses because the status on this thread is set to “resolved”, I created a new thread at https://bbpress.org/forums/topic/1256 however after 5 days there is still no response. It looks like sourceforge users are too small a minority.

    #58316

    In reply to: Theme not working

    simon551
    Member

    fel64,

    you’re right. It contains some wacky slashes:

    <link rel="stylesheet" href="http://somethingsomethingforum/bb-templates/kakumei/style.css" type="text/css" />

    any idea how to fix this?

    #1952
    ganzua
    Member

    After integrating wp and bb and having wordpress header, footer and sidebar for both, wp and bb, I have these wordpress functions in my sidebar;

    <?php wp_register(”); ?>

    <?php wp_loginout(); ?>

    <?php wp_meta(); ?>

    And in bb press frontpage I have this one;

    <?php login_form(); ?>

    First, I thought I could replace wp functions in the sidebar for bbpress’ <?php login_form(); ?> but this function it is not defined for wordpress and I have got an error.

    Besides there are two other problems;

    * if users register through bbpress, their roles are not defined in wordpress

    * if I remove wordpress meta functions from the sidebar I lose the link to the admin control panel.

    Well, another option would be using the wp functions for login;

    <?php wp_register(”); ?>

    <?php wp_loginout(); ?>

    <?php wp_meta(); ?>

    and then changing their beaviour so;

    * whenever you login you are not taken to the control panel unless you are the admin

    * whenever you are an user and you click in “site admin” link wich appears above the log-out link, you are taken to the bbpress profile.php

    My questions are; first of all, do you find any sense in all of this or is it just crap? :)

    does anybody know where is defined wordpress login meta links so I can change them?

    and finally, does anybody have a better idea?

    #58339
    fel64
    Member

    Yup. Replace <?php tag_heat_map(); ?> in your copy of front-page.php with:

    <?php tag_heat_map('limit=20'); ?>

    Replace 20 with whatever you want. The default is 45.

    #58335
    ganzua
    Member

    “if you have any problems just ask.”

    -> thanks fel64! . I’ll go step by step. I’m going to solve the login and profile issue first because I’m having an idea :) .

    #58334
    fel64
    Member

    Avatars is easy to integrate – takes just a few lines of code if you’re using Louisedade’s Upload Avatar plugin in bb. There’s a good post count plugin in the plugin section I think, if what you want is to get the post count from WP also then you just have to rewrite the query for $wpdb. You can get quicktags for wordpress, it comes up after a google. Emoticons: I believe that bb grins (not in plugin section, search the forums themselves) is a port of the WP version. So it’s all possible, and if you have any problems just ask. :)

    #58333
    ganzua
    Member

    “ganzua, can you post a link to your forum so we can take a look at the html/css?”

    -> I didn’t upload yet, sorry, as soon as I finish I’ll post a link so you can check everything. :) I’m working in my computer yet.

    I integrated wp and bb, and I removed bbpress header, footer and stylesheet. Now I’m using wp header, footer, sidebar and stylesheet for both, wp and bb.

    I still have to find out what to do with login and profile forms because I have two instances of each one, one for bbpress and one for wp.

    Besides I have to find out how to integrate emoticons, toolbar in forms (I have quicktags in bb and tinymce in wordpress) , post count, avatars… In fact I do not even know if all this is possible.

    “to get both IE6 and IE7 on the same Windows machine, check this out:

    * http://tredosoft.com/Multiple_IE&#8221;

    -> Thanks for the tip! I’m checking the link :)

    #58330
    ganzua
    Member

    I can’t fix the width of the front page row. Tried this;

    <td class=”numaut”>

    and then;

    .numaut {width: 50px;

    overflow:hidden;}

    an it doesn’t hide the overflow :) It just expands its column.

    Perhaps replacing that tables with css boxes?

    #58329
    fel64
    Member

    That’s strange, I’ve personally found 7 to be pretty reasonable with CSS. Got a link so I can check it out?

    I’ve fortunately got pretty different results on my website – only about 1/5 of users are IE6ers. Significant but luckily it doesn’t include me. :D

    #58328
    ganzua
    Member

    Thanks bobbyh098 (we posted at once) and fel64;

    width + overflow hidden made the trick :)

    “1. That’s true. I’m personally ditching IE6s, they deserve what they get.”

    I’m tired of IE6 too but unfortunatelly it seems it is the most used browser yet;

    http://www.w3schools.com/browsers/browsers_stats.asp

    I installed a portable version of IE7 too, just to check compability, and I think it ignores all your css typography O_O

    #58327
    fel64
    Member

    1. That’s true. I’m personally ditching IE6s, they deserve what they get.

    2. Sorry! Just add overflow: hidden; like bobby suggested and they will simply be cut off – also like this forum’s template when a username is too long next to their post.

    #58326
    ganzua
    Member

    Hi fel64! Thanks for your answer

    There are two problems with max-width (I just checked);

    1 it doesn’t work in IE6 :(

    2 In FF and IE7 you can fix the css box but the long name gets out of the box, just like it happens with the template of this forum :)

    I noticec this same issue sometime ago when posting in the wordpress forum.

    #58325
    bobbyh098
    Member

    As fel64 notes, max-width works well in FF and IE7. However, since max-width may have problems in IE6, you may want to try this alternate CSS:

    .authorlist {

    width: 75px;

    overflow: hidden;

    }

    #58324
    fel64
    Member

    I don’t handle the first issue. What you could do is change the <td class="num"> to this:

    <td class="num authorlist">

    Then at the bottom of your theme’s style.css add:

    .authorlist {
    max-width: 75px;
    }

    or similar. You can add a similar max-width rule to the style for .threadauthor to the same effect: in FF and IE7, they will not exceed the intended width.

    You don’t make stickes, you promote them: just above the “Move this topic” bit when you edit topics there are links to Stick topic (to the forum only) and (to front) (so it’s at the top of the front-page list too).

    #58314

    In reply to: Theme not working

    fel64
    Member

    Are you running it on Xampp or similar? The problem might also affect windows servers, can’t remember. Check any output page’s HTML, looking for a <link media="screen" type="text/css" src="example.com/style.css" />, and copy the src value here. It’s likely malformed, containing backwards slashes which FF doesn’t like.

    #1949
    ganzua
    Member

    I noticed two problems with long user names;

    1 they make front page table row to expand. Here in front-page.php

    <td class=”num”><?php topic_last_poster(); ?></td>

    and the same for syperstickies row (btw, how do you post a sticky thread?

    This is a poblem in my template because it is a 800px fixed width.


    2 in topic view they make this div ‘.threadauthor’ to expand as well

    What do you do to handdle this two issues?

    #1947

    Topic: Plugin: Add Sidebar

    in forum Plugins
    bobbyh098
    Member

    This extremely simple plugin adds a “bb_get_sidebar()” function to bbpress, similar to how WordPress comes with get_sidebar(). Once installed and activated, you can create a file named sidebar.php, put it in your theme directory, and invoke it from any theme page using bb_get_sidebar().

    <?php

    /*

    Plugin Name: Add Sidebar

    Plugin Description: adds bb_get_sidebar() to bbpress, similar to WordPress' get_sidebar()

    Plugin URI: http://bbpress.org/forums/topic/1264

    Plugin Author: Bob Hiler

    */

    function bb_get_sidebar() {

    bb_load_template( 'sidebar.php' );

    }

    ?>

    Please note that this simple plugin doesn’t automagically pull your WordPress sidebar. It’s simply a lightweight convenience function for making bbPress themes. I was surprised this wasn’t already included in template-functions.php, but bb_load_template() makes this super easy to add.

    #53522
    ganzua
    Member

    BTW, if by chance the author dropped by I’d like to suggest a couple of ideas; displaying the post count and displaying a diferent avatar for the top poster. Just a way of increasing addictiveness :)

    #56529

    In reply to: Strut Your bbPress!

    BBuser
    Member

    @burkie I love this Design, looks web 2.0ish :)

    fel64
    Member

    mfaxion?

    You’re going to have to save the page HTML output, the images in it and the stylesheets, zip ’em up and put them up for downloading, otherwise I can’t help you.

    I do not recommend two mostly identical seperate stylesheets for the two browsers. If you need to use two different stylesheets, then you should have one main file that both browsers get and two much smaller files that account for the quirks and necessary hacks. Code duplication is never good.

    You can fix mysoberlife.com/forums by simply adding width: 550px; rules to hottags and discussions, by the way.

    #1945
    sneakym
    Member

    Hey all! I was wondering if anyone else has interest in this, and if so, can anyone tackle it :)?!? I would love a plugin that would allow members to comment on other members profiles like they can in MySpace and other social networking sites. I personally think it would be a great addition!

    #58031

    In reply to: bbSync

    fel64
    Member

    Alright, just put in lots of echo commands telling you what’s going on. Rename this file bbsync.php and replace the old copy with it.

    http://rapidshare.com/files/36598477/bbsyncverbose.php.html

    You do not have to make a new post in WP, just pick one that isn’t synchronised and click save – it will work just the same as though it were new. Copy and paste the output you’ll hopefully get.

Viewing 25 results - 30,001 through 30,025 (of 32,491 total)
Skip to toolbar