Search Results for 'code'
-
AuthorSearch Results
-
September 30, 2011 at 6:50 am #109167
In reply to: All Links Broken BBpress 2.0
highexistence
ParticipantBump
September 30, 2011 at 12:50 am #106105In reply to: bbPress 2.0 – Theme Compatibility
Green Girl Mel
MemberI’m advancing! Have found php files in my file manager and have managed to change one and it worked! Unfortunately the changes were not re this bbtheme change. I have reread these posts but I’m afraid I’m still really not clear on what is the right changes to make to my php files so that weaver refers to the bbpress templates.
I’ve transferred the bbpress twenty ten file to my weaver theme file. Can someone from bbpress (or someone who has successfully done this) give instructions for the code changes that are needed?
Thanks heaps – can’t wait to get this baby working!
September 29, 2011 at 11:38 pm #109621In reply to: User Total # Post & Starded Topics without plugin
amirsaam
MemberYep, the counting is the problem. but first go and see is your way possible or not. Get the # a +1 will be awesome but how will stored in database? hum?
I have not a good knowledge about database but I know make a +1 to database is a very hard way!

My way is the way bbPress go, how? bbPress count it, store it into the database and you don’t need to store it again, jus’ get it and show it. Your way said bbPress counted it & stored it into db, ok I don’t need it. I’ll count & store it again then show it (I didn’t used bbPlugin, maybe I didn’t see what’s going on here!) but in this way countin’ will be lower but the problem is the +1 that is possible or not cause MySQLs I think have not this ability and everytime they overwrite themselves mean they recount and rewrite the metas, they are not mathmen
September 29, 2011 at 10:57 pm #109619In reply to: User Total # Post & Starded Topics without plugin
amirsaam
MemberYep
But you must worry about the database mass, when we need to back it up for big forums you have a big volume to back up, nuh?Till now my theme for Persian bbPress support site is about 25 query in homepage, it’s cause of the Ajax and jQuery I used in it
I don’t think for big forums a query be something that they worry about it.Another thing, your plugin need to count the post numbers after anypost, save it then give it out. I think it will be more heavier than this query that jus’ evoke the number

Any way I jus’ cause of that write this code to have the number without plugin, cause plugins that we have now make another method and etc. that not awesome.
But still have this mind for myself, we need to upgrade the StandAlone vr more than the bbPlugin cause anyone have not a WP installed! Someone are here that jus’ wanna a forum software! other way, bbPlugin is so awesome!
September 29, 2011 at 9:47 pm #109617In reply to: User Total # Post & Starded Topics without plugin
amirsaam
MemberYou would like to know bbPress.org jus’ have 52,283 post

** I forgot it: Yeah buddy I would like to learnin’ manything here and share what I know
But I don’t know anything about bbPlugin
bbPress 1.x is my game
September 29, 2011 at 9:45 pm #109616In reply to: User Total # Post & Starded Topics without plugin
amirsaam
MemberNope dude, can you explain me what type of scary thing?
See bbShowcase and Persian WP forum to see it. But this is a code and they are a plugin called
Post Count Plusby _ck_It’s just get it from database and do not cache anything.
In
Persian WP forumwe have 17,121 registered user and 85,766 post
Check the topics for see the scary thing you said
I repeat that is a Plugin and it’s a jus’ code that have jus’ a query
September 29, 2011 at 9:38 pm #109623Anointed
ParticipantNo idea why it would work on one theme and not twentyten. Might need to wait until JJ gets off the plane for help. I’d just be taking to many wild guesses

I did go to your-site/forums/ and saw the forums just fine on the old theme.
September 29, 2011 at 9:33 pm #109615In reply to: User Total # Post & Starded Topics without plugin
Anointed
ParticipantI’m curious what the side effects to such a query would be on very large sites. Myself and friends have sites with millions of topics and hundreds of thousands of users. Without caching this could be a bit of a scary function to run no?
*I am just getting my feet wet when it comes to caching and performance, so forgive any ignorance shown

