Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,751 through 23,775 (of 32,481 total)
  • Author
    Search Results
  • #78584

    I fixed the second & third issue but I am still stuck at the first one.

    Looking at the markup I found <select name="forum_id" id="forum-id""> is being generated by bbPress codebut the same works in default theme flawlessly so this isn’t the cause. Can I have the complete lookup order for file required to generate the “Add new” page.

    #75647

    Is your theme installed correctly?

    For example:

    /bbpress/my-templates/themename/style.css
    /bbpress/my-templates/themename/screenshot.png

    Etc etc…

    #78630
    Olaf Lederer
    Participant

    hehe, I like my plugin very much, most of all if I get a notification mail about a new spam thread and that one was already filtered by Akismet :D

    #78217

    You could use bbPages (https://bbpress.org/plugins/topic/bbpages/) for pages. You’ll probably need to edit some code yourself though if existing plugins don’t do what you want and possibly write some of your own as well. WordPress is really more geared towards this sort of thing with regards to WYSIWIG and image management, to even allow images on bbPress you need to install a plugin and BBcode is probably the closest to WYSIWYG.

    I’m sure with a lot of coding, you could get bbPress to behave like a portal, but why not just use WordPress and integrated bbPress?

    #78624

    In reply to: highlight first post

    Blergh. No idea why they’re using the post_id() instead, but okay. Try putting this <?php if (bb_is_first(get_post_id())) : ?> style="background-color:#FFFF99;"<?php endif; ?> after class="typo" (no need for a space). You can change the style to a class or whatever obviously, but I think that should work.

    #78623

    In reply to: highlight first post

    johnnydoe
    Member

    yay this is somehow all greek to me, were you able to handle those instructions john?

    since i’m not a kakumei user it seems to be a little tricky

    so i’ve got in my topic.php…

    <?php do_action('under_title', ''); ?>
    <?php if ($posts) : ?>
    <?php topic_pages(); ?>
    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
    <?php bb_post_template(); ?>
    <?php endforeach; ?>

    <?php topic_pages(); ?>
    <?php endif; ?>

    and in my post.php the following code…

    <table class="content" id="fbg3" cellspacing="0" id="post-<?php post_id(); ?>">
    <tr>
    <td class="typo">
    <?php post_text(); ?><div class="link"><?php post_edit_link(); ?><?php post_delete_link(); ?><?php post_ip_link(); ?></div>
    </td>
    <td class="info">
    <div class="avatar"><?php post_author_avatar(); ?></div>
    <div id="fbg3info">
    <div id="bubble2"></div>
    <a href="<?php bb_option('uri'); ?>profile.php?id=<?php post_author(); ?>"><b><?php post_author(); ?></b></a><br />
    <?php printf( __('%s'), bb_get_post_time() ); ?>
    </div>
    </td>
    </tr>
    </table>

    :/

    #78620

    In reply to: highlight first post

    johnnydoe
    Member

    i’ll give this a shot kawauso.

    thanks for now :)

    #78619

    In reply to: highlight first post

    The ID of the entire first post (including the poster’s details) would depend on your theme’s code, but in Kakumei it’d be div#position-1. If it’s anything else, it’d be under post.php, but you could just use Mozilla Firefox’s DOM Inspector or Google Chrome’s Inspect Element to check the ID on the page anyway.

    Again in the case of Kakumei, the post itself is .threadpost, so you could use something like <style>div#position-1 .threadpost {background-color:#FFFF99;}</style> to change the background colour.

    Hope that’s some help

    #78200
    gerikg
    Member

    The bbPress Integration plugin doesn’t make it work. It gives you instructions on what to do next.

    If you have WPMU then you’ll receive four lines from the plugin

    define( 'COOKIEHASH', '????????????????????????????????????' );
    define( 'COOKIE_DOMAIN', '.????????????????.com' );
    define( 'SITECOOKIEPATH', '/' );
    define( 'COOKIEPATH', '/' );

    Paste it in wp-config after <? then do the same in bb-config without the first line.

    #78199
    gj-tje
    Member

    Hi there! :)

    I’ve got the same problem with a website I’m working on.

    I’ve tried every option posted here, but nothing seem to work.

    I am working with WordPress 2.8.4 and bbPress 1.0.2.

    I can log in on the bbPress and the WordPress, but the cookie integration (so people only have to log in from 1 place, logged in into both) isn’t working, they seem to get the user information from 1 table in 1 database.

    I’ve verified that the keys are the same, all the keys are defined in both wp-config.php and bb-config.php, with the same keys and the same values for the salt. I even have a define(‘cookiepath’, ‘/’);, which also doesn’t seem to work. :(

    I also have bbPress Integration (plugin) installed in WordPress, didn’t help as well.

    Anything I may have missed?

    hopeful4info
    Member

    I am looking for someone to help me with WordPress and bbPress. I have developed the wordpress site as a membership site and want to include a forum. I wasted about a month or more with SMF and couldn’t get it to work properly, so today I switched to bbPress and have it working in a iframe in one of the wordpress pages. The only problem is getting the cookies and all that to work so a person logged into the membership site can go right into the forum without having to re-log in and vice-versa.

    I installed the bbpress integration plugin and went through all the set up procedures numerous times to no avail. I also went through the “WordPress Integration settings” numerous times. I have compared both the WordPress config and bbpress config files to be sure the Auth_Key, Secure_Auth_Key and Logged_In_Keys were identical and they are.

    I have put the – define( ‘COOKIEPATH’, ‘/members/’ ); – line in the WPconfig file as instructed, but I just put it in exactly as shown here. I’m not sure if I should replace “cookiepath” with an actual path or if the word cookiepath is what they want.

    I am not a code person, but I can get along sometimes ok. sometimes not! This is a NOT day.

    Would some kind soul be able to help me with this?

    If not please steer me toward someone who can help.

    #77078

    In reply to: bbpress and memcache?

    johnhiler
    Member

    Hey Frooyo – I think you mention output caching every change you get. :-) Your comments about it are the first comment on this thread…

    #77077

    In reply to: bbpress and memcache?

    frooyo
    Member

    @All

    There does appear to be an option that everyone is overlooking … and that’s Output Caching.

    We’ve talked about memcache, optcode caching and mysql query caching … but truly the most effective is simply perform Output Caching for non-logged in users.

    In case someone is not aware, Output Caching is saving to disk the generated HTML. That way, instead of memcache where you have to make a call to the memcache server, or in mysql you’re still making the database call or in optcode caching, it’s simply pre-compliling the PHP … Output Caching is by far the fastest because it essentially just serving up pre-generated HTML straight from disk.

    #78583

    The new post template is stored under post-form.php. register.php and bb-login.php are seperate pages that only include header.php and footer.php, so you’d need to include the sidebar either manually or in the header or footer respectively. Hope that helps!

    #78610
    bbiSimone
    Member

    Works a charm Kawauso :)

    #78609

    Apparently topic_time is timezone-shifted, so the previous code is wrong :P told you it was rough! This will take the time from the opening time :)

    <?php if ( (current_time('timestamp') - 24*60*60) < strtotime($topic->topic_start_time) ) : ?>*NEW* <?php endif; ?>

    #78564

    In reply to: RSS feed for user

    Interesting. There actually IS an RSS built into your user ID: https://bbpress.org/forums/rss/profile/otto42

    But it’s used for your favorites so not so much. You can see all your posts in your profile (recent posts) so in theory this should be ‘exportable’ to RSS.

    The rss.php file has this:

    // Get latest posts by default
    case 'all-posts':
    default:
    if ( !$posts = bb_get_latest_posts( 35 ) )
    die();
    $title = esc_html( sprintf( __( '%1$s &raquo; Recent Posts' ), bb_get_option( 'name' ) ) );
    $link = bb_get_uri();
    $link_self = bb_get_posts_rss_link();
    break;

    Which I think you could toss an extra if if ( $user->ID == bb_get_current_user_info( 'id' ) ) but that would only punt out a list of the current user’s posts, and not be a way to see anyones. The structure is there, though.

    #65581
    _ck_
    Participant

    In theory it should be also possible to allow users to move their own topics if placed in the wrong category:

    (untested, should allow a user to move only their own topics within the same time period they can typically edit a topic, ie. 1 hour default)

    function move_own_topic($retvalue, $capability, $args) {
    if ($capability=="move_topic") {return bb_current_user_can( 'edit_topic', $args[1]);}
    return $retvalue;
    }
    add_filter('bb_current_user_can', 'move_own_topic',10,3);

    #78570
    Jan_d
    Member

    The only code i got from the plugin was

    ‘define( ‘COOKIEPATH’, ‘/’ );’

    which i did put in the config file before starting this thread.

    #78606

    <?php if ( (time() - 24*60*60) < strtotime($topic->topic_time) ) : ?>*NEW* <?php endif; ?>

    A very rough way of doing it there, but if you put that in forum.php before say, <?php topic_title(); ?> if you want it in the topic title, it should work. Change 24*60*60 to the number of seconds you want to include topics from.

    #78554

    In reply to: jquery @ global header

    jQuery is already bundled with bbPress (and WordPress), so you can just use

    <?php bb_enqueue_script('jquery'); ?>

    in your theme’s functions.php and it’ll automatically be included in your header.

    Same applies for WordPress, but using wp_enqueue_script instead…

    But to answer your original question :P use <?php bb_active_theme_uri(); ?> to output the template directory or <?php get_bb_active_theme_uri(); ?> to return it as a variable.

    #78569
    gerikg
    Member

    Don’t copy my code copy the code you get from the plugin.

    #78568
    Jan_d
    Member

    Thanks, but that did not work. I allready had bbpress-integration installed.

    What did you mean by “get the info”?

    I copied your code into the config-files. Nothing changed.

    Any other ideas?

    #31629

    Hello!

    I am working on a bbPress theme which can be seen at http://bbpress.ashfame.com/

    I have a problem that when I click the “Add new” link on the front page, the page is broken in markup (also returns invalid markup – http://bbpress.ashfame.com/?new=1 )

    Which template file does it use to generate?

    And the login code doesn’t spit out the code in the sidebar when on register page ( http://bbpress.ashfame.com/register.php ) or on lost password page ( http://bbpress.ashfame.com/bb-login.php )

    #78567
    gerikg
    Member

    Install this: https://wordpress.org/extend/plugins/bbpress-integration/ get the info

    example

    define( 'COOKIEHASH', '1111' );
    define( 'COOKIE_DOMAIN', '.website.com' );
    define( 'SITECOOKIEPATH', '/' );
    define( 'COOKIEPATH', '/' );

    put it in your wp-config.php after <?

    then put it in your bb-config.php without the cookiehash line.

    define( 'COOKIE_DOMAIN', '.website.com' );
    define( 'SITECOOKIEPATH', '/' );
    define( 'COOKIEPATH', '/' );

Viewing 25 results - 23,751 through 23,775 (of 32,481 total)
Skip to toolbar