GupShup.html.dynamic.groupOwnerDetails = {};
GupShup.html.dynamic.groupOwnerDetails.vars = {};
GupShup.html.dynamic.groupOwnerDetails.vars.entityDetails = {};
GupShup.html.dynamic.groupOwnerDetails.vars.webarooUserDetails = {};
GupShup.html.dynamic.groupOwnerDetails.vars.loggedInUserId = -1;
GupShup.html.dynamic.groupOwnerDetails.vars.groupOwnerUserId = -1;
GupShup.html.dynamic.groupOwnerDetails.methods = {};
GupShup.html.dynamic.groupOwnerDetails.methods = {
updateForEntityDetails : function (htmlContent)
{
var status = false;
var entityDetails = GupShup.html.dynamic.groupOwnerDetails.vars.entityDetails;
if((typeof(entityDetails) == 'object') && (typeof(entityDetails.status) != 'undefined') && (entityDetails.status == 'SUCCESS'))
{
var map = [{key:'$ENTITY_NAME$', dataMember: 'name'}];
htmlContent.content = GupShup.util.expandTemplate(htmlContent.content, map, entityDetails.info);
status = true;
}
return status;
},
updateForWebarooUserDetails : function(htmlContent)
{
var status = false;
var webarooUserDetails = GupShup.html.dynamic.groupOwnerDetails.vars.webarooUserDetails;
if((typeof(webarooUserDetails) == 'object') && (typeof(webarooUserDetails.status) != 'undefined') && (webarooUserDetails.status == 'SUCCESS'))
{
if(GupShup.util.trim(webarooUserDetails.info[0].profileName) == "")
{
webarooUserDetails.info[0].profileName = 'anonymous';
}
var map =
[
{key:'http://resource.smsgupshup.com/webimages/$WEBAROO_USER_IMG_SRC$.jpg', dataMember: 'imageUrl'},
{key:'$PROFILE_NAME$', dataMember: 'profileName'},
{key:'$USER_AGE$', dataMember: 'age'},
{key:'$USER_ID$', dataMember: 'id'}
];
htmlContent.content = GupShup.util.expandTemplate(htmlContent.content, map, webarooUserDetails.info);
GupShup.html.dynamic.groupOwnerDetails.vars.groupOwnerUserId = webarooUserDetails.info[0].id;
status = true;
}
return status;
},
updateDetails : function()
{
var innerHTML = GupShup.util.getInnerHTML('groupOwnerDetailsJsp_webarooUserDetailsTemplate_RIGHT');
var htmlContent = {'content': innerHTML};
var entityDetails = GupShup.html.dynamic.groupOwnerDetails.vars.entityDetails;
var webarooUserDetails = GupShup.html.dynamic.groupOwnerDetails.vars.webarooUserDetails;
if(GupShup.html.dynamic.groupOwnerDetails.methods.updateForEntityDetails(htmlContent, entityDetails)
&& GupShup.html.dynamic.groupOwnerDetails.methods.updateForWebarooUserDetails(htmlContent, webarooUserDetails))
{
GupShup.util.setInnerHTML('groupOwnerDetailsJsp_webarooUserDetailsContainerRIGHT', htmlContent.content);
var ageId = 'groupOwnerDetailsJsp_AgeDiv_RIGHT_' + webarooUserDetails.info[0].id;
if(webarooUserDetails.info[0].displayAge && (webarooUserDetails.info[0].age > 0))
GupShup.html.util.showElement(ageId);
else
GupShup.html.util.hideElement(ageId);
/* Check if we have a valid logged in user and the current group owner is same as the logged in user. */
var sendMessageDivId = 'sendMessageDiv_' + GupShup.html.dynamic.groupOwnerDetails.vars.groupOwnerUserId;
if ((GupShup.html.dynamic.groupOwnerDetails.vars.groupOwnerUserId > 0)
&& (GupShup.html.dynamic.groupOwnerDetails.vars.groupOwnerUserId == GupShup.html.dynamic.groupOwnerDetails.vars.loggedInUserId))
{
GupShup.html.util.hideElement(sendMessageDivId);
}
else
{
GupShup.html.util.showElement(sendMessageDivId);
}
GupShup.html.util.showElement('groupOwnerDetailsJsp_webarooUserDetailsContainerRIGHT');
}
else
{
GupShup.html.util.hideElement('groupOwnerDetailsJsp_webarooUserDetailsContainerRIGHT');
}
},
initPage : function()
{
var webarooUserDetailsJSONStr = '{"info":[{"gender":"MALE","imageUrl":"http://resource.smsgupshup.com/webimages/profile/0/396/396112_1216392457298.png","profileName":"S.S.AsaramjiAshram","displayAge":false,"description":"Sant Shri Asaramji Ashram was established in 1971 on the banks of the river Sabarmati in Ahmedabad. This main Ashram heads the various activities as well as the numerous subsidiaries run by the many organizations formed by Pujya Bapuji (endearingly called 'Bapu'). For more details, please visit the site: www.ashram.org ","location":"Ahmedabad","id":396112}],"params":{"limit":-1,"start":0,"type":"USER_INFO","infoType":"WEBAROOUSER","needTotalForPg":true,"entityId":"8157844"},"message":"","totalForPg":1,"status":"SUCCESS","errorCode":"NO_ERROR"}';
var entityDetailsJsonStr = '{"info":[{"isDefault":"false","totalSubscribers":6,"imageUrl":"http://resource2.smsgupshup.com/webimages/entity/8/157/8157844_1216392553655.png","totalPosts":219,"userId":6178934,"isPremium":false,"isPrivate":false,"status":"ENABLED","id":8157844,"description":"Satsang quotes/vachans of pujya Sant Shri Asaram ji, from the Asaram ji Ashram. ","groupUrl":"http://www.smsgupshup.com/groups/SntAsaramjiVani","name":"SntAsaramjiVani","isPartner":false,"orgName":"SntAsaramjiVani"}],"params":{"limit":-1,"start":0,"type":"USER_INFO","infoType":"SMSENTITY","needTotalForPg":true,"entityId":"8157844"},"message":"","totalForPg":1,"status":"SUCCESS","errorCode":"NO_ERROR"}';
GupShup.html.dynamic.groupOwnerDetails.vars.entityDetails = GupShup.util.getJsonFromResponse(entityDetailsJsonStr);
GupShup.html.dynamic.groupOwnerDetails.vars.webarooUserDetails = GupShup.util.getJsonFromResponse(webarooUserDetailsJSONStr);
GupShup.html.dynamic.groupOwnerDetails.methods.updateDetails();
}
};
try
{
GupShup.html.dynamic.groupOwnerDetails.methods.initPage();
}
catch(error)
{
if (GupShup.conf.jsDebug)
alert('Could not process groupOwnerDetailsJsp dynamic module : error-' + error);
}
Member Responses
Reply to my messages and let me know your thoughts and comments. Just hit reply to SMS on mobile, type your message and send!
To join my group click on the JOIN button or send SMS to 567678JOIN SntAsaramjiVani
GupShup.html.dynamic.favGroups = {};
GupShup.html.dynamic.favGroups.methods = {
getClassForImg : function(isPremium)
{
return (isPremium)? "goldframe" : "frame";
},
favGroupsJsp_process : function()
{
var favGroupsJSONStr = '{"subscriptions":[{"isDefault":"false","totalSubscribers":4852,"imageUrl":"http://resource2.smsgupshup.com/webimages/entity/7/582/7582701_1221490226820.png","totalPosts":511,"userId":7576580,"isPremium":false,"isPrivate":false,"status":"ENABLED","id":7582701,"description":"Hari Omji, Pujya Bapuji ki Amrutvani,Ekadashi Alert aur Pure Bharat me chal rahe Seva Karyo ki suchna mil jayegi.Hamara Uddeshya>Pure Samaj me Gurubhakto me ekta aur sevabhavna ko jagana.Hari Hari om ","groupUrl":"http://www.smsgupshup.com/groups/GURUVACHAN","name":"GURUVACHAN","isPartner":false,"orgName":"GURUVACHAN"},{"isDefault":"false","totalSubscribers":186,"imageUrl":"http://resource.smsgupshup.com/webimages/images/channels/3.3.3.78600.gif","totalPosts":53,"userId":8497921,"isPremium":false,"isPrivate":false,"status":"ENABLED","id":8513248,"description":" ","groupUrl":"http://www.smsgupshup.com/groups/Ashramsandash","name":"Ashramsandash","isPartner":false,"orgName":"Ashramsandash"},{"isDefault":"false","totalSubscribers":274,"imageUrl":"http://resource.smsgupshup.com/webimages/entity/1/178/1178050_1214339429658.png","totalPosts":271,"userId":1178066,"isPremium":false,"isPrivate":false,"status":"ENABLED","id":1178050,"description":"A group of followers of Param Pujya Sant Shri Asaramji Bapu ","groupUrl":"http://www.smsgupshup.com/groups/BapujiSadhaks","name":"BapujiSadhaks","isPartner":false,"orgName":"BapujiSadhaks"},{"isDefault":"false","totalSubscribers":713,"imageUrl":"http://resource.smsgupshup.com/webimages/entity/11/467/11467987_1230034827191.png","totalPosts":214,"userId":11422124,"isPremium":false,"isPrivate":false,"status":"ENABLED","id":11467987,"description":"This is Spiritual group mainly of Sant Shri Asaramji followers from Rohtak(Haryana) region ","groupUrl":"http://www.smsgupshup.com/groups/OMBAPUOM","name":"OMBAPUOM","isPartner":false,"orgName":"OMBAPUOM"},{"isDefault":"false","totalSubscribers":204,"imageUrl":"http://resource.smsgupshup.com/webimages/entity/2/770/2770419_1214342165215.png","totalPosts":164,"userId":2770443,"isPremium":false,"isPrivate":false,"status":"ENABLED","id":2770419,"description":"www.guruseva.com ","groupUrl":"http://www.smsgupshup.com/groups/HARIOM_INFO","name":"HARIOM_INFO","isPartner":false,"orgName":"HARIOM_INFO"}],"userDetails":{"globalUserId":396112,"name":"Ashram","id":6178934},"params":{"limit":5,"start":0,"type":"MY_FAV_SUBSCRIPTIONS","userId":"6178934","showLatestMsg":"false","needTotalForPg":false,"showAll":false},"message":"","webarooUserDetails":{"gender":"MALE","age":36,"imageUrl":"http://resource.smsgupshup.com/webimages/profile/0/396/396112_1216392457298.png","profileName":"S.S.AsaramjiAshram","displayAge":true,"description":"Sant Shri Asaramji Ashram was established in 1971 on the banks of the river Sabarmati in Ahmedabad. This main Ashram heads the various activities as well as the numerous subsidiaries run by the many organizations formed by Pujya Bapuji (endearingly called 'Bapu'). For more details, please visit the site: www.ashram.org ","location":"Ahmedabad","id":396112},"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=6178934' + '&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:'$IMG_CLASS$', dataMember:'isPremium', dataProcessor:GupShup.html.dynamic.favGroups.methods.getClassForImg},
{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
{
GupShup.html.dynamic.favGroups.methods.favGroupsJsp_process();
}
catch(error)
{
if (GupShup.conf.jsDebug)
alert('Could not process favGroupsJsp module : error-' + error);
}
$ENTITY_NAME$ is a Premium Group,
and the 5 sample posts shown are randomly picked from all the group posts.
The monthly subscription charges for this group are Rs.$JOIN_COST$/-. Your subscription is suspended. Please click on "Renew" button for reactivating it.
$ENTITY_POSTS_COUNT$ posts, $GROUP_SUBSCRIBERS$ members |
Join
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.
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.
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.
No messages found for specified page.
This is SMS GupShup Premium Group: Subscription charge is Rs.$JOIN_COST$/- for $BILLING_PERIOD$ days.
You can join to receive free $TRIAL_PERIOD$ days trial, after which you will need to pay using your preferred payment method.
These are replies to your groups posts.
We will forward you the replies as we recieve them.
You can change the settings for reply notifications from the settings page.
Status: $STATUS$
Status: $STATUS$
$DAYS$ days (Rs.$COST$)
$ISDEFAULT$
$TYPE$ $ENTITY_NAME$
Mobile Number:
Select Subscription Period:
SMS updates from $ENTITY_NAME$ will be sent to this mobile number.
You can cancel any time by clicking on Manage link in Groups Joined
You do not have sufficient balance in your Prepaid Account to proceed. Please Recharge your Prepaid account first and try again.
SMS greetings will not be delivered on CDMA mobile phones and you will not be charged for those users.
Your friend(s) will receive an SMS with the content download link. A working GPRS connection is required to download the content.
Confirmation
You will be charged Rs.$COST$ for every $ITEM$.
$GREETING_DWNLD_WARNING$
Item:
$ITEM$
Sent to:
$MEMBERS$ friends
Approx. Total Cost:
Rs. $TOTAL_COST$
Available Prepaid Balance:
Rs. $BALANCE$
$WARNIG$
Leave $ENTITY_NAME$
You are about to leave the premium group $ENTITY_NAME$.
Your subscription will be cancelled immediately & you will stop
receiving SMS messages from this group. You will not be charged for
this premium group in future.
You can rejoin this group at any time
by paying Rs. $JOIN_COST$ monthly subscription fee.
Successfuly sent
$ITEM$ sent to your $MEMBERS$.
Your prepaid account balance is Rs.$BALANCE$
If you have any issues with content download, please contact us at support@smsgupshup.com.
Premium Group Confirmation
You have re-subscribed to premium group $ENTITY_NAME$. SMS updates from $ENTITY_NAME$ will be sent to your mobile phone.
Your prepaid account balance is Rs.$BALANCE$
Paid Post Confirmation
You are using our Paid Message Service. You will be charged Rs.$COST$/message.
Sending to:
$MEMBERS$ members
Approx. Total Cost:
Rs. $TOTAL_COST$
Available Prepaid Balance:
Rs. $BALANCE$
$WARNIG$
Are you a business looking for fast, Premium SMS delivery service? Please contact us at businessgroups@smsgupshup.com
Group Post Confirmation
Message has been posted to your group.
Your prepaid account balance is Rs.$BALANCE$
Send Group Post Confirmation
Your group has zero members. You must invite some members before you can send a paid message.
Send SMS Greeting Confirmation
Your group has zero members. You must invite some members before you can send a SMS Greeting.