Articles Tagged 'Internet'


Very short trick: WordPress, reset a query

I often happen to customize the home page ( index.php ), or other sections such as the Sidebar, a Web site made ​​with WordPress. Many of the custom tag loop with specific parameters, for example in order to view the last items of a specific category or tag.

More ...

Very short snippet: Wordpress, coming soon on your blog

WordPress, like most of you know, allows you to publish a post "post-dated" (good pun). In practice, the post is stored with a date that is yet to come. This allows many bloggers to "schedule" (programmed) to publish a post without worrying about being in your console for the actual publication. It also allows you to keep publishing posts consistently even when we are on vacation.

More ...

Shadowbox 3.0 beta

It was released right now (thanks to the alert author Michael JI Jackson ) release 3.0 beta Shadowbox.js . In addition to the new site design here is the most important changes in this release prior:

More ...

Actionscript 3.0 for beginners: lesson # 5

Who has started to develop code with scripting languages ​​like Javascript or Actionscript itself, might not know all the concept of data type. With some high-level languages, in fact, he used to - at best - to declare variables without giving a specific data type, not counting those languages ​​that do not require any statement (such as PHP - not in the strict version 5 ).

More ...

Internet Explorer 6: eliminate the double margin bug

Among the various funny "interpretations" that Internet Explorer 6 can do with HTML / CSS, one of the "double margin" is certainly the most annoying and frequent. In practice (hear, hear ...) good browser Microsoft succeeds - mysteriously - to double margins on items that are set to float! : As such the following CSS applied to a div with the id box :

More ...

Very short trick: how to center elements on the page, even on IE5

It's not that I always take it with Internet Explorer, it's just that damn thing every Web development (HTML and CSS) seems not work with the browser - still - the most common (one day someone will explain why). ; ad esempio ecco come posizionare un div al centro dello schermo: A very convenient method to place an item in the middle of the browser window is to the property sfrutture auto style margin , for example, here is how to position a div in the center of the screen:

More ...

As IE6 endure and live happy

I always find some "ill" when I face the topic "compatibility between browsers." Also, and I have yet to understand the real reason, of all browsers who know the most "annoying" him remains: Microsoft Internet Explorer 6! Unfortunately, the release of IE 6 is still around and there are frequent reports of problems when viewing pages.

More ...

Skypemote version of Adobe AIR: 1000 downloads

Skypemote version of Adobe AIR

More ...

Actionscript 3.0 for beginners: lesson # 4

We continue our example code of TicTacToe (found in full on Google Code ) and we begin to analyze it in detail.

Import definitions

With Actionscript 3.0 has done a great job of cleaning and accommodation nell'alberatura classes (contained in the packages, package ) used during development. In other programming languages, like C for example, when you want to use a feature must explicitly "import" in the code. This "delivery" is necessary to allow the compiler to have all the codes and definitions related to the features we want to use. ; Actionscript 3.0 mette a disposizione l'istruzione include che è identica all' #include del C/C++. In Actionscript 3.0, however, the instruction import should not be confused with the equivalent C / C + + #include ; Actionscript 3.0 provides education include that is identical to ' #include in C / C + +. The latter, in fact, "includes" actual code that, if used or not, is the final compiled executable. Education import is the highest level and is more "intelligent" at compile time. It is used primarily for access classes without specifying their full name. In alre words instead of using forms such as:

1
flash.display . MovieClip = new flash.display . MovieClip ( ) ; var myMC: flash.display. MovieClip = new flash.display. MovieClip ();

More ...

Wordpress: remove the menu administration

It can be helpful at times, "obscure" some WordPress administration menu, especially if you developed a site / blog for a client and do not want to allow access to particularly sensitive features. There are already plugins that do this function but, for a personal check and complete, we see how this feature works in detail.
As always, we exploit the very useful Action provided by WordPress, in this case admin_menu . Using the global variable $menu can access the administration menu list. We can find the menu to "eliminate" in two ways: through the label or through the link pointed to (see commented shares in the example below). In the example given is "grayed-out" menu items Design, Settings, and Plugins:

1
2
3
4
5
6
7
8
9
10
11
12
13
remove_menu_item function () {
; global $ menu;
/ / By label
array ( 'Design' , 'Impostazioni' , 'Plugins' ) ; Removes $ = array ('Design', 'Settings', 'Plugins');
/ / By link
/ / Removes $ = array ('themes.php', 'options-general.php', 'plugins.php');
$removes as $todel ) foreach ($ as $ Removes todel)
$menu as $key => $sm ) if ( $sm [ 0 ] == $todel ) { unset ( $menu [ $key ] ) ; break ; } foreach ($ menu as $ key => $ level) if ($ sm [0] == $ todel) { unset ($ menu [$ key]) break;}
/ / By link
/ / Foreach ($ menu as $ key => $ level) if ($ sm [2] == $ todel) {unset ($ menu [$ key]) break;}
}
/ /
, 'remove_menu_item' ) ; add_action ('admin_menu', 'remove_menu_item');

Use the link as a key to the removal ( $sm[2] in parts sorpra commented in the code), is useful when you are not sure of the language - localization - with which you installed WordPress. With this technique, however, the menu is removed only at the interface, so you can still access the site via a direct link.

More ...



Stop SOPA