Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 22,376 through 22,400 (of 32,481 total)
  • Author
    Search Results
  • #83494
    chrishajer
    Participant

    You could also have the plugin auto-load by putting an underscore in front of the plugin file name. So, if this plugin file is named:

    social-it.php

    rename it to:

    _social-it.php

    ^ and see if it works. If it does not, just delete the file and load the forums again.

    #32702
    Jiyong
    Member

    Hi,

    Just one question : how customized the “menu class=”login”

    for this structure :


    <h2>Bienvenue</h2>

    • <img src="" alt="useravatar">

    • admin



    • Profil

    • Modifier

    • Favoris


  • Admin

  • Déconnexion

  • Messages Privés


  • Thanks and happy news year :)

    #83395
    tonicarr
    Member

    Thanks! I an now following him on twitter and will keep my ears open for any news. In the meantime, back to bbPress. =)

    #83501
    COGBones
    Member

    Thanks for the help Ben.

    I am new to all this, please could you tell me exactly where to run that code?

    #83512

    In reply to: Deprecated???

    Ben L.
    Member

    Somewhere around line 25 of bb-load.php there should be a line that starts with error_reporting(. Change it to error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);

    (This has been fixed in the development version, but I don’t suggest using it on a live site)

    #82850
    Milan Dinić
    Participant

    Instead of loading zlib via .htaccess, you should use Apache’s built-in module mod_deflate because it is better for server’s performance. By using code below, you will compress all textual content from your site (html, css, javascript, rss). Simply remove type you don’t want to compress from list and it won’t compress after that. Note that you shouldn’t add any more types because other file types can’t be compressed this way.

    Just copy/paste this code in your .htaccess file in root of web site. You can use this on ANY kind of website, no matter if it is powered by bbPress or not. Just watch-out that some script you use doesn’t already compress some type, because it will than double compress which will be worse than using uncompressed type.

    Also note that on some bad configured servers this can make additional load on servers so be careful (this applies to zlib comrpession too).

    <IfModule mod_deflate.c>

    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/x-javascript application/x-httpd-php application/rss+xml application/atom_xml

    </IfModule>

    You can test your site before and after with tools like WebPagetest (just click on images on result’s page for detailed information) and Web Page Analyzer. And share your results here.

    what do you think about hosting ga.js locally and keeping it up to date?

    You shouldn’t store popular JavaScript files (like from Google Analytics, AdSense, StatCounter etc) on your server because they are probably in visitors’ cache so he will not even load that files while visiting your site.

    This is because most sites nowadays use Google Analytics and when man without that file in cache visits page that use it, that file is saved in it’s cache for seven days (because Google gives information to browser in file’s HTTP headers) and it is not loaded again until it expires from cache.

    #32699
    Milan Dinić
    Participant

    Here are some questions related to translation of bbPress.

    Is there any other word for “bozo” that is more common, because I don’t know how to translate this? In 0.9 branch I left this untranslated, but now I want to do complete translation.

    What are “voices”? This is introduced in 1.0 branch.

    What is “View” in this strings: %1$s » View: %2$s and <abbr title="Really Simple Syndication">RSS</abbr> feed for this view?

    There is sting “Halting installation!” used in error log on install/upgrade. Does install/upgrade stop at that moment or what happens (I’m not sure how to translate it)?

    In file bb-includes/functions.bb-core.php, there are strings REQUEST_URI and PATH_INFO. Should we translate this or leave it (because it is mistakenly wrapped in __() function?

    Thanks in advance

    #83500
    Ben L.
    Member

    You set WordPress Administrator to bbPress Administrator instead of bbPress Key Master.

    Run this on your database: DELETE FROM bb_meta WHERE meta_key='wp_table_prefix'

    That should allow you to log in with your bbPress account and fix the setting.

    #83393
    tonicarr
    Member

    Hi Chris,

    Thanks for jumping in, are you / twitter link telling me that BuddyPress is now available for WordPress single? Would I just download the latest version of BuddyPress even if it is MU? Is this it? https://wordpress.org/extend/plugins/buddypress/

    Thanks for clarifying _ck_ is a female. =) So am I!

    Toni

    #32697
    myershenry
    Member

    I’d like to add the Add to Any code to a single forum post and I’m not sure which of the many php files to add it to. Code is here – from the WP plugin page:

    <?php echo '<ul class="addtoany_list">';
    if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') )
    ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "

    <li>", "html_wrap_close" => "</li>
    ") );
    if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') )
    ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "

    <li>", "html_wrap_close" => "</li>
    ") );
    echo ''; ?>

    Wary of adding it anywhere because I just tried a BBpress sitemap plugin that broke the forums. Thanks for the help.

    #32696
    Jeremy G
    Member

    Hi community,

    Happy new year everybody :)

    Just installed bbPress 1.0.2 to complete a WordPress 2.9 installation. I’m trying to add custom themes, as indicated in all tutorials i could find. This is what i did :

    – created a my-templates directory at the root of the forum (same level than b-templates)

    – uploaded the custom themes into this directory – themes coming from several repository on the Web, none that i did myself.

    Then I cannot see any of my themes on the “appearance” tab in the admin. I tried to upload raw zip files or extracted directory but nothing is detected.

    Any help is greatly appreciated !

    Thanks,

    Jeremy

    #83415
    Ben L.
    Member

    Open up BBcode-buttons.js and change the occurrences of “load” on lines 2 and 3 to “DOMContentLoaded”. That should make the BBcode buttons toolbar load without waiting for all of the images on the page to load first.

    #82883
    Michael
    Participant

    Ths SVN is the repository where all the plugins are stored. It is completely safe to use it. :)

    #32685
    citizenkeith
    Participant

    I’m running 0.9.0.6 and I’m using _ck_’s bbpress signatures and BBcode Buttons Toolbar plugins.

    Some of my users have images in their signatures… they are “top 10” charts from last.fm. The charts are loaded directly from the last.fm website. Unfortunately, the signatures load before the rest of the page is finished. So you have to wait for last.fm to load before the bbCode toolbar.

    Is there a way for bbPress to load bbpress signatures last, or at least after the toolbar?

    #82881
    Michael
    Participant

    They are both the same. :)

    #83388
    Michael
    Participant

    I see. :) I haven’t searched for any Subscribe to topic plugins, so I don’t know of any good ones. Matt will be releasing that built-in with version 1.1 – so I’m not sure how long you can wait.

    These are the plugins I am currently using: http://www.inniosoft.co.cc/Plugins.png

    Some of them do not work, and one of them is mine (General Statistics), which at the moment, shows the newest users.

    If you don’t mind, may I have the link to your forum? I’d like to have a look at it. :)

    Peace, Michael

    edwinfoo
    Member

    I’ve had this experience as well on 0.9.0.2

    Checked the option to move the topics into another forum but they were ALL deleted :(

    #82021

    In reply to: New Theme For BBPress

    chandersbs
    Member

    The theme is totally bad ass :)

    DKB
    Participant

    @Johnhiler: Ah i get it, change $bb_attachments['role']['download']="participate"" to $bb_attachments['role']['download']="read"

    #82849
    Michael
    Participant

    Just goes to show that I need to learn more PHP. Thanks for this, Chris. Quite handy. :)

    #82848
    chrishajer
    Participant

    You could also create a phpinfo file and access it from your browser:

    <?php
    phpinfo();
    ?>

    Save that in a file called info.php (or whatever you want) and then access it through your browser:

    http://www.example.com/info.php

    In there you will have your PHP version and also if compression is enabled.

    #32690
    ootes
    Member

    Inside my loop in front-page.php i want a custom class

    like:

    <tr class="bb-precedes-sibling bb-follows-sibling bb-child ????"><br />
    <td><div class="nest"><a href="http://www.example.com/forum/example">Example</a><br /><small> Examples of examples</small></div></td><br />
    <td class="num">99</td><br />
    <td class="num">1029</td></p>
    <p></tr>

    on the place of the questionmarks i would like to have a category id as a class.

    so i can customise each category in css

    can someone help me out?

    #59304

    In reply to: Custom fields

    cliff1976
    Member

    Note, for anyone poking around in here looking for documentation (wouldn’t that be great?): bb_post.php as an action has been replaced by bb-post.php — that one had been biting me in sensitive places for a little while now.

    johnhiler
    Member

    I just lost 12k posts from my forum, and wanted to report what happened here in the bbPress forum! I was able to restore the posts thank goodness, but it was a chilling experience.

    Here’s the scoop: I’ve always had great success with using the “delete forum” feature before… I would choose the option to enable “moving topics from this forum into [another forum]”, and it always worked great. But recently, I suffered massive data loss while using this feature (on the 0.9.x branch).

    I deleted a forum and chose to move its topics into another forum… the forum was successfully deleted, but so was every single topic in the forum! I was able to restore the data from a backup, but still I wouldn’t wish that experience on anyone.

    It took a while before a friend was able to audit the source code and create a hypothesis around what had happened. The preliminary analysis indicates that the “delete forum and move topics into another forum” routine ordinarily first moves the topics, and then deletes the topics and forum. But if the “move topics” algorithm times out before it can be completed, then the topic data appears to still be deleted even though the move wasn’t successful.

    In other words, even though I asked bbPress to move the topics out of the forum before deleting the forum… bbPress appeared to fail to move the topics and then actually deleted the entire forum and all the topics still in it!

    WHOA… scary stuff! If this bug really does exist, it could put a lot of bbPress data at risk.

    This may only be an issue on slower servers or larger forums (this bbPress install has around 600k posts)… basically it appears that the bug only pops up if the “move topics” query times out.

    Two thoughts here:

    1) Can any developers out there audit the “delete topic” code and report back on worst case situations: i.e. what might happen if you choose to delete a forum and move the topics, but the “move topics” query times out?

    2) In the meantime, until the existence of a bug is confirmed or not… I strongly suggest that you refrain from using the “delete forum” feature! Or if you must, make sure to have a fresh backup and also to doublecheck your topics immediate afterward deleting the forum to make sure your topics are all in the new forum!!

    #83386
    Michael
    Participant

    I am very glad it worked. :) Now I can finally see what your forum looks like. :)

    If you need any help with customizing, don’t hesitate to ask.

    I don’t want to be a show-off, but you might want to have a look at my forum to get some rough ideas – such as the way my table columns are structured etc.

    Another thing to keep in mind: The ‘Add New’ link on the Latest Discussions table is not so much a great thing. If you like at the one on my forum, you’ll see that I have changed it to ‘RSS Feed’. I did this because people where simply adding a new topic from that link, and not choosing the correct child-forum for it to live in. So, now people have to navigate to their forum to create a new post.

    Quite a nice thing to have – especially considering your forum doesn’t show only categories like mine does.

    All the best

    Michael

Viewing 25 results - 22,376 through 22,400 (of 32,481 total)
Skip to toolbar