Search Results for 'code'
-
AuthorSearch Results
-
August 1, 2007 at 9:31 pm #56379
In reply to: Plugin: bbMenu 1.1
Null
MemberTesting this tomorrow after work…. nah after diner after work

Thx for the help mate!
_Null
August 1, 2007 at 7:18 pm #59359In reply to: mysql_query() OR $bbdb->get_results() ?
M
MemberThe new changes have been made:
http://www.box.net/shared/cgrj1na0t7
I think that should cover the problems. I took the liberty of changing other things as well… hope you don’t mind. I removed some redundancies in the CSS, and changed some little code things.
There’s the modified
bbmenu.phpfile, as well as the diff file to make it a little easier for you to see what I changed. If you cant make sense of the diff there are diff file viewers that color the text and make it more human-readable.August 1, 2007 at 5:46 pm #59619In reply to: AdityaNaik.com
howtogeek
Memberso1o,
I have been looking for something similar to the ChipIn gadget… I am so happy that I found your page just for that

Very nice theme also.
August 1, 2007 at 5:30 pm #59648In reply to: Caching in bbPress?
_ck_
Participantbbpress uses so few queries that caching has got to be a low priority, especially when the point of a forum is to have very dynamic updates customised for the logged in member – it’s very different than a wordpress environment
as long as you have the mysql cache turned on, it should be very responsive – just look at the main wordpress support forum – eaccelerator would take care of caching the php opcode and that can’t be too far behind a static page
the bonus is that on an active forum, everything will be very dynamic as it happens…
August 1, 2007 at 5:01 pm #2194Topic: Caching in bbPress?
in forum Requests & Feedbackhowtogeek
MemberLooking in the code, I see a lot of references to object caching, but I don’t think it’s actually used anywhere.
Does anybody know the state of the caching system, or what the problems were that required disabling it? Will it ever be enabled again?
And yes, I already posted to the mailing list quite a while ago and got nothing.
August 1, 2007 at 4:15 pm #59635In reply to: Good model plugin for newbie plugin author to study?
riddle
MemberCool, this is exactly the kind of bbPress-specific best practices I need to know and am not going to get from “PHP and MySQL in 30 Minutes”!
Is topicmeta documented anywhere? I’m looking at the code and can’t say it’s entirely clear…
August 1, 2007 at 3:34 pm #51584In reply to: Full Content of Most Recent Post on Front-Page?
fel64
MemberTurn the time-string into a timestamp to be turned into a time-string.
<?php echo date( 'g:i A', strtotime( $latestpost->post_time ) ); ?>There’s a template function that gives you the link to the latest post in the topic. I believe it’s called
get_topic_last_post_link()but I’m not sure.August 1, 2007 at 3:31 pm #52676In reply to: Plugin: [REL] Signature
fel64
MemberActually,
post_formis called immediately before the form is closed.https://trac.bbpress.org/browser/trunk/bb-includes/template-functions.php#L163
August 1, 2007 at 3:28 pm #59634In reply to: Good model plugin for newbie plugin author to study?
fel64
MemberYeah, really avoid doing anything to the tables and use topicmeta instead. By far easiest for you and nicest for the users, too, plus the additional overhead is minimal.
The metadata is returned when you call get_topic() like Sam said.
$topic = get_topic();
echo $topic->topic_geolocation; //echoes whateverAugust 1, 2007 at 3:23 pm #59616In reply to: AdityaNaik.com
fel64
MemberLoading bb when you load wp, coolio. That’s what I wanted to know.
August 1, 2007 at 3:05 pm #59358In reply to: mysql_query() OR $bbdb->get_results() ?
fel64
MemberDid you try downloading from the plugin browser? https://bbpress.org/plugins/topic/56
Trent if you see this could you take out the rapidshare link from the first post and replace it please?
August 1, 2007 at 8:07 am #59633In reply to: Good model plugin for newbie plugin author to study?
Sam Bauers
ParticipantIt might be a bit confusing, because it is a complex plugin, but the Support Forum plugin uses the topic meta table to store topic support status. This data used to be in a column in the topic table but was moved to the meta table a few versions ago.
The basic usage is (with some guessing as to what you would call your data):
// To add
bb_update_topicmeta($topic_id, 'topic_geolocation', $latlong);
// To delete
bb_delete_topicmeta($topic_id, 'topic_geolocation');The topic metadata is automatically included in the results when you call
get_topic().No table manipulation should be necessary.
August 1, 2007 at 2:54 am #51583In reply to: Full Content of Most Recent Post on Front-Page?
outchy
Memberhow does one filter the output for time in this example?
<?php echo $latestpost->post_time; ?>i’d like it to be in the format of
( 'g:i A' )ps, my good, good people

