Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,376 through 31,400 (of 32,170 total)
  • Author
    Search Results
  • #1158
    Null
    Member

    Hi,

    Just wonderin IF this is possible and how.

    In template-functions.php around row 176 there is the following function:

    function get_bb_location() { // Not for display. Do not internationalize.

    and it has cases like:

    case 'index.php' :

    return 'front-page';

    break;

    I want to add my own case into this function, but how do I do this? I can do it manually ofcourse, but I want to do this using a plugin. Any ideas?

    Thx

    #52861
    ardentfrost
    Member

    I think he means he wants the ability to add new ones or take away some on his own, possibly through a nice interface. It’s not a bad idea.

    For now, though, if you want to change it, make a file in your my-plugins directory and put this in it:

    <?php

    function get_profile_info_keys_personal() {

    return array('user_email' => array(1, __('Email')), 'user_url' => array(0, __('Website')), 'from' => array(0, __('Location')), 'occ' => array(0, __('Occupation')), 'interest' => array(0, __('Interests')));

    }

    add_filter('get_profile_info_keys', 'get_profile_info_keys_personal');

    ?>

    Then you can add or take away whatever you want.

    However, you will need to know a little more about how other plugins work. For instance if you use my avatar plugin, you would need to add into that file 'avatar_loc' => array(0,__('Avatar URL')) (into that long line) and comment out part of my plugin.

    A plugin to do all of that automatically wouldn’t be hard, but would need to be done in such a way so that people can write plugins to interface it (so, for instance, I could interface it from my avatar plugin to make sure that the part I need is inserted into the line).

    I only mention that so that if anyone decides to tackle the plugin before I do, they’re sure to account for that ;)

    #52857

    In reply to: My forums template :)

    spencerp
    Member

    Nice one! I love it!!

    and remove the front-page.php changes so that it is more standard and release it to public whenever I change to a new theme. I don’t want other people to be using my theme at the same time I am =D

    Awww, damn, damn, damn it.. lol! Just kidding..! =P Either way you release it, will be fine by me.. whee~~

    spencerp

    #1155

    Topic: My forums template :)

    in forum Themes
    vaelrith
    Member

    I made a theme for my forums, and found it rather easy. It was mostly just all css, and a few changes to the front-page.php file.

    http://zenhelix.us.to/forums/

    I’m using a few plugins also:

    • Allow Images
    • bb-avatar
    • bb-limit-latest-discussion
    • bb-memberlist
    • bb-postcount
    • bb-privatemessage
    • bb-signature – this one isn’t working for some reason, but i didn’t really look into it
    • display-name
    • forum-moderators – don’t know if this one is working either
    • notification
    • onlinelist

    Thanks to all who made those :)

    I’ll make the theme more user-friendly and remove the front-page.php changes so that it is more standard and release it to public whenever I change to a new theme. I don’t want other people to be using my theme at the same time I am =D

    #51720
    Nicki Faulk
    Member

    Thank you, devils_adv. :)

    #51718
    Nicki Faulk
    Member

    Thanks, spencerp! :)

    #52855

    Ehm … donno where exactly should I get errors?

    I installed this file .. I can post … I can login .. I can access the Portal-Configuration … =)

    Everything seems to work for me.

    #52198
    spencerp
    Member

    Um, I don’t see why it’d be a problem though.. but, it’s always better safe then sorry. ;) :) However, someone made a WordPress theme, based on the WordPress.org/WP support forums theme.. so.. I dunno.. we’ll have to wait and see what the Uppy Ups say I guess.. =P

    spencerp

    /If it’s a no-go, it might be because they’d want their own “signature” forum theme.. who knows though.. =P

    #51717
    spencerp
    Member

    I love it!! ;) :) You did an awesome job on the theme/forums there.. ;) :)

    /Get’s in line for downloading a copy of it, once she’s going to share it.. LoL! ;) :)

    spencerp

    /By the way, your link still stands on my main site: spencerp.net … under one of the links sections.. ;) :) I haven’t been there in a while though, but will stop in again then.. I promise! ;)

    #52420
    spencerp
    Member

    Oh yeah, I agree totally about how it could “slow down” a forum. ;) I’m not worried about that really, I’m specifically asking if/for this to be possible with bbPress, so I don’t have to use those *other* forum softwares though.. =P

    I guess I’ll have to wait on what Josh comes up with, I think he’s planning on doing something about this then.. whee!

    spencerp

    #51716
    Nicki Faulk
    Member

    Thank you, ardentfrost. :D

    re: version – Whoops! Right you are, my bad. :)

    #51715
    ardentfrost
    Member

    btw, you’re using memberlist .73c, not .73a ;)

    #51714
    ardentfrost
    Member

    Very nice looking. Glad you’re using a few of my plugins :) Theming bbpress isn’t so easy yet, but it’s doable and you certainly did a good job.

    #52853
    chrishajer
    Participant

    That php error is usually caused by white space/blank lines before the <?php or after the closing ?>. I would check for that first.

    #51713
    Nicki Faulk
    Member

    Yeah, I know that once theming ability is added to bbPress, I’ll probably be fixing several things on this theme! LOL

    But hey, it’s yet another toy for me to muck up, I mean, play with. :D

    #1154
    Null
    Member

    Hi,

    My plugin has a post form. It works all great, but seems to conlfict with every other post form from the forum. Only the form from my plugin works, all others (like posting a reply) will generate errors.

    If tried to resolve this by adding an hidden field:

    <input type=”hidden” name=”portalforum” value=”1″ />

    so this form is only used when value is 1:

    if ($_POST['portalforum'] == 1)

    This seems to resolve the problem, but ow i get another error:

    Warning: Cannot modify header information – headers already sent by etc etc

    Any ideas of how to fix this? Or to only use the form when in the admin area?

    Thx

    #51711
    Nicki Faulk
    Member

    Thank you, Trent. :D

    I just may do that. I’m still working out little kinks here and there (mostly spacing issues), but I’ll definitely share here when I’m finished (or at least satisfied LOL!).

    :)

    #994
    Nicki Faulk
    Member

    I’ve tried to match it up as close as possible to the main site without looking too “off” and feel that I’ve done a pretty good job. :)

    http://www.nowwerecookin.org/bbpress/

    You’ll need a p/w and username: test/test

    Plugins used:

    • Allow Images 0.7.1
    • Avatar .73a
    • bbEmoticons version 0.72
    • Memberlist .73a
    • Google Sitemap Generator .6
    • BBPress Private Messaging 0.73
    • Use Display Name 0.7.2
    • Online List 1.3-fix
    • WordPress Integration .7

    (all plugs found via these forums :))

    Feedback would be greatly appreciated. I’ve checked on Firefox 2.0 and IE 6.0 but would love to hear from users of other browsers! :)

    Thanks in advance, and a huge thanks to those who’ve posted these plugins, as well as the FAQ and other solutions. Skinning this thing has been a bear, but everything else has been relatively easy as pie. :D

    #52744
    Nicki Faulk
    Member

    Very nice! :)

    Worked perfectly the first time. One tiny detail I would add: users whose bbpress install is in a directory named anything other than “forums” will need to change the RewriteRule in order to reflect the correct path. I almost missed that part. :)

    #52640
    chrishajer
    Participant

    Thanks :)

    #52639
    skrimpy
    Member

    Chris – I’d be glad to. I opened post.php (found in bb-templates or in my-templates) and modified it by placing <?php post_sig(); ?> into the code.

    my finished code section looked like this:

    <div class="threadpost">

    <div class="post"><?php post_text(); ?><?php post_sig(); ?></div>

    <div class="poststuff"><?php _e('Posted:'); ?> <?php bb_post_time(); ?> <a href="<?php post_anchor_link(); ?>">#</a> <?php post_ip_link(); ?> <?php post_edit_link(); ?> <?php post_delete_link(); ?></div>

    </div>

    I then saved and uploaded this into my-templates.

    I’m going to try and do some more customizing to get the sigs to look just the way I want them to on my forums. I’ll post if I’m successful ;)

    #52743
    spencerp
    Member

    YES! Once again gerd damn-its, testing a bunch of crap out the arse.. for Josh there.. it’s FINALLY working both ways now.. whee!!

    http://spencerp.net/forums/

    http://spencerp.net/forums/mlist/

    http://spencerp.net/forums/mlist.php

    Now, maybe, hopefully, some time soon here.. I’ll be able to actually work on MY theme’s for the blogs… because I’m already 7 months behind on the crap.. sigh.. =P

    spencerp

    /It’s fun though.. being the guinea pig .. of a bbpress plugin pimp! lmao

    #52742
    ardentfrost
    Member

    Ok, it’s updated. You should download version .73c (for a small change) then add this in your .htaccess file if you need to have the rewrite rules in that location:

    RewriteRule ^mlist/ /forums/mlist.php? [L,QSA]

    #52739
    ardentfrost
    Member

    .73b is on my download page ( http://faq.rayd.org/memberlist/ )

    And I never said you were attacking my skill. If you don’t like the error message that you should never see, then change it. Again, it is open source. Just open mlist.php that you put in your root directory; it’s at the end of the file.

    And it sounds like you are having a similar problem as spencer. He turns on permalinks and it works for everything except my plugins, whereas my plugins work fine for myself and others who have permalinks on.

    If the problem persists, you can either turn off pretty permalinks until I figure out what the problem is, or you can change the function on line 100 in bb-memberlist.php in your my-pluins directory to this:

    function bb_get_memberlist_link( $tag = '' ) {

    global $bb;

    if ( $bb->mod_rewrite )

    $r = bb_get_option('uri') . "mlist.php" . ( '' != $tag ? "?$tag" : '' );

    else

    $r = bb_get_option('uri') . "mlist.php" . ( '' != $tag ? "?$tag" : '' );

    return apply_filters( 'get_memberlist_link', $r );

    }

    #52738
    Nola1974
    Participant

    I wasn’t talking about your programming skill, I was commenting that saying “f’ed in the A’ isn’t a very appropriate thing to put in code that will be appearing on other people’s sites. I didn’t mean for it to be a personal attack.

    I have pretty permalinks turned up, but not sure if my .htaccess file is working like it should. WHenever I add new plugins, they dont seem to work with pretty permalinks. (pm, mlist etc…) I tried going to bb-admin/rewrite-rules.php but it just redirects me to the main page. Perhaps bb-press is assuming I’m in a bbpress directory?

    there’s a .73b? I’m running .73 currently. I’ve looked all over the site and cant find a mention of downloaing a .73b version.

Viewing 25 results - 31,376 through 31,400 (of 32,170 total)
Skip to toolbar