Search Results for 'code'
-
AuthorSearch Results
-
December 10, 2009 at 6:06 pm #32527
Topic: Installed with WP, but with issues…
in forum InstallationCasemon
MemberHave 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!
December 10, 2009 at 5:34 pm #55984In reply to: Show off your Forum !!
Michael
ParticipantI 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
December 10, 2009 at 4:42 pm #82357In reply to: bbPress IRC Transcript 12/9/2009
sockmoney
MemberI 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.
December 10, 2009 at 4:06 pm #55983In reply to: Show off your Forum !!
Taeo
MemberThanks! 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.
December 10, 2009 at 3:18 pm #82354In reply to: bbPress IRC Transcript 12/9/2009
Gautam
MemberRead the whole IRC chat…
I would like to just suggest upon some of the major topics:
- 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
- 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
- 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.
- The sidebar should be only in one file (and dynamic), should support widgets like WP – theme compatibility issue would make it do that.
- 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.
December 10, 2009 at 2:45 pm #82436In reply to: How to Show Total Registerd Users In Forum?
Matias Ventura
MemberNo, 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
December 10, 2009 at 2:34 pm #82434In reply to: How to Show Total Registerd Users In Forum?
bb-lover
MemberThanks 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
December 10, 2009 at 2:17 pm #82433In reply to: How to Show Total Registerd Users In Forum?
Matias Ventura
MemberActually, one amend: you should use
<?php total_users(); ?>
which is meant for output and you get rid of theecho
.Glad it worked.
December 10, 2009 at 2:08 pm #82432In reply to: How to Show Total Registerd Users In Forum?
bb-lover
Member@ matveb
I got it ……..Thanks dear… you code is simple and smart
December 10, 2009 at 2:02 pm #82431In reply to: How to Show Total Registerd Users In Forum?
Matias Ventura
MemberThat 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(); ?>
December 10, 2009 at 2:01 pm #82430In reply to: How to Show Total Registerd Users In Forum?
bb-lover
MemberIts 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.
December 10, 2009 at 1:52 pm #82428In reply to: How to Show Total Registerd Users In Forum?
fundomaat
MemberI’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.December 10, 2009 at 1:50 pm #82350In reply to: Topic Forum (Front Page)
Matias Ventura
MemberNo problem
December 10, 2009 at 12:50 pm #82427In reply to: How to Show Total Registerd Users In Forum?
Michael
ParticipantI 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>December 10, 2009 at 11:38 am #82426In reply to: How to Show Total Registerd Users In Forum?
bb-lover
MemberNo 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
December 10, 2009 at 11:06 am #82425In reply to: How to Show Total Registerd Users In Forum?
Michael
ParticipantHi 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
December 10, 2009 at 10:41 am #32525Topic: How to Show Total Registerd Users In Forum?
in forum Requests & Feedbackbb-lover
Memberhi 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
December 10, 2009 at 7:22 am #32512Topic: "Topic Views" built into Core or not?
in forum Requests & Feedbackgrassrootspa
MemberThis is a random question, but is this “Topic Views” plugin (“http://bbpress.org/plugins/topic/bb-topic-views/#post-275″) 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…
December 10, 2009 at 7:14 am #82398In reply to: Social Networking: Link Problem
Michael
ParticipantThanks!
December 10, 2009 at 7:13 am #82324In reply to: Need Permalinks in bbpages plugin? SEO Friendly
Michael
ParticipantI’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.
December 10, 2009 at 7:10 am #55982In 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!
December 10, 2009 at 3:30 am #82352In reply to: bbPress IRC Transcript 12/9/2009
grassrootspa
MemberJust 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
December 10, 2009 at 12:44 am #82322In reply to: Need Permalinks in bbpages plugin? SEO Friendly
bb-lover
MemberFinally i got it…..Thanks a lot…. Michael You are really a Gooooooooooooood Person
December 9, 2009 at 8:44 pm #82321In reply to: Need Permalinks in bbpages plugin? SEO Friendly
Michael
ParticipantThe 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 bbPressMost 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
December 9, 2009 at 7:18 pm #82319In reply to: Need Permalinks in bbpages plugin? SEO Friendly
bb-lover
Memberplease send me complete code… i can’t understand it…
of if you can send me .htaccess file then i’ll be happy
-
AuthorSearch Results