Tuesday 10 April 2012

Wordpress Short codes forms processing


When searching for information, as can be incorporated into WordPress forms, the results repeatedly point to one theme: the integration of contact forms. That was not sought, because I wanted to incorporate a self-designed form in my WordPress blog and analyze the data entered in this form in a PHP script to display a graphic.

First of all, I got gnuplot to mind, as well gnuplot for generating a plurality of suitable diagrams. As far as I know, supported gnuplot but unfortunately not the output of the graphics in a stream, as it is desirable for the output as an image in a PHP script would be, but must always be realized through the detour of an output file, which in a multi-user environment, such as a website a few problems inevitable.

The second approach was to use the Google Chart API to a corresponding graphic display. Have a short flight over the document gave assurance that the venture with Google Chart API is possible; however, the parameters of the graphics as URL parameters are transmitted. That contradicted, however, my idea of how much you need to know about Google. Google had when the corresponding side slightly different cookies that have been placed on their side on your computer already, with your birth date entered here can match.

So there was only his own generation of graphics. Gnuplot output stream from a lack of difference to PHP. The PHP GD library module into the foreground. Although the creation of a chart with the help of the GD library is not just "dedicated optimized", but remains nevertheless limited in terms of cost. Simple lines and grids can be realized to a very reasonable cost. Especially since the GD library can be enabled as a module in PHP and supports the direct stream output - so graphics can be printed directly from a PHP script.

Realization

Shortcode
First of all, I've got a new short code defined that implements a form to enter your birth date. To change the formatting of the output I have not thought about, because the task is the installed WordPress themes and this is the task perfectly mastered.

The entered data is stored by the form (after verification) in the PHP global $ _SESSION array. A transfer to the graphic artist compelling script by URL was not an option, because that would have modified the parameters of a possible aggressor and to overload (by continuous multiple views) can be abused. Likewise, there are plugins for every major browser, which transmit the URL be surfed only once to a service (which may be well meant) to check the safety of the respective links. Such transmission of your date of birth I wanted to avoid at all costs. Therefore, only came to save the entered data in the session variable in question. And for your protection is to store the session data is limited to the duration of your browsing session. Once you close your browser, the site no longer knows what data you have entered into this form.



The issued by the Short Form Code has as its goal (when you click the submit button) itself The following should be recognized:

the form was filled out (values ​​submitted with the appropriate name)?
correspond to the values ​​transmitted to the default values ​​(they are valid)?
If so, then store the values ​​in the PHP variable $ _SESSION ['...']
If so, then embedding a URL that will contain an image as output



if (isset ($ _SESSION ['bio_day']) && isset ($ _SESSION ['bio_month']) && isset ($ _SESSION ['bio_year']))
{
        $ Bday = $ _SESSION ['bio_day'];
        Bmonth $ = $ _SESSION ['bio_month'];
        Byear $ = $ _SESSION ['bio_year'];
}

if (isset ($ _POST ['bio_day']) && isset ($ _POST ['bio_month']) && isset ($ _POST ['bio_year']))
{
        $ Tday = intval ($ _POST ['bio_day']);
        $ Tmonth = intval ($ _POST ['bio_month']);
        $ Tyear = intval ($ _POST ['bio_year']);
        if ($ tday> = 1 && $ tday <= 31 && $ tmonth> = 1 && $ tmonth <= 12 && $ tyear> = date ('Y') - 100 && $ tyear <= date ('Y') && checkdate ($ tmonth, $ tday, $ tyear))
        {
                $ = $ Bday tday;
                $ = $ Bmonth tmonth;
                $ = $ Byear tyear;
                $ _SESSION ['Bio_day'] = $ bday;
                $ _SESSION ['Bio_month'] = $ bmonth;
                $ _SESSION ['Bio_year'] = $ byear;
        }
}





PHP Script
The embedded PHP script to generate the graphics then verifies the existence of the first values. It must be given no parameters in the URL, as has been previously stored after successful validation all the required values ​​in session variables. The PHP script is the source of an image in the form <img source="myphpscript.php" /> indicated.

When calling the script myphpscript.php (from the same domain!) then all $ _SESSION variables to read again and can be further processed. With the help of the GD library can then generate corresponding graphics.

The result of this work is available on the site biorhythms are tested.

Mixxx Open Source DJ and streaming software



