Search Results for 'code'
-
Search Results
-
Topic: Editing a shortcode
I have a page which uses the shortcode [bbp-topic-form]
However I would like to comment out some things I don’t want to be viewed. Could anyone point me in the right direction in how to find the file which creates this short code.Thanks in advance.
Topic: security
I am new to WordPress/BBPress and am coming from PHPBB.
I am creating a bulletin board using the BBPress plug-in for WordPress. I’m not planning on really using WordPress (yet) for my website. It’s just a few static pages, a css file, and, soon, a forum.
My board will be for just fifty people and I would like to create all the accounts myself so that I don’t have to worry about spam posts from bogus accounts.
- In PHPBB, there is a control panel option to disable the ability to create new accounts? I don’t see that option in WP/BBPress. How would I do that?
- I think I read on this forum that I can make my board invisible to non-members, but that is not a control panel option. What’s the prefered way for a newbie to do that?
Also, I read an article on WP security, Top 5 WP Vulnerabilities and How To Fix Them.
http://www.esecurityplanet.com/open-source-security/top-5-wordpress-vulnerabilities-and-how-to-fix-them.htmlVulnerability # 1: SQL Injection & URL Hacking.
Vulnerability # 2: Access to Sensitive Files.
Vulnerability # 3: Default Admin User Account.
Vulnerability # 4: Default Prefix for Database Tables
Vulnerability # 5: Brute-Force Login Attempts3, 4, and 5 seem pretty obvious to me. However, for help with mitigating the threat of Brute-Force Login Attempts, the author refers to two plug-ins: Limit Login Attempts and Better WP Security. Are these the preferred plug-ins? Although, I really must ask you guys why these two plug-ins aren’t written into the core software in the first place? In fact, shouldn’t the control panel also allow me to limit the creation of new accounts, as well?
I know BBPress, as a plug-in, is new, but WordPress has been around for ten years. Are the features that I list above planned for future releases, or is security not really an issue for the WP community, but rather up to each user?
Before I forget, how do I implement the solutions to the first two vulnerabilities? Do I just copy the code that the author lists into my .htacess file?
I don’t want to sound critical of WP/BBPress, or be the guy who is constantly comparing it to PHPBB. I just want to know the mentality behind it and, really, what I am getting myself into. I had a pretty secure PHPBB board that was easy to set-up and manage, but it was boring and looked like every other PHPBB board out there. I was told that WP/BBPress is customizable (some guy on your board showcases a beautiful board about Stratoliner motorcycles) and more secure than PHPBB. I hope to explore these features without becoming a full-time board developer nor becoming a php guru.
Thanks. I really appreciate this forum. I have been reading all sorts of posts. So if these questions have been answered, please don’t flame me; it’s not for lack of searching.
I am using BBPress and in the header I have created an login/logout section for when a guest or user is logged in. I’m currently trying to create a “My Profile” link when a user is logged in but I’m unsure of the functions to achieve this (or if I am using the right functions currently). My code for this currently is:
if(is_user_logged_in()) {
global $current_user;
get_currentuserinfo(); $text .= 'Hi '.$current_user->display_name.'!';
echo $text;
echo "#"'>My Profile | Logout"; }
else{echo "You are currently not logged in!";
echo "Register |
Log in"; }Just curious, i’ve worked with bbPress before but it looks like the WordPress Hierarchy is broken by bbPress.
http://codex.wordpress.org/images/1/18/Template_Hierarchy.pngNormally i could make a page template and call it page-forums.php to make sure WP would use this page template for a new page created by the slug forums
But for some strange reason this doesn’t work anymore with bbPress 2.2.1 and WP 3.5 Beta and Twenty Twelve.
How can i make sure WP or bbPress uses a different page template then page.php for showing the forums and category -index on the forums slug?
I’ve tried everything, Copy/Paste the page-front-forums.php from the Extra’s folder to my Theme’s Root -> Created a new page inside my Dashboard and called it Forums… Nope doesn’t work.. Even when i use the Shortcode [bbp-forum-index] on that last created page.. It keeps using the page.php by default..
Anybody who can help ?
Because this it totally not very cool 🙂Topic: bbpress and Artisteer themes
Hi,
Great forum plugin!
I am however experiencing some annoying theme compatibility issues…
My forum page (with [bbp-forum-index] shortcode) was wrongly picking up my theme’s css, instead of the bbpress css.
Resulting in an unusable forum layout.
I have applied the theme compatibility actions by copying the necessary bbp-theme-compat directory/files to my theme root.
By setting the correct bbpress page template via its page attributes, the main forum page (now without shortcode) seems to pick up the bbpress css. But shortcodes are still picking up the wrong css via the default theme page template..
Any suggestions to make shortcodes work with the bbpress css instead of the theme’s css?
Are there any additional css styles available that work with the bbpress theme-compat templates?
I am using wp 3.4.2, bbpress 2.1.2 and my theme is generated with Artisteer 4.
Regard,Tom