magi Posted August 15, 2008 Share Posted August 15, 2008 I would like to use the script version 3 for online users who appears on the front of the shop. but I can not find the last file: language / en / lang.inc.php If someone can help me install code: ################################# # STEP 1 ################################# OPEN includes/boxes/info.inc.php FIND about line 37 // query database $noCategories = $db->select("SELECT count(cat_id) as no FROM ".$glob['dbprefix']."CubeCart_category"); PASTE AFTER $timeLimit = time() - 900; // query database $OlnineCustomers = $db->select("SELECT count(sessId) as no FROM ".$glob['dbprefix']."CubeCart_sessions WHERE timeLast>".$timeLimit); FIND ABOUT line 48 $box_content->assign("DATA_CURRENCY",$currencyVars[0]['name']); PASTE AFTER $box_content->assign("CUSTOMERS_ONLINE",$OlnineCustomers[0]['no']); $box_content->assign("LANG_INFO_CUSTONLINE",$lang['front']['boxes']['customers_online']); ############################# save, close, upload your file ################################# # STEP 2 ################################# OPEN skins/[your mod]/styleTemplates/boxes/info.tpl FIND about line 7 <strong>{LANG_INFO_PRICES}</strong> {DATA_CURRENCY}<br /> PASTE AFTER <strong>{LANG_INFO_CUSTONLINE}:</strong> {CUSTOMERS_ONLINE}<br /> ################################# # STEP 3 ################################# OPEN language/en/lang.inc.php FIND about line 1402 $lang['front']['boxes'] = array( PASTE AFTER 'customers_online' => "Online customers", ############################# save, close, upload your file -----------------> special: do the same in the other lang.inc.php files & translate all the words between " " <------------------ ############################ # END ############################ Magi Quote Link to comment Share on other sites More sharing options...
convict Posted August 15, 2008 Share Posted August 15, 2008 Pleased you download my free mod however best to place this request to different forums - http://cubecartforums.org :-) Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.