Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,076 through 20,100 (of 32,499 total)
  • Author
    Search Results
  • #35307
    KentonMr
    Member

    One the search page:

    The dropdownlist of forums does not remember the last ‘selected’ forum_id

    In the code ln943 of class.bb_query.php

    Code:
    $r .= “tt<div>” . bb_get_forum_dropdown(array(‘selected’ => $q_forum_id, ‘none’ => __(‘Any’), ‘id’ => ‘forum-id’)) . “</div>n”;

    the forum_dropdown function is called with (‘selected’ => $q_forum_id) as one of the args however $q_forum_id never seems to have a value at this point.

    Perhaps this is true for the first call to the search page (ie. when using the search box) but not on subsequent calls using the search form when the forum_id may have been selected.

    Is this a bug or is it deliberate?

    NB: by hard coding the (‘selected’ => 2) the page performs as expected – but obviously that is no better than the present state.

    So I deduce that $q_forum_id is not being set !

    NB: I have tried $q but that too has no value!

    Any help appreciated

    #92124
    dovoto
    Member

    Having similar issues…

    Symptoms:

    1) Blank forum page if i navigate to http://www.drunkencoders.com/forums/

    2) Forum loads if i http://www.drunkencoders.com/forums/index.php

    3) Blank page if i follow any of the forum title links

    I did however have a wordpress page called “forums” at one point (since deleted) which would have also resolved to this location…possible issue?

    I am using bb-config to load wp-load.php on startup per the suggestions (seems to work as indicated by direct navigation to index.php).

    I am using the wp functions to load header and footer info (this also works as i get my wp site blog wrapped properly around my otherwise plain bbpress install if i navigate directly to index.php)

    Any suggestions or thoughts?

    #93576
    jdblundell
    Member

    Sure. Nothing is showing…

    Here’s the code from post.php

    <br />
    <li id="post-2"><br />
    <div id="position-1"><br />
    <div class="threadauthor"> </p>
    <p> <p><br />
    <strong><a href="http://www.travismamone.net"&rt;Travis_Mamone</a&rt;</strong><br />
    <small><a href="http://somethingbeautifulpodcast.com/forum/profile.php?id=5"&rt;Administrator</a&rt;</small> </p>
    <p> <p></p> </p>
    <p><small><div class="post_socialize_wrap"></div></small><br />
    </p><br />
    </div><br />
    <div class="threadpost"><br />
    <div class="post"><p>Anybody you'd like to hear interviewed on Something Beautiful? Speak now!<br />
    </p></div><br />
    <div class="poststuff">Posted 20 hours ago <a href="#post-2"&rt;#</a&rt; <a href="http://somethingbeautifulpodcast.com/forum/bb-admin/posts.php?poster_ip=69.2.182.113"&rt;69.2.182.113</a&rt;<br />
    <a href="http://somethingbeautifulpodcast.com/forum/edit.php?id=2"&rt;Edit</a&rt;<br />
    <a href="http://somethingbeautifulpodcast.com/forum/bb-admin/delete-post.php?id=2&status=1&_wp_http_referer=%2Fforum%2Ftopic.php%3Fid%3D2&_wpnonce=06dca23c66"&rt;Delete</a&rt;<br />
    <a href="http://somethingbeautifulpodcast.com/forum/bb-admin/delete-post.php?id=2&status=0&view=all&_wp_http_referer=%2Fforum%2Ftopic.php%3Fid%3D2&_wpnonce=06dca23c66"&rt;Undelete</a&rt;<br />
    <a href="http://somethingbeautifulpodcast.com/forum/bb-admin/delete-post.php?id=2&status=2&_wpnonce=06dca23c66"&rt;Spam</a&rt;<br />
    <a href="#post_content"&rt;Quota</a&rt;</div><br />
    </div><br />
    </div>

    #93574
    jdblundell
    Member

    I’m new to bbPress and I’m having the hardest time figuring out how to enable/display gravatars on my site.

    I’ve tried:

    if ( $avatar = bb_get_avatar( bb_get_current_user_info( ‘id’ ), 80 ) ) {

    echo $avatar;

    unset( $avatar ); }

    With the PHP tags on the start and end. I’ve added the code on the profile.php file of my template as well as on the post.php file and nothing is showing.

    Do I need to do an img src as well?

    #93705
    _ck_
    Participant

    Ah, yes all secondary attributes unfortunately have to be disallowed now via bbcode-lite because of the security issue. It’s a quick fix with that side effect.

    The trade-off of bbcode-lite is speed, so for security things have to be disallowed instead of trying to parse for all options which would slow things down.

    HTML tags are saved when a post is made and then they are done, so it’s fast. But bbcode has to be parsed each and every time a page is displayed, so speed is important.

    I guess an advanced feature for a future version would be to convert the bbcode into permanently saved html after the user’s time to edit has passed (ie. an hour). But that kind of sophistication will have to wait.

    #93754
    zaerl
    Participant

    It’s in the folder of your theme.

    bb-templates/kakumei/register-success.php for kakumei

    my-templates/your-theme/register-success.php for others

    #93704
    RedBull
    Member

    Thanks _ck_,

    I just went back and used the:

    <img src=”http://mydomain.com/pic.jpg&#8221; alt=”Pic1″ />

    As this is allowed through bbcode-lite.

    Appreciate the response,

    RedBull

    #93703
    _ck_
    Participant

    @RedBull, if you were previously using the option to enable images via bbcode-lite, make sure you uncomment the first line that enables them again (by re-installing the plugin as default you’ve disabled them).

    #93702
    RedBull
    Member

    I did the upgrade, but now the pics aren’t showing. Its just shows the complete file name with pic.jpg.

    #35294

    Topic: Login op Forum

    in forum Plugins
    Visulla
    Member

    I am looking for a plugin (or code) to make a login to the page so only the persons who have this login can see the forum..? like a “Registration to the bbpress folder”. I tried some folder-registrations but then bbpress does not work at all.

    Thankx for any tips.

    #93149
    minervaa
    Participant

    @Michaelia

    You need to copy paste those code in a text file then rename it as .php.After that it will become a plugin and you can opload it on your plugin folder.

    If you want, you can download the same file from this link. I put some extra information (i.e. description, url etc) on the plugin.

    http://www.mediafire.com/file/kx0ir4p71tmalpz/Zaerl-no-html.php

    #93698
    Rich Pedley
    Member

    done, thanks ;)

    #85066
    Taeo
    Member

    Well I wrote one fairly large plugin to handle the image uploading and added a few template functions to then display them. I also made a few modifications of existing plugins to achieve the views and rating functionality. My original post echoes most of this in more detail.

    Aside from some small modifications to the profile page code (why isn’t there a template for this?!) all of the additional functionality has been achieved through plugins and theme code. I wrote most of the functionality into a plugin I am called bb-gallery. I am also using ajaxed-quote (detective), bb-ratings (mdawaffe), bb-topic-views (wittmania, _ck_), my-views (_ck_), and front-page-topics (_ck_, mdawaffe).

    #34551
    Jeremy
    Member

    I’m trying to show the latest topics across the entire board in a sidebar. I foolishly tried creating a standard loop (if ($topics) : foreach ($topics as $topic) : ?>), but of course if you’re on a forum you only see topics within that forum, not across the entire board. I can’t puzzle out how to make the right query. Should I use bb_query? $bbdb_get_results()? Something else?

    Thanks.

    #93611
    _ck_
    Participant

    Of course it will be good to have content caching added, I already commented on how plugins can do that and bbPress never got content caching because it was being re-invented every couple of years. The reality is now it’s a moot point, bbPress 0.9 and 1.0-1.1 will never have it internally. I doubt 1.2/2.0 will ever either, they will simply rely on WP plugins to do page caching.

    But I’m also saying the effects of content caching will be less visible if the test was more realistic to how forums are really used.

    Apachebench is not complete enough and not real-world enough.

    The problem is it’s going to take a week or two of coding to write something better and I can’t imagine someone doing that unless they were serious and skilled enough to do it.

    I could write a plugin that defeats apachebench entirely, it’s very easy. AB does not load any content on the page, no images, no scripts. So basically all I have to do is send it one hard coded script tag, nothing else on the page, and the script loads the page. Then bbPress would rank as fast as an empty static html/php page.

    That’s an extreme unrealistic example but it’s part of what I am saying. A real world test would load the page like a browser does, it would accept and return cookies so a user couple be logged in, and it would post new content between reads.

    Writing a test like that is hard work, so I am not surprised that just using AB is the fallback.

    You want bbPress to be cached? It can already do that, deep integrate with WP and then use wp-super-cache (or similar).

    But then the page generation time is hidden in the first page render, let’s say it takes 800ms or more. Each next page will only take 20ms or less to serve. But Apachebench is “dumb” and doesn’t know that, it can only show best/worst and averages.

    What if SMF or one of the others take 2 seconds for the first render on a new login and then 20ms for each successive? That 2 seconds is important if the content/user is constantly changing. What if a forum generates a list of topics the same for everyone but then uses javascript to change the list after the fact by using extra queries outside of the original page render? Apachebench cannot “catch” any of those scenarios or show their performance.

    #93610
    rafio
    Member

    Hey Everyone!

    I am tracking opinions on bb-bench.com on internet from my curiosity (I am NOT associated with that initiative in any way).

    I find this thread interesting in negative way. Hovewer responses on those results are not suprise to me. Every dev unsatissfied with results attacks test itself ignoring bad solutions (or lack of countersolutions) in his code.

    You say “test is bad because we dont implement cache while others do”. That indeed has its effect on BBPress results hovewer as end-user I am interested in performace. Caching algorithms are necessary if you aim your software for bigger communities.

    Ofcourse you can say “hey, if load is too big, you can always switch to more powerful hosting plan”. Thats true, however whats heaper for user? Change hosting solution or community software for faster one?

    What I am especially disgusted with is how you claimed other solutions use full-page cache, while none of them does. Lying about other software to make your one appear “more fair” is really cheap shot.

    If your code lacks features like caching, you implement those, dont argue over how cache is bad and gives others unfair advantage in tests. How hard it is to implement basic cache mechanism to code? Implementing it will make software better.

    #93697
    _ck_
    Participant

    Given this is my second most popular plugin, I’d like to make this sticky for 24 hours or more – if the other mods will please tolerate because of the severity.

    #35276
    _ck_
    Participant

    All BBcode-lite users should upgrade to 1.0.5 IMMEDIATELY

    (regardless if you allow images or not)

    http://bbpress.org/plugins/topic/bbcode-lite/

    http://plugins-svn.bbpress.org/bbcode-lite/trunk/

    This is an important security update.

    #93691
    _ck_
    Participant

    Okay here’s the reality.

    Basically bbPress doesn’t run it’s tag filter on post_text when the text is finally displayed, because it would be too slow.

    Instead it only checks tags during saving time and filters then.

    If an item is not a tag AT SAVE TIME it won’t get checked.

    That is how this is slipping through, because bbcode are not html tags.

    I have a quick, dirty fix.

    Basically anything that gets stuck INSIDE a tag ie. [HERE] = < HERE > is no longer allowed to contain spaces, single quote or double quote. Stuff [blah]HERE[/blah] = <blah>HERE</blah> is okay.

    Preventing spaces alone, in theory, should be enough. Even url or entity encoding won’t get properly parsed. It will simply display as plain text and then you can see who is posting what instead of hidden stuff.

    The only good news is that this problem in theory should not allow admin cookies to be stolen since the last version of 0.9 and 1.x already use HttpOnly cookies which cannot be read by javascript.

    The downside of the quick-fix is that secondary attributes are no longer possible until I come up with another way. Example of secondary would be alt or title etc.

    Many thanks for reporting this Tom!

    #93690
    _ck_
    Participant

    Double frack, it’s not just IMG.

    Working hard on a fix.

    All BBcode-lite users should upgrade to 1.0.5 IMMEDIATELY

    (regardless if you allow images or not)

    https://bbpress.org/plugins/topic/bbcode-lite/

    https://plugins-svn.bbpress.org/bbcode-lite/trunk/

    #93689
    _ck_
    Participant

    Oh frack, it’s bbcode-lite.

    I run through post-text so the bbpress parser never fires.

    Fortunately img is disabled by default but I bet people turn it on.

    Working on a fix.

    #93686
    zaerl
    Participant

    I cannot reproduce the bug. The plugin is well written:

    $tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array());

    only src, title and alt attributes are allowed. Can you share a pastebin link with the exact rogue text?

    #93738

    In reply to: Categories

    Dakcenturi
    Member

    Ah, thanks! The theme I was modifying didn’t have that bb-category code in it. Copying and pasting it over fixed the problem!

    #93737

    In reply to: Categories

    chrishajer
    Participant

    There is a class of bb-category applied to categories. You can style that however you want. In style.css, this is already present:

    tr.bb-category td {
    background-color: #ddd;
    }

    Just do whatever you want there.

    #93684

    By default, bbPress does not allow using the img tag, it needs a plugin for this functionality. Of course, the given attributes style and any kind of JavaScript handler is highly unwanted, but it is a weakness in the plugin’s code, which has to be patched asap.

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