Search Results for 'code'
-
Search Results
-
Hello, I have installed bbPress at one of my websites (in a subdirectory called “forums” – i.e. bbPress is installed at mydomain.com/forums/).
I’m trying to set up Lighttpd URL rewrite rules now in order to achieve SEO friendly permalinks.
I have tried to google a little bit but the only thing I have found is this:
"^/forum/([^/]+)/page/([0-9]+)/?$" => "/forum.php?id=$1&page=$2",
"^/forum/([^/]+)/?$" => "/forum.php?id=$1",
"^/topic/([^/]+)/page/([0-9]+)/?$" => "/topic.php?id=$1&page=$2",
"^/topic/([^/]+)/?$" => "/topic.php?id=$1",
"^/tags/([^/]+)/page/([0-9]+)/?$" => "/tags.php?tag=$1&page=$2",
"^/tags/([^/]+)/?$" => "/tags.php?tag=$1",
"^/tags/?$" => "/tags.php",
"^/profile/([^/]+)/page/([0-9]+)/?$" => "/profile.php?id=$1&page=$2",
"^/profile/([^/]+)/([^/]+)/?$" => "/profile.php?id=$1&tab=$2",
"^/profile/([^/]+)/([^/]+)/page/([0-9]+)/?$" => "/profile.php?id=$1&tab=$2&page=$3",
"^/profile/([^/]+)/([^/]+)/favorites/?$" => "/profile.php?id=$1&tab=favorites",
"^/profile/([^/]+)/?$" => "/profile.php?id=$1",
"^/view/([^/]+)/page/([0-9]+)/?$" => "/view.php?view=$1&page=$2",
"^/view/([^/]+)/?$" => "/view.php?view=$1",
"^/rss/?$" => "/rss.php",
"^/rss/forum/([^/]+)/?$" => "/rss.php?forum=$1",
"^/rss/topic/([^/]+)/?$" => "/rss.php?topic=$1",
"^/rss/tags/([^/]+)/?$" => "/rss.php?tag=$1",
"^/rss/profile/([^/]+)/?$" => "/rss.php?profile=$1"Could anybody tell me how to edit it taking into consideration the subfolder where the bbPress is installed?
My current Lighttpd rewrite rules in config file are bellow:
url.rewrite-once = (
"^/(wp-.+).*/?" => "$0",
"^/images/.*/?" => "$0",
"^/forums/.*/?" => "$0",
"^/temp/.*/?" => "$0",
"^/(sitemap.xml)" => "$0",
"^/(xmlrpc.php)" => "$0",
"^/keyword/([A-Za-z_0-9-]+)/?$" => "/index.php?keyword=$1",
"^/.*?(?.*)?$" => "/index.php$1"
)Topic: hiding the long URL
I’m using Transition Towns bbPress forum and I cannot see a page of instructions anywhere – either there or here – about using code for those who are a little unfamiliar perhaps? I don’t understand your “allowed markup” below, if this is it. I want to put hyperlinks in but hide the URL, and the phpBB system [url=http://website_URL]website[/url] evidently doesn’t work here.
I’ve been trying to follow this thread that has a patch to display the temporary password for users who have just registered with my forums:
the code in my file is different then what pravin said to change in bb-includes/registration-functions.php. i just can’t figure out what needs to be changed.
is this technique outdated? I’m running bbpress 0.9.0.2. i would really like to do this as my mail server from my crappy host gets blacklisted often and registration emails get caught in spam filters.
i also know i should add some stuff to my SPF records, but 1) i’m not really sure how to do that (that’s a different thread though) and 2) i’d like to display the passwords at registration anyway.
please help!
Well finally I have got BBPress and WP talking to one another (hurrah!) but I would like to know if it is possible to open BBPress inside a WP Page so my current WP site wraps around the forum?
Is this possible and if so could some kind soul please tell me how to do it
Thank you!
Topic: How to get poster name
Hi
I’m just trying to fix a plugin (Moderation Hold) so that it updates the ‘Last Poster’ field correctly when a post is approved.
It currently uses this to set the poster id and name:
$uid = $bb_post->poster_id;
$uname = $bb_post->poster_name;
But the user name doesn’t get returned. Is there a correct function for this?
Thanks!
Topic: color attribute
I’ve written a WYSIWYG plugin for my BBPress install. It replaces the standard textarea with the TinyMCE WYSIWYG editor based on an option in the user profile.
I’ve incorporated code from Michael D Adams’ ‘Allow Images’ plugin and extended it a little to include paragraph <p> tags and <span> tags.
Everything is working fine, except for one issue that is driving me mad.
When a span with color set in it’s style attribute set, the color: gets stripped out. For example <span style=”color: #ff0000;”> becomes <span style=””>.
I can’t figure this out for the life of me! Other CSS attributes are fine, for example text-align:, background-color:, text-decoration: all work fine.
I’ve tried the following two bits of code with no success:
1. $tags = array(‘style’ => array());
2. $tags = array(‘style’ => array(‘color’ => array()));
Does anyone know if there is a way I can modify this behavior?
This is my first attempt at a plugin, so apologies if I’m missing something obvious here!
Thanks,
Rick
I am resurrecting this, since I saw a couple threads talking about it that – while marked as resolved – didn’t actually resolve the problem!
The bbPress login form does NOT work with IE6. Not even on this forum.
More specifically — you cannot enter text into the form; only submit the (empty) input values. Before I go ahead and completely rewrite this bit of code, is there a known fix?
Topic: Delete Post by It’s Owner
Is it possible to Delete a Post by It’s Owner?
I added this to member capabilities, but it shows me it’s a bad idea
;
‘delete_posts => true,//+’
How can I do?
Topic: Database error
When trying to post I get this message:
bbPress database error: [Unknown column ‘post_title’ in ‘field list’]
UPDATE bb_posts SET post_title=’Testy mctest test’ WHERE post_id=’11
I am using the wordpress database (different prefix for bb stuff) but there doesn’t seem to be a post_title column, here’s the output from mysql:
mysql> describe bb_posts;
+
+
+
+
+
+
+| Field | Type | Null | Key | Default | Extra |
+
+
+
+
+
+
+| post_id | bigint(20) | NO | PRI | NULL | auto_increment |
| forum_id | int(10) | NO | | 1 | |
| topic_id | bigint(20) | NO | MUL | 1 | |
| poster_id | int(10) | NO | MUL | 0 | |
| post_text | text | NO | MUL | | |
| post_time | datetime | NO | MUL | 0000-00-00 00:00:00 | |
| poster_ip | varchar(15) | NO | | | |
| post_status | tinyint(1) | NO | | 0 | |
| post_position | bigint(20) | NO | | 0 | |
+
+
+
+
+
+
+9 rows in set (0.00 sec)
I have looked around, but can’t seem to find anything about it on here. The forum/topic actually shows up when I go back to the page, but this is rather inconvenient. Thanks to anyone willing to help out with this.
WP version = 2.51
MySQL version = Server version: 5.0.45-Debian_1ubuntu3.3-log Debian etch distribution
bbPress version = latest (just got it 3 or 4 days ago) so 0.9.0.2
Thanks,
-Scott.
Topic: Check out our new skin
Hello my friend just finished our bbpress theme at iPhoneFan.com
Please check it out as we are very proud of it
Unfortunately, it doesn’t work quite well on IE6
Topic: Official themes repository
At first – I know the excellent _ck_ ‘s bbpress showcase. Good work, man!
But should have bbpress.org/themes just like bbpress.org/plugins . After 1.0 RC may be.