function favGroupsJsp_process()
{
var favGroupsJSONStr = '{"subscriptions":[{"isDefault":"false","totalSubscribers":3004,"totalPosts":270,"imageUrl":"http://resource2.smsgupshup.com/webimages/entity/0/128/128901_1214336980415.png","userId":128901,"isPrivate":false,"description":"Join BizNews and keep up with the latest happenings in the biz world daily ","groupUrl":"http://www.smsgupshup.com/groups/BizNews","name":"BizNews","isPartner":false,"id":128901,"orgName":"BizNews"},{"isDefault":"false","totalSubscribers":2917,"totalPosts":77,"imageUrl":"http://resource2.smsgupshup.com/webimages/entity/0/524/524559_1214337926073.png","userId":524564,"isPrivate":false,"description":"There is always that one song which sweeps that special someone off their feet. Get lyrics, info n trivia on all romantic songs with this group. ","groupUrl":"http://www.smsgupshup.com/groups/Ballads","name":"Ballads","isPartner":false,"id":524559,"orgName":"Ballads"},{"isDefault":"false","totalSubscribers":11470,"totalPosts":83,"imageUrl":"http://resource.smsgupshup.com/webimages/entity/0/524/524558_1214337925303.png","userId":524563,"isPrivate":false,"description":"Does approaching a new guy or girl give you cold feet. LoveBytes gives you dating tips, pick-up lines and everything required to spice up your love ","groupUrl":"http://www.smsgupshup.com/groups/LoveBytes","name":"LoveBytes","isPartner":false,"id":524558,"orgName":"LoveBytes"},{"isDefault":"false","totalSubscribers":659,"totalPosts":140,"imageUrl":"http://resource.smsgupshup.com/webimages/entity/0/1/1233_1214336868812.png","userId":1233,"isPrivate":false,"description":"Join FoodFests to receive info abt the latest foodfests happening across Mumbai. ","groupUrl":"http://www.smsgupshup.com/groups/FoodFests","name":"FoodFests","isPartner":false,"id":1233,"orgName":"FoodFests"},{"isDefault":"false","totalSubscribers":3674,"totalPosts":122,"imageUrl":"http://resource.smsgupshup.com/webimages/entity/0/26/26892_1214336890538.png","userId":26892,"isPrivate":false,"description":"Get beauty tips and show the world a different you! ","groupUrl":"http://www.smsgupshup.com/groups/BeautyTips","name":"BeautyTips","isPartner":false,"id":26892,"orgName":"BeautyTips"}],"userDetails":{"globalUserId":1550,"name":"Payal","id":135827},"params":{"limit":5,"start":0,"type":"MY_FAV_SUBSCRIPTIONS","userId":"135827","showLatestMsg":"false","needTotalForPg":false,"showAll":false},"message":"","webarooUserDetails":{"gender":"FEMALE","age":24,"imageUrl":"http://resource2.smsgupshup.com/webimages/profile/0/1/1550_1215243828510.png","profileName":"Payal","displayAge":true,"description":" ","location":"Mumbai","id":1550},"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=135827' + '&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":1554,"totalPosts":219,"imageUrl":"http://resource2.smsgupshup.com/webimages/entity/0/135/135827_1214336987510.png","userId":135827,"isPrivate":false,"description":"Learn what happened on this day through the years - from wars waged or calamities struck, legends born or heroes assassinated. Take a trip down memory lane and get your daily dose of history. ","groupUrl":"http://www.smsgupshup.com/groups/TodayInHistory","name":"TodayInHistory","isPartner":false,"id":135827,"orgName":"TodayInHistory"}],"params":{"limit":-1,"start":0,"type":"USER_INFO","infoType":"SMSENTITY","needTotalForPg":true,"entityId":"135827"},"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.