Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,001 through 27,025 (of 32,481 total)
  • Author
    Search Results
  • #66995
    jarrettb
    Member

    I take all that babble back……it turns out it is Hidden Forums 0.0.2 by _ck_ ……….i turned it on again, and it did it again……once i turned it off, the stuff hit the fan again.

    so something in that code isnt jiving with my new admins

    #3892
    lstelie
    Member

    Hello,

    I updated my test install with svn and get

    Warning: Missing argument 1 for __construct() in /foo/bar/bbpress/bb-includes/backpress/class.bp-roles.php on line 11

    and trying to post a messages issues :

    Warning: Cannot modify header information - headers already sent by (output started at /foo/bar/bbpress/bb-includes/backpress/class.bp-roles.php:11) in /foo/bar/bbpress/bb-includes/pluggable.php on line 213

    #65576
    brad_langdon
    Member

    I may have put the code in the wrong place…where exactly did you put it and in which file.

    Did you replace old code or just add this to it?

    Sorry I am not exactly an expert with this kind of stuff.

    #3891
    meitershaker
    Member

    Hi,

    with the mod, we have a simply CODE balise, but i would like to modify like this: http://pastebin.com/f7c45ff6d

    how to do that?

    meitershaker
    Member

    Hi everybody,

    i use the bbcode-lite plugin by ck, and i want to add a <h1> in the list !

    So, i have this:

    $simple = array('b' => 'strong','i' => 'em','u' => 'u','center'=>'center','quote' => 'blockquote','strike' => 'strike','s' => 'strike','list' => 'ul','code' => 'code','h1' => 'h1');

    but i have a br space after in the post: how to remove this? I think is the same thing that for li list

    http://plugins-dev.bbpress.org/changeset?old_path=bbcode-lite%2Ftrunk%2FBBcode-lite.php&old=1000&new_path=bbcode-lite%2Ftrunk%2FBBcode-lite.php&new=1311

    thanks

    bye!

    #53645
    nsireland
    Member

    Thanks! Haven’t found anything, but I’ll do a lot more searching, thanks for the link! =)

    #67208
    nsireland
    Member

    Thanks so much for the tag code!

    Is there a way to change the number of ‘Latest Discussions’ without changing the number of shown topics in the forums?

    #53644
    chrishajer
    Participant

    The last I heard was that import/export was going to be a Google Summer of Code project, but I can’t find any updates there:

    http://www.google.com/cse?cx=015986126177484454297%3Apfmwlvdl42y&cof=FORID%3A0&q=bbpress&sa=Search

    #67207
    chrishajer
    Participant

    I was thinking when I read the subject line that this would be criticism of the amount of change between versions and the amount of work required to update the plugins for each new release. It took WordPress a while to get to their “automated notification” for plugins. Maybe it will take a while for something like that for bbPress.

    1. Number of tags: in your template file, where the tags are displayed, there is a call to bb_tag_heat_map – that accepts parameters, the last of which is the number of tags to return. Put whatever you want in there. The first two parameters are font min and font max size, and the next parameter is what measure to use for the font sizes.

    <?php bb_tag_heat_map( 9, 38, 'pt', 80 ); ?>

     

    That’s 9pts minimum, 38pts maximum, return the top 80 tags

    2. No suggestions for you there. Not sure I understand the concern.

    3. This can be done in your template files as well.

    #65575
    _ck_
    Participant

    You tried the second method and it does that?

    It works for me, just tested it on 0.9

    function delete_own_post($retvalue, $capability, $args) {
    if ($capability=="delete_post") {return bb_current_user_can( 'edit_post', $args[1]);}
    return $retvalue;
    }
    add_filter('bb_current_user_can', 'delete_own_post',10,3);

    .

    Note that the delete ability times out with the edit ability (1 hour in default install).

    #65574
    brad_langdon
    Member

    I also have the problem of members not being able to delete their posts.

    I tried the above code, the delete button appears now but when clicked it says you do not have permission to delete.

    I am not even sure if I put it in the right place though.

    Does anyone have a tested method of making this work???

    #65334
    raginpit
    Member

    where do I find the css control for the right site menu, Im wanting to widen it out a bit to fit my template and cant seem to find the dimensions in any of the css files.

    I have tried so far in a search & find: basic-profile-info, widget basic-profile-info, profile-data and secondary widgets.

    which file is it and which code?

    Nice theme by the way : )

    #67203

    In reply to: language pack problem

    aiitee
    Member

    thanks man, its fixed! :D

    #67202

    In reply to: language pack problem

    chrishajer
    Participant

    Did you modify bb-config.php to use that language file? Once the file is installed, you need to put in the config to use it:

    Near the bottom of bb-config.php – you need something like this:

    define('BB_LANG', 'es_ES');

    #66793
    fel64
    Member

    h4 is a block element and as such it should not be enclosed in a <p> anyway.

    How are you adding the paragraph tags? That could be a source of trouble for your plugin.

    #67201

    In reply to: Private Message Popup

    chrishajer
    Participant

    You don’t need to use a function: you could add the functionality you want just by hacking the plugin. You can always refactor later to move some things into functions.

    Start simple. Find the place where the message is displayed to the user. Then, add some html there to display an image. Make sure you upload the image, then make sure you get the path to the image correct. I think that would be pretty simple.

    I thought there was a “newmail.png” already included though? I don’t use the PM plugin, but if that icon is present, where is it displayed? If it’s not on the page you want, I would use the same method they use to display it, just on a different page.

    Although the title of this topic is “Private Messaging Popup” you’re not looking to create a javascript popup when the user logs in that they have a PM, are you?

    You could also contact the plugin author:

    http://faq.rayd.org/bbpress_private_message/

    From that page:

    Visible representation of when a message hasn't been seen (in your inbox and sent box)

    #54924
    chrishajer
    Participant

    I think you left off the trailing “[space] dot” that indicates “put it in the current directory” or path. From the svn help:

    If PATH is omitted, the basename of the URL will be
    used as the destination.

     

    That means it creates “trunk” for you, which you don’t want.

    Just delete the trunk directory and cd into the forum directory again, and run this whole thing:

    svn co http://svn.automattic.com/bbpress/trunk/ .

    There is a / then a [space] then a period at the end there. That will put it into the current directory with no trunk directory being created.

    #3884

    Topic: Private Message Popup

    in forum Plugins
    brad_langdon
    Member

    Does anyone know how to modify the code of the private messages plugin so that an image is inserted when a message is received.

    I was thinking of an image popping up next to the text where it says you have a new message like an envelope icon or something.

    I am guessing you would add some kind of function but I don’t quite know how.

    #67194
    geekymom
    Member

    Good questions! This is an initial install, so there’s nothing previous there. When I click the admin link, it reloads the front page. I can click on a forum or post and it takes me to the right page. The permalinks appear to be numeric. I haven’t made any changes at all. I am using the default theme, no plugins. It’s a pretty virgin install. :)

    #67162
    jbbrwcky
    Member

    That did it! Thanks very much :)

    #66315
    lstelie
    Member

    Hello,

    I would be highly interested if your plug in works with 1.0 alpha and >.

    BBcode and other ways are great for tech-savy people, but for a basic customer website, wysiwyg editor like tinyMCE is far simpler, natural and so on..

    #64520
    shoggy
    Member

    I tried greenhome’s solution and it almost worked. Thanks! :-)

    However I got some minor errors, especially with links like http://domain.tld/forums/topic/test?replies=3#post-17 or http://domain.tld/forums/profile/username/favorites?fav=0&topic_id=1&_wpnonce=10a4ad44b8

    Here is a workaround :

    In /etc/lighttpd/bbpress-rewrite.conf, I have :

    url.rewrite-once += (

    # /forum/FORUM-NAME

    "^" + bbpressdir + "forum/([^/]+)/page/([0-9]+)/?$" => bbpressdir + "forum.php?id=$1&page=$2",

    "^" + bbpressdir + "forum/([^/]+)/?$" => bbpressdir + "forum.php?id=$1",

    # /topic/TOPIC-NAME

    "^" + bbpressdir + "topic/([^/?]+)(?(.*))?$" => bbpressdir + "topic.php?id=$1&$3",

    "^" + bbpressdir + "topic/([^/]+)/page/([0-9]+)(?(.*))?/?$" => bbpressdir + "topic.php?id=$1&page=$2&$4",

    # /tags/TAG-NAME

    "^" + bbpressdir + "tags/([^/]+)/page/([0-9]+)/?$" => bbpressdir + "tags.php?tag=$1&page=$2",

    "^" + bbpressdir + "tags/([^/]+)/?$" => bbpressdir + "tags.php?tag=$1",

    "^" + bbpressdir + "tags/?$" => bbpressdir + "tags.php",

    # /profile/PROFILE-NAME

    "^" + bbpressdir + "profile/([^/]+)/([^/]+)/page/([0-9]+)/?$" => bbpressdir + "profile.php?id=$1&tab=$2&page=$3",

    "^" + bbpressdir + "profile/([^/]+)/page/([0-9]+)/?$" => bbpressdir + "profile.php?id=$1&page=$2",

    "^" + bbpressdir + "profile/([^/]+)/([^/?]+)(?(.*))?/?$" => bbpressdir + "profile.php?id=$1&tab=$2&$4",

    #"^" + bbpressdir + "profile/([^/]+)/([^/]+)/?$" => bbpressdir + "profile.php?id=$1&tab=$2",

    "^" + bbpressdir + "profile/([^/?]+)(?(.*))?$" => bbpressdir + "profile.php?id=$1&$3",

    # /view/VIEW-NAME

    "^" + bbpressdir + "view/([^/]+)/page/([0-9]+)/?$" => bbpressdir + "view.php?view=$1&page=$2",

    "^" + bbpressdir + "view/([^/]+)/?$" => bbpressdir + "view.php?view=$1",

    "^" + bbpressdir + "rss/?$" => bbpressdir + "rss.php",

    # /rss/FEED-NAME

    "^" + bbpressdir + "rss/forum/([^/]+)/?$" => bbpressdir + "rss.php?forum=$1",

    "^" + bbpressdir + "rss/topic/([^/]+)/?$" => bbpressdir + "rss.php?topic=$1",

    "^" + bbpressdir + "rss/tags/([^/]+)/?$" => bbpressdir + "rss.php?tag=$1",

    "^" + bbpressdir + "rss/profile/([^/]+)/?$" => bbpressdir + "rss.php?profile=$1"

    )

    Finally, I just add this configuration for each vhost using bbpress :

    $HTTP["host"] =~ "domain.tld" {

    var.bbpressdir = "/forums/"

    include "bbpress-rewrite.conf"

    }

    Hope this helps!

    #3876
    ramym
    Member

    Hello,

    I like the Latest Discussions on the frontpage, to have a quick look of the active topics, but I’d like to limit it to max. 5 topics.

    Is there a way to do this? I tried several plugins found on the internet/this website, but none of them works.

    Is there a way by changing the code? If yes, in which file should I look?

    Btw, what is the default amount of ‘Latest Discussions’ on the frontpage?

    Thanks.

    #3780
    csseur3
    Member

    Hey, i try to add my own bbcode with http://bbpress.org/plugins/topic/93

    In BBcode-lite.php, i do that:

    $simple = array('t' => 'h4','b' => 'strong', (etc)

    but in my page, the source say that:

    <p></p><h4>Quel statut?</h4>

    so, the normal code must be:

    <p><h4>Quel statut?</h4>
    </p>

    no?

    why the formatting is not correct?

    Bye

    #58007
    chrishajer
    Participant

    It’s OK to start a new topic for a new problem.

    To change the language, you need to make a change to the bb-config.php file, and you need to install the language files. There is an Arabic language file shared here:

    check out this very nice R-t-L Arabic bbPress

    To install a language file, the instructions are right in that area of bb-config.php:

    // Change this to localize bbPress.  A corresponding MO file for the
    // chosen language must be installed to bb-includes/languages.
    // For example, install de.mo to bb-includes/languages and set BB_LANG to 'de'
    // to enable German language support.
    define('BB_LANG', '');

     

    You put the file (downloaded from Google Code) into the `bb-includes/languages/ directory. Then enter the name of the file here in between the single quotes for the BB_LANG constant. For Arabic, I think the file is ar_AR.mo, so your config line would be:

    define('BB_LANG', 'ar_AR.mo');

    There are more files available at that code.google.com site for an Arabic bbPress. It’s actually very nice that someone shared all their work. Looks like there is a localized version of bbPress there as well, possibly with more items translated that were not translatable with a language file.

Viewing 25 results - 27,001 through 27,025 (of 32,481 total)
Skip to toolbar