 |
|
|
Premium Groups
Category : Education & Campus
Rs.30/month
By Chandamama of Festivals
Category : Finance
Rs.45/month
By stock tipz of stocktipz
Category : Entertainment
Rs.30/month
By dhiraj of dhiraj
Category : Education & Campus
Rs.25/month
By MBA_Tips of MBA_Tips
Category : Education & Campus
Rs.25/month
By CrazyUstad of INFOMBA
Introducing Premium Groups, brought to you by the creators of popular groups, at ultra-low monthly subscription rates. See featured premium groups here, and payment methods here.
/* To create a template pplaceholder map.
* 1. Create a top level object template.
* 2. This top level object contains an array with one entry for each placeholder in the template
* 3. Each entry for a placeholder has two members:
* - tmplKey: Identifies the regular expression used in the template
* - tmplMap: Identifies the member object in the JSON object which should replace the template placeholder.
*/
function getTmplPlaceHolderMap()
{
var placeHolderMap = new Array();
placeHolderMap[0] = new Object();
placeHolderMap[0].key = "http://resource2.smsgupshup.com/webimages/$PIC_POST_URL$.jpg";
placeHolderMap[0].dataMember = "picHREF";
placeHolderMap[1] = new Object();
placeHolderMap[1].key = "http://resource2.smsgupshup.com/webimages/$PIC_IMAGE_URL$.jpg";
placeHolderMap[1].dataMember = "picSrc";
return placeHolderMap;
}
function getLeftTmplDataObjects(picListJson)
{
var picList = picListJson.smsRichContent;
/* We show first half of the categories in the left list. */
var limit = ((picList.length < 4)? picList.length : 4);
limit = Math.floor((limit + 1) / 2);
var picLeftArr = new Array();
for(var i=0; i < limit; i++)
{
var entry = new Object();
entry.picHREF = picList[i].url;
entry.picSrc = picList[i].url;
picLeftArr[i] = entry;
}
return picLeftArr;
}
function getRightTmplDataObjects(picListJson)
{
var picList = picListJson.smsRichContent;
/* We show second half of the categories in the right list. */
var limit = ((picList.length < 4)? picList.length : 4);
start = Math.floor((limit + 1) / 2);
var picRightArr = new Array();
var j=0;
for(var i = start; i < limit; i++)
{
var entry = new Object();
entry.picHREF = picList[i].url;
entry.picSrc = picList[i].url;
picRightArr[j++] = entry;
}
return picRightArr;
}
function picSmsPromotionJsp_process()
{
var picListJson = '{"catId":-1,"title":"All","params":{"limit":4,"start":0,"catId":"-1","type":"SMS_RICH_CONTENT_LIST","richContentType":"IMAGE","orderBy":"cost","needTotalForPg":false},"message":"","richContentType":"IMAGE","status":"SUCCESS","smsRichContent":[{"text":"Sorry&#44;galti se mistake ho gaya","title":"sorry","description":"cute sorry","url":"http://resource2.smsgupshup.com/webimages/picimages/WEB223.png","cost":"7.00","contentType":"IMAGE","id":223},{"text":"Taj nahin&#44; par chaahat to hai","title":"Taj","description":"Taj Mahal","url":"http://resource.smsgupshup.com/webimages/picimages/WEB230.png","cost":"7.00","contentType":"IMAGE","id":230},{"text":"Were u looking 4 Mr&#46;Perfect&#63;","title":"knock","description":"Mr Perfect","url":"http://resource2.smsgupshup.com/webimages/picimages/WEB231.png","cost":"7.00","contentType":"IMAGE","id":231},{"text":"ooooh&#33; Hot legs&#46;&#46;&#33;","title":"legs","description":"Hot legs","url":"http://resource.smsgupshup.com/webimages/picimages/WEB232.png","cost":"7.00","contentType":"IMAGE","id":232}],"errorCode":"NO_ERROR","urchinUrl":"/gallery?catId=-1IMAGE&page=1"}';
if (GupShup.util.isInitialized(GupShup.conf.currentModule))
{
if (GupShup.util.trim(GupShup.conf.currentModule.refreshUrl) == '')
{
GupShup.conf.currentModule.refreshUrl
= GupShup.conf.readUrl + "&type=" + 'SMS_RICH_CONTENT_LIST'
+ '&catId=' + '-1'
+ '&start=0' + '&limit=' + '4' + '&needTotalForPg=false';
}
else
{
picListJson = GupShup.conf.currentModule.refreshArgs;
}
}
var picList = GupShup.util.getJsonFromResponse(picListJson);
if((typeof(picList.status) != 'undefined') && (picList.status == 'SUCCESS') && (picList.smsRichContent.length > 0))
{
var tmplPlaceHolderMap = getTmplPlaceHolderMap();
var tmplDataObjArr = getLeftTmplDataObjects(picList);
GupShup.util.expandTemplateInDiv("picListLeftTableRIGHT", "picListRowTemplateRIGHT", tmplPlaceHolderMap, tmplDataObjArr);
tmplDataObjArr = getRightTmplDataObjects(picList);
GupShup.util.expandTemplateInDiv("picListRightTableRIGHT", "picListRowTemplateRIGHT", tmplPlaceHolderMap, tmplDataObjArr);
}
}
try
{
picSmsPromotionJsp_process();
}
catch(error)
{
if (GupShup.conf.jsDebug)
alert('Could not process picSmsPromotionJsp module : error-' + error);
}
/* To create a template placeholder map.
* 1. Create a top level object template.
* 2. This top level object contains an array with one entry for each placeholder in the template
* 3. Each entry for a placeholder has two members:
* - tmplKey: Identifies the regular expression used in the template
* - tmplMap: Identifies the member object in the JSON object which should replace the template placeholder.
*/
function getTmplPlaceHolderMap()
{
var placeHolderMap = new Array();
placeHolderMap[0] = new Object();
placeHolderMap[0].key = "http://resource.smsgupshup.com/webimages/$CAT_PAGE_URL$.html";
placeHolderMap[0].dataMember = "catHREF";
placeHolderMap[1] = new Object();
placeHolderMap[1].key = "$CAT_NAME$";
placeHolderMap[1].dataMember = "catName";
return placeHolderMap;
}
function extractCatDataObjects(categoryList, start, limit)
{
var catArr = new Array();
var j = 0;
for(var i=start; i <= limit; i++)
{
var entry = new Object();
entry.catHREF = '/categories' + '/' + categoryList[i].name;
entry.catName = categoryList[i].displayName;
catArr[j++] = entry;
}
return catArr;
}
function catListJsp_process()
{
var featuredCatListJson = '/*-secure-{"params":{"limit":-1,"start":0,"type":"ALL_CATEGORIES","getAll":"false","needTotalForPg":false},"message":"","categories":[{"featuredRank":1,"url":"http://www.smsgupshup.com/categories/Business","status":"ENABLED","name":"Business","id":3,"displayName":"Business"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Clubs & Organizations","status":"ENABLED","name":"Clubs &#38; Organizations","id":24,"displayName":"Clubs &#38; Organizations"},{"featuredRank":1,"url":"http://www.smsgupshup.com/categories/Education & Campus","status":"ENABLED","name":"Education &#38; Campus","id":4,"displayName":"Education &#38; Campus"},{"featuredRank":1,"url":"http://www.smsgupshup.com/categories/Entertainment","status":"ENABLED","name":"Entertainment","id":5,"displayName":"Entertainment"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Events & Parties","status":"ENABLED","name":"Events &#38; Parties","id":19,"displayName":"Events &#38; Parties"},{"featuredRank":1,"url":"http://www.smsgupshup.com/categories/Finance","status":"ENABLED","name":"Finance","id":6,"displayName":"Finance"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Food & Drinks","status":"ENABLED","name":"Food &#38; Drinks","id":23,"displayName":"Food &#38; Drinks"},{"featuredRank":1,"url":"http://www.smsgupshup.com/categories/Health","status":"ENABLED","name":"Health","id":8,"displayName":"Health"},{"featuredRank":1,"url":"http://www.smsgupshup.com/categories/Jobs","status":"ENABLED","name":"Jobs","id":10,"displayName":"Jobs"},{"featuredRank":1,"url":"http://www.smsgupshup.com/categories/Jokes","status":"ENABLED","name":"Jokes","id":11,"displayName":"Jokes"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Movies & TV","status":"ENABLED","name":"Movies &#38; TV","id":12,"displayName":"Movies &#38; TV"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Music","status":"ENABLED","name":"Music","id":13,"displayName":"Music"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/News & Politics","status":"ENABLED","name":"News &#38; Politics","id":14,"displayName":"News &#38; Politics"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/People & Blogs","status":"ENABLED","name":"People &#38; Blogs","id":26,"displayName":"People &#38; Blogs"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Romance","status":"ENABLED","name":"Romance","id":25,"displayName":"Romance"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Shopping & Deals","status":"ENABLED","name":"Shopping &#38; Deals","id":21,"displayName":"Shopping &#38; Deals"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Spirituality","status":"ENABLED","name":"Spirituality","id":20,"displayName":"Spirituality"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Sports","status":"ENABLED","name":"Sports","id":17,"displayName":"Sports"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Technology","status":"ENABLED","name":"Technology","id":16,"displayName":"Technology"},{"featuredRank":0,"url":"http://www.smsgupshup.com/categories/Travel & Lifestyle","status":"ENABLED","name":"Travel &#38; Lifestyle","id":22,"displayName":"Travel &#38; Lifestyle"}],"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=" + 'ALL_CATEGORIES'
+ '&getAll=false&needTotalForPg=false';
}
else
{
featuredCatListJson = GupShup.conf.currentModule.refreshArgs;
}
}
var featuredCatList = GupShup.util.getJsonFromResponse(featuredCatListJson);
if((typeof(featuredCatList.status) != 'undefined') && (featuredCatList.status == 'SUCCESS') && (featuredCatList.categories.length > 0))
{
var categoryList = featuredCatList.categories;
var tmplPlaceHolderMap = getTmplPlaceHolderMap();
var limit = ((categoryList.length < 200)? categoryList.length : 200);
/* Expand all the data objects, except the last, in the first template. */
var tmplDataObjArr = extractCatDataObjects(categoryList, 0, (limit - 2));
GupShup.util.expandTemplateInDiv("catEntrySpanRIGHT", "catEntryTemplateRIGHT", tmplPlaceHolderMap, tmplDataObjArr);
/* Expand the last entry in the second template. */
tmplDataObjArr = extractCatDataObjects(categoryList, (limit - 1), (limit - 1));
GupShup.util.expandTemplateInDiv("catLastEntrySpanIdRIGHT", "catLastEntryTemplateRIGHT", tmplPlaceHolderMap, tmplDataObjArr);
}
}
try
{
catListJsp_process();
}
catch(error)
{
if (GupShup.conf.jsDebug)
alert('Could not process catListJsp module : error-' + error);
}
Advertise with us
Reach the audience you want with relevant targetted ads.
Promote your brand and engage with your customers.
Learn more.
var innerScriptDiv = "";
var innerScriptText = "";
var orientation = "RIGHT";
var modules = GupShup.conf[orientation + '_Modules'] = new Array();
GupShup.conf.currentModule = modules[0] = {name : 'errorMsg.jsp', rank : 0,
orientation : 'right', refreshUrl : '', refreshArgs : ''};
GupShup.html.dynamicBar.executeJavaScript('errorMsg.jsp_RIGHT_javaScript');
GupShup.conf.currentModule = modules[1] = {name : 'gupshupDemo.jsp', rank : 1,
orientation : 'right', refreshUrl : '', refreshArgs : ''};
GupShup.html.dynamicBar.executeJavaScript('gupshupDemo.jsp_RIGHT_javaScript');
GupShup.conf.currentModule = modules[2] = {name : 'favPremiumGrp.jsp', rank : 2,
orientation : 'right', refreshUrl : '', refreshArgs : ''};
GupShup.html.dynamicBar.executeJavaScript('favPremiumGrp.jsp_RIGHT_javaScript');
GupShup.conf.currentModule = modules[3] = {name : 'picSmsPromotion.jsp', rank : 3,
orientation : 'right', refreshUrl : '', refreshArgs : ''};
GupShup.html.dynamicBar.executeJavaScript('picSmsPromotion.jsp_RIGHT_javaScript');
GupShup.conf.currentModule = modules[4] = {name : 'popularCat.jsp', rank : 4,
orientation : 'right', refreshUrl : '', refreshArgs : ''};
GupShup.html.dynamicBar.executeJavaScript('popularCat.jsp_RIGHT_javaScript');
GupShup.conf.currentModule = modules[5] = {name : 'whatsNew.jsp', rank : 5,
orientation : 'right', refreshUrl : '', refreshArgs : ''};
GupShup.html.dynamicBar.executeJavaScript('whatsNew.jsp_RIGHT_javaScript');
GupShup.conf.currentModule = modules[6] = {name : 'advertiseWithUs.jsp', rank : 6,
orientation : 'right', refreshUrl : '', refreshArgs : ''};
GupShup.html.dynamicBar.executeJavaScript('advertiseWithUs.jsp_RIGHT_javaScript');
GupShup.conf.currentModule = null;
|
|