Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,801 through 29,825 (of 32,499 total)
  • Author
    Search Results
  • #57831
    howtogeek
    Member

    I should mention that my code is a horrible hack… hopefully they’ll fix the problem in the core.

    #58858
    _ck_
    Participant

    Well with wordpress, the override is right in the code but obviously to leave the bbpress core alone it would have to be a plugin. (Kinda wondering what all these plugins are doing to the supposedly high performance of BBpress).

    I’d like to see admin/mods have zero limits on what they put into their posts. So to write a plugin I need to find out how to check the user level, then figure out what filter to attach it to (probably pre_post)

    #57830
    _ck_
    Participant

    Wow this is a very serious issue – I couldn’t figure out why half my members could not log into the forum! Thought it was a cookie issue, but it was the space!

    I suggest this be moved to the integration section and highly recommend to everyone trying to merge BB with WP. I would never have spotted this if it had not been bumped by signpost (who’s code did not solve it unfortunately, I had to use the plugin)

    #56707

    In reply to: Plugin: Avatar Upload

    _ck_
    Participant

    I found visitors were getting really hassled by the filename restrictions so I decided to relax them while still keeping some safety since you already check mime types & file extensions

    instead of:

    !eregi("^([-a-z0-9_]+).([a-z]+)$", $img_name)

    I reduced it to only exclude the four bad characters I can think of:

    eregi("#|?|&|%", $img_name)

    What do you think? Safe enough?

    Is your mime check from the physical file itself or just the sent headers? Hopefully the physical file or it’s not secure enough.

    My change allows people to click browse and enter a url into their file browser, which forces Windows to pull down the file first, then upload it to the site. Not sure what other OS’s will do. Windows adds [1] to the filename in the temp area, so your name filter was blocking it from uploading.

    My next ideas are to give lazy people a section of default avatars to choose from instead, and to allow members several stored avatars to chose from (your table should allow multiple entries per member I think, though the code to deal with it will have to be changed of course).

    #57829
    signpostmarv
    Member

    I came across the same problem on a combined wp/bbpress setup.

    twas a simple case of changing line 1079, template-functions.php

    $r = bb_get_option('uri') . "profile/" . $user->$column . ( 1 < $page ? "/page/$page" : '' ); to $r = bb_get_option('uri') . "profile/" . urlencode($user->$column) . ( 1 < $page ? "/page/$page" : '' );

    #58878
    _ck_
    Participant

    Yay! I figured out how to hack it to make it happen.

    To leave the core files alone, I did it through a plugin.

    The balancetags in bbpress takes less parameters than from WP.

    function force_balance_tags($text) { return balanceTags($text, true);}

    add_filter('pre_post', 'force_balance_tags');

    Tested working.

    Another nice addition in there would be to add nofollow to any post links.

    add_filter('pre_post', 'bb_rel_nofollow');

    #58877
    _ck_
    Participant

    AHA!

    I found a bug. Finally I can contribute.

    WordPress does indeed auto-close tags and has a fantastic routine, the balancetags I mentioned above.

    HOWEVER

    it was copied raw into BBpress and it won’t work by default because it’s looking for an option that will never be set because BBpress doesn’t have it

    function balanceTags($text, $is_comment = 0, $force = false) {

    if ( !$force && get_option(‘use_balanceTags’) == 0 )

    return $text;

    See what I mean? There’s no manually way to set use_balanceTags in BBpress.

    So how do we force the filter on? I know it has to be balanceTags ($text,1,1) to work.

    #58854

    Awesome! Works perfectly, thank you :)

    #58880

    Ok so it won’t type out the code the way I want to here. I did the backsticks thing… But I know someone out there will be able to help me out anyway :)

    #58848
    Trent Adams
    Member

    It is defined in style.css through the following:

    /* Profile Page
    =================================== */

    #profile-menu {
    list-style: none;
    position: absolute;
    right: 0;
    }

    #profile-menu li {
    font-size: 1.1em;
    background-color: #eee;
    padding: 4px 7px;
    display: inline;
    border-top: 3px double #9e9e9e;
    position: relative;
    top: -10px;
    }

    #profile-menu li.current {
    background-color: #ddd;
    border-top: 1px solid #9e9e9e;
    }

    My guess would be that you have to change the position from absolute to a margin call, but maybe someone else can give you some more hints. I am a trial and error CSS changing kind of guy….. ;)

    Trent

    #2063

    I’m calling the wp-headers in forum as advised in seamless integration thread. I need to add a link to the forum profile in the header as users get confused when they only see the admin tab for wordpress. I have the loginanywhere script, and need a link to the users profile edit somewhere in this code:

    `echo “<div class=’greeting’>nHej, “; echo $user_identity; echo “! Inställningar | “;

    echo “Logga utn</div>n”;`

    My forum is here: http://www.doublepeace.se/forum/

    #2062
    _ck_
    Participant

    I’ve got sloppy members not closing their tags and the markup runs through the rest of the page. Doesn’t WP already do auto close on tags? Did bbpress not pick up that part of the code?

    #58870
    M
    Member

    Found the problem, it is indeed a plugin issue (Allow Images), but deactivating the plugin had no effect for some reason and I only saw it when I worked on my test forum and did a fresh install of the plugin. The plugin still works to display images, you just can’t display code.

    Will pop over and give the plugin author a heads up.

    M
    Member

    After trying to add code between backticks, all I’m left with is something like this:

    `

    m

    `

    Instead of:

    <img src="http://www.yourimghosthere.com/yourimage.gif" />

    Deactivating plugins didn’t fix it, and nothing else has changed other than the upgrade. Is anyone else running into this?

    Edit: okay, at least now I know it works on the bbPress forums. I’ve no clue where to look to fix this, can anyone toss out an idea or two?

    ‘code’ works, so long as I don’t include the brackets around the code I’m trying to show.

    #2055
    _ck_
    Participant

    You may notice that the table row highlighting doesn’t work in IE (at least in IE 6.0 which many people use)

    I found this easy, drop-in solution to use IE’s HTC support

    http://www.xs4all.nl/~peterned/csshover.html

    save this file into your template folder

    http://www.xs4all.nl/~peterned/htc/csshover.htc

    then add this to your stylesheet

    body {behavior:url("/path-to-your-template/csshover.htc");}

    optionally but recommended, you might also want to add this to your .htaccess in apache since it probably won’t serve the right mime type for HTC by default which breaks XP sp2

    AddType text/x-component .htc

    Now :hover can work on almost anything in IE just like real CSS browsers.

    #58853
    _ck_
    Participant

    Ah I’ve now learned this is from the moderation plugin which apparently is moderating ALL posts even though it’s set not to :(

    #58080

    In reply to: bbSync

    starrett
    Member

    fel, everything seems to be working great except that when I use <?php bbrepliestext(); ?> I get this error message: “Fatal error: Call to undefined function: get_topic() in /path_to/wp/wp-content/plugins/bbsync/bbsync.php on line 495”

    Any suggestions?

    retrospec
    Member

    Hello,

    After installing the software successfully, all database tables were created ok but when I clicked on the link to login it repeatedly told me the forum software wasn’t installed. On checking I noticed two bizarre things:

    1. Although the placeholder topic had been created and other tables populated, the forum table had no entries, it was empty, i.e. it had not created the first forum detailed in the installation to match the topic that was there. Creating a temporary entry with the id of the successfully created made the forum work, but then…

    2. When I logged in as the user I created during the installation there was no admin option so I check the user meta table and it was down as ‘member’ and not ‘key master’.

    I am using the latest bbPress (downloaded this morning), running php 5.2.3 and mysql 5.0.41. Both are near enough out of the box installations and working fully (the only change to mysql was to set password in legacy mode).

    Please help as I can’t do anything!

    btw, one other minor question completely unrelated. Why when I look at people’s code listed in forums or hyperlinks, is it chopping off the entry at the end of the line and not wrapping? I’m using firefox, haven’t checked against IE.

    #49620

    In reply to: Emoticons For bbPress?

    _ck_
    Participant

    I’ve now made a smilie plugin here:

    https://bbpress.org/plugins/topic/bb-smilies

    By the way, WordPress’s default smilie detection code and therefore the code converted here in the earlier post are very flawed when it comes to whitespace issues.

    I created a patch awhile back that made it work 99% of the time regardless of spaces before, after or at the end/beginning of a sentence.

    add this function:

    function prepSmilies($string) {return "/(s|^)".quotemeta(trim($string))."(s|$)/";}

    then add this near the start of function convert_smilies:

    $prep_search = array_map('prepSmilies', $wp_smiliessearch);

    then change the $contenst=str_replace line near the end of function covert_smilies:

    $content = preg_replace($prep_search, $wp_smiliesreplace, $content);

    Now if only it was this easy to tweak wp/bb’s search function to be so much more intelligent.

    #2011
    chaoticmess
    Member

    I edited the Karma Fruit theme for wordpress a bit to match the Bbpress theme. They dont look totally alike. There are some slight differences but I think when you look at it you think

    of the Bbpress theme. I loved the Bbpress theme so much I wanted my WordPress to look the same :) . If you want the file changes let me know. Its just a few lines of css to make the difference in the original look for Karma Fruit.

    http://chaoticmess.sittingonair.com/ < — Karma Fruit Theme

    http://chaoticmess.sittingonair.com/forum/ <—- Bbpress Green Theme

    MJ

    #57686

    In reply to: Tags not separating

    thierryyyyyyy
    Participant

    I also have a idea why *every* user put tags space separated.

    I my theme, there is a sentence just before the tag text field that tells users to put spaces …:

    <label for="tags-input"><?php printf(__('Enter a few words (called <a href="%s">tags</a>) separated by spaces to help someone find your topic:'), get_tag_page_link()) ?>

    And I think that in the original kakumei…

    and my translation (in french) also ask user for space separated tags.

    to, you can have a “social” bug-fix of this problem : change the cited line in your theme (file = post-form.php). That “social engineering” !

    #56706

    In reply to: Plugin: Avatar Upload

    beaver6813
    Member

    Hey there, i’ve just installed Avatar Upload and it works brilliantly i must say! However identicon for bb-press as posted by louisedade (created by fel) gives me an unexpected error when i try to activate, running this outside of the plugin centre or whatever you want to call it, it gives:

    Fatal error: Call to undefined function: add_action() in /home/bblocked/public_html/www/forums/my-plugins/identicon.php on line 286

    Inside the plugin centre it just says fatal error :-P

    I have identicon installed on my wordpress blog and bbpress retrieves all functions from wordpress etc etc intergrated bla bla bla :-P Any ideas?

    EDIT: When editing out add_action at the bottom it doesn’t produce any errors… so i don’t know what bbpress’s problem is :-/ anyway of getting it to give more info? “Fatal Error” doesn’t explain much lol

    #58807

    In reply to: Paypal Donate Plugin?

    Trent Adams
    Member

    No plugins made yet, but it would depend on what the paypal code has in it to tell whether it would be stripped out or not. As well, since each user has their own paypal code (generated by paypal), it would seem impossible for a plugin to keep track of it.

    Best bet would be to try and paste the paypal donate code in a post and see if it works. IF not, we might be able to get a plugin to allow it.

    Trent

    #58838
    Trent Adams
    Member

    There is a plugin here called ‘bbPress Post’ that integrates your wordpress blog comments into your bbPress forum as topics for posts. Fel64 also ‘redid’ this plugin and has it so the posts are created in the bbPress forum from the wordpress blog and all comments are in the forum, but also show up in the wordpress post as comments as well.

    Other software blog programs, I haven’t heard of any. Moving over to WordPress is a good option in my mind if you haven’t looked at it already since bbPress and WP are made and developed by many of the same people ;)

    Trent

Viewing 25 results - 29,801 through 29,825 (of 32,499 total)
Skip to toolbar