Forum Replies Created
-
In reply to: Skipping code in .php files and CSS.
For a single line of PHP, you can just do this:
// echo $phone;
And that single line will be commented out. If what you’re commenting spans more than one line, use the
/* commented code */
method.In reply to: Skipping code in .php files and CSS.Yes, you can comment out a block of code in between the
<?php
and?>
by using/* commented this part */
. For example,<?php
echo $user;
/* echo $phone; */
?>The phone would no longer be displayed because you commented it out. It won’t even appear in the source of the page when viewed in the browser, unlike a HTML comment
<!-- commented this part -->
or CSS comments (which are always visible.)If you have full access to the server, it’s good practice to log PHP errors and warnings rather than display them to the browser. That’s done in php.ini.
Are you using permalinks? Did you already have an .htaccess and add the error handling lines to it?
Here’s one way:
http://perishablepress.com/press/2008/01/14/advanced-php-error-handling-via-htaccess/
I’m assuming you’re on shared hosting. If you have more control over the server, there are better ways to do it than with an override in .htaccess.
In reply to: Future of bbPressThanks for stopping by Matt.
I have the same problem in one browser, no problem in another browser (I had the warnings showing in Firefox but not in IE.) If it’s just a warning and it works, maybe you just need to not display warnings to visitors?
Does the error message you are seeing say “Warning:” at the beginning of it?
In reply to: tinyMCE losing <p> formatting on EditAre you using the Allow Images plugin, or allowing images some other way?
There was a recent thread about this exact problem but I can’t find it offhand.
UPDATE: Never mind, it was you posting the same problem:
Actually, trying in another browser, I am able to exclude some forums by adding them to the array there.
Do you have other plugins installed that might be in conflict?
(Guess I should turn off PHP warnings, eh?)
I couldn’t even activate that; I got an error on bb-includes/functions.bb-meta.php line 708 and 709.
That’s not related to your problem though. Sorry I can’t try this out for you.
I’m running 1.0.1.
Update: Just upgraded to 1.0.2 and tried again. Same errors. Those are just about cookies though. Not sure what’s going on there.
Can you post the full code of
exclude-forum.php
please? If it’s too long, use something like pastebin rather than posting here.If you post here, be sure to wrap code in backticks
`
, usually above the tab key on a US keyboard.In reply to: Basic installation help1. If your website is in public_html, then I would put the folder inside that folder, so you would have this:
/public_html/bbpress/
or
/public_html/forums/
or
/public_html/discussions/
When you unzip bbPress, it will create a folder called
bbpress
. Rename that folder to whatever you want before you upload it.Uncompress it on your desktop, then rename it, then upload the whole thing to public_html.
4. Well, if /public_html resolves to your domain at http://www.example.com/ and you renamed your bbpress folder to discussions, you would visit http://www.example.com/discussions/ and start the installation.
If you want a link to the forum in your WordPress menu, you will need to create a Page with a slug that is identical to your folder name. So, if you called your folder
discussions
, create a Page called Discussions with a slug ofdiscussions
and if you’re using permalinks in WordPress, that menu item will serve up the bbPress installation.There are also plugins that will allow you to redirect a page to another URL. You might need to do something like that.
Custom Field Redirect: http://www.nathanrice.net/plugins/
Page Links To: https://wordpress.org/extend/plugins/page-links-to/
There are ways to do it in a page template as well, but you might not need any of that. Create a page with the slug named the same as your forum folder, and it should ‘just work’.
Does anything here help?
In reply to: instable scriptsI think that’s the output from the command
top
so watpocom is just the user that’s running the processes.I suspect it’s a plugin causing the problem. Using the plugins linked to by johnhiler will help pinpoint the problem. I’d start with bbPress plugins.
In reply to: Formatting Category & Subforum margins on front pageWhat version of bbPress are you running? The 1.0 version has some classes that you seem to be missing there. I don’t have a 0.9 version installed with categories to check this out.
This would get you close, at the bottom of your style.css, but it’s not quite right – it spaces all the table data cells over. You just want the first ‘column’ over, the forum category.
.bb-root td {
padding-left: 2.5em;;
}I didn’t think the older version had forums as categories – are you using a plugin for that, or are you using 1.0 and just missing some classes for your theme? Maybe that theme was for 0.9 and is missing the markup for 1.0.
In reply to: instable scriptsWhat plugins are you using?
In reply to: Custom htaccess file, now 404 pages aren't resolvingHow about comparing it to the stock .htaccess and see what’s different? Or, install the stock .htaccess and then make your changes one at a time?
In reply to: When bbpress 1.0.3?Why not contact Matt Mullenweg?
In reply to: Font color not changing.Looks like you have changed the size of the text? IF NOT, please start a new topic for each individual problem. It’s too confusing to try and keep track of what the links looked like, what you want them to look like, footer/header, etc.
New topic for each problem. Thanks.
In reply to: forums/bb-admin just redirects me to forums/So both Alekseo and Kawauso can both log in on the bbPress side and it’s fine, the problem exists only when logged in at WordPress?
In reply to: Install bbpress in the same folder as wordpress?Don’t put it in the same folder. It doesn’t work well. The subdomain solution is fine.
In reply to: Control subjects before they are publishedThen you might need a plugin like this:
https://bbpress.org/plugins/topic/bb-moderation-hold/#post-245
The only problem with that plugin is that it’s old and might not (probably will not) work with 1.0. But that is the approach you want to take. You must approve a topic before it’s visible to the public.
In reply to: Font color not changing.Which text in the footer? The “Invicta Trader Forums is proudly powered by” text?
#footer p {
color:red;
}This will change the color of that text.
If you’re not talking about that text, please post exactly what text you want to style.
Also, please stick with one subject per topic so we can close items as they are resolved.