Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,776 through 23,800 (of 32,522 total)
  • Author
    Search Results
  • #73171

    In reply to: target _blank

    Navin
    Member

    I tried this, I’m using 1.0.1

    And I got:

    Warning: Cannot modify header information – headers already sent by (output started at /home/onlin196/public_html/forums/my-plugins/tabbladen.php:14) in /home/onlin196/public_html/forums/bb-includes/functions.bb-pluggable.php on line 232

    Below you have the whole code i used

    <?php

    /*

    Plugin Name: Nieuwe tabblad openen

    Plugin URI: http://bbpress.org

    Description: opent links in een nieuwe venster

    */

    function bb_target_blank( $text ) {

    $text = preg_replace(‘||i’, ‘‘, $text);

    return $text;

    }

    add_filter(‘post_text’, ‘bb_target_blank’,255);

    ?>

    #77507

    In reply to: All RSS Feeds Broken?

    deadlyhifi
    Participant

    The fix in track wraps CDATA around the title and description, then the &raquo’s work fine and it all validates.

    In your theme’s rss2.php replace with this:

    <?php
    header( 'Content-Type: text/xml; charset=UTF-8' );
    echo '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' . "n";
    bb_generator( 'comment' );
    ?>
    <rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
    <title><?php echo $title; ?></title>
    <link><?php echo $link; ?></link>
    <description><![CDATA[<?php echo $description; ?>]]></description>
    <language><?php esc_html( bb_option('language') ); ?></language>
    <pubDate><?php echo gmdate('D, d M Y H:i:s +0000'); ?></pubDate>
    <?php bb_generator( 'rss2' ); ?>
    <textInput>
    <title><![CDATA[<?php _e('Search'); ?>]]></title>
    <description><![CDATA[<?php _e('Search all topics from these forums.'); ?>]]></description>
    <name>q</name>
    <link><?php bb_uri('search.php'); ?></link>
    </textInput>
    <atom:link href="<?php echo $link_self; ?>" rel="self" type="application/rss+xml" />

    <?php foreach ($posts as $bb_post) : ?>
    <item>
    <title><?php post_author(); ?> <?php _e('on')?> "<?php topic_title( $bb_post->topic_id ); ?>"</title>
    <link><?php post_link(); ?></link>
    <pubDate><?php bb_post_time('D, d M Y H:i:s +0000', array( 'localize' => false ) ); ?></pubDate>
    <dc:creator><?php post_author(); ?></dc:creator>
    <guid isPermaLink="false"><?php post_id(); ?>@<?php bb_uri(); ?></guid>
    <description><?php post_text(); ?></description>
    </item>
    <?php endforeach; ?>

    </channel>
    </rss>

    #77506

    In reply to: All RSS Feeds Broken?

    kirpiit
    Member

    > https://trac.bbpress.org/attachment/ticket/1181/full-rss-filters.patch

    I don’t seem to be able and reproduce the new version of the files, also because the code in 1.0.2 seems to be slightly different from the one I’m supposed to edit, and I get easily lost (not being a coder myself).

    I tried all my best, but still the feed throws an error and does not get created.

    Are such files dowloadable from any source, please?

    #71934

    In reply to: Instant Password

    annkurs
    Member

    I am facing this same issue, but strangely the registration goes through via Google Chrome.

    I replaced my register.php file with the original file from kakumei folder. Still the same error :(

    (the theme I am using is toonewsy, earlier the structured theme also failed)

    Is this a CSS issue?

    iphonehelp.in/howto

    #78447

    In reply to: Managing Favorites

    Olaf Lederer
    Participant

    Subscribe to the RSS feed in Google reader ;)

    I thought long about to have a function like in other forum scripts, but these days RSS is the way how to do it.

    I wrote an article about:

    http://www.finalwebsites.com/forums/topic/how-to-subscribe-to-topics-from-a-bbpress-forum

    #78288
    gerikg
    Member

    What happened so far…

    Okay I looked through the file. Yangers101 was on the right track. There were some extra lines in the wp-config:

    $bb->cookiepath = '';
    $bb->sitecookiepath = '';

    I took those out.

    The problem: “www.” The WPMU was configured to be on website.com/blogs (without the www.)

    so all the settings needed to be without the “www.” or with. One or the other on both WPMU & BBpress.

    Since his host forced the www. We had to put all the www. in the configuration. BBpress didn’t like the www. in the dashboard so he logged into his DB and manually changed it.

    #78632

    In reply to: counting subforums

    johnhiler
    Member

    I don’t think this is what you want… but the code might provide some inspiration, since it also deals with subforums. :-)

    https://bbpress.org/forums/topic/counting-forums#post-21338

    Good luck!

    #31637

    Topic: counting subforums

    in forum Themes
    johnnydoe
    Member

    is there a way to force bb-press to show/count “also” the number of subforums instead only the amount of topics?

    (coders the following code might hurt your eyes but i’am (not yet) so skilled in php, i’m really sorry)

    kinda…

    <?php if ( bb_forums() ) : ?>
    <table class="etcetera">
    <tr>
    <td>
    <?php bb_forum_pad...etctera>
    </td>
    <td class="info">
    <?php forum_topics(); ?>
    </td>
    </tr>
    </table>

    <?php else( bla() ) : ?>

    <?php if ( bb_forums() ) : ?>
    <table class="etcetera">
    <tr>
    <td>
    <?php bb_forum_pad...etctera>
    </td>
    <td class="info">
    <?php forum_subforums(); ?>
    </td>
    </tr>
    </table>

    #78177

    Very impressive indeed :) if that equates to anything like that number of forums, that’s pretty amazing

    #78204
    gj-tje
    Member

    Okay, I’ve fixed it and it’s working at the moment! :)

    I forgot the settings in wp-admin/options.php for WordPress itself.

    #78586
    gerikg
    Member

    <?php bb_new_topic_link(); ?> the code to add new.

    The first one I know is in front-page.php

    you have

    <?php if ( $forums ) : ?>

    then the Latest Discussion

    then Forum

    <?php endif; // bb_forums() ?>

    Then Views

    and the part you’re missing

    <?php else : // $forums ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Add New Topic'); ?></div>

    <?php post_form(); endif; // $forums ?>

    #78585

    Hmm… as far as I can work out, (at least with pretty links on) a forum link redirects to forum.php which invokes post_form() towards the end of the page. That’s found in functions.bb-template.php (under bb-includes) and as well as running the respective pre/during/post actions, it loads the post-form.php template from the theme’s directory.

    Could you post your theme’s post-form.php here?

    #78319
    hopeful4info
    Member

    Hmmm, that’s interesting. I ftp’d the options-wordpress.php file down from the site and opened it in Dreamweaver. I recognize some of the comments in this as being from the “wordpress Integration settings as found in the Settings/Wordpress Integration tab of the Admin section of bbpress. This is where I set the “User Role Map”, WordPress Address (URL), Blog Address (URL), auth cookie salt, secure auth cookie salt, and logged in cookie salt.

    HOWEVER, when I look into the actual options-wordpress.php file (as ftp’d down from the site) and open it up, the php code still seems to be asking for those items??? I just copied a bit of the code from that file and pasted it below. Please advise,

    <table>

    <tr>

    <th><?php _e(‘WordPress’); ?></th>

    <td></td>

    <th><?php _e(‘bbPress’); ?></th>

    </tr>

    <tr>

    <td>AUTH_KEY</td>

    <td><=></td>

    <td>BB_AUTH_KEY</td>

    </tr>

    <tr>

    <td>SECURE_AUTH_KEY</td>

    <td><=></td>

    <td>BB_SECURE_AUTH_KEY</td>

    </tr>

    <tr>

    <td>LOGGED_IN_KEY</td>

    <td><=></td>

    <td>BB_LOGGED_IN_KEY</td>

    </tr>

    </table>

    #78202
    gerikg
    Member

    this is a shot in the dark but JesperA move the line

    define( 'SITECOOKIEPATH', '/' );

    BEFORE

    define('DB_NAME',

    #78627

    In reply to: highlight first post

    Put <?php if (get_post_position() == 1) { continue; } ?> after the foreach ($posts as $bb_post) line in topics.php to stop the first post appearing in the loop.

    To get the first post separately, you could use <?php $bb_post = bb_get_first_post(); bb_post_template(); ?> or <?php $bb_post = bb_get_first_post(); ?> and use the same functions as in post.php in your HTML.

    No idea on modifying the number of posts for the first page though :) probably a plugin for that

    #76949

    I didn’t get the idea of remote posting in a forum. Is there any client for forums which enables the conversation without a web browser?

    P.S. – I would love that :P

    #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.

Viewing 25 results - 23,776 through 23,800 (of 32,522 total)
Skip to toolbar