Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 22,601 through 22,625 (of 32,468 total)
  • Author
    Search Results
  • #32527
    Casemon
    Member

    Have searched all over this forum for solutions to these, but none of the suggestions worked for me.

    Have installed bbpress along side a WP installation under a sub folder. Added Options -MultiViews to .htaccess.

    Results:

    1) Cannot access the admin page… have tried logging out & flushing cookies, but clicking Admin always gives me a white blank page. No plugins installed, and perms are all 755.

    2) Logging into WP site doesn’t log into blog & vice versa. Have added the cookie info to the config and they match the wp config. If it matters, there was no security salt reported on my system (for some reason) but installer said that was ok to leave it blank so I did.

    Anyone want to tackle this? Can _feel_ the power of bbpress, but these basic issues make it a PITA! :O

    #55984

    In reply to: Show off your Forum !!

    Michael
    Participant

    I completely agree with you on that. There would be no point in putting effort into making a stable plugin for a version of bbPress that will soon be out of date.

    I’d really love to see the developments of this. :) Wish you luck with it :)

    #82357
    sockmoney
    Member

    I am also a fan of keeping bbPress as its own software entity. However, I would not care if it was available as a plugin to WP by default, but could be installed stand alone as well.

    It just might be a little more difficult to market it as a forum in the mainstream if it is hidden away as a plugin with an optional checkbox to just install as a forum and not a blog. Just my 2 cents on that.

    Oh, and not a big fan of TinyMCE myself. But I’m old school. I think the masses generally like crap like that… ;-) Making it optional would of course be the way to go.

    #55983

    In reply to: Show off your Forum !!

    Taeo
    Member

    @Michael888

    Thanks! I will definitely share once I am done.

    I am not so sure about releasing it as a stable plugin. Alot of what I have done is very specific to the goal I am trying to accomplish! Not to mention I haven’t really made an effort to make it play nice as a plugin (table needs to be created manually, queries have hardcoded table names, etc).

    If the 1.1 revival of BBPress goes through and my site does well I may consider it. Regardless I would release it as is to anyone who wanted to tinker with it.

    #82354
    Gautam
    Member

    Read the whole IRC chat…

    I would like to just suggest upon some of the major topics:

    1. bbPress.org redesign would get a lot benefit (which is in process), it could/would get more attention to the community, the new theme which Sam was working on was looking more user friendly and gave a Web 2.0 feel – I think it should also include Themes Repo, as bbShowcase is down, the list compiled by ck is no more – I tried to check the cache but couldn’t get it
    2. bbPress should contain major admin-side part. I want to discuss some below:

      • Auto-update feature as in WP (for plugins and bbPress – also themes in future, if a repo is created) – This would help people stay updated
      • Ability to edit Plugins & Themes
      • User & Topics management should be improved, like selecting multiple users and deleting them
      • Some more small things can be added like ability to edit which HTML tags are allowed

    3. Coming to the integration part, I think bbPress has to be a standalone forum, as TalkPress runs on bbPress and similar services by the users can be created in the future (eg. there are many phpBB forum hosts), similar things can be created with bbPress too (live example is TalkPress, but it is paid). The only thing I can think of is a 2 sided plugin (WP part and bb part), which should take care of all the issues like database access, cookies, settings etc. Now the only issue left is of themes, and if it is needed, then the bbPress theme structure must be re-worked upon or revamped (I know, it is a difficult job) to be compatible with WordPress themes.
    4. The sidebar should be only in one file (and dynamic), should support widgets like WP – theme compatibility issue would make it do that.
    5. At the end, when everything’s done, codex should be there. This would encourage people to build bbPress plugins. Stats & compatiblity section (as on wp.org could be added in the near future). An IDE style coding would also help (to create phpdocs).

    These are some of my views, some are very difficult to achieve but once they are done, everything would be like butter and users would always come to this forum with positive replies!

    Also note that the functionality provided by the plugins need *not* be integrated into bbPress core, the plugins can be handled by their own respective authors – and could need more frequent updates than the bbPress core part. The thing I want to say is, if a plugin needs update then the author can flag a new version, but if the same thing (which is not needed by all) was integrated into bbPress and the update would have been critical (update in that part only), then a new version of bbPress had to be flagged, which shouldn’t be the case. Also new features & enhancements to that part (which can be as plugin) cannot be added frequently.

    #82436

    No, it is not bad. It’s just that if you want to output a result and there is already a function in place doing just that, why not use it? Basically total_users is doing the same as echo get_total_users.

    For what it matters, it is less code :)

    #82434
    bb-lover
    Member

    @matveb

    Thanks both are working……….

    <?php echo get_total_users(); ?>

    and

    <?php total_users(); ?>

    but i don’t know why i should not use echo…. is it bad for me?

    tell me about pros and cons of echo… thanks :-)

    #82433

    Actually, one amend: you should use <?php total_users(); ?> which is meant for output and you get rid of the echo.

    Glad it worked.

    #82432
    bb-lover
    Member

    @ matveb

    I got it ……..Thanks dear… you code is simple and smart :-)

    #82431

    That function is already on core, you just have to include it:

    <?php include_once("bb-includes/functions.bb-statistics.php"); ?>

    And then call it:

    <?php echo get_total_users(); ?>

    #82430
    bb-lover
    Member

    Its not working……………. topix and posts are displaying but not users……….. i want to clear that i’ve integrated my bbpress and wordpress…that’s why the users table of both software s are same in one database i.e. wp_users

    also i want to mention here……..I’ve set the table prefix of bbpress bb_ into uk_ because of multiple bbpress installations.

    so that’s my detail…and i’m going curious to listen abt new script from your side. :-)

    #82428
    fundomaat
    Member

    I’m just trying this and I get the follow error:

    We have registered members. Welcome to our newest members: Unable to fetch newest members(s). An error occured within the database.
    Our members have made a total of 0 posts in 0 topics.

    #82350

    No problem :)

    #82427
    Michael
    Participant

    I uninstalled Mini-stats because I don’t like it. That script should be working.

    My statistics come from manually editing files – the plugins are not very helpful to me.

    I did write my own plugin – though you have to do manual editing to get the information to show. Simply add the following code to stats.php and place it in your plugins folder – and activate.

    <?php
    /**
    * Plugin Name: General Statistics
    * Plugin Description: Collects general statistics about the forum, including the newest users, online guests, and topic/post counts.
    * Author: Inniosoft
    * Author URI: http://www.inniosoft.co.cc
    * Version: 0.1
    */
    $mysql41 = true; // Change this if you have regular database problems

    function show_newest_users()
    {
    global $bbdb, $bb_table_prefix;
    $count = 3; // Edit this value to change how many users get displayed.
    if ($newestuser = $bbdb->get_results("SELECT * FROM ".$bb_table_prefix."users ORDER BY ID DESC LIMIT 0,".$count."")) :
    $counter = 0;
    foreach ($newestuser as $nu):
    $counter++;
    if ($count != 1 && $count > $counter) :
    if ($counter == $count - 1):
    if ($count == 2):
    $comma = " and ";
    else:
    $comma = ", and ";
    endif;
    else:
    $comma = ", ";
    endif;
    else :
    $comma = "";
    endif;
    if ($counter == $count) :
    if ($count > 1) :
    $stop = ".";
    else :
    $stop = "";
    endif;
    else :
    $stop = "";
    endif;
    $user = bb_get_user($nu->ID);
    $userdisplayname = (empty($user->display_name) ? $user->user_login : $user->display_name);
    $userprofilelink = get_user_profile_link($nu->ID);
    echo "<a href="".$userprofilelink."" title="See ".$userdisplayname."'s Profile">".$userdisplayname."</a>$comma$stop";
    endforeach;
    else : echo "Unable to fetch newest members(s). An error occured within the database.";
    endif;
    }

    function show_total_users()
    {
    global $bbdb, $bb_table_prefix;
    $totalusers = $bbdb->get_var( "SELECT COUNT(*) FROM ".$bb_table_prefix."users USE INDEX (PRIMARY);" );
    echo "".$totalusers."";
    }

    function show_total_posts()
    {
    global $bbdb, $bb_table_prefix;
    $totalposts = $bbdb->get_var( "SELECT SUM(posts) FROM ".$bb_table_prefix."forums;" );
    echo "".$totalposts."";
    }

    function show_total_topics()
    {
    global $bbdb, $bb_table_prefix;
    $totaltopics = $bbdb->get_var( "SELECT SUM(topics) FROM ".$bb_table_prefix."forums;" );
    echo "".$totaltopics."";
    }

    ?>

    Then, to show the information, add the following to either front-page.php or `footer.php:

    We have <b><?php show_total_users(); ?></b> registered members. Welcome to our newest members: <?php show_newest_users(); ?><br />
    Our members have made a total of <b><?php show_total_posts(); ?></b> posts in <b><?php show_total_topics(); ?></b> topics.</td>

    #82426
    bb-lover
    Member

    No Michael……. Its not working :-(

    I think you’ve installed mini_stats plugin……………….right?

    so show me complete footer file or tell me the plugin which you’ve used along this script….thanx

    #82425
    Michael
    Participant

    Hi bb-lover

    I recently wanted the same thing in my forum. I did not want to install complex plugins.

    If you’re looking for something like this: http://www.inniosoft.co.cc/devstation (look at the bottom), then you need to add the following to your footer.php file in your template’s directory:

    <?php function show_total_users()
    {
    global $bbdb, $bb_table_prefix;
    $totalusers = $bbdb->get_var( "SELECT COUNT(*) FROM ".$bb_table_prefix."users USE INDEX (PRIMARY);" );
    echo "".$totalusers."";
    }
    ?>

    Hope that helps :)

    Michael

    #32525
    bb-lover
    Member

    hi to all :-)

    i want to show just resisted users in my forum’s footer. how it will possible. but i don’t want to install mini-stats plugin…. and listen dears…. when we go to the dashboard of bbpress… there we can see the total resisted users in the “Right Now” Column. So I just want to show registed users in footer like that

    Total resisted users : e.g 500

    plz guide

    #32512
    grassrootspa
    Member

    This is a random question, but is this “Topic Views” plugin (“http://bbpress.org/plugins/topic/bb-topic-views/#post-275&#8243;) required to display ‘Topic Views” on one’s front page, etc? Or is there some sort of output code I am missing?

    We can display Topic Voices without a plugin using code built into the Core.

    The reason for my question is this, if a plugin is required, shouldn’t the “Topic Views” code be built into the Core as well? It’s a rather useful feature and seems to be used on tons of bbPress sites…

    #82398
    Michael
    Participant

    Thanks! :) :)

    #82324
    Michael
    Participant

    I’m glad it worked :) I’d probably want to find a way to enhance the plugin, but I don’t think I will as bbPress is soon to be changed. We had our first-ever IRC last night, and some major developments are going to come out of it – including things that have not yet been mentioned. So there’d be no point developing a plugin for an old version of bbPress.

    :)

    #55982

    In reply to: Show off your Forum !!

    Michael
    Participant

    @Taeo: That sounds very interesting! :) And you have an excellent forum! :)

    If you ever make it a stable plugin – please let us know. I, for one, would make huge use of it! :) I did mention how I my bbPress to be a community site at the recent IRC.

    Great work! :)

    #82352
    grassrootspa
    Member

    Just finished reading up…ecstatic to see this chat.

    Random thoughts (from someone who has been periodically messing with this for a year and still learning the ropes):

    -Don’t like the idea of eliminating bbPress’s stand alone ability and REQUIRING it be a WP plugin (some of us just want to run stand-alone forums without having to install WordPress first.) Prefer to keep it as a separate project.

    -Love the idea of adding new OPTIONAL features to the bbPress core (bbPress 1.1) . Here are my top 6:

    (1) Optional TinyMCE addition

    (2) Ability to edit plugins and templates from within bbPress admin

    (3) Ability to add widgets to certain areas without having to mess with the template (will be handy for easily editing ‘sidebar’ stuff from the admin page rather than having to play with the template code each time

    (4) More Avatar/Gravatar options, such as easily adjusting their size on Profile pages and including instructions on how to get a Gravatar built into the ‘edit profile’ pages. People want to customize their forum character. Make it easier for them to do it right out of the box: display a click-able link to Gravatar.com!

    (5) To combat spam registrations, build optional ‘Human Test’ and ‘Terms of Service’ registration page features (which can be further modified and tweaked by plugins/user modifications). I’m sure everyone else there has noticed ‘Spam’ user signups. A built-in human test and/or TOS box to check will go a long way in eliminating them!

    (6) Better bozo management notification on the admin page (have numbers pop-up like for new comments and plugins in case a legitimate user has been marked as a bozo. I’ve had this happen a couple times because I didn’t check the bozo list.

    -Pleased to hear bbPress.org design will be revamped and include Codex

    -THRILLED to see folks from the message board helping bbPress.org and the overall project in various areas

    -In summary, EXCITED about bbPress 1.1

    #82322
    bb-lover
    Member

    Finally i got it…..Thanks a lot…. Michael You are really a Gooooooooooooood Person :-)

    #82321
    Michael
    Participant

    The file should already exist in your bbPress Root.

    Mine looks like this:

    # BEGIN bbPress

    Options -MultiViews

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /devstation/

    RewriteRule ^rules/?$ /devstation/bb-page.php?page_id=1 [L]
    RewriteRule ^faq/?$ /devstation/bb-page.php?page_id=2 [L]

    RewriteRule ^page/([0-9]+)/?$ /devstation/index.php?page=$1 [L,QSA]
    RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /devstation/forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ /devstation/forum.php?id=$1 [L,QSA]
    RewriteRule ^forum/?$ /devstation/ [R=302,L,QSA]
    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /devstation/topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ /devstation/topic.php?id=$1 [L,QSA]
    RewriteRule ^topic/?$ /devstation/ [R=302,L,QSA]
    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /devstation/tags.php?tag=$1&page=$2 [L,QSA]
    RewriteRule ^tags/([^/]+)/?$ /devstation/tags.php?tag=$1 [L,QSA]
    RewriteRule ^tags/?$ /devstation/tags.php [L,QSA]
    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /devstation/profile.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/?$ /devstation/profile.php?id=$1&tab=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /devstation/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
    RewriteRule ^profile/([^/]+)/?$ /devstation/profile.php?id=$1 [L,QSA]
    RewriteRule ^profile/?$ /devstation/profile.php [L,QSA]
    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /devstation/view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)/?$ /devstation/view.php?view=$1 [L,QSA]
    RewriteRule ^rss/?$ /devstation/rss.php [L,QSA]
    RewriteRule ^rss/topics/?$ /devstation/rss.php?topics=1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ /devstation/rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/topics/?$ /devstation/rss.php?forum=$1&topics=1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)/?$ /devstation/rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/?$ /devstation/rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/topics/?$ /devstation/rss.php?tag=$1&topics=1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)/?$ /devstation/rss.php?profile=$1 [L,QSA]
    RewriteRule ^rss/view/([^/]+)/?$ /devstation/rss.php?view=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ /devstation/index.php [L]
    </IfModule>

    # END bbPress

    Most of those should already be there. I have separated the two rules at the top so you can see how it is done for pages.

    If your site has a forum directory (ie the forum does not reside on the top-level of your site, then you should remove the “devstation/”. If it does, then replace “devstation/” with your forum’s directory.

    Regards

    Michael

    #82319
    bb-lover
    Member

    please send me complete code… i can’t understand it…

    of if you can send me .htaccess file then i’ll be happy

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