Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 22,976 through 23,000 (of 32,481 total)
  • Author
    Search Results
  • #80930

    In reply to: Get Profile Links

    Gautam
    Member

    Or you can just call get_user_profile_link(); function to get the simple link.

    If the user is logged in, it will automatically get the user id.

    Function can be found here –

    https://trac.bbpress.org/browser/trunk/bb-includes/functions.bb-template.php#L2195

    #80921
    janvi
    Member

    Thanx for your reply.

    Have tried fooling around with tags in ‘post.php’ until now, but it’s going nowhere :(

    it must be possible? ..or?

    #32007
    Klaus.Kuplen
    Member

    Hi,

    I’m setting up a bbpress instance and noticed that the log files have to exist otherwise no logging takes place. This makes my beloved log file rotating impossible.

    But if i edit class.bp-log.php and insert the following after lines in set_filename at about line 143

    if (! file_exists($_filename)) {

    @touch ($_filename);

    }

    This allowes me to do nice things like configure log files to

    define( 'BB_LOG_FILENAME', $global_log_dir . 'bbpress-' . date("Y-m-d") . ".log");

    #80829

    In reply to: Future of bbPress

    There is code in BuddyPress that allows bbPress to install, configure and run all within the WordPress environment.

    But does it work out-of-the-box already? It doesn´t for me.

    #80966

    WordPress themes can’t be used for bbPress without modification, but if it’s a bbPress theme, then yep, just put it in its own directory under my-templates

    #80827

    In reply to: Future of bbPress

    For bbPress to continue moving forward it has to start seamlessly integrating with WordPress.

    There are only two ways of doing that. Move WordPress so that it uses BackPress, or extract BackPress from bbPress and point it to the code existing in WordPress (if it is integrated). Moving WordPress to use BackPress is a considerable job and would likely need the attention of a completely new version number. In the short term the time it would take isn’t feasible for bbPress (or BuddyPress for that matter) to continue moving forward at a reasonable pace.

    The second option is quite possible and has already been done. Despite it not being the truly “ideal” method for the long term it could be used without problems until WordPress moves to BackPress. There is code in BuddyPress that allows bbPress to install, configure and run all within the WordPress environment. If someone was willing to put some time in and extract this code into a plugin (or perhaps a core extension) then the job would almost be done.

    The integration / abstraction code is here: https://trac.buddypress.org/browser/trunk/bp-forums/bp-forums-bbpress.php

    The configuration / setup code is here: https://trac.buddypress.org/browser/trunk/bp-forums/bp-forums-admin.php

    I’m happy to help someone along with this.

    #80920
    Ario
    Member

    It is possible I would think. I am going to do some experimenting on it but if you are looking for a good plugin to deconstruct and learn from (what I am doing since I lack the skill to make something from scratch) then try looking at the Gaming Codes plugin.

    #80928

    In reply to: Get Profile Links

    Ario
    Member

    I was going to hide it behind tags:

    <?php if ( bb_is_user_logged_in() ) : ?>

    What I wanted to do was to replace the standard:

    <?php if ( is_bb_profile() ) profile_menu(); ?>

    With other things including links for the “Your Profile”, “Edit (your) Profile”, PM Inbox, Memberslist, “Logout” etc.

    Basically I am trying tp bypass the profile_menu() non-global status along the lines of this thread that I wasn’t able to work:

    https://bbpress.org/forums/topic/profile_menu-doesnt-work-on-all-pages

    I was trying to force the URL and trying to force such a global profile menu using:

    <?php echo bb_option('uri'); ?>/profile/<?php echo bb_get_current_user_info( ' name ' ); ?>

    But that is pretty ghetto and as you can see it outputs the display name not the username so thus can’t be used for getting a link to the user’s profile…

    #80875
    Ario
    Member

    TinyMCE can work in just about any forum so there should be no reason it wouldn’t work.

    As for videoquicktags do you mean like bbcode? It can be done fairly simply I believe but I am not good enough at PHP to deconstruct the bbcode-lite script to make it for you since that script is so heavily optomized.

    Edit:

    http://urbangiraffe.com/plugins/html-purified/

    Take a look at HTML purifier. It allows your user to use HTML but strips anything bad. That way you can use the regular YouTube embeds or whatever you like w/o need of a bbcode plugin.

    #80927

    In reply to: Get Profile Links

    function bb_get_admin_link( $args = '' ) {
    if ( !bb_current_user_can( 'moderate' ) )
    return;
    if ( $args && is_string($args) && false === strpos($args, '=') )
    $args = array( 'text' => $args );

    $defaults = array('text' => __('Admin'), 'before' => '', 'after' => '');
    $args = wp_parse_args( $args, $defaults );
    extract($args, EXTR_SKIP);

    $uri = esc_attr( bb_get_uri('bb-admin/', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN) );

    return apply_filters( 'bb_get_admin_link', $before . '<a href="' . $uri . '">' . $text . '</a>' . $after, $args );
    }

    So if you don’t mind bypassing the moderation ability check, just use

    esc_attr( bb_get_uri('bb-admin/', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN) );

    or

    bb_get_uri('bb-admin/', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN);

    depending if you’ll be escaping the URL later.

    To keep the check, use if ( bb_current_user_can( 'moderate' ) )

    #32156
    Ario
    Member

    bb_get_profile_link(bb_get_current_user_info( ‘id’ ))

    Is there any way to get the URL to the logged in user’s profile without all that “view your profile” junk it tacks onto the above call?

    I am trying to customize my logged-in.php into something like:

    <ul>
    <li>Profile</li>
    <li>Edit</li>
    <li>PM</li>
    <li>Favorites</li>
    <li>Logout</li>
    </ul>

    Except I can never get it to pump out clean URLs =/

    #32154
    janvi
    Member

    Hello.

    Trying to get the extended user (profile) fields running. This was easy, the solution was relatively easy to find on the forums. But, .. always a but you know. My problem is to display this user information in the forum posts, how can I solve this? I would like to display this info below the gravatars.

    (display only one userfield, not all of them. eg. would like to display a field called ‘distro’)

    Relatively unexperienced with both WP and bbPress.

    Thank you ;)

    #80822

    In reply to: Future of bbPress

    Jiyong
    Member

    BBpress is a very good forum, but the support in franch (the example for me) is nonexistent. So it’s a problem for the BBPress development in the world. Another problem, lack of consistent WordPress plugin -> bbpress (example : Avatar :()

    I like bbpress, I hope everything will change for the better …

    #57472
    OKTeaRoom
    Member

    Hi, 2 problems and I hope you guys can help me out :)

    1. I’m getting this error:

    Warning: require_once(/hermes/web10/b811/pow.oktearoom/htdocs/forum/htdocs/blog/wp-config.php) [function.require-once]: failed to open stream: No such file or directory in /hermes/web10/b811/pow.oktearoom/htdocs/forum/bb-config.php on line 66

    Fatal error: require_once() [function.require]: Failed opening required ‘/hermes/web10/b811/pow.oktearoom/htdocs/forum/htdocs/blog/wp-config.php’ (include_path=’.:/usr/local/lib/php-5.2.2/lib/php’) in /hermes/web10/b811/pow.oktearoom/htdocs/forum/bb-config.php on line 66

    I know that i defined the path incorrectly..i want it to say /htdocs/blog/wp-config.php and NOT htdocs/forum/htdocs/blog/wp-config.php

    How do i write it without it including the htdocs/forum part. (my blog is on my /blog directory and the forum is in the /forum directory). Sorry, i’m a hug newb but I’d appreciate some guidance.

    Problem 2:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /hermes/web10/b811/pow.oktearoom/htdocs/blog/wp-blog-header.php:4) in /hermes/web10/b811/pow.oktearoom/htdocs/blog/wp-content/plugins/wp-e-commerce/merchants/paypal_certified.php on line 741

    That is showing up at the top of my blog. Any idea on how to tackle that?

    Thanks

    Bob

    #80912
    bblover
    Member

    Hurrah……. I got it :-)

    Dear Sir johnhiler….. After conversation with you i was damn researching on this issue to solve this problem over the internet with your telling points. So after watching the video” http://wordpress.tv/2009/01/23/integrating-a-bbpress-forum-with-your-self-installed-wordpress&#8221; I integrated my one bbpress ( Suppose bbpress01 ) to lonely wordpress. so my first “bbpress01” had been successful integrate with one wordpress and all cookies and users was set. so next i want to merge my other 24 bbpress install into this successful integration.

    so my next working was;

    i copy paste my bbpress01 rename it to bbpress02. then i went to the bb-config.php of bbpress02 and add these stuff in it:

    $bb_table_prefix = ‘bb2_’;

    define(‘CUSTOM_USER_TABLE’, ‘wp_users’);

    define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta’);

    define( ‘COOKIEPATH’, ‘/’ );

    Note: database of all 25 bbpress and 1 wordpress was same just changing in tables prefix like bb1_, bb2_ bb3_ to bb25 and add just custom user table code.

    you can i also view the screenshot of work here is it.

    for wp-config.php: http://img32.imageshack.us/img32/8249/wpconfig.jpg

    for bbpress01 bb-config.php: http://img23.imageshack.us/img23/6034/bb1su.jpg

    for bbpress 02 bb-config.php: http://img21.imageshack.us/img21/2746/bb2xa.jpg

    so here i was successful which i want.

    1. share users

    2. shared database

    3. cookies integration

    but “One” thing is still remain :-(

    if a user “john” login to my bbpress01. he should also show login status on my other 24 forums.

    I think you can understand it. now i need cookies integration for other 24 bbpress.

    cookies integration just was set b/w bbpress01 and wordpress. how can we set cookies for all my other remaining 24 forums.

    I’ll be great thankful to you if you try to solve my final step and give me the smart solution.

    waiting for your reply with great curiosity :-)

    #80868
    InvTrdr
    Member

    Thank you.

    #80819

    In reply to: Future of bbPress

    I think having gotten into plugin development with bbPress, a big part of what it needs is more documentation. One of the great advantages of WordPress is the ease with which additional functionality can be implemented, and bbPress is quite similar in that respect, but actually knowing how to implement it using the native functions available is currently a learnt skill, rather than something you can pick up from reading the Codex. As this thread shows, bbPress has a wide variety of uses and situations, so it’s important for it to be easily adaptable in order to grow.

    Not too much to do with how bbPress develops as a codebase, but not too off-topic I hope :)

    #80910
    johnhiler
    Member

    Ah ok.

    1) Your first step is going to be to get all of the installs to use the same users table. Technically, you’ll want to follow steps similar to the ones described here:

    https://bbpress.org/forums/topic/successful-reverse-integration-steps

    However, your job will be greatly complicated by the fact that each install will have overlaps in terms of userid and usernames. For example, userid #5 on bbPress install #1 is going to refer to a different user than userid#5 on bbPress install#2. You’re going to have to address that – this link will help greatly:

    https://bbpress.org/forums/topic/integration-of-established-wp-and-bbpress-installations

    2) Phew, it’s good that they’re all in the same database… hopefully your WordPress install is also in the same database. This will simplify things a bit.

    3) Ok, good to know.

    I can’t offer custom help – I’m just a volunteer! But I’m glad to try and help you here, so others can learn from the discussion…

    Here’s what I would recommend:

    1) Your first step would be to backup all of your data.

    2) Then, I’d setup a test environment exactly like your current environment and put your data there. That way, you can work on the integration with much less stress. :-)

    3) Then I would figure out how to deal with the userid and username overlap described above. This will probably be the hardest part!

    4 ) Once you’ve figured that out, you’re all set to integrate all the installs to use the same usertable.

    5) Finally once that’s done, you can also integrate the cookies so users only have to signin once!

    If this sounds waaay too hard, you may want to hire a consultant or expert to help ya out! Here’s a list of people who are available:

    http://bbshowcase.org/forums/topic/bbpress-professionals-advertise-in-this-topic

    #80908
    johnhiler
    Member

    I’m sorry to say this, but integrating your 25 installs is probably going to require more work than filling in a setting page. :-(

    A few questions for you:

    1) You have 25 bbPress installs, and they are currently not sharing a user table… is that right? As in, if I sign up as “john” on one install… can I sign in with that username and password on another one of your bbPress installs?

    2) If your bbPress installs are not sharing a user table… do you know if all of the user tables are in the same database?

    3) Finally, what versions of WordPress and bbPress are you using?

    #80888
    johnhiler
    Member

    You should be able to access your Akismet spam queue at this URL:

    htttp://yourdomain.com/bb-admin/admin-base.php?plugin=bb_ksd_admin_page

    It should be linked under the Manage sub-tab, I think?

    You can clear spam from there! I definitely check my spam queue a few times a day… :-)

    #80906
    johnhiler
    Member

    This is absolutely possible. I wrote a bit about it here:

    https://bbpress.org/forums/topic/create-multiple-forums

    I now have about 10 bbPress installs all working, and they’re both integrated with two separate WordPress installs. So this is definitely possible. :-) You just need to make sure that all the installs are using the same users table.

    The bigger issue is: do any of your installs share usernames? For example, a “John” registered on one site and on another one? That will be tricky to manage – a path is described nicely here… look for the section on “user_id” conflicts:

    https://bbpress.org/forums/topic/integration-of-established-wp-and-bbpress-installations#post-28701

    Good luck!

    #32152
    bblover
    Member

    dear all coders,

    I’m lover of bbpress so I was working on 25 different bbpress forums and one wordpress. Now i want to integrate theses stuff to each other. but i think one wordpress only can integrate with one bbpress forum. but i can’t face this situation because i’m working on my forums preceding 4 months. if i fail to integration these 25 forum with one wordpress then all my effort will go to the hell. it’s humble request to all developers to solve this situation and save my work and give me the smart solution.

    Note: I don’t want to install 25 wordpress to integrate 25 forums.

    Remember: 25 forums integration with one wordpress

    Please Please Help me :(

    It is very crucial situation for me … tell me how to handle it. :(

    #80880
    chrishajer
    Participant

    You can edit that for each user individually. Are you talking about just doing it for yourself? If you go the edit a user’s profile, you should see this checkbox:

    [ ] Allow this user to Ignore the 30 second post throttling limit

    There was a setting in bb-config.php to make it a different number, but you can turn it off completely for each user in their profile.

    #80808

    In reply to: Future of bbPress

    michayu
    Member

    @Kawauso

    1. SimplePress looks better than BuddyPress did before Automattic has acquired it. I intent to emphasize rather business aspect, than technology one. It would be better for WordPress community if the resources will concentrated, not dispersed.

    2. Try vBulletin4.0(beta). It’s “light, adaptable, etc”…

    3. My company develops 4-6 [WP-based] sites (not blogs) a month. God bless WordPress!

    CMS=ContentManagementSystem, isn’t blogging about content management?

    And you’re right, hopefully, it’s CURRENT shortcomings will be overcame in 3.0 :-)

    #80294
    apam
    Member

    Ok the problem seems to be the HTML purifier plugin that inserts those linebreaks which is a pity for it does a good job of cleaning up the code.

    I have disabled it for now unitll I’ll find a solution, if anyoe can shed some light it would be great!

Viewing 25 results - 22,976 through 23,000 (of 32,481 total)
Skip to toolbar