Search Results for 'code'
-
Search Results
-
hello,
I’m working on a two column template.
in the front-page.php it’s possible to have the forum list in a table.
I’d like to have this list also in other pages, that is, for instance, in the forum.php or in the topic.php.
if I try to run this list in other pages than front-page.php I obtain this error:
Warning: Invalid argument supplied for foreach() in [my template path]forum.php on line 23(the line number is not relevant because I modified the code).
it seem that the variable $Forums in this foreach is not loaded with the needed data.
foreach ( $forums as $forum ) { ...I’ve tried to find out where it is that is loaded, so that I can load it also in forum.php etc., but I was not able to find out.
someone can tell me where it is that is loaded, and other suggestion on how to have the list of forums in all pages?
thanks.
Topic: Integration questions
Hi!
I’ve been searching through this forum like a maniac and my bad – I didn’t find any answers for my questions.
I somehow managed to “integrate” my bbpress with WP (the part of users, cookies), BUT:
1) How can I wrap the forum inside my WP blog (like in wordpress.com) ?
2)…. well, the first one actually was the big one
Topic: Line Break
I’m new to bbpress, and was playing around with an install. I noticed that it doesn’t allow all forms of line breaks, only the current proper one that is self closing.
<br> and <BR>Do not seem to work properly. This was an issue because I noticed that my users are sloppy HTML coders and the tags would just print out.
I don’t know if it has been covered before. I searched and found nothing. I did get it to work with a small php tweak.
In formatting-functions.php, I put the following under bb_encode_bad:
$text = preg_replace('|& lt;BR& gt;|', '', $text);
$text = preg_replace('|& lt;br& gt;|', '', $text);
$text = preg_replace('|& lt;br /& gt;|', '', $text)(The code tag won’t output the code correctly, so I put a space after the &, so they wouldn’t get converted.)
It works, but all three forms now convert to
<br>, instead ofWhich works well enough, but even self closing br tags will now drop the /
I’m not strong at PHP. Only enough to get by. What do you think. Is there another way to do it? Or a better way? Or hell, a plugin?