function favGroupsJsp_process()
{
var favGroupsJSONStr = '{"subscriptions":[{"isDefault":"false","totalSubscribers":4,"totalPosts":2,"imageUrl":"http://resource2.smsgupshup.com/webimages/images/channels/2.3.0.74078.gif","userId":3585483,"isPrivate":false,"description":"Here u got many tips n tricks of ur mobile.. Also Join my another group type JOIN kapil_LovesU to 567678 ","groupUrl":"http://www.smsgupshup.com/groups/FreeMobiTricKS","name":"FreeMobiTricKS","isPartner":false,"id":7571110,"orgName":"FreeMobiTricKS"},{"isDefault":"false","totalSubscribers":130,"totalPosts":672,"imageUrl":"http://resource.smsgupshup.com/webimages/images/channels/4.3.0.74078.gif","userId":3206756,"isPrivate":false,"description":"","groupUrl":"http://www.smsgupshup.com/groups/hi5_SMS","name":"hi5_SMS","isPartner":false,"id":3206732,"orgName":"hi5_SMS"},{"isDefault":"false","totalSubscribers":1981,"totalPosts":198,"imageUrl":"http://resource.smsgupshup.com/webimages/entity/1/161/1161359_1214339394563.png","userId":1161375,"isPrivate":false,"description":"It's hOttt...!!! ","groupUrl":"http://www.smsgupshup.com/groups/smsmirchi","name":"smsmirchi","isPartner":false,"id":1161359,"orgName":"smsmirchi"},{"isDefault":"false","totalSubscribers":392,"totalPosts":270,"imageUrl":"http://resource2.smsgupshup.com/webimages/images/channels/2.3.0.74078.gif","userId":1628953,"isPrivate":false,"description":"Something different....!! ","groupUrl":"http://www.smsgupshup.com/groups/ravindra001","name":"ravindra001","isPartner":false,"id":1628930,"orgName":"ravindra001"},{"isDefault":"false","totalSubscribers":5107,"totalPosts":1124,"imageUrl":"http://resource.smsgupshup.com/webimages/images/channels/1.3.0.74078.gif","userId":2629870,"isPrivate":false,"description":"Hi friends, if you want all latest Love,friendship also funny sms, and New tricks of free net,free Sms and Calls,Tips and tricks of your mobiles. ","groupUrl":"http://www.smsgupshup.com/groups/Prabu","name":"Prabu","isPartner":false,"id":2629846,"orgName":"Prabu"}],"userDetails":{"globalUserId":214815,"name":"Kapil","id":1708490},"params":{"limit":5,"start":0,"type":"MY_FAV_SUBSCRIPTIONS","userId":"1708490","showLatestMsg":"false","needTotalForPg":false,"showAll":false},"message":"","webarooUserDetails":{"gender":"MALE","age":21,"imageUrl":"http://resource2.smsgupshup.com/webimages/profile/0/214/214815_1214368587688.png","profileName":"Kapil","displayAge":true,"description":"Hi,,, i am Kapil, make me ur friend my no.9960047030 ","location":"Maharashtra","id":214815},"status":"SUCCESS","errorCode":"NO_ERROR"}';
if (GupShup.util.isInitialized(GupShup.conf.currentModule))
{
if (GupShup.util.trim(GupShup.conf.currentModule.refreshUrl) == '')
{
GupShup.conf.currentModule.refreshUrl
= GupShup.conf.readUrl + "&type=" + 'MY_FAV_SUBSCRIPTIONS'
+ '&userId=1708490' + '&showAll=false' + '&showLatestMsg=false'
+ '&start=0' + '&limit=' + '5' + '&needTotalForPg=false';
}
else
{
favGroupsJSONStr = GupShup.conf.currentModule.refreshArgs;
}
}
var favGroups = GupShup.util.getJsonFromResponse(favGroupsJSONStr);
if((typeof(favGroups.status) != 'undefined') && (favGroups.status == 'SUCCESS') && (favGroups.subscriptions.length > 0))
{
var tmplMap =
[
{key:'http://resource.smsgupshup.com/webimages/$GROUP_IMG_SRC$.jpg', dataMember:'imageUrl'},
{key:'$GROUP_NAME$', dataMember:'name'},
{key:'http://resource.smsgupshup.com/webimages/$GROUP_PAGE_URL$.jpg', dataMember:'groupUrl'},
{key:'$POSTS_COUNT$', dataMember:'totalPosts'},
{key:'$SUBSCRIBER_COUNT$', dataMember:'totalSubscribers'}
];
var containerDivId = 'favGroupsListContainerRIGHT';
var templateDivId = 'favGroupTemplateRIGHT';
GupShup.util.expandTemplateInDiv(containerDivId, templateDivId, tmplMap, favGroups.subscriptions);
document.getElementById('favGroupsBlockContainerRIGHT').style.display = "block";
}
}
try
{
favGroupsJsp_process();
}
catch(error)
{
if (GupShup.conf.jsDebug)
alert('Could not process favGroupsJsp module : error-' + error);
}
function subscribeOnMobileShouldShowDiv(entityDetails) {
if(GupShup.util.isInitialized(entityDetails) && (entityDetails.status == 'SUCCESS'))
{
if(entityDetails.info[0].isPrivate || entityDetails.info[0].isPartner)
return false;
if(GupShup.util.isInitialized(entityDetails.info[0].subscriptionDetails))
return (!entityDetails.info[0].subscriptionDetails.isSubscribed);
return true;
}
else
{
return false;
}
}
function subscribeOnMobile_process()
{
var entityDetailsJsonStr = '{"info":[{"isDefault":"false","totalSubscribers":386,"totalPosts":454,"imageUrl":"http://resource2.smsgupshup.com/webimages/entity/1/708/1708466_1214340051213.png","userId":1708490,"isPrivate":false,"description":"Welcome to kapil_LovesU ","groupUrl":"http://www.smsgupshup.com/groups/kapil_LovesU","name":"kapil_LovesU","isPartner":false,"id":1708466,"orgName":"kapil_LovesU"}],"params":{"limit":-1,"start":0,"type":"USER_INFO","infoType":"SMSENTITY","needTotalForPg":true,"entityId":"1708466"},"message":"","totalForPg":1,"status":"SUCCESS","errorCode":"NO_ERROR"}';
var entityDetails = GupShup.util.getJsonFromResponse(entityDetailsJsonStr);
var moduleId = 'subscribeOnMobileModule_RIGHT';
if (subscribeOnMobileShouldShowDiv(entityDetails))
{
GupShup.html.util.showElement(moduleId);
}
else
{
GupShup.html.util.hideElement(moduleId);
}
}
try
{
subscribeOnMobile_process();
}
catch(error)
{
if (GupShup.conf.jsDebug)
alert('Could not process subscribeOnMobile module : error-' + error);
}
You are about to report that this message violates GupShup Terms of Service.
We will review your request and take appropriate steps as necessary. Your report will be strictly confidential.
$ENTITY_NAME$
$ENTITY_DESCRIPTION$
$JOIN_OR_EDITSUB_BUTTON$
Members : $SUBSCRIBER_COUNT$
Group Posts ($ENTITY_POSTS_COUNT$)
$ENTITY_NAME$
This group contains messages that may be unsuitable for some users. By clicking on 'Proceed' you confirm that you are older than 18 years of age and agree to view messages from this group.
$ENTITY_TMPL_EXPANSION$
No group found.
$ENTITY_NAME$
$ENTITY_NAME$ is a private group. You must contact the owner of this group to join it and receive group messages.
Send a message to $ENTITY_NAME$ to join this group.
To send a message from your mobile, SMS MSG $ENTITY_NAME$ followed by the message to 567678.
$ENTITY_NAME$
GupShup user is quiet.
$ENTITY_NAME$
GupShup user is quiet.
$MSG_PIC$ $MSG_TEXT$$MSG_TIMESTAMP$
$MSG_ACTIONS_EXPANSION$
This message may be unsuitable for some users. By clicking on 'Proceed' you confirm that you are older than 18 years of age and agree to view this message.
$MSG_TMPL_EXPANSION$
This member has not posted any messages yet but will surely do so soon.