Jump to content

convict

Member
  • Posts

    1,302
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by convict

  1. convict

    Check Session

    OMG, little bit better however <php? does your code 'incurable' , IF condition SYNTAX ERROR and useless. Look at this <? include_once("includes/global.inc.php"); session_start(); include_once("classes/db.inc.php"); $db = new db(); include_once("includes/functions.inc.php"); $config = fetchDbConfig("config"); include_once("includes/sslSwitch.inc.php"); include_once("includes/session.inc.php"); if($ccUserData[0]['customer_id']>0){ echo "i am logged in"; } else { echo "i am NOT logged in"; } ?> I think that next steps are completely clear Regards
  2. convict

    Check Session

    Your code is eventless. Just insert little bit more 'inludes' at first :)
  3. Session timeout in progress. Check value of session.gc_maxlifetime in php.ini (or CC3 Admin panel - Server info ). Deafault setting is 1440 (1440 seconds -> 24 mins). Session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. Search and set desidered value up in php.ini (This makes a MASTER value for every PHP script), or place this code in file admin/include/auth.inc BEFORE session_start(); @ini_set('session.gc_maxlifetime', '3600');3600 -> 1 hour (This makes a LOCAL value for CC admin ONLY). Be careful, do not set up a huge value because of security B)
  4. not quite Absolutely NO (for me) This is not a impassable problem - 70 files, problem is big list of files and do it manual, step by step (not suitable as a MOD). Some editors can do it as a batch :)
  5. It seems to be a character(s) furthermore. Check includes/global.inc.php, below ?> :)
  6. Make your shop full functional then search for . Don't hurry. http://www.cubecart.com/site/forums/index.php?showtopic=9287
  7. Upgrade from 2.x to 3.x? Never mind. Read carefully: admin/includes/functions.inc.php - No such file ..... check it :rolly:
  8. Site Docs are boxed , but do you want to place site docs on right or left side? Some templates modificaton is required. It depends on your prefered skin. Target files: 1. skins/[skin name]/styleTemplates/global/index.tpl 2. skins/[skin name]/styleTemplates/boxes/siteDocs.tpl --------- Backup your files! Skin Killer: 1. open file and move {SITE_DOCS}: to section of <div class="colLeft"> tags (left side) to section of <div class="colRight"> tags (right side) In previous {SITE_DOCS} locality put: <div class="siteDocs"> <div class="siteDocsBgRight"> <span class="siteDocsBgLeft">&nbsp;</span> </div> </div> 2. file siteDocs.tpl can be (right sided): <!-- BEGIN: site_docs --> <div class="boxTitleRight">&nbsp;</div> <div class="boxContentRight"> <!-- BEGIN: a --> <a class="txtSession" href="index.php?act=viewDoc&amp;docId={DATA.doc_id}" class="txtDefault">{DATA.doc_name}</a><br /> <!-- END: a --> </div> <div class="boxFootLeft">&nbsp;</div> <!-- END: site_docs --> If you want a Tiltle box, in file includes/boxes/siteDocs.inc.php paste $box_content->assign("LANG_SITE_DOCS_TITLE",$lang['admin']['docs']['site_docs']); after $box_content = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/boxes/siteDocs.tpl"); AND in file siteDosc.tpl replace &nbsp; in <div class="boxTitleRight">&nbsp;</div> with {LANG_SITE_DOCS_TITLE}. Other skins? Little be diferent code :P
  9. OMG 'Kill' cart/.htaccess You appear to be a root on this server. What about server error log ... :P
  10. staff stuff - it doesn't matter, you will be a skilled manager :rolly:
  11. Just delete unnecessary lang folders under language folder
  12. Hi Marcel, i am affraid, i did not labour about taxes and shiping. Later. Question about upgrading 3.0.0->3.0.1 - read 'Upgrade from 3.0.0 to 3.0.1.txt' from CubeCart 3.0.1 package but at first backup 3 files (removing boxes) mentioned above. After all, upload 3 mentioned files above back to site (rewrite). Things, we have made (removing boxes) will be well-preserved. Milos
  13. Great I have one importatnt recommendation: Set up your PHP to display errors It helps ;)
  14. It's clear - definitely bad $GLOBALS['rootDir'] value. Look at phpinfo. Log in as admin user to CC admin panel. Retype URL in your browser, he must ended like this ... admin/misc/info.php an push <ENTER>. Or type your own php file and upload it to main shop folder <?php phpinfo(); ?> Search for SCRIPT_FILENAME in window with infos about PHP Version. This is wanted absolte path...just copy a part of them..it must ended with shop folder. Like this: /any/system/folder/html/shop (shop is name where your shop resides)... Maybe this helps finally ;)
  15. Really? You are absolutely right. No issue about. But what i told is here more in detail... $config = fetchDbConfig("config"); include_once("../../language/".$config['defaultLang']."/lang.inc.php"); It must be changed (about 70 files). Have you any other effective method to obtain an admin_lang value from DB in accordance with ?? :(
  16. If any CC Admin, which is NOT Super user has Read only permisions to any section, he can do everything in that section - Delete, Add, Modify. My question to CC team: Objective permisions rules will be applicable in the future ever? Nowadays, it's policy of trust only Milos
  17. ... if user has ability to choose other languages ;)
  18. Shop works fine? I mean user interface. If you have set a correct value what we are talking about, then e.g. Language box works - combo box is filled with couple of languages. Or?
  19. vrakas look at template styleTemplates/global/index.tpl under your prefered skin folder, open it and moodify.... If you like to add your image, add code below after {INFORMATION}, or write your own box template and other necessary files. But code which you're searching, is easy. You can apply some cc3 styles. <div class="boxTitleLeft">Your head-line</div> <div class="boxContentLeft"> <img src="http://www.yoursite.com/anypath.gif" width="xx" height="xx" border="0" > </div> <div class="boxFootLeft">&nbsp;</div> Replace www.yoursite.com/anypath.gif with a real one (JPEG, GIF..), type correct width (atention, limited value) and height of image. Type your box headline BTW this is done for single language site, because of box head line - Your head-line Wanna more details or explanations? ;)
  20. <?php include("includes/navigation.inc.php"); ?> - RELATIVE PATH to file <?php include($GLOBALS['rootDir']."/admin/includes/navigation.inc.php"); ?> - ABSOLUTE PATH to file (expected value) With your setting nav bar appears accessing php files in admin folder (NOT in subfolders). Any admin subfolder has NOT includes subfolder. BTW value of $glob['rootDir'] in includes/global.inc.php is correct?
  21. Great WANTED skins/Killer/styleImages/backgrounds/topHeader.gif About your shop: hmm, what about right side? Blank, blank... Milos
×
×
  • Create New...