Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,001 through 29,025 (of 32,491 total)
  • Author
    Search Results
  • #60744
    Trent Adams
    Member

    Sorry about that folks! It is back online obviously! :)

    #2434

    At my site http://www.doublepeace.se , when you log in, I’d like to have the users forum avatar displayed in the header. I tried just pasting <?php post_avatar(); ?> up there, and that didn’t work :D

    #60824

    In reply to: Trouble Logging Out

    chrishajer
    Participant

    To get Akismet working, you need an Akismet key. You need to register at http://wordpress.com/signup/ – you can check the radio button that says “Just a username, please.” and once you have an account, your Akismet key is in their somewhere (been a while since I had to look for it – but I think it’s “My Account > Edit Profile” and they “wordpress.com” key is there.) Once you have the key, you put it in your config.php like this:

    $bb->akismet_key = ''; // Example: '0123456789ab

    Just put your key in between those quotes, and you’re done.

    #2433
    neyoung
    Member

    I have both the My Views and Support Forums plugins installed. They work well together except for 1 thing. Both plugins add a new filter to bb_views.

    If both plugins are running the new views from My Views are the only ones to show up. The Support Forums views are not listed. After poking through the code I was able to fix it by making sure that the Support Forums bb_views filter was added AFTER the My Views bb_views filter. To do so edit support-forum.php .

    Replace line 432


    add_filter('bb_views', array(&$this, 'addViews'));


    With


    add_filter('bb_views', array(&$this, 'addViews'), 200);


    You should now be able to see the views from both plugins.

    I’m no expert, but it seems like when My Views is adding my_views_init to the bb_views filter its overwriting whatever Support Forums has already added to the filter. Just a guess. I’m sure ck, so1o, mdawaffe, or SamBauers will know exactly what is going on.

    Enjoy!

    #2429
    andorko
    Member

    bbPress is installed in /forums and WPMU is installed in /blogs .

    The cookie and database integration works fine.

    I am able to access bbPress functions from within WPMU by adding this to the end of /blogs/wp-config.php

    // Include bbPress functions in WPMU

    define('WP_BB', true); // Avoid duplicate function declarations

    require_once( ABSPATH . '../forums/bb-load.php');

    I’m trying to add WPMU functions to bbPress. I’ve tried adding this to the beginning of /forums/config.php . I’ve also tried putting this in the beginning of the file.

    require_once( dirname(__FILE__) . '/../blogs/wp-blog-header.php')

    When I go to /forums/ I’m redirected to the WPMU sign up page (/blogs/wp-signup.php?new=%2F).

    I’ve also created a simple file ( /test.php ) and tried to integrate it with wpmu. It it also redirected to the WPMU sign up page.

    Test Start

    <?php

    require_once( dirname(__FILE__) . '/blogs/wp-blog-header.php');

    ?>

    Test End

    Do I need to create a WPMU rewrite rule in the wp_1_options rewrite rulerecord? There shouldn’t be any need for an .htaccess rewrite rule since /forums and /blogs are not in subfolders of either.

    Any ideas how to make this work?

    #60502

    In reply to: Unread Topics

    henrybb
    Member

    Hey neyoung! Cool to know you use the plugin ;D

    I don’t use stickies or those poll or bugtracking plugins so I didn’t know. Thanks for the info, I’ll include your stuff in the next release. =)

    #60748
    chrishajer
    Participant

    You have tried to include this javascript:

    http://www.popcultureshock.com/forum/my-plugins/js_quicktags.js

    But that file cannot be found. So, where is that js_quicktags.js file?

    Looks like you added the proper code to your template. Did you activate the plugin in your admin panel? Or is it in a different location?

    #55810
    Detective
    Member

    I use this plugin ported from a Vanilla Extension:

    <?php
    /*
    Plugin Name: Video Tags
    Plugin URI: http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=33
    Description: Ported from SirNot's HtmlFormatter for Vanilla
    Author URI:
    Version: 0.1
    */

    //allow youtube and google videos to be posted, tags are:
    //<video type="google">docid</video> (google video) -or-
    //<video type="youtube">video id</video> (youtube) -or-

    function video_embed($texto){
    $sReturn = preg_replace_callback(
    '/<video(?>s+)type=(["'

    ])((?>w+))1(?>s*)>([A-Za-z-_d]+?)</video>/is’,

    ‘VideoLink’,

    $texto

    );

    return $sReturn;

    }

    function VideoLink($Matches)

    {

    $Type = strtolower(trim($Matches[2]));

    $ID = $Matches[3];

    switch($Type)

    {

    case ‘google’ : return (‘<embed style=”width: 400px; height: 326px;” id=”VideoPlayback” ‘.

    ‘type=”application/x-shockwave-flash” src=”http://video.google.com/googleplayer.swf?docId=&#8217;.$ID.'”></embed>’);

    case ‘youtube’ : return (‘<object width=”425″ height=”350″><param name=”movie” value=”http://www.youtube.com/v/&#8217;.$ID.'”></param>’.

    ‘<embed src=”http://www.youtube.com/v/&#8217;.$ID.'” type=”application/x-shockwave-flash” width=”425″ height=”350″></embed>’.

    ‘</object>’);

    default : return $Matches[0];

    }

    }

    function allow_video_tags( $tags ) {

    $tags = array(‘type’ => array(‘maxlen’ => 10));

    return $tags;

    }

    add_filter( ‘bb_allowed_tags’, ‘allow_video_tags’ );

    add_filter( ‘post_text’, ‘video_embed’ );

    ?>

    `

    It allows you to embed video only from YT or Google Video.

    #60747

    In reply to: WP 2.3 breaks bbpress?

    oledole
    Member

    Thanks. I’ll just sit back and relax then ;-)

    #55807
    chanzero
    Member

    I second nolageek’s request :)

    #58410
    neyoung
    Member

    Kahil, your method works well if your users use their login name as their display name. However if a user who’s login is user23 changes his display name to John Doe then your code looks for this image. /forum/avatars/John Doe.jpg instead of the correct avatar image which would be /forum/avatars/user23.jpg. I couldn’t figure out a clean way to fix this (I’m using wpmu, not wordpress). But here’s a dirty hack.

    <?php
    $comment_author_dn = get_comment_author();
    $comment_author = $wpdb->get_row("SELECT <code>user_login</code> FROM <code>wp_users</code> WHERE <code>display_name</code> = '$comment_author_dn'");
    echo '<img id="comment-avatar" height="50" width="50" src="/forums/avatars/' . (empty($comment_author->user_login) ? "default" : $comment_author->user_login) . '" alt="avatar" />';
    ?>

    That code should find images for a user if they use a display name or not.

    /shrug

    I haven’t fully tested it, but it seems to work ok.

    #60632
    _ck_
    Participant

    Oh sorry for misleading. Nothing I do really helps the codebase other than to nag about bugs ;) I don’t consider myself experienced enough in that regard.

    But I do try to write my share of plugins and themes and I hope to help attract other coders for the actual codebase.

    #60733
    chrishajer
    Participant

    Sounds like permalinks are creating a problem. Turn them off in your config.php and see if you can view posts.

    Make this line in your config.php look like this:

    $bb->mod_rewrite = false;

    (maybe it says true or slugs now)

    I don’t believe an .htaccess files comes with a default install. You would need to create one, so there won’t be one anywhere unless you created it, and it goes in the root folder of your forum. You can take care of that later, once you can at least see your posts.

    #60515
    Jaithn
    Member

    hey folks,

    i even found a new problem!

    i can’t add links to my posting in my mainblog. i succesfully integrated wpmu with bbpress and now the links don’t work anymore.

    when i add a link, the post only shows <a>words</a>.

    did i allready tell you guys that i’m using wpmu?

    any ideas?

    thx,

    jaithn

    #60514
    Jaithn
    Member

    hey folks,

    i even found a new problem!

    i can’t add links to my posting in my mainblog. i succesfully integrated wpmu with bbpress and now the links don’t work anymore.

    when i add a link, the post only shows <a>words</a>..

    did i allready tell you guys that i’m using wpmu?

    any ideas?

    thx,

    jaithn

    #60732
    warmechoco
    Member

    this whas kinda my persuasion to choose for bbpress, so I could login from Iframes.. I knew nothing about forums (only phpBB: but this wasn’t easy to work with in iframes)… what a shame :)

    #60731
    warmechoco
    Member

    hmmm but Iframes is so handy :) I also use it for my photo albums… Thanks btw!

    #49635

    In reply to: Emoticons For bbPress?

    neyoung
    Member

    If you’d like emoticons to show up in your private messages here’s how. Open up bb-emoticons.php . After line 242 which contains

    bb_add_filter('post_text', array(&$bbemoticons, 'convert_smilies'));

    Add the following.

    bb_add_filter('pm_text', array(&$bbemoticons, 'convert_smilies'));

    This will display the emoticons within your your private messages

    #60728
    warmechoco
    Member

    good idea, but it didn’t work … :/

    how else do you integrate a forum in a site?? very curiouse

    #60727
    chrishajer
    Participant

    Can you change the iframe source to a page name rather than relying on the index page of the directory called “forums”? So, instead of this:

    <iframe src="forum"

    Try this:

    <iframe src="forum/index.php"

    I have no idea if that will work. It’s an interesting way to get an integrated look. I don’t think I’ve ever seen that before.

    #60501

    In reply to: Unread Topics

    neyoung
    Member

    ok, I figured out that “Sticky” is not part of the topic title. But the poll and support forum plugins hook the topic_title function. To make the [Poll], [Resolved], [Unresolved] parts of the topic_title to show up as bold I modified one line in your plugin on line number 14 of bb_unread_topics.php . I changed

    add_filter('topic_title', 'utplugin_show_unread');

    to

    add_filter('topic_title', 'utplugin_show_unread', 100);

    By adding the 100 at the end of add_filter the utplugin_show_unread function will execute after the other functions that book topic_title. While there may be functions that use a number higher than 100, I doubt it, so you should be safe.

    #2408
    #60631
    fel64
    Member

    _ck_, are you saying that you will also contribute to the bb codebase or are you just talking about something unrelated?

    > The rush job on the WP 2.3 release is suspect.

    Maybe something for the WP forums.

    I think there might be reduced bb activity for a while as mdawaffe will be working on backPress if I understood that right. The work will also be useful to bb, but bb is not the sole aim of the project.

    [Edit] Thanks for taking care of that duplicate for me, Trent.

    #2407
    kehlers
    Member

    I have a site in which I’m using bbPress for user login/registration, but I also have Gallery2 installed for photo gallery. Gallery is configured in “embedded” mode, so that bbPress login is used – i.e. a unified login.

    When I try to type quotes in a text field in the embedded Gallery, I get escaped quotes (i.e. ” turns into /”). This doesn’t happen in bbPress, but it also doesn’t happen in the NON-embedded Gallery. So, it has to be something to do with the interaction of the two applications.

    The thing is, I am out of ideas. bbPress turns off magic quotes w/in the code, and so does Gallery2, plus it’s off in my php.ini. Is there some code within bb-load.php or other included files which parse all text fields? Any thoughts?

    #2404
    warmechoco
    Member

    In order to get the forum running, I removed the forums where testing posts have been in. Now I have put new forums in the admin section.. But there are none of them showing!!

    Not a single forum :/ help me :)

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