Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 22,351 through 22,375 (of 32,468 total)
  • Author
    Search Results
  • #83503
    COGBones
    Member

    Thanks that has fixed it. :)

    #82659

    In reply to: Forum List Alterations

    Michael
    Participant

    Okey dokey – we have something going here. Thanks very much – wouldn’t have been able to do it without you. :)

    Now, there’s one last thing that needs a work-around. If you go to my forum (http://www.inniosoft.co.cc/devstation) and scroll to the Support Forum, there are meant to be forums as far as 2 sub-forums deep. The structure is this:

    Support Forum

    – Software Developemnt *1

    — Child-Forum

    -Website Development *1

    — Child-Forum

    Is there any way to put each *1 on a new line? I’m sure it’s easily done by checking $depth – but I don’t want to play too much in case.

    PS: The styles and what not will be changed later – I know it looks a little scrappy now..

    #82658

    In reply to: Forum List Alterations

    <?php if ( bb_forums() ) : ?>
    <h2><?php _e('Categories'); ?></h2>
    <table id="forumlist" cellspacing="0">
    <tr>
    <th><?php _e('Title'); ?></th>
    <!--<th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>-->
    </tr>
    <?php
    while ( $depth = bb_forum() ) :
    if ($depth === 1 ) :
    if ($depth < $prev_depth) :
    ?>

    </td>
    </tr>
    <?php endif; ?>
    <tr<?php ( bb_get_forum_is_category() ? bb_forum_class('bb-category') : bb_forum_class() ) ?>>
    <td colspan="3">
    <big><a href="<?php forum_link(); ?>"><b><?php forum_name(); ?></b></a></big><?php forum_description( array( 'before' => '<br/><small>', 'after' => '</small>' ) ); ?>

    <?php else :
    if ( $prev_depth == 1 ) : ?>
    <br />
    <?php
    else :
    ?>, <?php
    endif;
    ?><a href="<?php forum_link(); ?>" title="<?php forum_description( array( 'before' => '', 'after' => '' ) ); ?>"><?php forum_name(); ?></a><?php
    endif;
    $prev_depth = $depth;
    endwhile; ?>

    </td>
    </tr>
    </table>
    <?php endif; // bb_forums() ?>

    #83533
    Michael
    Participant

    Welcome :)

    I see – well it looks really great. I only wish I could do something like that… I probably could, but I’ve never played around with it.

    #32719
    hoppie
    Member

    Backed up everything.

    Saved my bb-config.php (but did not need to re-install this, right?).

    Saved my my-plugins dir.

    Disabled all plugins.

    Changed from 0.9 to 1.0 using a symlink reset.

    Was asked to enter several config options, such as database name. Did it all.

    Installer claims that db was available etc. and declares the job done.

    New Forum 1.0 appears, I can login using previous credentials.

    Postings seem intact.

    However, clicking on “Admin” makes the browser go briefly to bb-admin and then back to the home page.

    Clue: after login, the browser claims:

    The requested URL /pub/pub/ was not found on this server.

    My Forums live in /pub and this was also offered by the installer as default. The /pub symlinks to the 1.0 dir. Manually going there works.

    Jeroen

    #83531
    Michael
    Participant

    I’m quite impressed with what you’ve done here, Gautam. :)

    I think you’ve done a very creative job with the topic page, though I must admit it is quite intense on the eyes (only if all the posts in that topic are short).

    Otherwise, nice job. :)

    #82657

    In reply to: Forum List Alterations

    Michael
    Participant

    Kawasuo: Thanks – I’m glad you can help. :) The link below is the code I have for the forum list on the front page. I simply commented out anything that is not a category.

    http://pastie.org/765956 (page) or http://pastie.org/765956.txt (Raw Text)

    Thanks again :)

    Peace, Michael

    #82656

    In reply to: Forum List Alterations

    @Michael888: In response to your question in the other topic, I can almost certainly show you how to do that, but it’s a bit hard to explain without having the code for your bb_forums() list loop

    #83134

    Sure.

    Some example output

    <ul>
    <li class="forum_subforum"><a href="http://www.foo.bar/forums/forum/ideas-comments" title="">Ideas & Comments</a>
    <ul>
    <li class="forum_cat"><a href="http://www.foo.bar/forums/forum/questions" title="">Questions</a>
    <ul>
    <li class="forum_subforum"><a href="http://www.foo.bar/forums/forum/metsoc" title="">Meetings / Socials</a></li>
    </ul>
    </li>
    </ul>
    </li>
    <li class="forum_subforum"><a href="http://www.foo.bar/forums/forum/tips-amp-tricks" title="">Tips & Tricks</a>
    <ul>
    <li class="forum_subforum"><a href="http://www.foo.bar/forums/forum/gigs" title="Music, bands, all that...">Gigs</a>
    <ul>
    <li class="forum_cat"><a href="http://www.foo.bar/forums/forum/everything-else" title="">Everything else</a></li>
    </ul>
    </li>
    <li class="forum_subforum"><a href="http://www.foo.bar/forums/forum/sports" title="">Sports</a></li>
    <li class="forum_subforum"><a href="http://www.foo.bar/forums/forum/minutes" title="">Minutes</a></li>
    </ul>
    </li>
    </ul>

    In a sidebar, styled with CSS: http://img27.imageshack.us/img27/385/capturecr.png

    #83133
    Michael
    Participant

    Could you show us an example of how this works?

    #32641

    I figure someone might find this useful, as it took me a while to do properly. The following is some code I’m using to create a bullet point (<ul>) list of forums which nests sub-forums nicely, in my case for a sidebar.

    <?php if ( bb_forums() ) :
    while ( $depth = bb_forum() ) :
    if( $depth > $last_depth ) : ?>

    <?php echo str_repeat(" ",$depth) ?><ul>
    <?php else : ?></li>
    <?php while( $depth < $last_depth ) :
    echo str_repeat(" ",$depth+1) ?></ul>
    <?php echo str_repeat(" ",$depth) ?></li>
    <?php $last_depth--;
    endwhile;
    endif;
    if (bb_get_forum_is_category()) :
    echo str_repeat(" ",$depth) ?><li class="forum_cat"><a href="<?php forum_link() ?>" title="<?php forum_description(array('before'=>'','after'=>'')) ?>"><?php forum_name() ?></a><?php
    else :
    echo str_repeat(" ",$depth+1) ?><li class="forum_subforum"><a href="<?php forum_link() ?>" title="<?php forum_description(array('before'=>'','after'=>'')) ?>"><?php forum_name() ?></a><?php
    endif;
    $last_depth = $depth;
    endwhile ?></li>
    </ul>
    </li>
    </ul>
    <?php endif; // bb_forums() ?>

    It should give you reasonably clean indenting of HTML too and is XHTML 1.0 valid. Take out the str_repeat() calls if you don’t care about tidy code.

    #83190
    Michael
    Participant

    Thanks very much for that – will give it a try the minute I have my top-level domain. :)

    #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. :)

Viewing 25 results - 22,351 through 22,375 (of 32,468 total)
Skip to toolbar