Forgot Password?

  • Home
  • Resources
    • Blog
    • News
    • Professional services
  • Projects
    • Webber
    • WB Ticket System
    • WB Blog
  • Contact
  • Support
    • Wiki
    • Forum
    • Ticket system

DrSoft Blog

sharing thoughts, ideas...

  • Tags

    • css
    • galleries
    • drsoft
    • webber
    • open source
    • applications
    • developers
    • Webber
    • protection
    • guide
    • files
    • mod_rewrite
    • downloads
    • hotlinking
    • htaccess
    • leechers
    • menu
    • programming
    • plugins
    • ajax
    • form validation
    • jquery
    • php
    • ide
    • editors
    • progress bar css php
    • modules
    • blog
    • speedy
    • codeigniter
    • buttons
    • html
    • email
    • phpmailer
    • sendmail
    • smtp
    • validation. user friendly
    • file upload
    • multiple
    • login
    • secure

Webber blog module performance tuning Posted on 01-11-08, 05:56 PM by blog 0

We just released a small module (Speedy - done in a few hours thanks to Webber and it's flexibility) which is supposed to make your pages way faster by reducing the number of HTTP requests a browser has to satisfy when loading a page.

Basically, the module will capture the main content being sent to the browser by Webber and modify it by combining all the javascript and css files into one file, all the css files into one file as well and send those 2 to the browser instead of the original ones. For example, if you have 6 js files loaded in your page and 3 stylesheets, speedy will capture them before the page being rendered in the browser and create only 2 files. This way you cut down the number of requests from 9 to 2. It also adds far future expires headers to instruct the browser to cache them for a better and faster browsing experience.

The module is very easy to install. At the activation point, it gives you the option (also editable from the module admin interface after activating) to specify how exactly should speedy change your content. You can chose to minify and/or gzip your page or javascript and css files and you can also specify if the files should contain far future expires headers which will make them cacheable by the browser which is a very good thing since it really makes your website fast.

Webber speedy settings

In my humble opinion, there's always room for web page optimisation or performance tuning. The advantage is huge since you and your team can keep and maintain a very well structured set of files and not worry about numbers since speedy will reduce them without modifying any of them. Speedy creates it's own file stored in a local temp folder and uses those files instead of the original ones.

For those of you with a codeigniter background I will continue this post with a small tutorial on implementing PHPspeedy (what our module uses) into your websites without having to use this module or even Webber at all.

I usually keep a folder inside my codeigniter projects named "scripts" where I place anything that can't be called a library or helper. Assuming you have already downloaded PHPSpeedy and placed it in your folder of choice we will continue by creating a hook (that's right, enable them from your config.php file) which will add a "display_override" action in order to capture the content before it's being sent to the browser since PHPspeedy needs to manipulate it and make it's own version.

For Webber, we modified the 'Hooks' library to permit us to load hooks directly from a given module but, for this tutorial to achieve it's goal, you will have to create a new PHP file (name it whatever you like) and place it inside 'system/application/hooks' folder. This will be the hook file to capture the content and run speedy. As per instructions, the new file must contain a class and at least one method to be called by the hooks library that Codeigniter triggers at every load.

class Speedy {

	function optimize ()
	{
		$this->CI =& get_instance ();
		//	catch the output and store it inside a variable
		$output = $this->CI->output->get_output ();
		//	load PHPspeedy
		require ( '/path/to/speedy/php_speedy.php' );
		//	send the new content
		$compressor->finish ( $output );
	}

}

With the hook saved and ready to function we only need to save our new hook to the hooks.php config file (system/application/config) and "the THANG" should be running:

$hook['display_override'] = array
(
	'class'			=> 'Speedy',		//	the name of the PHP class
	'function'		=> 'optimize',		//	the function/method to execute
	'filename'		=> 'speedy.php',	//	or however you used to name it :)
	'filepath'		=> 'hooks'		//	the path to your hook file
);

Read more ...

Blog module released Posted on 24-10-08, 09:09 AM by blog 0

Hello everyone! As you can see, we like keeping you posted with nothing but good news. We released the blog module this week.

The Blog module is a powerful PHP application which can be used widely from a simple blog to a full CMS with advanced features like code snippets, smarty tags online template editor and many other things. Our site is 100% built with the blog module and, as you can see, we managed to put together a quite complex design (featured on most of the CSS galleries) so I guess we can call it a CMS as well. Read more ...

Extending Webber's menu Posted on 23-09-08, 04:37 PM by blog 0

Someone posted a new question today on the forum and I was quite happy of it since I knew my answer was going to show everyone how easy it is to work with Webber as a developer. The member was lost in the code trying to add new elements to the existing menu(s).

I know that a new script on everyone's server can be a little bit intimidating at first but this is not the case with Webber. We have created API's and objects to be accessed with ease from any page as long as the main file is included. More than that, my answer was simpler than writing this post. I created a nice wiki entry which clearly explains how to extend the two menus that Webber has by creating a small plugin. No complicated things or voodoo thang, a simple plugin do do this hack.

I'm sure you'll love the flexibility of webber and enjoy reading the post as much as I did by writing it. Read more ...

Iacta alea est Posted on 09-09-08, 04:47 PM by blog 0

I'm very happy to announce that, as of today - right now, Webber has started it's journey into the www. It's a huge and crowded world out there and we're still unsure about many things but we're young, hard workers, happy and dedicated (if something's missing from the soup please let me know :P).

I was frequently asked why start with a membership manager and not a CMS or something else instead. Well, in my opinion, it's very important to start with a strong backend and derive from there into any direction you need. It's also nice to feel in control over everything that takes place on your site, to ban, invite, contact, sell or who knows what...all from one, centralized admin interface.

In the right hands, Webber can be a very effective tool. Even though Webber has no feedback at all (yet) and it's in early BETA, I'm very confident that it will have it's buzz. Confident because we invested a lot of time and efforts to create what could be everyone's choice when it comes to user administration.

Read more ...
Home
© 2008 drSoft Ltd. All rights reserved.