Showing posts with label web. Show all posts
Showing posts with label web. Show all posts

Sunday, July 10, 2011

Four reasons to use a CMS

I get a lot of traffic on this blog from people searching for help with Joomla issues. So I thought this might be relevant to some of my readers.

Question: Should you really use a content management system for your web project?

Some advantages involve ease of setup, ease of administration, adding new posts etc. Which are often a key selling point, especially when developing a website for users who deem themselves to be non-technical and don't want to mess around editing HTML and the likes.

Anyway, I just read this in something I was reading and would like to share it here:


Four Reasons to Use a Content Management System
  • 1. Do you need to update your website's content more than once a month?
  • 2. Do you plan to have a regularly updated blog on the site? (Note: Regularly updated = someone will be responsible for it. Blog posts don't come out of nowhere.)
  • 3. Will non-technical/non-web developers be writing posts, updating the site, etc?
  • 4. Will you need the ability to update/manage/maintain the site from any location, without using special software like an FTP client etc?

If you answered 'Yes' to any of those questions, then you're likely to need one. If you didn't, then why not consider just making a static website?

Wednesday, March 02, 2011

jQuery modal not working when inside click function

It seems that every time I want to do something new, I am faced with learning/figuring out a new library or technology. This time it was jQuery and boy I was having some problems with it.

One of the issues I was facing was with this code, where I wanted to show a modal 'pop up' when an image was clicked. The 'modal' command worked fine, except that it refused to work when called from inside a 'click' function.

If anyone knows how to make this work I'd love to know.

//works on its own
jQuery('#takeidphoto').modal({position: [160,160]});

//totally doesn't work
jQuery('#takephotoimg').click(function() {
jQuery('#takeidphoto').modal({position: [160,160]});
});


In the end I resorted to plain old javascript and used this decent library from Matt Kruse called 'DIV Popups' which served my purpose: http://www.javascripttoolbox.com/lib/popup/example.php

Sunday, February 06, 2011

Output XML with PHP

Something to get you started with php and xml. Complete with get request and xml header:


<?php
header('Content-Type: text/xml');
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
?>
<?php
$getrequestparam1 = $_GET["getrequestparam1"];

echo "\n<result>No Results Found for $getrequestparam1</result>";
?>

Monday, December 13, 2010

Warning: include() [function.include]: URL file-access is disabled in the server configuration

I too, was getting the error:

Warning: include() [function.include]: URL file-access is disabled in the server configuration

For my include file.

Using "Allow_url_include = On" in my php.ini file was not an option for me, since I was using a cpanel on some third part web host. (Allow_url_include is kind of a bad thing to do anyway, since it means other hosts can link to your file and steal your code).

However, this site taught me how to solve it: http://blog.everymanhosting.com/php-coding/warning-include-functioninclude-url-file-access-is-disabled-in-the-server-configuration/

The option that worked for me was:

require_once($_SERVER['DOCUMENT_ROOT'].'/file.php');

Saturday, July 24, 2010

Goosh.org - Google shell interface for geeks

This is a very interesting idea. Stefan Grothkopp's Goosh.org gives the user a unix/linux type shell interface for Google searches via a web browser.

I'm not sure if it searches any faster than Google, but learning a few command line, er, commands I guess a user can experience a streamlined and powerful search that has a nostalgic 'lynx' feel.

The features of Goosh are:


web : google web search
news: google news search
more: get more results
blogs: google blog search
read: read feed of url
feeds: google feed search
place: google maps search
translate: google translation
images: google image search
video: google video search
clear: clear the screen
wiki: wikipedia search
help: displays help text
cd: change mode
site: search in a specific website
open: open url in new window
go: open url
lucky: go directly to first result
ls: lists commands
addengine: add goosh to firefox search box
load: load an extension
calculate: evaluate a mathematical expression
settings: edit settings
gmail: read & write mail in gmail *
login: login with your google account *
logout: log out of goosh