Looking for a streaming solution for Windows it is usually referred to by friends Sam Broadcaster or Virtual DJ. These programs offer a variety of features, but this burden on the wallet of amateur DJs immensely. By chance I came across a list of open source DJ programs and have me about Mixxx considered in detail.




On the user interface of Mixxx find their way around quickly, especially since all the buttons are provided with a little help. After you set the sound settings for the primary output that can be used for the headphone output to be used (for monitoring) and entering the access to the streaming server are immediately rip off and running. A comprehensive guide helps during initial setup or in the establishment of a professional DJ environment with external mixer and turntables. Mixxx is here with over 30 DJ-MIDI-C controllers.

After importing your own music library you can find them in the library of the program back to where it can also change if the data track. Users of iTunes can import your iTunes library and use them directly into Mixxx. After you import the music library can be analyzed for the title of the BPM Mixxx. Then the beats displays in the Waveform.

With the Auto-DJ and stored there, play list or individual songs takes Mixxx cutting the silence at the beginning and end of the track and cross thread. For the cross-fader, three different modes can be selected.

Mixxx supports for streaming Shoutcast, and Icecast1 Icecast2. After entering the access data, the connection (via the menu Options -> Enable live broadcast) now works (for MP3 streaming, see instructions below).

For the import of short jingles four samplers are available. This sounds at first glance little, however, the individual jingles are provided with four cue points at which they are recorded.

BPM at slightly different between these two tracks can be synchronized automatically with one click between the two decks. Also occurs when loading a track, an automatic volume adjustment. These two parameters are also displayed very nicely in the waveform display.

For the aspiring DJ, there are many other functions such as over several beat loops beats and cues storable.

Adjustments and notes
If Mixxx will be used as a streaming solution should make in the settings that the sampling rate is set to 44.1 kHz (default is 48 kHz), because it will save bandwidth.

Monday 9 April 2012

Icon Fonts - Design your sign with CSS

That the design possibilities around the CSS3 modules offer a wide variety should be the most well known. These include the implementation of fonts is using @ font-face. This approach also opens the Icon Fonts a door through which they continue as a design element, such as in graphical symbols can act, but with the difference that they are no longer included as a graphic rather than characters. It may therefore being the request for the image can be saved, but the request to load the font icon sets via @ font-face that needed again. What are the benefits but in terms of the flexible design of these endlessly scalable fonts on the hand and how to make this visually shows authored by me late last week, 2-piece article about Icon fonts on the blog of the coding People.
Representation of an infinitely scalable fonts checkmark on the basis of an Icon 








Who in relation to the advantages and disadvantages of closer would inform Fonts icon is there as relevant information, such as those on the more creative possibilities would like to learn using CSS3 and the resulting HTML work. I hope you like the small article series. Feedback is of course always welcome here,
Happy reading!

Tuesday 3 April 2012

Migrating from Joomla to Prestashop: it is possible!


When it comes to e-shopping, the choice of its e-commerce solution is critical and necessary but also remains a complex and can sometimes prove to be decisive in the future of the shop.

We will discover the testimony of an e-trader who started with a first solution for Joomla then migrate a few months later to Prestashop.

This testimony will help you discover the strengths and weaknesses of the two solutions, but also what an adventure it was to make this migration!

 - Hello, can you introduce abc.com (imaginary name) ?

abc is an Ecommerce site specializing in high-end accessories for PDAs, Tablet PCs, etc. .. LapTop

We want to offer our customers brand accessories to match their products hight tech darlings we work with brands that are not located in Country too.

Allowing us to have exclusive products and high quality that our customers love it!

- You created your shop on Joomla, can you explain why this choice?

And yes the first version of the shop was under Joomla Virtuemart. I actually achieved the opposite approach of what to do normally.

I first tried a basic template that I liked (clear, clean with a little stamp) I then enriched without looking at the CMS that supported it.

This allowed me to have a different design on the client side of my competition and it allowed me to stand out and have a good presentation of my products.

- Do you wish to limit this solution quickly? If so which ones?
 Clearly YES! If it all over again I do not think I would.

Too much lost time to retouch the base functionality of the CMS such as billing and others.
It has bugs and alterations to virtually anywhere, too many modules to be tested before they can activate a CMS and especially difficult to interface with existing Ecommerce services. Indeed it is practically supported by the community.

