Search Results for 'code'
-
Search Results
-
Hello, I have a little issue with logging in between wordpress and bbpress at my website http://www.ridelegend.com/ & http://www.ridelegend.com/community/
1. When I log in at BBpress it logs me out of WordPress. I can access the BBpress admin page.
2. When I log in at WordPress it logs me in at both WordPress and BBpress, but I cannot log out at BBpress. I can access both the bbpress and WordPress admin panels fine though, and logging out at WordPress works.
I have no plugins active other than akismet. My custom theme is based on the alpha 1 theme, but I modified to match the alpha 2 theme via the list of changes in the tracker. Is this just a glitch with alpha 2 or is there something I can do?
Thank you!
Topic: No avatars show up
Hi.
I recently installed bbPress on my WordPress site here at http://agitainment.com/ics/forum/.
I’ve built a theme based on 1col_fixed 1.1 (I believe it’s kakumei with most of the CSS stripped out). In any case, when I go to my forums I can see my Gravatars and default avatars in kakumei, but when I switch on my theme they disappear.
Is there a php file I’m missing or a block of code somewhere I need to copy over from the kakumei theme to get these to work? If so, where should I put the code?
Thanks!
Hi. This si not a true plugin – just a stupid script for removing “deleted” topics and posts from the DB. Thanks in advance for any feedback.
$link=mysql_connect("host","user","password");
mysql_select_db("database");
//delete topics metadata
$res=mysql_query("SELECT topic_id FROM bb_topics WHERE topic_status>0;") or die(mysql_error());
while($row=mysql_fetch_row($res)) {
mysql_query("DELETE bb_meta.* FROM bb_meta WHERE object_type='bb_topic' AND object_id=$row[0];") or die(mysql_error());
};
mysql_free_result($res);
//delete posts metadata
$res=mysql_query("SELECT post_id FROM bb_posts WHERE post_status>0;") or die(mysql_error());
while($row=mysql_fetch_row($res)) {
mysql_query("DELETE bb_meta.* FROM bb_meta WHERE object_type='bb_post' AND object_id=$row[0];") or die(mysql_error());
};
mysql_free_result($res);
//delete topics & posts
mysql_query("DELETE bb_topics.* FROM bb_topics WHERE topic_status>0;") or die(mysql_error());
mysql_query("DELETE bb_posts.* FROM bb_posts WHERE post_status>0;") or die(mysql_error());
mysql_query("DELETE bb_meta.* FROM bb_meta WHERE meta_key='deleted_posts';") or die(mysql_error());
//some extras - attempt to "correct" autoincrement
$row=mysql_fetch_row(mysql_query("SELECT MAX(topic_id) FROM bb_topics;"));
if($row[0]!="") {
$correct=$row[0];
}
else {
$correct=1;
};
mysql_query("ALTER TABLE bb_topics AUTO_INCREMENT=$correct;") or die(mysql_error());
$row=mysql_fetch_row(mysql_query("SELECT MAX(post_id) FROM bb_posts;"));
if($row[0]!="") {
$correct=$row[0];
}
else {
$correct=1;
};
mysql_query("ALTER TABLE bb_posts AUTO_INCREMENT=$correct;") or die(mysql_error());
$row=mysql_fetch_row(mysql_query("SELECT MAX(meta_id) FROM bb_meta;"));
if($row[0]!="") {
$correct=$row[0];
}
else {
$correct=1;
};
mysql_query("ALTER TABLE bb_meta AUTO_INCREMENT=$correct;") or die(mysql_error());
mysql_close($link);Topic: Problem with rss/topics
Hello,
i have a problem with the rss feed of topics: many topics have only the title displayed, with “1/01” date
why?Bye
Topic: 1.0 Alpha 2 install issue
Hey, I thought I’d try out the latest 1.0 alpha release (2) but when I go to install I get the following error:
Fatal error: Call to undefined function: bb_glob() in /home/wired/public_html/forums/bb-admin/class-install.php on line 322Any idea how to fix this? One for the bugs list?
Im going to intergrate my WordPress Theme into my bbPress forum, so I need to make sure that functions like Header and Sidebar can be used in bbPress. So I’ve been reading up and found out that you need to place this code in the bb-config.php:
require_once(‘path/to/wp-blog-header.php’);
However when I place the code. I suddenly can’t log into the bbPress forum anymore. When I click login nothing happens the page will load but not display links like Username –> Admin —> Log out just the normal page as if a guest was browsing the forum.
I am placing the code below the first <php line? Am I doing something wrong?
Additional Info:
WordPress Version: 2.6.2
bbPress Version: 0.9.2
My site currently does not have a user management system where people can register etc. I’m looking for a system to integrate that I can just piggyback off of and access the users table to do my own development.
Would bbPress be a good fit here? I played around with the code a little bit and I just included “bb-load.php” and I was able call functions like ” bb_get_current_user_info( ‘id’ )” without actually displaying anything related to the forum.
The only downside is that it added about .2 seconds to my average php render times.
Topic: Change the Permalinks
I’m wondering if there’s a way to change the default Permalink structure and prefixes.
For example :
http://www.exolimpo.com/foro/topic/post-de-prueba
I would like to change topic for something else.
and
http://www.exolimpo.com/foro/forum/anime
I would also like to change Forum, since Foro already means forum in spanish.. so “Forum Forum” is reiterative.
If there’s a way to do this tell me, I don’t mind editing a little bit of code in the core, I just need a little bit of direction.

