Search Results for 'code'
-
AuthorSearch Results
-
June 8, 2010 at 4:42 pm #67317
gjoseph
MemberSo what’s the status of this ? The site is… pretty empty, and the google code project hasn’t been touched since august …2008. Is there still any interest ?
June 8, 2010 at 3:21 pm #89279In reply to: Same forum using http and https
_ck_
ParticipantDid some digging, here’s why that happens:
Someone (ahem, Sam?) hard coded the url for
bb-adminand worse than that, they did it as a relative url, instead of full url, so my little plugin can’t detect the page is in https mode.example:
$uri = bb_get_uri('bb-admin/delete-post.php'right there, wow, hardcoding, after all that nonsense with even more CONSTANTS for all those silly paths.
So, what we need is to detect when bb-admin is being requested and convert it back out of the relative url into a full url.
June 8, 2010 at 3:05 pm #89350In reply to: How to remove backticks option from acting as
ghettobsd
MemberThat’s actually why I needed to remove the backtick, because I wouldn’t be able to post code without it looking like barf.
Thanks for your help again guys, great work!
June 8, 2010 at 3:02 pm #89278In reply to: Same forum using http and https
_ck_
ParticipantAh those controls (Sticky, delete topic, lock and unlock) are done javascript (ajax) in 1.1 so there is probably yet another url that has to be “adjusted” and hopefully not hard coded.
June 8, 2010 at 2:52 pm #89375In reply to: Submitting registration form results in blank page
sajp
MemberIt’s definitely doing it in both of the Kakumei themes, with Askimet (and everything else disabled). It was letting me register account previously, so it must be after I started making modifications.
I’m currently pulling in the header and footer from my WordPress theme using ‘deep integration’ (which I don’t really understand if I’m honest), but I haven’t integrated my bbPress with WordPress so the users are shared or anything like that.
To do that, I did add ‘require_once(dirname(__FILE__) . ‘/../../wp-load.php’);’ at the end of my bb-config.php file. Could that be causing a conflict of some kind? I think that’s the only core file I touched.
I realise that this is starting to sound like I’ve broken it at some point along the line
June 8, 2010 at 1:06 pm #89325In reply to: Send email to all members?
zaerl
ParticipantYou can use phpmyadmin:
SELECT DISTINCT user_email FROM bb_users ORDER BY user_email ASCbut mass email isn’t a good idea.
June 8, 2010 at 12:29 pm #89348In reply to: How to remove backticks option from acting as
zaerl
ParticipantIt’s the only way to do this. Otherwise you should replace the filter manually which is also a hugly hack. If you remove the filter and then add a custom code (I tried with a plugin) this doesn’t work cause the filter must be at the same exact position (after bb_encode_bad and force_balance_tags.) Changing the code againg when the SVN update it’s not difficult.
The first thing I’ve done after my very first installation of bbPress was to chage the backtick code. I think that using such character of inline code is not a wise choice. First of all cause that character is hard to find on keyboard layouts different from USA. Seconded cause that character is widely used on several language (Perl, Ruby, PHP, MySQL, Lisp, TeX and other.) I can’t write significant portion of code without breaking the formatting.
June 8, 2010 at 11:04 am #89118In reply to: s2member integration
wood2695
MemberHey drcoach. Hoping it might help you, I’ve dumped my edits into pastebin to avoid the bbPress forum’s reformatting. I’ve also added a few placement notes. http://pastebin.com/uZwUJCtA
Only 2 things that I could think of (with my limited knowledge of it all) is:
1) Is your setup a “deep integration” of WP+bbP?
2) The code that I said to add included some stuff that was already there (I guess “edit” would have been a better term). Only the “strong” code was the addition. The code I placed on pastebin includes notes on existing and unchanging lines and what & where to add. (sorry if you already understood that, I’m just trying to think of mistakes I might have made)
I hope that helps and good luck!
June 8, 2010 at 8:17 am #85635In reply to: Name based permalinks without page/ and forums/
mr_pelle
Participant[…] Then replaced the code of .htaccess with the code in nicer-htaccess > activated plugin > activated permalinks name based option from admin panel.
But got following error: […]
Hi! It seems you did not read my installation instructions carefully:
(1) FIRST activate name based permalinks
(2) then perform automatic/manual update
As for “name not allowed” on the server, do the same: go to bbPress admin panel and activate name based permalinks. It will generate the htaccess file automatically, if folder permissions are set. If not, set them or create the file yourself (you may leave it blank) and let bbPress do the rest. THEN you may perform (2).
June 8, 2010 at 6:05 am #89318In reply to: Where is the bbpress Dashboard?
btko
MemberIt was giving me the “Admin” link along the top and when ever I pressed it, it would always forward me back to the forum home. But I just went to look again and now it works….
Strange (or maybe not).
I think maybe I hadn’t finished the wordpress integration completely? Seems to be working now.
Thanks
June 8, 2010 at 5:49 am #89354chrishajer
ParticipantLooks like the bbPress forum footer.php is trying to load a WordPress file? For this integration, maybe you should find the file that’s being referred to (_contentfooter.php) and just hard code the path to it, rather than relying on the constant THEME_LIB, which doesn’t appear to be working.
One problem at a time.
Also, it’s just a warning, although it’s warning you something is not working. On a production site, you should not display warnings. During development, it’s good to see them, even if they’re just logged, so you can fix problems like this.
June 8, 2010 at 4:08 am #85634In reply to: Name based permalinks without page/ and forums/
sureshdrim
Participant@ Mr_pelle
Thanks for ur plugin.I tried it but unfortunately it didn’t worked for my forum.I changed the RewriteBase as follows while I was testing it on localhost as my test forum is installed at http://localhost/bbpress/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /bbpress/
Then replaced the code of .htaccess with the code in nicer-htaccess > activated plugin > activated permalinks name based option from admin panel.
But got following error:
“Oops! This link appears to be broken.”
in Google Chrome while navigating the forum.
Secondly even I tried to test ur plugin on my server where my forum is installed at http://www.xyz.com/ so I changed RewriteBase to
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
But I could not find any .htaccess file in root folder on server.So I tried to upload it through FTP but got an error :
“The name you specified is not allowed”
coz of “.” in .htaccess name.
Please help..
June 7, 2010 at 11:57 pm #34449Topic: Post Count (5 posts +1 more)
in forum Installationgerikg
MemberMy “posts count” are showing (5 posts +1 more)
topic_posts_link(); is giving me 5 posts +1 moreJune 7, 2010 at 10:14 pm #89344In reply to: How to remove backticks option from acting as
zaerl
ParticipantOpen function.bb-formatting.php.
Change
bb_decodeitandbb_code_trickwith http://pastebin.com/SAx377E4No more backticks for you.
June 7, 2010 at 9:51 pm #89343In 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)
-
AuthorSearch Results