Search Results for 'code'
-
AuthorSearch Results
-
October 1, 2011 at 7:05 pm #109626
varsitysmack
ParticipantHey, John:
Yes, I could see the forums and figured out that this is an issue with the URL. The way that I have my forums set up is that there are hard coded links in the WP pages that link to each forum. With the old setup the link structure went to groups and then the last part of the URL was /forum. I figured out that the new bbPress isn’t integrated in with groups and that I will need to do a batch upload of new URL’s for all of my WP pages to update the links. I have over 1,800 individual forums and use the WP pages to ‘drill down’ so the site users can easily get to where they want to go.
This leads to my next question – when will bbPress 2.0 be fully integrated with buddypress forums and when it does integrate, will I be able to use my old link structure like it was set up when I had the old bbPress running?
October 1, 2011 at 5:11 pm #108100spaghetti
MemberWhy would you remove the “Freshness” code from public views by the way?
October 1, 2011 at 2:19 pm #40183Topic: bbp_shortcodes
in forum Pluginspjeurien
MemberI am trying to figure out how to allow custom shortcodes in topic posts. So far i’ve been trying to use bbp_shortcodes like this.
function bbp_custom_shortcode($codes) {
$codes[] = array(‘item’ => ‘item_func’);
return $codes;
}
add_filter( ‘bbp_shortcodes’, ‘bbp_custom_shortcode’);
The codes array is appended but it does nothing Can you explain how to do it properly.
October 1, 2011 at 11:33 am #109605In reply to: BackPress, what's that?
amirsaam
MemberThank you Adam
You made me happy. Going to now BP functions!!!
September 30, 2011 at 9:15 pm #109603In reply to: BackPress, what's that?
amirsaam
MemberYep JJJ, bbPlugin is very good but I’ve still have no skill in using it. Other way our people like the StandAlone more than the bbPlugin. For now I want learn more about the SA

This BackPress question is that I want know it and you can better answer me, is that possible to get some function from WordPress after integrating? BackPress will be used here?
September 30, 2011 at 8:55 pm #109588In reply to: disabling breadcrumbs
John James Jacoby
KeymasterThere is. $1 to the person that looks for the function and finds out how.
September 30, 2011 at 8:28 pm #108099ebharding
ParticipantAny progress on this?
Here is a screen shot of the dashboard showing the issue.
my timezone is “Pacific” and that is set in the wordpress settings.
system clock says 12:21,
post time stamp is 12:06 and
the freshness say 7 hours ago.
http://www.westsac.com/bbpress_timezone_bug.png.
The forums are going live next week and I am in the process of removing the “Freshness” code from the public views.
September 30, 2011 at 5:27 pm #109633In reply to: Local Time Issues
amirsaam
MemberIn bbPress times of posts and topics are like Twitter, like 20 minute ago and etc. Then, when the time be very long ago it will shown like what is in General setting date and time field
September 30, 2011 at 2:12 pm #109631In reply to: class="reply" added to body
Kasper Isager
ParticipantForgot to wrap it: *which means that every
<a>on the…September 30, 2011 at 7:11 am #109378Ed
ParticipantHi Anointed, thanks for that. I really need to get my punBB moved to something else ASAP, and was hoping the bbpress might be the one.
Indeed, I just went from punbb > phpbb etc, as there is no direct conversion. It does seems that along the way, little things break – which in the end screw up the final conversion step.
Looking forward to a new release of your tool
September 30, 2011 at 6:50 am #109167In 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
-
AuthorSearch Results