I think Virtuemart is clearly the end of life (this is my personal opinion)

- You have decided to migrate to Prestashop, can you explain this choice rather than Magento or SaaS?

Yes I decided to just go under Prestashop no longer meet all these problems.

But why Prestashop?

I wanted to have my independence in order to amend and extend the functionality I want. Can‘t make this stuff with a SAS solution.

Magento
 I had two quotes for a project in Magento, double the price that a development in Prestashop Also I had no use features that Magento offered me.

The Prestashop has been the best CMS for what I wanted to do on my website.

- How it happened?
 Well for me nothing complicated because I had warned the Agency Web NewQuest who developed my project that I was under Joomla Virtuemart and the need to consider migrating to Prestashop.

I leave the floor to Yann Coste, CEO of NewQuest on this subject:

Abc.com is a Prestashop we have greatly altered through a series of tools designed by NewQuest.
The Webstore and embeds a series of module Prestashop optimizing performance in terms of SEO, catalog management and release management area before and Push.
These tools allow us to include design interfaces very accomplished while leaving as much as possible by hand on the modification of the contents of the site managers.
ABC also operates Prestashop compressor we also designed and allowing us to further optimize processing times and displaying Prestashop.
Finally we spotted retain all the data from the old site to migrate from Virtuemart to Prestashop


- Could you give me the highlights of Joomla and PrestaShop? and weaknesses in your opinion.

The strengths of Joomla Virtuemart after using it for over a year is that all modules are almost free or very inexpensive. This allows you to add basic features that are not included.

But the low price is also a weakness because we are often disappointed by the quality of modules that are downloaded for free or we buy usually under $ 10.

With Joomla so I had galleys I confess I do not find him many advantages. If one can be is that the community on many blogs and forums help to find solutions to our problems.

Strengths under Prestashop is that everything just works!
No bug in the back office or in the forehead! All features to work and develop its Ecommerce are there by default and free!

Everything is well thought no attempt to find a feature 3h. The point a bit negative is that I find the modules a bit expensive but hey they are updated often, so it allows for quality and do not have any problems or bugs I'm willing to pay. What's great is that under Prestashop all services that are available for Ecommerce are compatible with Prestashop!

It arises not 40 times the question for how we will be able to interface the site with a particular service! So if you are still under Joomla, tip installs Prestashop (for migration will see pro is easier and faster)

- Advice you to merchants to migrate Joomla or it may not be necessary?

YES! I recommend it highly, because since we are under Prestashop is clear that happiness. We won as a service to our customers and our side we gain time in order management.

It is also thanks to the tool "Store Order" that I use every day to manage our product catalog. In terms of turnover, we also increased our sales. Difficult to quantify since our search is run by one of the best specialists in the profession of which we now rank better on search engines.

But in any case this new version of our website is a success for me!
Whether in terms of display speed, navigation, product presentation, everything is really well done.

Thank you for that NewQuest who really responded as best he could to our request on this project and soon we will disembark on mobile devices and mCommerce but that's another story.

thanks readers like or share the post if you find that useful.

Google Shopping Google's new move in ecommerce


I knew Google more swagger on the output of certain services. For it must be said, concerning the release of Google Shopping, Google has been strangely quiet. It even comes to whether the service is actually active. For our part, it's very simple; we learned it was launched by a Tweet.
So why Google does not communicates on Google Shopping?
The reason seems simple enough when you think about; Where Google earns the most money On AdWords. Who spends the most money on AdWords? The eCommerce retailers Yes, but there are thousands very volatile. Come not far behind the shopping engines, and for once they are only a few dozen, so easy to master. So you understand all the embarrassment of Google. On the one hand, they can not miss a booming sector (the e-commerce), and the other, they do not want to quarrel with one sector (the price comparison sites) which their leaves a lot a lot of money (in absolute value).
In terms of communication, does not make any commitment can quickly be catastrophic but we all know that Google can get away with anything...
my analysis of the ambiguous relationship between Google AdWords Shopping and falls flat because Google was much smarter than this by integrating Google AdWords Shopping. So, we are in a situation completely reversed because Google Shopping will not hurt to AdWords, but will boost the contrary. That said I understand even less the lack of communication around Google ... Shopping
What next for Google Shopping?
I believe a bright future. On the one hand with the Google brand. The U.S. giant is so big (with a phenomenal reputation) that any user will think Google before other comparator.
Another big feature of Google is its algorithm ranking. Indeed, we see that the order of the result of Google Shopping is at least as mysterious as the natural results. So, Google can move forward with a degree of neutrality (relative) compared to other historical comparators, which have repeatedly accumulate the premium offerings or privilege, for traders, resulting in a blurring of the understanding of the order of results. And yes, the price comparison sites do not necessarily ranked according to the price ;-)
Last but not least, Google will be able to integrate the results of Google Shopping directly in the natural results. On some products, it already does and it looks ultra efficient. Besides all Google services that work well, are integrated in the natural results (News, Maps, Picture ... etc.)
In the end, what can you expect from Google Shopping? It is much likely that profoundly changes the market comparators and the market impact of e-commerce. In my opinion large comparators will fall and paradoxically, small niche comparators can hold their own in the game

