Search Results for 'code'
-
Search Results
-
Hi,
I am about to migrate my current bbpress site over to a new server and would like to freeze posting and registration so that the databases don’t get out of sync. I don’t really want to take the whole forum offline, though.. I’d like visitors to still be able to read through the existing posts. Does anyone know of a quick way to do this?
TIA
I set up an integrated BBPress and MU WordPress on Nginx. There may be a better way of doing the rewrites but these work well for me.
Here are the BBPress Nginx rewrites:
location /forums/ {
root /home/YOURDIRECTORY/public_html/forums;
index index.php;
if (!-e $request_filename) {
rewrite ^/forums/topic/(.*)$ /forums/topic.php?q=$1 last;
rewrite ^/forums/forum/(.*)$ /forums/forum.php?q=$1 last;
rewrite ^/forums/profile/(.*)$ /forums/profile.php?q=$1 last;
rewrite ^/forums/view/(.*)$ /forums/view.php?q=$1 last;
rewrite ^/forums/tags/(.*)$ /forums/tags.php?q=$1 last;
rewrite ^/forums/rss/(.*)$ /forums/rss.php?q=$1 last;
rewrite ^/forums/bb-admin/ /forums/bb-admin/index.php last;
rewrite ^/forums/ /forums/index.php last;
break;
}
}
Here’s a full write up here:
http://dev.honewatson.com/bbpress-wordress-mu-integration-nginx-pretty-urls-rewrites/
This is a regular problem on my forum. bbpress seems to remove the image part of the banner as there is missing code. Usually I can work out where the missing tag goes. In the case of the following TradeDoubler code, I can’t! Any suggestions much appreciated.
<script type=”text/javascript”>
var uri = ‘http://impgb.tradedoubler.com/imp?type(img)g(16463372)a(1422608)’ + new String (Math.random()).substring (2, 11);
document.write(‘<img src=”‘+uri+'” border=0>‘);
</script>
Currently,
bb-admin/admin-header.phpuses active template’slogged-in.php. I changed this php in my theme, and it looks a little bit strange in admin page.I think admin page shouldn’t use any files from templates, even the default template. Could this be an issue?
And it seems no need to use
login_form(), it should just include alogged-in.phpinbb-adminor simply put codes withinadmin-header.php.Hi,
I’m trying to add a new custom page to my forum. It’s very simple, this is what I have so far:
– 1 custom page called test.php
– the page includes the forum header and footer
– The content (middle) part is pulled from the db aswell
All works fine except hyperlinks! Links like http://www.test.com will NOT appear as a hyperlink, but just as plain text. How to fix this? I want this to behave just like this textfield I am typing in right now (auto hyperlink converting).
bbcodes like bold do work.
_Null
This plugin can validate more deeper. Not only the HTML tag’s attributes, but also the contents of attributes. You can set your own regular expression for attributes. For example, you want limit users to post Flash videos only from YouTube or Google, then you can restrain the
srcattribute.Sample posts: This post shows you an embedded YouTube video and this has a image floating at right side.
Visit Plugin page or directly download HTMLTagAttributesValidator.php.
Any comments on this plugin are very welcome.
Topic: No New posts for members
Hello!
I want to restrict new posts in bbpress only to moderators and admins. What is the best way to do it?
I’ve found a very simple way editing capabilities.php but I would like to avoid editing the source code.
'member' => array(
'name' => __('Member'),
'capabilities' => array(
(...)
'write_posts' => false,Thanks.