Search Results for 'code'
-
Search Results
-
Topic: emoticons question
Hi,
Apologies, because i know there are lots of posts out there on the subject, but I am kind of new to bbpress, and I’m a little confused.
My client wants emoticons installed on his bbpress installation (1.02), but the only plugins I can find seem to work only up to around bbpress 0.9.
Even the forum topics discussing the need for emoticons and smilies seem to tail off around 2009. Weird.
Did emoticons get integrated into bbpress core around that time? If so, I can’t seem to find any options for it.
Did emoticons become so uncool people stopped using them?
Or is there a way to implement them into bbpress 1.02???
If anyone can point me in the right direction, I’d be really grateful
[insert giant cheesy winking emoticon here]Jimmmy
Hey all,
I’m trying to intercept certain (pre-defined bbPress) queries and filter a few results out. I figured I’ll need to register an action on ‘bb_query’, but I can’t seem to modify the actual query.
Say I want to filter all topics by myself from the recent posts view, I registered the following:
add_action('bb_query', 'filter_query');And then the code:
function filter_query(&$obj) {
if($obj->type == 'topic' && $obj->query_id == 'get_recent_posts') {
//ADD "AND topic_author != 'Litso'" to the query here
}
}Can anyone point me in the right direction?
Hi,
I’m using bbPress for a website I’m building and I’m experiencing a kind of weird thing. I’m using the following code to get the last topic title on the forum page:
topic_title(forum_last_topic_id());It works well except for the first Subforum..
Here’s a link:
Topic: SQL error!
SQL error!
>>> database:bbpress (localhost)
>>>>>> CREATE TABLE IF NOT EXISTS
bb_posts(post_idbigint(20) NOT NULL auto_increment,forum_idint(10) NOT NULL default 1,topic_idbigint(20) NOT NULL default 1,poster_idint(10) NOT NULL default 0,post_texttext NOT NULL,post_timedatetime NOT NULL default ‘0000-00-00 00:00:00’,poster_ipvarchar(15) NOT NULL default ”,post_statustinyint(1) NOT NULL default 0,post_positionbigint(20) NOT NULL default 0,PRIMARY KEY (
post_id),KEY
topic_time(topic_id,post_time),KEY
poster_time(poster_id,post_time),KEY
post_time(post_time),FULLTEXT KEY
post_text(post_text)) TYPE = MYISAM DEFAULT CHARACTER SET ‘utf8’;
>>>>>> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE = MYISAM DEFAULT CHARACTER SET ‘utf8” at line 16
