Currently when a user signs up he is simply taken to the my account page. By using some fairly simple javascript, you can greet your new users with a custom message. You might want to remind them how they can contact you, tell them about your best bonuses or direct them to the referral or rakeback offers page.

How It’s Done

1. Paste the following into the very top of User Pages > Main > Main Index

/* Client-side access to querystring name=value pairs
Version 1.3
28 May 2008

License (Simplified BSD):
http://adamv.com/dev/javascript/qslicense.txt
*/
function Querystring(qs) { // optionally pass a querystring to parse
this.params = {};

if (qs == null) qs = location.search.substring(1, location.search.length);
if (qs.length == 0) return;

// Turn back to
// See: Forms in HTML documents
qs = qs.replace(/+/g, ‘ ‘);
var args = qs.split(‘&’); // parse out name/value pairs separated via &

// split out each name=value pair
for (var i = 0; i < args.length; i++) {
var pair = args[i].split(‘=’);
var name = decodeURIComponent(pair[0]);

var value = (pair.length==2)
? decodeURIComponent(pair[1])
: name;

this.params[name] = value;
}
}

Querystring.prototype.get = function(key, default_) {
var value = this.params[key];
return (value != null) ? value : default_;
}

Querystring.prototype.contains = function(key) {
var value = this.params[key];
return (value != null);
}

var qs = new Querystring();

function welcome() {
if (qs.get(“msg”)==’welcome’){
$(‘#congrats’).show();
}
}
2. Add your custom greeting below the ‘Welcome’ heading

Thanks for Signing up!


Posted in Blog by admin