Our website is now only displayed by PCs. With the spread of mobile, thanks to Apple's iPhone, to access the site or blog is increasingly being performed by a variety of mobile devices. It is therefore need to know how many Web Developer intercept and identify the different "agents", ie the means by which a user is viewing (browsing) our pages.
Articles Tagged 'Layout'
Browser or mobile browser?
A WordPress theme for all
Under the heading of the blog, on the left, just above the navigation bar, there is a "switch" that allows you to switch to an alternate graphic theme, namely "clear".
The graphic theme of a blog is chosen by the blog owner himself, or if it is created by hand, whether it was downloaded from the network. The end result, however, in addition to "us" owners should be pleased by our visitors who do not always appreciate certain layout choices. For some it will be trivial for other wonderful, for others still terribly annoying! So why not to choose the "visitor" to display the layout with our blog?
WordPress: customize the navigation between the posts
WordPress offers many features to navigate through the various posts and pages forward and back. These are used within the themes, often in a completely interchangeable, although they contain some differences. This, in fact, create much confusion in the choice of the function to use. Here are some notes:
As IE6 endure and live happy
I always find some "ill" when tackling the subject "compatibility between browsers." Also, and I have yet to understand the real reason, of all the browsers I know the most "annoying" him remains: Microsoft Internet Explorer 6! Unfortunately, the release of IE 6 is still in circulation and there are frequent reports of problems when viewing pages.
WordPress: improving the list of comments
The standard template of WordPress (as others) normally provide for an alternate layout for the list of comments. In the standard template of such a class is set css alt , according to the logic:
1 2 3 4 5 | / / File comments.php $oddcomment ; ?> id="comment- <?php comment_ID ( ) ?> "> <Li <? Php echo $ oddcomment;?> Id = "comment-<? Php COMMENT_ID ()?>"> [...] / * Changes every other comment to a different class * / Oddcomment = $ (empty ($ oddcomment))? 'Class = "alt"':''; |
) e una volta a class="alt" . This means that the tag li $oddcomment is set once a blank ( "" ) and once a class="alt" . A modification could be useful to introduce another class when the author of the blog to comment on a post:

I, for example, I used the following code in the comments.php file:
1 2 3 4 5 | <Php ( $comment -> user_id == 3 ) ? ' Authcomment = $ ($ comment -> user_id == 3)? ' '' ; authcomment ':''; ( empty ( $classcomment ) ) ? ( ( $authcomment == '' ) ? ' alt' : '' ) : '' ; Classcomment = $ ( empty ($ classcomment))? (($ authcomment =='')? 'alt':''):''; ?> ?> <?= $authcomment ?> " id="comment- <?php comment_ID ( ) ?> "> <Li class = "<? = $ Classcomment?> <? = $ Authcomment?>" Id = "comment-<? Php COMMENT_ID ()?>"> |
del vostro utente. The line $comment->user_id==3 may vary according to ' ID of your user. I, for one, do not use the administrator to respond on the blog, but I have my user ID=3 . , se usate questa utenza potete scrivere: $comment->user_id==1 . Normally the ' ID of the administrator is 1 , if you use that user can write: $comment->user_id==1 . In this way, besides having the alternate layout on comments left by visitors, the answer is immediately recognizable author of the blog.
Theft, copies and clones on the web: I have cloned the site
Update of January 26, 2009
On January 26, 2009 I was contacted by the responsible staff Pixelfabrica that very honestly and with rare sincerity told me the reason of the incorrect "cloning" of the site, what happened, apologizing and giving immmediatamente beginning of the review "correct" Site Pixelfabrica . As already pointed out in my post, find inspiration in other Web work is not a crime, indeed. In some cases it may even be rewarding. What struck me most was how Google Analytics, which was absolutely not aware of the "double" in this User Code simultaneously on two different Web (for both IP Referer).
Anyway thank Pixelfabrica for adjustment and the honest admission and I swear that this is not a viral marketing ![]()
Original Post
Today I was browsing through the reports generated by Google Analytics when looking at some pages of my site E-lementi.com I notice a series of "strange" links:

Who the hell is PixelFabrica? How on earth is over that link statistics? I have a virus?! So I search for on Google and I'm going to occur on:
Unbelievable! I have copied the "old" (see also: Case Study ) ... Layout! Not only have they copied the layout in the graphical sense ... after all it is only normal inspiration from the work of others. But they have just copied the code! HTML to CSS. Among other things were not even aware, in fact, moving the mouse over the title "digitalcodices.org" of the three news shows "undolog.com born"!

They also did not even understand the operation of "thin" in CSS. By clicking on the navigation menu to select the displayed page remains on the home, which did not happen with my layout: PixelFabrica dear, if you want my advice you can contact ! In short, if you really want to "copy" at least do well!
Some will say that I'm pointing all this by the "pure" a favor ... do a good viral marketing ... but it is the first time I've been "cloned" in this shameless manner, and the feeling I have yet to decipher!
Here's how it was in fact E-lementi.com before the restyling of 2008:








Latest Comments
datrix : Thank you very much!
Robert : I rispsoto your questions with pleasure. The idea is really great. I am looking for a solution ...
Sting : @ Darius - you can see an example here: http://www.fight4fun.it/ clicking on: MAPS I hope ...
vik : Giustappunto I'm working on a project and the client asked me to show all the news (which are CPT) in ...
Giovambattista Fazioli : @ paso: absolutely. Simply identifying the field [cci] input [/ cci] you want to ...