Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,451 through 27,475 (of 32,495 total)
  • Author
    Search Results
  • #3567
    jldean
    Member

    Hi

    I’m just trying to fix a plugin (Moderation Hold) so that it updates the ‘Last Poster’ field correctly when a post is approved.

    It currently uses this to set the poster id and name:

    $uid = $bb_post->poster_id;

    $uname = $bb_post->poster_name;

    But the user name doesn’t get returned. Is there a correct function for this?

    Thanks!

    #65591

    In reply to: color attribute

    chrishajer
    Participant

    I think you might have better luck at the TinyMCE forum. It’s not a bbPress problem, (unless it’s a filter stripping out the tags) but something TinyMCE is doing with your span tags.

    http://tinymce.moxiecode.com/punbb/

    I suspect though that it’s got to do with the rules for span elements. The XHTML ruleset allows style but I’m not sure why it strips out the color. Or, are you filtering this through something in bbPress that would strip that out? (in WordPress, I think kses handles that.) Can you post spans with a color style as administrator? How about the ‘admin can post anything’ plugin?

    https://bbpress.org/plugins/topic/admin-can-post-anything/

    If the admin can post the <span style="color: #ff0000;">, WYSIWYG or not, then it’s likely a filter in bbPress that is stripping that code out.

    #65599

    In reply to: www.thepoolparties.com

    bobbyh
    Member

    Nice work, Familia. :-)

    Obviously, it’s appropriate for you to post about your bbPress site in the Pimp My Press forum…

    #3559
    rickboyce
    Member

    I’ve written a WYSIWYG plugin for my BBPress install. It replaces the standard textarea with the TinyMCE WYSIWYG editor based on an option in the user profile.

    I’ve incorporated code from Michael D Adams’ ‘Allow Images’ plugin and extended it a little to include paragraph <p> tags and <span> tags.

    Everything is working fine, except for one issue that is driving me mad.

    When a span with color set in it’s style attribute set, the color: gets stripped out. For example <span style=”color: #ff0000;”> becomes <span style=””>.

    I can’t figure this out for the life of me! Other CSS attributes are fine, for example text-align:, background-color:, text-decoration: all work fine.

    I’ve tried the following two bits of code with no success:

    1. $tags = array(‘style’ => array());

    2. $tags = array(‘style’ => array(‘color’ => array()));

    Does anyone know if there is a way I can modify this behavior?

    This is my first attempt at a plugin, so apologies if I’m missing something obvious here!

    Thanks,

    Rick

    #65570

    In reply to: Database error

    vassago
    Member

    Yeah I thought of that, haven’t tried to unload all of the plugins yet, there needs to be a disable all like wp ;). I’ll try and post my results. Thanks for the help.

    #3560
    #3558
    Abdullah Arık
    Participant

    Is it possible to Delete a Post by It’s Owner?

    I added this to member capabilities, but it shows me it’s a bad idea :D ;

    ‘delete_posts => true,//+’

    How can I do?

    #3557
    vassago
    Member

    When trying to post I get this message:

    bbPress database error: [Unknown column ‘post_title’ in ‘field list’]

    UPDATE bb_posts SET post_title=’Testy mctest test’ WHERE post_id=’11

    I am using the wordpress database (different prefix for bb stuff) but there doesn’t seem to be a post_title column, here’s the output from mysql:

    mysql> describe bb_posts;

    +


    +


    +


    +


    +


    +


    +

    | Field | Type | Null | Key | Default | Extra |

    +


    +


    +


    +


    +


    +


    +

    | post_id | bigint(20) | NO | PRI | NULL | auto_increment |

    | forum_id | int(10) | NO | | 1 | |

    | topic_id | bigint(20) | NO | MUL | 1 | |

    | poster_id | int(10) | NO | MUL | 0 | |

    | post_text | text | NO | MUL | | |

    | post_time | datetime | NO | MUL | 0000-00-00 00:00:00 | |

    | poster_ip | varchar(15) | NO | | | |

    | post_status | tinyint(1) | NO | | 0 | |

    | post_position | bigint(20) | NO | | 0 | |

    +


    +


    +


    +


    +


    +


    +

    9 rows in set (0.00 sec)

    I have looked around, but can’t seem to find anything about it on here. The forum/topic actually shows up when I go back to the page, but this is rather inconvenient. Thanks to anyone willing to help out with this.

    WP version = 2.51

    MySQL version = Server version: 5.0.45-Debian_1ubuntu3.3-log Debian etch distribution

    bbPress version = latest (just got it 3 or 4 days ago) so 0.9.0.2

    Thanks,

    -Scott.

    #65547

    Jes’ bumpin’.

    Thanks!

    -Sherry

    #65559

    In reply to: Check out our new skin

    Null
    Member

    I like it, it’s something different then the normal reskinning jobs :)

    And screw IE6, it’s absolete anyway :P

    Will this theme be realeased for download anytime soon?

    #3554

    Topic: Check out our new skin

    in forum Themes
    esck
    Participant

    Hello my friend just finished our bbpress theme at iPhoneFan.com

    Please check it out as we are very proud of it :)

    http://iphonefan.com/foro/

    Unfortunately, it doesn’t work quite well on IE6 :(

    #3552
    wiseacre
    Member

    At first – I know the excellent _ck_ ‘s bbpress showcase. Good work, man! :)

    But should have bbpress.org/themes just like bbpress.org/plugins . After 1.0 RC may be.

    #3549
    dragosbogdan
    Member

    I’ve seen this issue posted on multiple threads, but I couldn’t find the solution in any of them. my issue is simple: I want to hide children forums and only display parent forums on the main page of my site. My theme uses the following code to display the forum list:

    <?php foreach ( $forums as $forum ) : ?>

    <tr<?php alt_class(‘forum’); ?>>

    <td>“><?php forum_name(); ?> — <small><?php forum_description(); ?></small></td>

    <td class=”num”><?php forum_topics(); ?></td>

    <td class=”num”><?php forum_posts(); ?></td>

    </tr>

    <?php endforeach; ?>

    What should I change?

    #3548

    In styling my page I messed up the PHP code apparently. When I log in, it does log me in. But the Log In fields just stay there instead of showing the admin|Admin|Logut links.

    Can someone please take a look and tell me what I did and how to fix it? Thanks! http://www.undercoverlawyer.com/forum/

    -Sherry

    #65544
    Christiaan
    Member

    Have you got the code at the top of your config file? That was the problem I ran into. I was able to use a relative path once I did that too. So the start of your config file should look something like this:

    <?php
    require_once('../wp-blog-header.php');

    #63120

    In reply to: Super Sticky Problem

    stumain
    Member

    Looking in the code, yes this is as intended.

    familiar
    Member

    I have been experiencing the following issue after moving my install from a staging server:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘bb_template_scripts’ was given in /home/tdsegvth/public_html/thepoolparties/bb-includes/wp-functions.php on line 586

    I have tried disabling all plug-ins, combing through the code to figure out what it could possibly be, and doing everything I can imaging to the database. The entire setup seems to be working perfectly aside from that error.

    Obviously the site can’t go live until this is fixed, so any suggestions would be appreciated.

    You can see the site here: http://thepoolparties.jellynyc.com/

    The version that isn’t experiencing the error is here: http://thepoolparties.wearefamiliar.com/

    Thanks for any help!

    #65527
    Christiaan
    Member

    Oh, I’ve just noticed this all written by the plugin!! Ha. I’ll remove it and see what happens.

    Edit: strange, I’ve deactivated the plugin and remove the code from the .htacess file, and the forum is accessible. But I was also expecting to start getting the 404 errors again, and I’m not.

    I expect I have not got to the end of this problem

    Edit 2: Indeed, my WP permalinks aren’t working now. This integration thing really is an up hill battle.

    #65526
    Christiaan
    Member

    Hi Chris, I’ve got access to access logs, if that would help.

    It appears to be .htaccess related. If I remove the .htaccess file from the WP directory my forum is accessible.

    I’ve forgotten the timeline of what I was working on now (can’t multitask very well!) but it’s possibly related to this plugin that I’ve installed to get rid of a 404 problem: https://bbpress.org/forums/topic/strange-redirections-and-404s-after-wp-integration

    Although when I deactivate this plugin it doesn’t make any difference. Here’s the htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^forum/topic /forum/topic.php [QSA,L]
    RewriteRule ^forum/forum /forum/forum.php [QSA,L]
    RewriteRule ^forum/tags /forum/tags.php [QSA,L]
    RewriteRule ^forum /forum/index.php [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    #3541
    Krystian
    Member

    Hi.

    First of all, thanks a ton for all the hard work that you guys have done making our live easier. I apologies if there is other discussion about this issue (I did a search and didn’t find an answer).

    I’m integrating my WordPress blog with BBpress forums and I would like to have the Latest Discussions list in the sidebar for all pages. I already put it in the blog with a WP pluging, now I’m trying to put it in the forum.

    I tried copy and paste the code from front-page.php to sidebar.php. It works fine when I’m in the front page, but disappears when I enter in a topic or other page.

    So, could you give me a clue, a code or a pluging I can use to have this done???

    Any help is appreciate. Thanks.

    Krystian at decnex.net

    #65251
    chrishajer
    Participant

    I tagged the thread modlook which means a moderator will look at it.

    #3539
    Christiaan
    Member

    I thought I’d jumped through all the hoops; I’ve managed to get everything integrated on the front end but when I go to access the forum admin section now I get a blank page.

    Since being able to access the forum admin section I’ve changed <?php bb_get_header(); ?> to <?php get_header(); ?> in the bbPress theme files, moved require_once('../wp-blog-header.php'); up to the top of my config file.

    If I remove require_once('../wp-blog-header.php'); from my config file I can access the admin section.

    Any ideas?

    #65250
    Christiaan
    Member

    Solved, my problem was I needed to change <?php bb_get_header(); ?> to <?php get_header(); ?> in the bbPress theme files, but I also needed to move require_once('../wp-blog-header.php'); up to the top of my config file.

    It would be useful if both these aspects were mentioned in the Functions section of https://bbpress.org/documentation/integration-with-wordpress/

    Who can I contact to suggest these changes to that page?

    #65249
    Christiaan
    Member

    Do I need to add some code to the bbPress theme to call the header maybe?

    #65451

    In reply to: Email bugs

    chrishajer
    Participant

    Interestingly, these headers are in this message:

    X-Assp-Re-Spamlover: Password
    X-Assp-Received-DNSBL: pass
    X-Assp-Whitelisted: Yes
    X-Assp-Tag: DNSBL
    X-Assp-Envelope-From: root@admin2.byetcluster.com

     

    Looks like the host is doing some outbound spam filtering?

Viewing 25 results - 27,451 through 27,475 (of 32,495 total)
Skip to toolbar