Search Results for 'code'
-
Search Results
-
I have bbPress installed in a directory called “forums” on my web server. I have Pretty Permalinks enabled and working. To view the profile of a member, I can go to this URL:
http://www.example.com/forums/profile/membernameHowever, I would like the url to be:
http://www.example.com/profile/membernameI’ve tried writing a mod_rewrite rule which rewrites the latter to the former. However, instead of rewriting it, it redirect and exposes the URL. For example. Typing this into the browser:
http://www.example.com/profile/membernameRedirects to this, instead of rewriting it:
http://www.example.com/forums/profile/membernameHere is the mod_rewrite I am using:
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymlinks
RewriteRule ^profile/membername$ /forums/profile/membername [L]
</IfModule>If I change the rule to rewrite the URL to a simple text file, it rewrites properly and masks the URL. For example, this works:
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymlinks
RewriteRule ^profile/membername$ /forums/textfile.txt[L]
</IfModule>Another example, I wrote this rule, as a test, to rewrite a URL to the rewrite-rules.php file:
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymlinks
RewriteRule ^profile/membername$ /forums/bb-admin/rewrite-rules.php [L]
</IfModule>I type in this url into my browser:
http://www.example.com/profile/membernameAnd it redirects to ths instead:
http://test.doublebad.com/forums/If I replace all the text in the rewrite-rules.php file with “test text”, then the URL rewrites properly.
So it seems that when you are rewriting and URL to a bbPress php file, it will always redirect instead of rewriting, which is quite annoying. I’m trying to trace in the bbPress functions and settings where this is occuring. But I’m having no luck.
Any suggestions?
A few days ago, out of the blue, users of my bbpress forum reported that submitting a new topic/post resulted in an error. Previously, my bbpress forum was working perfectly. However, over the last few days, I have verified that if you submit a new post or leave a comment, the browser takes you to bb-post.php, where the page hangs. You can verify this on my forum using user “testuser” and password “test123”.
There are a few weird things about this:
- I hadn’t touched the server for some time prior to this sudden problem, so it’s weird that the problem started, since I hadn’t changed anything
- I’ve been running two bbpress forums authenticated against the same WP user table. The problem is only with the first bbpress installation, while the second bbpress installation continues to work with no problems.
- When you post, the browser returns a 500 internal server error, and doesn’t display a “die” message, e.g. “You need to actually submit some content!”
- Although the browser returns a 500 internal server error, the posted content does go through.
I’ve hand-inspected http://boards.weddingbee.com/bb-post.php, and it has exactly the same PHP code as http://classifieds.weddingbee.com/bb-post.php. I’ve tried everything I can think of… I disabled plugins and Akismet, and the problem didn’t go away. (I’ve turned them back on.)
I’m using bbPress 0.83, with bb_db_version 788. I haven’t upgraded to bbPress 0.9.0.2 yet because I’ve integrated my WordPress 2.33 install with two bbPress installs and a Mediawiki install, and it will be a ton of work to reintegrate. However, that is the next step…
Does anybody have any ideas?
Topic: Insurgency.cz forum
I just use another theme and moddified, couse my code skills are not good. I moddified www theme too and i triyed create 1 nice theme for site and forum. I hope its ok now. I must change few things at code (size, avatars etc) but i hope its nice. its CZECH lang btw…
Topic: Profile hook/filter
Hi!
I’m working on a plugin that I want to show some info on the profile page. The only hook I’ve found that lets me do that is
get_profile_info_keys, but that puts the info on top of the profile page (seems like it does it before the header) and where I actually want it.Anyone have any ideas on what I can use to get my “stuff” in the profile page?
Regards,
Rune
I’ve been running into cookies issues while trying to integrate bbPress into my existing WPMU site. My WPMU and bbPress installs are located in separate directories on my server (/blogs and /youngadults/forums).
bbPress is currently setup so that when users log into the forums, they are automatically logged into WPMU as well. However, for some reason this is not working the other way around – if I log into WPMU first, I am not logged into bbPress.
Does anyone know of a way to log into bbPress when going through the WPMU login?
I am using the MD5 Insecurity and Mouldy Old Cookies plugins, along with this snippet of code in the bb-config.php file:
$bb->usercookie = ‘wordpressuser’;
$bb->passcookie = ‘wordpresspass’;
Topic: Can’t get bbpress to install
I have had bbpress working on my doteasy account, and I decided to reinstall it – probably shouldn’t have
When I contacted them, they informed me that they would try running the script and installing it…and I got this message back“Hello Antonio,
This script appears to be incompatible with our hosting servers. Please try using a different script.”
“The database failed to install. You may need to replace bbPress with a fresh copy and start again.”
Now here is what happens when I try to install the script.
Your site settings have been saved and we are now ready to complete the installation. So what are you waiting for?
Then when I proceed to the final step I get this error.
“Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, advancedsupport@doteasy.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.”
At this point, if I refresh the page it goes back to the installer and I get this message ” bbPress Installation
Welcome to the bbPress installer
Step 1 – Database configuration
« completed
Step 2 – WordPress integration (optional)
« skipped
Step 3 – Site settings
Installation complete!
Show installation messages: “
If I then go back to atriskstoriesofhope.com/bbpress it wants to go back through the installation. What should I do?