Category Archives: Experiment

PHP – Dynamic Navigation Class – Stop losing time editing navigation!

I often have to deal with client that want to made some ‘small changes’ in the navigation menu. Put element 2 before element 1 and change the name or the link…

So lazy as I’m, I decided to write (my first) a PHP Class, that should handle a two level navigation. Let me share with you how to use it:

< ?php
	include_once("Navigation.php");//the Class
	include_once('navigation_definition.php');// Array of Nav. Element
	$myNav = new Navigation($a); //Construct Nav.
?>

As you see we need to define a navigation file. This file is an associative array giving a list of information:

  • “key”: link name
  • “class”: the css class name
  • “href”: the URL of the link
  • “parent”: the key of the parent element
< ?php
$a = array(
"Top Level 1"=>array("class"=>"level1", "href"=>"test1.php", "parent"=>"no"),
"Top Level 2"=>array("class"=>"level1", "href"=>"test2.php", "parent"=>"no"),
"Level 2 sub 1"=>array("class"=>"level2", "href"=>"../nav/test3.php", "parent"=>"Top Level 2"),
"Level 2 sub 2"=>array("class"=>"level2", "href"=>"../nav/test4.php", "parent"=>"Top Level 2"),
"Level 2 sub 3"=>array("class"=>"level2", "href"=>"../nav/test5.php", "parent"=>"Top Level 2"),
"Top Level 3"=>array("class"=>"level1", "href"=>"test6.php", "parent"=>"no"),
"Level 3 sub 1"=>array("class"=>"level2", "href"=>"../nav/test7.php", "parent"=>"Top Level 3"),
"Level 3 sub 2"=>array("class"=>"level2", "href"=>"../nav/test8.php", "parent"=>"Top Level 3"),
"Level 3 sub 3"=>array("class"=>"level2", "href"=>"../nav/test9.php", "parent"=>"Top Level 3")
);

?>

Now it’s done, you can see a working example here.
If you like it, download the zip containing the Class, a navigation definition and a CSS file.

This will only work on PHP5 by the way…

Ahmet

Adobe Media Player prerelease

News from the Labs:

This is a prerelease version of Adobe® Media Player™ (AMP) software for Windows and Macintosh platforms. It is being made available for consumers to test the user experience, and for content publishers to test the compatibility of their existing Media RSS feeds with Flash-based video content.


AMP Preview Screenshoot


You will also notice a “badge” that auto-install the AMP (a software running on AIR), which is a really good way to distribute your software on the world wide web :)

Download and install AMP
You will need the latest version of AIR to make it work

Ahmet

Dreamweaver Extension – SWFObject Insertions

SWFObject Dreamweaver Extension
As I use more and more the SWFObject, I took some time to create a Dreamweaver extension that insert the SWFObject Script and the Div with most of the options I ever need with it.
I just tested it on DW CS3, and it worked well as long as you are in design or split mode. It’s not always working in code view for a reason I didn’t understand yet. The resources about building extension on Internet are really rare so it’s hard to code it exactly as I wanted. For example how to use appendChild to create different Tag in different places of the document??

Please test SWFObject Dreamweaver Extension and tell me if it works or not and what I’ve forgot to embed.


Update 0.1.1: Have corrected some minors bug. This version seems to work nicely with DW8 win & mac and DWCS3 win & mac.

Ahmet

SEO Keywords Position: Already an Update!

Search Engines Optimization
Two days ago I published my attempt to build a tool helping me to analyze the positioning of a website in function of the keywords used.
Now this SEO tool can do much more:

  • Analyze the results from Google.com, Yahoo.com and Live.com
  • Analyze up to 4 website positioning in the same time
  • Analyze an array of keywords separated by a comma (first keywords, second keywords, keyword)
  • Analyze depth can vary from first 100 results to 500.
  • Display the first results for each search engines and for each keywords
  • Display information from Google (pagerank, number of link, number of indexed pages, number of pages with the keywords in the url or in the title)
  • Present the number of people that saved the URL in Del.icio.us
  • Present the tag cloud from Del.icio.us
  • Display the number of blog linking to this URL (via Technorati.com)
  • Display the authority of the highest blog linking to the URL
  • The analyze can be long depending of the option you choose, so take a coffee, play music or make a smaller analyze ;)

    Try it by yourself: Seo Keywords Positions Tool
    Feedbacks are welcome!

    Ahmet

    SEO Keywords Positioning (You VS Competitors)

    More and more web designer make early work for integrating the SEO techniques to their design (files name, title, link and image attributes…). But unfortunately we often have to face a website already existing. In my point of view the number one priority is to know who are the most important competitors (in terms of market and keywords).

    Knowing your competitor keywords positions is not a long work but is really boring, that why I preferred to build a simple tool that analyze the position of my website for given keywords as well as the position of our competitors on the same keywords. It gives me a comprehensible result of what sort of keywords we have to work on.

    You can use that tool that will analyze the first 500 results from Google.com, Yahoo.com and Live.com on my newly created SEO page. Just a warning this is an alpha version, I’m still working on it, but early feedback would be greatly appreciated 

    Get your Keywords position.

    Ahmet

    Structural Web Marketing: free E-Book

    Nearly one month ago, I had my public presentation of my Licence. I promised you to put it online, now it’s done.
    It was about structural web marketing or how using fundamentals structures from Internet and web-marketing methods to promulgate the popularity of a website for the distribution of a mobile application (FoxyTag).
    I will, in a near futur put all online in my blog like I’ve done with the chapter “understanding fundamentals of search engines” but by now it’s only on a pdf.

    Read it or download it now
    .

    Ahmet

    Structural Web Marketing

    Monday the 16 April I will make my presentation of my work to obtain my master in information systems and communication. The paper is about “structural web marketing” and study the web marketing from a structural way. It differ from search engines optimization but I also study it. So if you are in Geneva and want to see my presentation you are warmly welcome: Uni Dufour, room 103 at 2pm. I really hope that it will be a good presentation…
    After that day I will publish it on my website.

    Ahmet

    Making a perlin sound AS3 depending on a sound spectrum

    AUGG logo The January session of the AUGG (Adobe User Group Geneva) was the first workshop made by the group. Thierry presented us Flex 2.0 by making some nice example (code to come). I presented a fast introduction to AS3 by showing & explaining the code of my Perlin Sound Spectrum Visualizer (example 1, example 2). Here’s the code I presented, it’s slightly different from the two precedent examples.


    [kml_flashembed movie="http://augg.ch/flash/perlinSpectrum.swf" height="500" width="600" /]

    Warm thanks to the Nomades (specially to Haim) for hosting our meeting :)
    If you are interested by some more AS3 tutorials, I’ve made a few video tutorial about actionscript 3.0.

    Ahmet