**thnx for the snippets though, love seeing new contributions
September 29, 2011 at 9:33 pm #109628In reply to: Internal Server Error when recounting
varsitysmack
ParticipantNo, I used the built in tool included with bbpress 2.0 (the importer).
There was no error provided (unless it’s logged in my server’s log files that I haven’t checked yet). After I clicked on recount and checked all of the boxes and clicked go, the browser just spun and came with a page saying there was an internal server error. Not other information was given. No error codes or anything.
September 29, 2011 at 8:43 pm #109586In reply to: disabling breadcrumbs
binarymoon
ParticipantI had a feeling you would say that. I was hoping there was a way of overriding the function/ some include file somewhere. Oh well – thanks for clarifying
September 29, 2011 at 5:23 pm #109585In reply to: disabling breadcrumbs
Anointed
ParticipantThere is no ‘easy’ way to remove the breadcrumbs as they are included in a number of templates. You would need to go through each of the bbPress templates and remove the following:
<?php bbp_breadcrumb(); ?>September 29, 2011 at 5:17 pm #109156Anointed
Participantwrap the initial topic function output in something like the following:
if ( ! isset ( $GLOBALS['paged'] ) or ( $GLOBALS['paged'] < 2 ) )
{
// run your code
}says if not paged, then run code…
September 29, 2011 at 4:55 pm #109614In reply to: User Total # Post & Starded Topics without plugin
amirsaam
MemberYou can add this query for Total # of Topics Starded
$query2 = "SELECT COUNT(*) FROM ".$bb_table_prefix."posts WHERE poster_id = $user_id AND post_status = 0 AND post_position = 1";
echo "<li>Topics: ".$bbdb->get_var($query2)."</li>";September 29, 2011 at 4:19 pm #40172Topic: User Total # Post & Starded Topics without plugin
in forum Showcaseamirsaam
MemberI don’t like to for anything use plugin cause of that I coded this code to show any user total number of posts in topics

<?php
global $bb_table_prefix;
$user_id=get_post_author_id();
$query1 = "SELECT COUNT(*) FROM ".$bb_table_prefix."posts WHERE poster_id = $user_id AND post_status = 0";
echo "<li>Posts: ".$bbdb->get_var($query1)."</li>";
?>So enjoy it

EDIT: I forgot this! You must put it in
post.phpwhere the other post author information is
September 29, 2011 at 2:54 pm #109373Ed
Participanthaha. i think you need to give some more details, if you hope for any help
September 29, 2011 at 12:30 pm #109611amirsaam
MemberOops! A
$is missed in the code
Use it bbp_topic_is_open( $bbp_post->bbp_topic_id )And again I’m not sure about this code that work or no!
And, your welcome
September 29, 2011 at 12:24 pm #109610common8308
Participant@7i7GRiFFiN Thank you again!
September 29, 2011 at 12:20 pm #109609amirsaam
MemberNope, that function is absolutely diffrent and not used in bbPlugin
September 29, 2011 at 12:11 pm #109607amirsaam
Membercomments_open()function have a sister function that used in bbPress or the bbPlugin. They looks liketopic_is_open( $bb_post->topic_id )(bbPress) or bbPlugin (I’m not sure!)bbp_topic_is_open(bbp_post->bbp_topic_id)I repeat that I’m not sure about bbPlugin!
September 29, 2011 at 12:06 pm #109288In reply to: User Registration
goldmember
Memberdmx, or anyone else, if you find the answer, please let me know. dying to make this happen
September 29, 2011 at 9:33 am #109601In reply to: BackPress, what's that?
amirsaam
MemberThanks dude about answer and the address. I read them but I’ve question now, if we integrate our bbPress with WordPress can we use some functions from WP?
I mean if we do integrate after that in theme designin’ can we use a function like this?
<?php get_wp_header(); ?>(It’s jus’ a example, Im not sure about the code!)September 29, 2011 at 6:52 am #40163Topic: BackPress, what's that?
in forum Troubleshootingamirsaam
Memberumm, I wanna ask exactly what is BackPress?!?
I got some info about it but I’m not sure, I’ll be in doubt of you if explain it for me
September 29, 2011 at 12:56 am #109367rossagrant
ParticipantWow, looks awesome! I need to do a conversion in buddypress from the old group forums to standalone BBpress 2.0.
Is the procedure the same as converting BBpress 1.0?
Would love to see an upgrader built into buddypress 1.5!
September 28, 2011 at 11:35 pm #109575In reply to: Redirecting /bbpress to http://domain.com
Andre
ParticipantAssuming you are using bbPress 2.x you can accomplish something similar with shortcodes. Create a page with the shortcode and change the WP setting to showing a page instead of the blog as the homepage.
September 28, 2011 at 7:38 pm #109360In reply to: Understanding templating.
amirsaam
MemberBefore anything read this all:
-
AuthorSearch Results