function favGroupsJsp_process()
{
var favGroupsJSONStr = '{"subscriptions":[{"isDefault":"false","totalSubscribers":242,"totalPosts":5,"imageUrl":"http://resource2.smsgupshup.com/webimages/entity/2/551/2551239_1214341771062.png","userId":2551263,"isPrivate":false,"description":" ","groupUrl":"http://www.smsgupshup.com/groups/Bollywood_Today","name":"Bollywood_Today","isPartner":false,"id":2551239,"orgName":"Bollywood_Today"},{"isDefault":"false","totalSubscribers":2346,"totalPosts":436,"imageUrl":"http://resource.smsgupshup.com/webimages/entity/3/935/3935377_1214343878675.png","userId":3935401,"isPrivate":false,"description":"Join main group Cricketalert ","groupUrl":"http://www.smsgupshup.com/groups/20Twenty","name":"20Twenty","isPartner":false,"id":3935377,"orgName":"20Twenty"},{"isDefault":"false","totalSubscribers":922,"totalPosts":66,"imageUrl":"http://resource2.smsgupshup.com/webimages/entity/2/392/2392538_1214341463255.png","userId":2392562,"isPrivate":false,"description":"This Group send Jokes Daily. Plz Join this group & enjoy. Also tells Ur friends.For Daily Nice sms Join smstoday. ","groupUrl":"http://www.smsgupshup.com/groups/latestjokes","name":"latestjokes","isPartner":false,"id":2392538,"orgName":"latestjokes"},{"isDefault":"false","totalSubscribers":1812,"totalPosts":582,"imageUrl":"http://resource.smsgupshup.com/webimages/entity/2/124/2124928_1214340959588.png","userId":2124952,"isPrivate":false,"description":"!!!!!!!Falling down in life is not failure but staying down is failure!!!!!!!! ","groupUrl":"http://www.smsgupshup.com/groups/smstoday","name":"smstoday","isPartner":false,"id":2124928,"orgName":"smstoday"},{"isDefault":"false","totalSubscribers":5650,"totalPosts":845,"imageUrl":"http://resource2.smsgupshup.com/webimages/entity/2/535/2535679_1214341741601.png","userId":2535703,"isPrivate":false,"description":"U will get free cricket alert. plz join this group. Best cricket group on gupshup.U can mail me-alert@cricketmail.net ","groupUrl":"http://www.smsgupshup.com/groups/Cricketalert","name":"Cricketalert","isPartner":false,"id":2535679,"orgName":"Cricketalert"}],"userDetails":{"globalUserId":132813,"name":"Headlines","id":2496894},"params":{"limit":5,"start":0,"type":"MY_FAV_SUBSCRIPTIONS","userId":"2496894","showLatestMsg":"false","needTotalForPg":false,"showAll":false},"message":"","webarooUserDetails":{"gender":"MALE","age":21,"imageUrl":"http://resource.smsgupshup.com/webimages/profile/0/132/132813_1214374572118.png","profileName":"RAJA123","displayAge":true,"description":" ","location":"WEST BENGAL","id":132813},"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=2496894' + '&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":3563,"totalPosts":261,"imageUrl":"http://resource2.smsgupshup.com/webimages/entity/2/496/2496870_1214341668428.png","userId":2496894,"isPrivate":false,"description":"Refreshing Different ","groupUrl":"http://www.smsgupshup.com/groups/Headlines_Today","name":"Headlines_Today","isPartner":false,"id":2496870,"orgName":"Headlines_Today"}],"params":{"limit":-1,"start":0,"type":"USER_INFO","infoType":"SMSENTITY","needTotalForPg":true,"entityId":"2496870"},"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.