mercoledì 6 marzo 2013
Robot.txt Generator Tool
http://www.mcanerin.com/EN/search-engine/robots-txt.asp
venerdì 22 febbraio 2013
Redirect Dominio con Enom e Blogger
martedì 30 ottobre 2012
Registrazione al sito tramite Google Login
Ovviamente quello che leggerete qui è una sintesi, e va adattata alle vostre esigenze. Vi riporterò i link della documentazione ufficiale che in ogni caso vi conviene leggere.<script language="javascript" type="text/javascript">
// First, parse the query string (In Js does not exists Request.QueryString!)
var params = {}, queryString = location.hash.substring(1),
regex = /([^&=]+)=([^&]*)/g, m;
while (m = regex.exec(queryString)) {
params[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
}
//All that returns Google
var token = params['access_token']; //access token to your application if the user grants your application the permissions it requested
var state = params['state']; //If the state parameter was included in the request, then it is also included in the response.
var token_type = params['token_type']; // kind of token that is being returned
var expires_in = params['expires_in']; //lifetime of the token in seconds
//Call Google Webservice
$(document).ready(function () {
$.ajax({
type: "GET",
url: "https://www.googleapis.com/oauth2/v1/userinfo?access_token=" + token,
crossDomain: true,
contentType: "application/json; charset=utf-8",
dataType: "json",
//async: false,
success: function (result) {
var id = result.id; //The value of this field is an immutable identifier for the logged-in user, and may be used when creating and managing user sessions in your application. This identifier is the same regardless of the client_id. This provides the ability to correlate profile information across multiple applications in the same organization. The value of this field is the same as the value of the userid field returned by the TokenInfo endpoint.
var email = result.email; //The email address of the logged in user
var verified_email = result.verified_email; //A flag that indicates whether or not Google has been able to verify the email address.
var name = result.name; //The full name of the logged in user
var given_name = result.given_name; //The first name of the logged in user
var family_name = result.family_name; //The last name of the logged in user
var picture = result.picture; //The URL to the user's profile picture. If the user has no public profile, this field is not included.
var locale = result.locale; //The user's registered locale. If the user has no public profile, this field is not included.
var timezone = result.timezone; //The default timezone of the logged in user
var gender = result.gender; //The gender of the logged in user (other|female|male)
alert(gender);
//$('#txtCheckUsername').val(result.d);
},
error: function (result) {
alert('Error...');
}
});
});
</script>
sabato 14 agosto 2010
[TUTORIAL] - Immagini RGB e CYMK in pagine Web
Chi come me ha a che fare con pagine web, nel senso che le realizza, ci lavora o quant'altro, potrà imbattersi nel problema che un'immagine venga visualizzata correttamente in qualunque (o quasi) browser tranne che su Explorer (e chissà perchè i problemi li ha sempre la casa Microsoft).martedì 10 agosto 2010
[TUTORIAL] - Sitemap completa per Blogger, Blogspot e Google Strumenti per i Webmaster

Se ne avete di più aggiungetene un'altra del tipo
ma in questo modo appesantireste la Sitemap.
mercoledì 1 aprile 2009
[TUTORIAL] [LINK] Set di Caratteri e codifica lingua HTML
Nel caso dell'alfabeto italiano quindi il tag giusto da inserire è
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
oppure
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
in particolare quest'ultimo è quello di Default in Dreamweaver dopo aver selezionato il Set di Caratteri Europei (Modifica -> Preferenze -> Nuovo documento -> Codifica Predefinita -> Europa Occidentale)
Rimando al link della Microsoft per la lista completa di tutti i SET DI CARATTERI e le rispettive CODIFICHE.
martedì 4 novembre 2008
Visualizzare TUTTI i post del blog di BLOGSPOT
http://nome_blog.blogspot.com/search?max-results=N
lunedì 27 ottobre 2008
[TUTORIAL] - Inserire Google AdSense tra i Post di Blogspot
Incolliamo il codice AdSense e clicchiamo su Parse in fondo alla pagina, per ottenere il codice che utilizzeremo dentro il template.
L'utilizzo di questo strumento non viola i termini del contratto di AdSense, che prevede di non modificare il codice html degli annunci: infatti stiamo solo indicando alcuni caratteri con una "terminologia diversa", ma il risultato finale sarà lo stesso.
Quest'operazione si rende necessaria, ripeto, per far cambiate il codice XHTML di AdSense in codice XML usato da Blogger.
Inserire AdSense tra il titolo e il post
Una volta modificato il codice di AdSense come spiegato sopra, andate in Layout->Modifica HTML e, dopo aver selezionato "Espandi i modelli widget", cercate nel template la seguente riga di codice:
<div class='post-body'e subito sopra incollategli il codice generato prima. Se volete, come nel mio caso, mostrare la pubblicità solo se viene visualizzato il singolo post e non sempre, dovrete racchiudere il codice modificato di AdSense tra le righe evidenziate in rosso:
<b:if cond='data:blog.pageType == "item"'>
<p>
Codice AdSense modificato
</p>
</b:if>
E inserirlo sempre nel punto indicato sopra. Salvate e visualizzate il blog.
Inserire AdSense alla fine del post prima dei commenti
Generate il codice AdSense e modificatelo come sopra, aggiungendo se volete le righe in rosso, ma inseritelo nel template dopo la seguente riga:
<p><data:post.body/></p>
Fatto!
Fonte: link
