Search Results for 'code'
-
AuthorSearch Results
-
June 7, 2010 at 9:51 pm #89343
In reply to: How to remove backticks option from acting as
ghettobsd
MemberI also found in: bb-includes/functions.bb-formatting.php the following
function bb_encodeit( $matches ) {
$text = trim($matches[2]);
$text = htmlspecialchars($text, ENT_QUOTES);
$text = str_replace(array(“rn”, “r”), “n”, $text);
$text = preg_replace(“|nnn+|”, “nn”, $text);
$text = str_replace(‘&’, ‘&’, $text);
$text = str_replace(‘<’, ‘<’, $text);
$text = str_replace(‘>’, ‘>’, $text);
$text = “
$text“;if ( “`” != $matches[1] )
$text = “
$text
“;
return $text;
}
Could I change the last 3 lines starting from if?
June 7, 2010 at 9:30 pm #34448arcadedig
MemberHi. My new forum can be found here http://cfdblaze.com/forums/
1. stationpro is the WP theme, and the bbPress forum, wordpress installed on main url and shares db with bbPress. I really don’t know code or php, but it looks like I am missing a file, see the warnings below, or at the site:
Warning: include(THEME_LIB/_contentfooter.php) [function.include]: failed to open stream: No such file or directory in /home/cfdblaze/public_html/forums/bb-templates/BaseStationForum/footer.php on line 8
Warning: include(THEME_LIB/_contentfooter.php) [function.include]: failed to open stream: No such file or directory in /home/cfdblaze/public_html/forums/bb-templates/BaseStationForum/footer.php on line 8
Warning: include() [function.include]: Failed opening ‘THEME_LIB/_contentfooter.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/cfdblaze/public_html/forums/bb-templates/BaseStationForum/footer.php on line 8
2. The mailchimp email widget in the lower right footer is jogged funny. On the regular site it looks fine. What can I do? I have looked at this on Safari and Firefox and it is the same on each.
I really appreciate any help whatsoever. Thank You!
June 7, 2010 at 8:19 pm #89274In reply to: Same forum using http and https
eduardosilva
Participant_ck_,
I just noticed that also the controls for Sticky, delete topic, lock and unlock are not working, when you click on those links or in the link of admin panel, I’m redirected to the base address (still on https).
This only occurs when I’m logged in as admin. If I’m with guest access I can go to /bb-admin and see the login screen.
This is my ssl apache log:
my_ip - - [07/Jun/2010:17:05:13 -0300] "GET /bb-admin HTTP/1.1" 301 328my_ip - - [07/Jun/2010:17:05:14 -0300] "GET /bb-admin/ HTTP/1.1" 302 -
my_ip - - [07/Jun/2010:17:05:16 -0300] "GET / HTTP/1.1" 200 23610
my_ip - - [07/Jun/2010:17:05:18 -0300] "GET /favicon.ico HTTP/1.1" 404 2715
In a short way (and probably wrong), it looks like a 301 redirect for /bb-admin/(.*) to /
But this only happens logged in as admin, on https trying to access anything inside of /bb-admin (the rest seems to work as it should).
Using http everything is fine.
Thanks!
June 7, 2010 at 7:57 pm #89307In reply to: Security Concern
zaerl
ParticipantJust want to be able to disable the visibility of the “username” as I feel this compromises security a bit.
You can hide it with a plugin but the user login is still in the URL:
bbpress.org/forums/profile/chrishajerWith a plugin of mine you can hide profile pages but it hide the entire page. Or in other words it spawn an error page with a custom message. I don’t think this is what you need.
June 7, 2010 at 7:21 pm #89332In reply to: Removing "proudly powered by"
mpope
MemberThanks for that Kevin, looking at the page source I’m not seeing anything that looks nasty, though admittedly I’m not an expert. It took me a couple of days to find the right theme, rather not go through that again. When you say it injects code, what should I look for?
Also can anyone tell exactly what file to edit to remove or modify the advertising at the bottom?
Cheers
June 7, 2010 at 7:03 pm #89341In reply to: How to remove backticks option from acting as
_ck_
ParticipantIf you want the code tag to keep working but disable backticks, you’ll have to make a filter that encodes them into a html entity
(&#96;)before it gets to bbpress’s filters.June 7, 2010 at 5:26 pm #89331In reply to: Removing "proudly powered by"
kevinjohngallagher
MemberIt’s your website, and you can do what you want within the terms of the licence. Sadly the links from this website to teh licence haven’t worked in about a week – I’m not sure anyone is working on it, it took the good folks at Automattic about 4 days to fix the homepage so I doubt links will be workigtn any time soon.
I would though suggest 2 things:
1) Just style it to match your theme. That way it won’t stand out, and you’ll be supporting the free software you are using for FREE!
2) Don’t download themes from “bbPress Themes” as they inject code into your website.
June 7, 2010 at 5:17 pm #34447Topic: How to remove backticks option from acting as
in forum Troubleshootingghettobsd
MemberHi,
How would I go about removing the backtick to code option?
I am trying to do this:
Code:for i in [backtick] cat file[backtick]; do
echo $i
doneIn that example
–
Code:is code using the greater than less than.
– [backtick] is an actual backtick I want to show.So instead of showing ^^^ it shows:
for i in [code]cat file
; do
Any idea?
thanks
June 7, 2010 at 12:53 pm #89117In reply to: s2member integration
kevinjohngallagher
Member“White pages” means you’ve got a 500 server error.
If you open up your server error log it will say what’s going wrong.
Your code to me looks fine, as much as anyone can tell with the way this bbPress forum is currently handling code output
June 7, 2010 at 12:40 pm #89116In reply to: s2member integration
drcoach
MemberFirst, thanks to all for the thought and information you’ve put out here. As someone who is trying to do exactly what wood2695 is attempting – it’s really helpful. I have just tried wood2695’s suggestion of adding the code given to
in /bb-admin/options-wordpress.php, I added
$wpRoles = array(
‘administrator’ => __(‘WordPress Administrator’),
‘editor’ => __(‘WordPress Editor’),
‘author’ => __(‘WordPress Author’),
‘contributor’ => __(‘WordPress Contributor’),
‘subscriber’ => __(‘WordPress Subscriber’),
‘s2member_level4’=> __(‘s2Member Level 4’),
‘s2member_level3’=> __(‘s2Member Level 3’),
‘s2member_level2’=> __(‘s2Member Level 2’),
‘s2member_level1’=> __(‘s2Member Level 1’)
);
and then in /bb-includes/functions.bb-users.php, I added
static $wordpress_userlevel_map = array(
‘administrator’ => 10,
‘editor’ => 7,
‘author’ => 2,
‘contributor’ => 1,
‘subscriber’ => 0,
‘s2member_level4’=> 0,
‘s2member_level3’=> 0,
‘s2member_level2’=> 0,
‘s2member_level1’=> 0
);
However, after I did that my forum turned to a white page for both logged in and logged out users. Any ideas?
June 7, 2010 at 6:26 am #88923In reply to: WordPress Header on bbpress
r-a-y
ParticipantThe issue with loading WP header is that you don’t load a very important line for most plugins “bb_head()”
You could probably get around this issue by adding something like this in your bbPress theme’s functions.php:
function bb_head_in_wp_head() {
bb_head();
}
add_action( 'wp_head', bb_head_in_wp_head' );Though this is true w/ deep integration:
(advantage you can load any WP functions in bbP. Disavantage it will slow down your forum because you’re loading WP & bbP at the same time constantly)
June 6, 2010 at 10:42 pm #89300In reply to: cannot start installer
chrishajer
ParticipantChances are you did not set you database host. It’s hidden at the end of the database settings as an “advanced setting”. So, after you enter the database name, database user and password, tick the box and find the database host, and enter your host name there. If you don’t enter something there, bbPress looks on
localhost. If your database is not located there, it won’t work.Do you have a database host setting to enter?
EDIT: it seems sort of weird that you are getting this error now before having started the installation. Did you edit the bb-config.php manually before going to that URL? Or was there forum software installed here before?
June 6, 2010 at 2:15 pm #75903In reply to: Where to get the theme of "bbpress.org" for v1.0.1?
Trent Adams
MemberIt was my own stupidity. I never realized the hotlink until it was too late
Thanks again
June 6, 2010 at 12:17 pm #87823In reply to: Whoa! (bbPress.org 2.0 is live)
mr_pelle
ParticipantWould it be wrong to suggest that 1) moving from 0.9 to 1.0 wasn’t done yesterday and 2) shouldn’t we test before rolling out this stuff?
I mean, Homepage being down for 3 days. Plugin directory not showing a months worth of updates. etc etc
Sadly quoting…
June 6, 2010 at 11:06 am #87821In reply to: Whoa! (bbPress.org 2.0 is live)
_ck_
ParticipantThe plugins section needs a little love, not just the backtick problem but all of the “more” pages are not using the same template for some reason (the formatting is different).
It would be nice if those “more” pages also had the download count if that’s in the topic meta (can’t remember what Sam told me, I think they are tracked by day, but there also might be an easy summary right in the meta so the template could show
echo $topic->downloadsor something like that rather easily.Oh and tags are not being imported on new plugins into the system.
I guess most of these problems were from the plugin section previously using a semi-custom version of 0.9 and then they replaced it with 1.0 at stock settings.
June 6, 2010 at 11:01 am #81503In reply to: Show bbPress tag cloud/hot tags in WordPress
_ck_
ParticipantThere’s a much better way.
My “Hot Tags Plus” plugin makes the output into a static file, already compiled so there’s zero overhead the next time you want to display it.
You can then just use php’s
readfileto include it on any page you want outside of (or even inside) bbPress, you just have to figure out the full path to it on the server.June 6, 2010 at 4:15 am #76804In reply to: WordPress MU/BP Integration: post_author_link issue
BrianStevens
MemberAlright, it turns out I was a bit preemptive in declaring “Mission Accomplished.”
I modified your code because it originally didn’t work. Here is where I am stuck.
Now, the link shows up formatted correctly, but it links to the wrong page and then redirects home.
You see, post_author calls up the user’s Display Name, not their username, which is what post_author calls.
So that links to http://www.example.com/members/Brian Stevens, rather than http://www.example.com/members/bstevens
Does anyone know the code to call the username, rather than display name? post_author_id also did not work. I’m not sure how to call their account name.
June 6, 2010 at 3:37 am #76803In reply to: WordPress MU/BP Integration: post_author_link issue
BrianStevens
MemberClose, but the code was slightly off, and I was able to adjust it to my needs.
Thanks!
June 6, 2010 at 3:04 am #76802In reply to: WordPress MU/BP Integration: post_author_link issue
gerikg
Membertry this:
I had a better solution but I can’t remember it now. The code above only works if bbpress is in wordpress folder which 99% of people do.
June 5, 2010 at 11:47 pm #88529In reply to: WP 3.0 beta 2 integrated user registration
zaerl
ParticipantI’m not sure I’m using the ‘WordPress bbPress cookie plugin’ you mention
https://wordpress.org/extend/plugins/bbpress-integration/
I have only tested it in my XAMPP sandbox (Debian) cause I had only few minutes for it. Apache/2.2.12, PHP/5.3.0, MySQL 5.1.37.
The “email is required” error can be spawn only from register.php file line 33 and only if $_POST isn’t defined (well I just made a quick look so I could have written something that isn’t true.) But it’s very strange. If you want to make a quick test do
print_r($_POST);and see what you got.Damn I can’t help. Maybe it’s the first time in my life in which I would like to have a software bug.
June 5, 2010 at 2:41 pm #87819In reply to: Whoa! (bbPress.org 2.0 is live)
mr_pelle
ParticipantCode replacement takes place in the Plugins section too… https://bbpress.org/plugins/topic/facebook-like/faq/
June 5, 2010 at 1:34 pm #89272In reply to: Same forum using http and https
eduardosilva
ParticipantThat worked!
Everything works fine, except for the /bb-admin part using https. This page seens to redirect to the main forum, but switching to http works ok. (This is not a big problem, since my main objective was to have only the forum with ssl).
Just for the record (if someone else is searching for this):
The canonical modification can be made editing the header.php of the template and inserting the following line in the head section.
<link rel="canonical" href="<?php echo "http://" . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; ?>" />edit: this line look a bit messed here, check the original at pastebin: http://pastebin.com/626EqW74
Thank you!
June 5, 2010 at 12:09 pm #34431Topic: A code to list the admin of a forum?
in forum Troubleshootinggerikg
MemberIs there a code to list the admins of a forum?
June 5, 2010 at 11:26 am #87817In reply to: Whoa! (bbPress.org 2.0 is live)
mr_pelle
ParticipantPlugins directory not updating: Fixed.
Seems it’s not retroactive… I mean, Zaerl’s last plugins are now listed correctly, but all other plugins did not get updated (yet): it looks like my last plugins update was a month ago!

Plugins section is finally up to date!!
June 4, 2010 at 7:04 pm #89271In reply to: Same forum using http and https
-
AuthorSearch Results