Friday 30 March 2012

Magento Product Management: downloads-inventories...



With Magento, you can offer to sell downloadable items (music, images, videos ...) and manage the inventory of hardware products: tweaks here you are advised to utilize the resources of Magento wisely.

Configuration of products available for download

The status of the product ordered to activate the download must be "charged" and not "pending". This forces the customer to pay before accessing the download. Otherwise the risk is that the product is to thank you for unscrupulous people who indicate they pay you by check, the risk for you, never to receive ... Magento  limit the case with this type of options, but it is still necessary to have known! The maximum number of downloads by default in turn, allows the buyer to recover a number of times the file (useful in case of loss, which is common with virtual products ...).

Magento: Inventory Management

What does this first line setting decrement the stock when the order is confirmed?
Well by selecting" yes ", you warrant that you the user who places an order does have its purchase... Indeed, if this option is not selected, your customers are charged but will not receive their order that within an indefinite period, the time you re approve the stock. Below, "change the status of items in" available "when an order is canceled": it is also important because it resets the article online, where the prospect would be withdrawn.

Should we display products exhausted?

In principle yes, because the customer's information will be very convenient for them, possibly allow them to place an order later. To do this select "yes" then you can customize the message tailored to the type of unavailability of the product so as to provide practical information of the prospect (very good for your image!).

Option products in stock by Magento

On the same principle we recommend to prevent the passage beyond the control stocks: he avoids providing the customer in a timely unknown and often very long. We therefore opted for "not beyond the control of inventories." Knowing that we can refine this setting by telling the user that the product is not in stock (it can then control without worrying about not seeing his package quickly ...).

Thursday 29 March 2012

Mobile sites Touch apps FB apps SMS- New tools of strategic e-marketing



Web 2.0 and technological developments have given rise to new modes of communication and revolutionized traditional marketing practices.
Until a few years ago the communications for a company going by the main display advertising, press releases, flyers, etc. These tools have now lost much of their power and gave way to the increasing use of web tools. The emergence of mobile phones, then of smart phones, and touch pads, the web in general and social networks in particular has transformed the communication landscape.
Smart phones have become essential tools for brands to create a direct channel of communication with the consumer: what's easier than sending an offer via SMS or mobile email. The phenomenon is growing and the results are very encouraging.
Facebook has also become an essential tool for communicating with customers and their special offers they love. Facebook pages for brands multiply as they have understood the stakes of such an interaction with their customers, who may themselves post comments, ask questions and get answers. The customer feels privileged and remains faithful to the brand.
But we must know that the brand right from the start what purpose it fixed by engaging in the use of Facebook. Raise thousands of fans does nothing: reap hundreds of fans qualified are much more interesting.
The touch pads on them can be used in different ways. Their number is increasing exponentially which leaves no marks indifferent to their use. Some have developed their example e-commerce site in versions for tablets to facilitate navigation and optimize conversion or sales. Others embark on setting up shop in tactile applications used by customers themselves to find the products they are looking for, check the presence of stock, etc.

As shown, many tools are to communicate. Habits have changed brands must go beyond imagination to find new ways to capture customers but also retain them.

IT & Co specializes in the use of these new tools and develop applications that can interact to the consumer and the brand through Facebook (Fan Page, applications, games and contests...), SMS (texting, QRcode Action...), the mobile sites and ecommerce sites version 2.0.
The world is changing consumer habits are changing: evolve your business to stay ahead and grow your customer base.