how would i turn this link into a link to the latest reply itself instead of just the topic:
<a href="<?php echo get_topic_link($latestpost->topic_id); ?>"><?php echo get_topic_title($latestpost->topic_id); ?></a>July 31, 2007 at 10:58 pm #59629In reply to: Good model plugin for newbie plugin author to study?
fel64
MemberdbDelta is in bb-admin/upgrade-functions.php, same as it is in WP.

You are of course sure that you have to create a new table?
July 31, 2007 at 10:34 pm #59628In reply to: Good model plugin for newbie plugin author to study?
riddle
MemberMore specifically: does bbPress have mechanisms for automatic table creation and updating like the ones described in the WordPress docs?
See: https://codex.wordpress.org/Creating_Tables_with_Plugins
Should I start my Foo plugin by creating a function foo_install()? And can that function call dbDelta()? (I don’t see dbDelta in my bbPress anywhere.) If not, what’s the recommended alternative model for creating tables to be used in plugins?
fel64
MemberCrowspeaker, would you mind editing a core file? If you can edit line 257 of bb-includes/capabilities.php to this:
$this->cap_key = 'foo_capabilities';Then save/publish a post as you always do and see if the entry
foo_capabilitiesis created?That would bizarrely mean that the BB_User has an ID but no capabilities.
fel64
MemberGuess these forums are seperate from the plugins after all – subscribed here but not there
.Thanks for looking at that more closely, that’s helpful.
July 31, 2007 at 6:26 pm #59034In reply to: Plugin: Private Forums v4.0
_ck_
ParticipantOh this is driving me crazy.
Every so often, the private forum settings reset back to open to all and expose the moderator forum to everyone. Not good.
Until this bug is found I need to know how to hardwire a forum by number via code to always be moderator’s only.
update: I hardwired private_forums_custom_get_options, adding
if (!bb_current_user_can("moderate")) {$private_forums_for_user[8] = "MODERATOR";}This should make sure no matter what, #8 stays private
Hopefully you can find the bug soon… it might even be a bbpress core bug which is scary… then again, your settings are the only ones that seem to reset?
July 31, 2007 at 6:09 pm #59585In reply to: How to evaluate server speed?
riddle
MemberThanks for all your help, CK! I’ll look into eaccelerator — although I think I’ll finish building the site first.
July 31, 2007 at 5:47 pm #56420In reply to: Freshness Linked
citizenkeith
ParticipantI think bb-admin is broken because I had to edit some template files… I honestly haven’t taken the time to find out yet. It’s on the list for tonight though.
July 31, 2007 at 4:40 pm #52669In reply to: Plugin: [REL] Signature
_ck_
ParticipantWell why wait for tomorrow when you can put off other work and do it today

I now have per-post signature disable ability on v0.07 though sadly you must edit two templates to get that ability, there is no way to hook the form from the plugin, at least none that I can find in the API.
What’s really ironic is that I will most likely never use this plugin on my own forums, ha!
July 31, 2007 at 1:41 pm #56745In reply to: Plugin: Avatar Upload
howtogeek
MemberThanks… I’ll wait for the update then
July 31, 2007 at 1:21 pm #59627In reply to: post permalink
so1o
Participanttry..
post_anchor_link();July 31, 2007 at 1:19 pm #59611In reply to: AdityaNaik.com
-
AuthorSearch Results