Forum Replies Created
-
In reply to: Need a custom permalink rule
Hi there anointed. I assume that you are using bbPress 1.*. Let’s see what we got:
In bbPress the topic permalink is builded against site and not forum.
If I have a topic named ‘foo’ in forum ‘bar’ and then I create another ‘foo’ topic in forum ‘pub’ then the permalink will be automagically named foo-2 by the
bb_slug_increment
function.You want:
/forum-name/sub-forum-name/post-name.html
You can’t achieve this behaviour with just an .htaccess tweaking. You need also to intercept the
get_topic_link
filter and change the link. Maybe also you will need to do something in thebb_repermalink
function.It can be quite challenging.
In reply to: Looking for plugin to hide part of the content.There isn’t. Why you don’t make private forums/posts? You can use my plugin: zaerl Visibility.
In reply to: View new forum and it isn't there.Link please.
In reply to: Avatar sizeNo. Gravatar(s) are square. You can force the size of the surrounding div (adding an overflow:hidden to the CSS) but nothing more.
Hi there,
but still any help on why the [ ] tags aren’t working
my plugin uses html tags and not BBCode.
In reply to: Forums in the root<VirtualHost *:80>
DocumentRoot "your-htdocs/forums.example.com"
ServerName forums.example.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "your-htdocs/example.com"
ServerName example.com
ServerAlias www.example.com
</VirtualHost>on
*apache-config-dir*/sites-available/default
(*apache-config-dir*extrahttpd-vhosts.conf
on windows) (or somewhere else)In reply to: Step by step guideFile forum/bb-templates/blog_theme/style.css
Line 405 (rule .infobox) add: float: left;
Line 511 (rule #thread) add: float: left;
or something like that. Have a nice day.
In reply to: Plugins for 2.0 BetaI’m sorry, no. The plugins have been build for the standalone version.
Contact me za-AT-zaerl-DOT-com
Hi softinfo. What you’re trying to achieve can be very challenging cause bbPress developers haven’t included such feature in the software. On index.php topics are obtained with
get_latest_topics
, forums withbb_get_forums
.The current page (for topics) is collected from a $_GET variable called
page
which have its own rule in the .htaccess which in turn is parsed bybb_get_uri_page
(functions.bb-core.php) called fromBB_Query::fill_query_vars
(yargh).Now you must do the same thing with forums but in order to do this you must change too many core files and we don’t want our soul damned for eternity.
I don’t have much time at the moment but I can give you some hints.
You need a new
page
variable that should be different from the default (which is used for posts’ page) together with its own .htaccess rule:RewriteRule ^forum-page/([0-9]+)/?$ /forum/index.php?forum-page=$1 [L,QSA]
You should create a new fake paginate function
bb_latest_topics_pages
for forumsbb_latest_forums_pages
, a fakeget_page_number_links
with/forum-page/%#%
instead of/page/%#%
and other things here and there.And last but not least you need a custom query (with a
LIMIT
) on the$bbdb
forum query.As I said it can be very challenging and there’s room for a very interesting plugin but I don’t write plugins anymore because of the current fragile status of bbPress standalone.
If you will try to write a plugin I will be happy to debug and/or code (a portion of) it.
In reply to: Constant "Email is Required" bug in FireFox.In reply to: Constant "Email is Required" bug in FireFox.Probably your host is set in safe mode which is a very bad things. You should ask your host to deactivate it.
Probably your host is set in safe mode which is a very bad things. You should ask your host to deactivate it.
In reply to: bbPress backup!Hi Alex,
at line 21 you use: SHOW TABLES FROM db_name in order to retrieve bbPress tables. This is a wrong approach cause you assume that in the database there are only bbPress tables which is not guaranteed.
You should only backup the tables with the bbPress prefix. Check the
$bb_table_prefix
global variable.In reply to: bbPress backup!Hi Alex,
at line 21 you use: SHOW TABLES FROM db_name in order to retrieve bbPress tables. This is a wrong approach cause you assume that in the database there are only bbPress tables which is not guaranteed.
You should only backup the tables with the bbPress prefix. Check the
$bb_table_prefix
global variable.In reply to: Import Facebook EventsDoes anyone know if there is a plugin for this?
There isn’t.
In reply to: Import Facebook EventsDoes anyone know if there is a plugin for this?
There isn’t.
In reply to: X-Forwarded-For to show as IP addressLocate the function
bb_insert_post
in file functions.bb-posts.php, then find the line:$ip_address = $_SERVER['REMOTE_ADDR'];
The real (*cough*) IP of the user can be retrieved with this function:
function get_real_ip()
{
$ip = '';
$u = 'unknown';
if(($ip = getenv('HTTP_CLIENT_IP')) && strcasecmp($ip, $u)) {}
elseif(($ip = getenv('REMOTE_ADDR')) && strcasecmp($ip, $u)) {}
elseif(($ip = getenv('HTTP_X_FORWARDED_FOR')) && strcasecmp($ip, $u)) {}
elseif(isset($_SERVER['REMOTE_ADDR']) && ($ip = $_SERVER['REMOTE_ADDR']) && strcasecmp($ip, $u)) {}
else return $u;
return $ip;
}In reply to: X-Forwarded-For to show as IP addressLocate the function
bb_insert_post
in file functions.bb-posts.php, then find the line:$ip_address = $_SERVER['REMOTE_ADDR'];
The real (*cough*) IP of the user can be retrieved with this function:
function get_real_ip()
{
$ip = '';
$u = 'unknown';
if(($ip = getenv('HTTP_CLIENT_IP')) && strcasecmp($ip, $u)) {}
elseif(($ip = getenv('REMOTE_ADDR')) && strcasecmp($ip, $u)) {}
elseif(($ip = getenv('HTTP_X_FORWARDED_FOR')) && strcasecmp($ip, $u)) {}
elseif(isset($_SERVER['REMOTE_ADDR']) && ($ip = $_SERVER['REMOTE_ADDR']) && strcasecmp($ip, $u)) {}
else return $u;
return $ip;
}In reply to: Issue with InstallationIn reply to: Issue with InstallationIn reply to: Theme like bbpress.orgIn reply to: Theme like bbpress.org