Tag: Wordpress
Posting code in my land
Some days ago I was in trouble when trying to insert code into a post, things were working bad in WordPress’s rich editor, ampersand was making me crazy and I had to look for new plugins to face the problem.
The solution:
Two plugins working together are making my code posting a relaxed experience:
Visual Code Editor: Makes it possible (and trouble free) to post and edit code snippets in wordpress’s visual editor. Requires WordPress 2.5 – 2.7. * Adds <pre> & <code> to block format menu. * Allows extra attributes for compatibility in some syntax highlighters (ie, <pre lang=”php” line=’5′>). * Allows iFrames. * Unescape WP’s double escaping of &. * Removes extra <pre> tags around SyntaxHighllighter Plus’s blocks. * Works in comments. By Jules Gravinese.
SyntaxHighlighter: An advanced upload-and-activate WordPress implementation of Alex Gorbatchev’s SyntaxHighlighter JavaScript code highlighting package. See WordPress.com’s “How do I post source code?” for details. By Matt, Viper007Bond, and mdawaffe.
That is.
WordPress MU and safe_mode
Solution implemented on: WordPress MU 2.7
INTRODUCTION
A change of server gave me some problems with La-ciel Blogs (wordpress MU implementation) because it has safe_mode on. In this article I describe the way I got problems solved.
safe_mode is a configuration directive that solves security problems derived from shared-servers, a way to get it is by disabling some functions including mkdir().
The restricted mkdir() does not allow applications (in this case WordPress) to create directories with chmod 777 disabling subdirectories and subfiles creation, it means that you wont be able to upload files using your WordPress back end. So when your server has safe_mode=on you get some problems.
I am Victor Santafé, a 24 years old guy currently living and working in Colombia. I am a System Engineer, I love my profession, I love everything about Software Engineering and Programming Languages, I love music, photography and everything related to arts.