Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,151 through 20,175 (of 32,499 total)
  • Author
    Search Results
  • #90189

    nope, you are at 2535 only.

    its just showing whats inside the file and not what its exactly is.

    Trust SVN here, it doesn’t get wrong ;)

    itomi
    Member

    Hey there I had an integrated WP + BB website, then I installed also BuddyPress and used it for a while, everything integrated, using BB as forum engine for BP too.

    I then decided to get rid of BP and now I just want to go back to my initial configuration of WP + BB, using the same old DB that still contains BB forum posts.

    Everything is working and the user integration still works, but I have the damn “keymaster lost” problem: My admin user can’t access the BB Admin in any way.

    I’ve tried all the solutions proposed around here and on the internet, changed my capabilities on the DB to a:1:{s:9:”keymaster”;b:1;} etc.. no way.

    If I try to access the /bb-admin area it redirects me to the root.. and there’s no “admin” link near my profile name.

    My tables have different prefix:

    $bb_table_prefix = ‘wp_bb_’;

    I just have WP_USERMETA table as the integration is already done..

    What’s the meta key I have to set?!?

    I’ve tried “wp_capabilities”, “wp_bb_capabilities” and “bb_capabilities”, but no-way.. no admin access for my user.

    I’ve also tried to create new users and assign the keymaster.. same thing, no admin access.

    Maybe Buddypress changed something that I have to reset?

    Please help! :)

    #93267
    chrishajer
    Participant

    Thanks for the screenshots, those are perfect. There doesn’t seem to be anything weird with the .htaccess or permalinks settings, and it looks like you are accessing the proper directory.

    As the other thread mentioned, there were public HTML files in two locations on the server, and that poster had installed into a directory that was not being served, making it look like the files were not there.

    One thing that is probably unrelated – the forum files have loose permissions. The directories have 775 and they should be 755, and the files (php, css, js, images) should have 644, but they have [edit] 664. Should not matter, but some hosts won’t serve content when the permissions are too permissive.

    Please do a test. Put a html file in the WordPress root (where the forum directory is located) and see if you can access it at http://klinewedding.com/test.html. If that comes up, put another file in the forum directory, and see if you can access that at http://klinewedding.com/forum/test-2.html. That will ensure we are looking at the correct directories. The file can be as simple as this:

    <html><head><title>WordPress test</title></head><body><p>Test WordPress</p></body></html>

    Save that as test.html in the WordPress root. See if you can access it by URL. Then try the same in the forum directory.

    #93201
    mr_pelle
    Participant

    I’ve just found and fixed the bug in my plugin: I’ll upload a new version within minutes. =D

    #93197
    mr_pelle
    Participant

    Hi Ricardo!

    “Recent” users comments from bbPress Sitemap Generator plugin page say:

    This plugin does not work with bbpress 1.02

    Tried everything… Still didn’t work.

    This plugin horrible slows down the forum performance

    I cannot get this work

    This really needs an update!

    I strongly suggest you to use another sitemap generator plugin first; if you still will experience problems, please post here the list of the plugins you’re using and the bbPress version you’re on, and I’ll try to help. =)

    #92971

    In reply to: Absolute URL

    sureshdrim
    Participant

    Isn’t there any solution for above post ?

    I am using Nicer Permalinks which is creating problem with relative URL so I need to provide absolute URL.

    I have a anchor tag on topic page called “Start new Topic” with Relative URL values:

    anchorTag href=”forum.php?id=<?php forum_id()?>#postform” anchorTag

    Which won’t work properly with Permalinks.So I need to write same code using bb_uri() function so that it becomes absolute URL.

    Any idea please !!

    #93125
    zaerl
    Participant

    I have written a plugin that does what you want but isn’t released to the public.

    The code that follow deactivate all HTML tags. Keep in mind that it’s not tested at all.

    <?php
    /*
    Plugin Name: zaerl No HTML
    Plugin URI: http://www.zaerl.com
    Description: no HTML tags in posts
    Author: zaerl
    Author URI: http://www.zaerl.com
    Version: 0.1
    */

    function za_nh_allow_tag($tags)
    {
    return array();
    }

    function za_nh_initialize()
    {
    add_filter('bb_allowed_tags', 'za_nh_allow_tag');
    }

    add_action('bb_init', 'za_nh_initialize');

    ?>

    If you are interested contact me.

    #88150
    DKB
    Participant

    I have solved it now: the BBcode Lite plugin was interferring. Had to deactivate it.

    #35184
    Syrehn
    Member

    I recently installed bbpress and completed deep integration using the:

    bbpress integration 1.0 wordpress plugin and the zaerl wordpress 3 fix plugn.

    everything appears to be running ok,

    when i’m in the admin panel on the dashboard screen, it’s posting the following errors at the top:

    Warning: Division by zero in /support/bb-includes/functions.bb-statistics.php on line 214

    Warning: Division by zero in /support/bb-includes/functions.bb-statistics.php on line 194

    Warning: Division by zero in /support/bb-includes/functions.bb-statistics.php on line 174

    Warning: Division by zero in /support/bb-includes/functions.bb-statistics.php on line 244

    i’m not sure what caused this, and i’m not sure how to get rid of it or if it’s even affecting anything?

    anyone seen this before or have any ideas?

    #92817

    In reply to: Automatic in Textbox

    zaerl
    Participant

    There’s no need for a <br /> cause you can specify a margin-bottom:1em; in the CSS.

    .post p { margin-bottom:1em; }

    #35075
    Vasbinder
    Member

    I don’t know if I’m missing something. This seems to be important yet I cannot find anything about this subject in any forum about bbPress.

    When you press Enter twice in a reply in this forum, it brings you down to start a new paragraph. I’m assuming it also automatically adds a <br> tag in the post. My forums, however, do not do this.

    http://raremob.com/forums/

    How do I make it so when there is a gap between paragraphs on my forum replies that it automatically adds the <br> tag? Currently, I have to manually edit everyone’s posts who make any sort of separations between paragraphs by typing this tag in between them. I know it has nothing to do with my plugins because it was having the same problem from the start.

    #35174

    Hello.

    I’m using _ck_’s plugin for showing unread posts, but I’m trying to attach an icon for the status as well.

    I have the two pictures that I want (last_login.png and unread_posts.png) in a folder called “icons” inside the folder of the plugin.

    I’m highlighting the new forums with posts and the unread posts since last login here:

    $unread_posts['indicate_forums']=true;
    $unread_posts['indicate_last_login']=true;

    I’m also using the entire row class instead of the title cell, since without this option I cannot get the forum to show the new posts at all.

    $unread_posts['use_row_class']=true;

    Here is my attempt to attach the pictures:

    $unread_posts['style']=".unread_posts {color:#FF0000; padding-left: 20px; background: url(".$unread_posts['icons']."unread_posts.png) 1px 0px no-repeat;}"
    .".unread_login {color:#FF4500; padding-left: 20px; background: url(".$unread_posts['icons']."last_login.png) 1px 0px no-repeat;}"
    .".unread_posts_row a {color:#FF0000; padding-left: 20px; background: url(".$unread_posts['icons']."unread_posts.png) 1px 0px no-repeat;}"
    .".unread_login_row a {color:#FF4500; padding-left: 20px; background: url(".$unread_posts['icons']."last_login.png) 1px 0px no-repeat;}";

    I’ve also posted here, on _ck_’s forum, but I haven’t received a reply yet.

    Any help greatly appreciated.

    Regards,

    Bob

    #90693

    In reply to: WP-Forum

    #49994
    phillcross
    Member
    915     function phpbb_username($id) {
    916 global $phpbb_tables;
    917 $sql = "SELECT username FROM " . $phpbb_tables['users'] . " WHERE user_id=$id";
    918 $result = mysql_query($sql);
    919 if ($row = mysql_fetch_object($result)){
    920 return $row->username;
    921 } else {
    922 return false;
    923 }
    924 }

    What am I missing??

    #49992
    phillcross
    Member

    I read through all this here are my errors:

    1.Connected to the phpBB database host
    2.Selected the phpBB database
    3.Exporting forums...
    4.Exporting users...
    5.Exporting user metadata...

    Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/singer/public_html/phpbb2bbpress.php on line 920

    6.Exporting topics...

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 33030274 bytes) in /home/singer/public_html/phpbb2bbpress.php on line 373

    How do I increase my allowed memory? That should resolve # 6

    What supplied argument is invalid??

    I appreciate the assistance.

    #92253
    minervaa
    Participant

    You are s superstar CK ! It’s workig perfctly now :)

    I have gone through every single line of my forum.php and your code, didn’t find anything (perhaps I missed something) then I just replaced them as you advised. Now they are working :)

    Thanks a million!

    #92252
    _ck_
    Participant

    It’s possible the template for the forum page has a bug or missing code, I vaguely remembering one of my themes having this problem in an old copy.

    You are using “the-hybrid” theme?

    Does your forum.php template look like this?

    http://pastebin.com/raw.php?i=CLpMG0UF

    (if not replace it)

    #55409
    minervaa
    Participant

    I had the same problem with pretty permalink.

    Background:

    Main site = http://www.site.com

    Blog = http://www.site.com/blog (WP 2.8)

    Forum = http://www.site.com/forum (bbPress 0.9.06)

    I installed the blog few weeks ago and didn’t touch apart of posting a “hello world”. Wp gave me a message on that time to enter this on root htaccess –

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /blog/

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /blog/index.php [L]

    </IfModule>

    I must mention that the htaccess had already

    Options +FollowSymLinks

    RewriteEngine on

    Then I installed the forum today. After activating the name based permalink it gave me 404 message. I deleted the “+FollowSymLinks” from the htaccess and put –

    Options +Multiviews

    It worked fine for few hours but it started showing 404 again. After going through various posts in here I decided not to change the Multiviews as my hosting already mod_rewrite enabled.

    I made another htaccess just for the forum,which look like this –

    Options +FollowSymLinks

    RewriteEngine on

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /forum/

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /forum/index.php [L]

    </IfModule>

    The pretty permalink is working at the moment. Hopefully it will be working in future too.

    #90224
    chrishajer
    Participant

    It is not on the development road map. bbPress is on its way to becoming a plugin for WordPress and will therefore rely on whatever database technology is used by WordPress.

    You can read more about the database choices for WordPress here:

    https://codex.wordpress.org/Using_Alternative_Databases

    #34563
    majidazimi
    Member

    Hi guys.

    I want to add postgreSQL support for bbpress. But i don’t know php. The only thing that i can do is to provide a sql script containing postgreSQL table configuration.

    is it possible to add postgreSQL support or it is not in your developing road map?

    if yes which file contains table configuration in source code? i have searched but i didn’t find.

    #34423
    matthewkris
    Member

    Hello,

    I’m looking to tack bbPress onto one of my non-WordPress sites. The site was hand coded in php and is a very basic static site. I’d like to use the bbPress login throughout the entire site to enable commenting and a few other social features.

    Are there any resources out there that have to do with integration on a non-WordPress site? I’m just looking for a place to start.

    Thanks!

    #93068

    In reply to: Irony?

    Rich Pedley
    Member

    I adapted an older plugin for use on punBB/fluxBB. Those forums have a report function, I made it so that after x reports the post got automatically hidden until reviewed by a moderator.

    I’ll probably write a similar plugin for the bbPress plugin when it is released, as I have found it particularly useful along with the other restrictions that it also included:

    – ability to limit new posts to x characters

    – ability to limit new posters to x links

    and a a few other things. Admittedly it wouldn’t have helped with the recent spam, for that I blame akismet ;)

    #93000

    In reply to: Cannot access bb-admin

    Anonymous User 6443559
    Inactive

    I fixed it. I proceeded to do more digging following the link from chrishajer then following more links, followed by a google search. THis is what I eneded up doing.

    I tired so many things idk if it was just one of the things or the combination of both of these that fixed it.

    But first I went to https://api.wordpress.org/secret-key/1.1/salt/ and got new keys for wordpress, I replaced all the old code in wp-config with the ones this script generated. Next I went to bb-config and copied these keys there, overwriting what was previously specified. I then added “BB_” to the begining of the name of what I was defining.

    Next I added

    define( ‘COOKIEPATH’, ‘/’ );

    to both wp-config and bb-config.

    #92999

    In reply to: Cannot access bb-admin

    try bbpress integration plugin on WordPress side. It will tell you to add some lines in your wp-config.php, do so and see if that resolves it.

    #35141
    scotnery
    Member

    ….I really tried to look for documentation and plugins for this, but no luck. could you guys help me out with some code to do this?

    PROBLEM: I want to show the forums with the 4 most recent topics in each on the front page

    like this….

    forum 1

    – forum 1 topic 1 — willie — jan 12th

    – forum 1 topic 2 — bob — jan 4th

    – forum 1 topic 3 — sue — jan 2nd

    – forum 1 topic 4 — matt — jan 1st

    forum 2

    – forum 2 topic 1 — paul — feb 10th

    – forum 2 topic 2 — mike — feb 9th

    – forum 2 topic 3 — rob — jan 20th

    – forum 2 topic 4 — hank — jan 5th

    NOT SOLUTION: i tried writing this code, but it shows the most recent topics over all

    
    

    <?php if ( bb_forums() ) : ?>
    <!-- <h2><?php _e('Forums'); ?></h2> //-->
    <table id="forumlist">
    <?php while ( bb_forum() ) : ?>
    <tr class="titletext titlebar">
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php if ( $topics ) : ?>
    <tr>
    <td colspan="3">
    <table class="small">
    <?php
    $i = 0;
    foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <!-- <td class="num"><?php bb_topic_voices(); ?></td> -->
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><a>"><?php topic_time(); ?></a></td>
    </tr>
    <?php
    $i++;
    if($i>4) break;
    endforeach;?>
    </table>
    <?php endif; ?>
    <?php endwhile; ?>

    it displays….

    forum 1

    – forum 1 topic 1 — willie — jan 12th

    – forum 1 topic 2 — bob — jan 4th

    – forum 1 topic 3 — sue — jan 2nd

    – forum 1 topic 4 — matt — jan 1st

    forum 2

    – forum 1 topic 1 — willie — jan 12th

    – forum 1 topic 2 — bob — jan 4th

    – forum 1 topic 3 — sue — jan 2nd

    – forum 1 topic 4 — matt — jan 1st

    Thank you in advance for any help. Even pointing me to template tags reference point!

Viewing 25 results - 20,151 through 20,175 (of 32,499 total)
Skip to toolbar