From: Tim S. <tim...@go...> - 2009-07-23 06:28:05
|
Hi Arwan, I have never used Joomla so I can't really help. There are joomla experts on this list, any of hem care to help? Thanks Tim 2009/7/22 Arwan <r1g...@gm...>: > > Hi Tim, > > Am using joomla CMS which am new to. > > in the menu item setup for the user menu below : > > http://www.nabble.com/file/p24604026/usermenu.jpg > > in the link information menu selectcoy.php is the script which would need to > be replaced with a url > with my little knowledge of joomla am unable to find out how to: > > 1. Attach URL information such as (../company-1/index.php) to each user. > 2. Incorporate the URL information to the joomla menu item link parameter so > that each user is redirected as required. > > The link below, to run the demo system works fine with a url rather than a > script in the menu item link parameter. > > http://www.nabble.com/file/p24604026/demolink.jpg > > Any ideas ?. > > Thanks in advance > > > Tim Schofield wrote: >> >> Hi Arwan, >> >> Why do you need a script, why not just give each user a different URL to >> use? >> >> Tim >> >> >> 2009/7/22 Arwan <r1g...@gm...>: >>> >>> Hi, alanb-4, >>> >>> Am having problems with the php script needed to select which base weberp >>> directory to redirect the user to. you say you already do it. how ? >>> please >>> help >>> >>> Thanks in advance >>> >>> >>> alanb-4 wrote: >>>> >>>> Hi all, >>>> >>>> Simple: >>>> 1) Use a separate base directory in your webserver for every company. >>>> (I already do this for every version of WebERP) >>>> 2) Use different database names, of course, for each company. >>>> >>>> Then, you can upgrade the WebERP versions, one company at a time. >>>> >>>> Keep Smiling >>>> >>>> Alan >>>> >>>> On Mon, 20 Jul 2009, Arwan wrote: >>>> >>>>> >>>>> Thanks Tim, >>>>> >>>>> The reason I have separate copies of code is so that each company can >>>>> have >>>>> its own documents (invoice, statement, picking list etc) formats of its >>>>> own. >>>>> The way you suggest, all three companies would have to share the same >>>>> document formats. >>>>> >>>>> any ideas ? >>>>> >>>>> >>>>> >>>>> >>>>> Tim Schofield wrote: >>>>>> >>>>>> Hi Arwan, >>>>>> >>>>>> You don't need separate copies of the code, just separate databases, >>>>>> and a subdirectory under /companies/ for each company. Then in >>>>>> includes/ConnectDB.inc at around line 6 put code such as the >>>>>> following: >>>>>> >>>>>> switch ($_POST['UserNameEntryField']) { >>>>>> case 'admin1': >>>>>> $_SESSION['DatabaseName']='weberpdemo1'; >>>>>> case 'admin2': >>>>>> $_SESSION['DatabaseName']='weberpdemo2'; >>>>>> } >>>>>> >>>>>> This should work fine for you. >>>>>> >>>>>> Thanks >>>>>> Tim >>>>>> >>>>>> >>>>>> 2009/7/20 Arwan <r1g...@gm...>: >>>>>>> >>>>>>> Kindly excuse this may be a little off topic. >>>>>>> >>>>>>> I have three weberp companies set up as follows >>>>>>> >>>>>>> http://127.0.0.1/company-1 >>>>>>> http://127.0.0.1/company-2 >>>>>>> http://127.0.0.1/company-3 >>>>>>> >>>>>>> Due to insufficient knowledge of PHP, Am having problems with the >>>>>>> php >>>>>>> script to select which company to direct the user to based on >>>>>>> $username >>>>>>> or >>>>>>> $userid. Am using joomla and am not even sure the variables $username >>>>>>> and >>>>>>> userid are the correct ones to use in the php script. >>>>>>> This is the script am using : >>>>>>> http://www.nabble.com/file/p24567676/phpcode.jpg >>>>>>> When I login as either admin or user-2, it always goes to >>>>>>> http://127.0.0.1/company-1 >>>>>>> I can not get it to select http://127.0.0.1/company-2 for user-2. >>>>>>> When I replace the “=” in the if statement with “==”, it goes to >>>>>>> login-failed.php for both users. >>>>>>> >>>>>>> What am I doing wrong ? >>>>>>> >>>>>>> Is there some standard way to do this ? >>>>>>> >>>>>>> Thanks in advance >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> View this message in context: >>>>>>> http://www.nabble.com/Selecting-company-in-weberp-set-up-tp24567676p24567676.html >>>>>>> Sent from the web-erp-users mailing list archive at Nabble.com. >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> Enter the BlackBerry Developer Challenge >>>>>>> This is your chance to win up to $100,000 in prizes! For a limited >>>>>>> time, >>>>>>> vendors submitting new applications to BlackBerry App World(TM) will >>>>>>> have >>>>>>> the opportunity to enter the BlackBerry Developer Challenge. See full >>>>>>> prize >>>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>>> _______________________________________________ >>>>>>> web-ERP-users mailing list >>>>>>> web...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/web-erp-users >>>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Enter the BlackBerry Developer Challenge >>>>>> This is your chance to win up to $100,000 in prizes! For a limited >>>>>> time, >>>>>> vendors submitting new applications to BlackBerry App World(TM) will >>>>>> have >>>>>> the opportunity to enter the BlackBerry Developer Challenge. See full >>>>>> prize >>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>> _______________________________________________ >>>>>> web-ERP-users mailing list >>>>>> web...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/web-erp-users >>>>>> >>>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/Selecting-company-in-weberp-set-up-tp24567676p24572346.html >>>>> Sent from the web-erp-users mailing list archive at Nabble.com. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Enter the BlackBerry Developer Challenge >>>>> This is your chance to win up to $100,000 in prizes! For a limited >>>>> time, >>>>> vendors submitting new applications to BlackBerry App World(TM) will >>>>> have >>>>> the opportunity to enter the BlackBerry Developer Challenge. See full >>>>> prize >>>>> details at: http://p.sf.net/sfu/Challenge >>>>> _______________________________________________ >>>>> web-ERP-users mailing list >>>>> web...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/web-erp-users >>>>> >>>> >>>> Keep Smiling >>>> >>>> Alan >>>> >>>> --------------------------------------------------------------------------- >>>> Alan Beard Unix Support Technician from 1984 to today >>>> 70 Wedmore Rd. Integrated Sols Inc. SCO Xenix and Unix, Mips >>>> RISC/os >>>> Emu Heights N.S.W. 2750 Sun Solaris, SCO OpenServer 5.0.X, HP/UX, AIX >>>> +61 2 47353013 (h) Routers, terminal servers, printers, terminals >>>> etc.. >>>> 0414 353013 (mobile) Support Programming, shell scripting, "C", >>>> assembler >>>> Aft >>>> ------------------------------------------------------------------------------ >>>> Enter the BlackBerry Developer Challenge >>>> This is your chance to win up to $100,000 in prizes! For a limited time, >>>> vendors submitting new applications to BlackBerry App World(TM) will >>>> have >>>> the opportunity to enter the BlackBerry Developer Challenge. See full >>>> prize >>>> details at: http://p.sf.net/sfu/Challenge >>>> _______________________________________________ >>>> web-ERP-users mailing list >>>> web...@li... >>>> https://lists.sourceforge.net/lists/listinfo/web-erp-users >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Selecting-company-in-weberp-set-up-tp24567676p24600249.html >>> Sent from the web-erp-users mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> web-ERP-users mailing list >>> web...@li... >>> https://lists.sourceforge.net/lists/listinfo/web-erp-users >>> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> web-ERP-users mailing list >> web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-users >> >> > > -- > View this message in context: http://www.nabble.com/Selecting-company-in-weberp-set-up-tp24567676p24604026.html > Sent from the web-erp-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > web-ERP-users mailing list > web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-users > |