Page 1 of 2 12 LastLast
Results 1 to 15 of 24

Thread: Different Directories same User

  1. #1
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default Different Directories same User

    I'm running already 5 differnt directories under the same database... all the categories are different, all the links are differnts, all the reviews, votes etc.. are different...

    the only thing that is not different is the users... a user is allowed to post a review in any of the 5 directories with the same username.. howerver at this point Im experiencing a problem...

    and that is when a member wants to write areview for one directory the user has to login.. and then if he goes to the second directory he has to log in again... the same for the 5 directorieds

    i think it has to do soemthing with sessions... can some direct me in the right direction? so that members will only need to log in once? any help would be really apreciated...
    Polo

    --------------------------------------
    Christian Website

  2. #2
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    anyone? any ideas?
    Polo

    --------------------------------------
    Christian Website

  3. #3
    Join Date
    Feb 2004
    Posts
    455

    Default

    It is most likely that you did install 5 different database for 5 directory.
    If you were to install the database once but change the name of the tables for each directory you should be able to do what you want.
    Think about it only idx_category and idx_category_in_order need to be specific to a particular directory (you could of course add a parameter in that table to attach a category to a directory) If as I am you are not too good with php creating a category table for a given category is the simplest. Create a new category table call idx_directoryname_category, load that category to your main database. Now you need to rename the table on the given directory, run a global search search and replace in indexu and replace "idx_category" with the name of your directory specific table. Each directory will now look for its categories in its own table. You could do the same thing with idx_link if you are afraid to have problem with search.
    Of course since you will have only one idx_user table the session will not be interrupted when you move from one directory to the other, they will all use the same database.

    BTW you could do the same thing to create a multilingual directory
    Last edited by aladdin1; 04-19-2004 at 03:07 PM.

  4. #4
    Join Date
    Sep 2002
    Posts
    60

    Default

    Polo5,

    Did you install the complete set of indexu 5 times aswell?

    If you can give a bit more detail on your installation it may help get a solution.

    Rob

  5. #5
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    Of course since you will have only one idx_user table the session will not be interrupted when you move from one directory to the other, they will all use the same database
    I know, i have done everything aladdin, my directories are set up and running.... the problem im encountering is that the user has to log in, every times he/she changes directories... like i said, i think it has to do soemthign with sessions or how the cookies are used in indexu...

    thanks for your help, i really appreciate it.
    Polo

    --------------------------------------
    Christian Website

  6. #6
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    Originally posted by Rob Picken
    Polo5,

    Did you install the complete set of indexu 5 times aswell?

    If you can give a bit more detail on your installation it may help get a solution.

    Rob
    yes i did.... is five directories with differnt prefixs, (instead of idx_link, I changed it to something like polo_link and so on) now i have 5 directories under 1 database...

    they only thing they are sharing is the users (this way a user can add a resource to any directory).... any thing else you would like to know?
    Polo

    --------------------------------------
    Christian Website

  7. #7
    Join Date
    Sep 2002
    Posts
    60

    Default

    OK...

    From my experience of running two indexu installs, i've had no problem, once i was logged in with with one i was logged in with both.

    The reason i asked about the 5 installs was because i had to install the files for both sets to make it work, ie application.php.

    Just a thought but if you are using one users table to run all five installs, then the problem may be something to do confusing the system ie writing a review for the primary table may be ok, but conecting to a different table, whilst remaining logged in may cause the sessions to work, but as your connecting to a different table, the system may not recognise you as been logged in - i know what i'm trying to say just confused myself now!!!!!

    One more question, do u run one admin panel for each install, all one main admin panel?

  8. #8
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    i did not used the install script... i installed them all manually... and well got confused with what you were trying to say
    Polo

    --------------------------------------
    Christian Website

  9. #9
    Join Date
    Sep 2002
    Posts
    60

    Default

    That makes two of us!!!!!!!

    Ok, lets try this:

    How many copies of application.php are you running?

    How many admin panels do you have?

    Rob

  10. #10
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    5 and 5, ok i think we are understanding each other better
    Polo

    --------------------------------------
    Christian Website

  11. #11
    Join Date
    Sep 2002
    Posts
    60

    Default



    Ok, when you go between your admin panels, do you keep having to login to each one, or are you continually logged in?

  12. #12
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    yes rob I do...
    Polo

    --------------------------------------
    Christian Website

  13. #13
    Join Date
    Sep 2002
    Posts
    60

    Default

    Have to log in each time?

    In that case then it is a sessions problem. I've always been able to run multiple admin panels, and only log in once.

    The only difference with how i did it was i used a seperate dbase for each install. Unfortunalty i've not got access to either of the sites i did this on, so i can't check on the users thing, but i would imagine that the admin and the users both use the same system.

    To be honest i'm not sure of what the best method for finding the solution would be. What i would do would be to make a new full installation in a seperate directory with a second dbase (if you have a spare one). Then just test your admin area, If you don't need to login each time you access your admin area (making sure both username and passwords are the same) then you know that its a sessions problem within your current setup.

    If it still requires multiple login's then we have a different problem. I can't think of an easier way, maybe somebody else knows of one.

    Failing that, create a new independant members area, but thats going to require a fair amount of work.

    Rob

  14. #14
    Join Date
    Apr 2004
    Posts
    11

    Default I does not work for me

    I'm also trying to use indexu for different directories but unfortunately I have to login again if I go from one indexu installation to another. I share the user table which works but I don't know how to share the session??? The installations are still on my local computer! Could this be the reason that it does not work?
    Another problem is to show the favorites for the different directories in the user cp. The favorite folders for each directory are created automatically when the user registers but I don't manage to show the folders in the user cp. Only the favorites folder for the current directory is showing up.

  15. #15
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    I share the user table which works but I don't know how to share the session??? The installations are still on my local computer! Could this be the reason that it does not work?

    no, I dont think that is the problem since im running the differnt indexu installations on a paid shared server. I also experencing the exact same problem as you..... let see if someone can help us or if we can find a solution.. regards
    Polo

    --------------------------------------
    Christian Website

Similar Threads

  1. Requiring User in Add.php
    By esm in forum v3.2
    Replies: 9
    Last Post: 07-18-2004, 02:09 PM
  2. looking up user during add process
    By esm in forum v5.x
    Replies: 3
    Last Post: 06-18-2003, 10:27 PM
  3. User login problem
    By webmasterjr in forum v5.x
    Replies: 3
    Last Post: 12-16-2002, 06:03 AM
  4. User CP questions ???
    By ideavirus in forum v5.x
    Replies: 3
    Last Post: 07-14-2002, 07:05 AM
  5. How to disable user registration
    By binto in forum v5.x
    Replies: 1
    Last Post: 06-21-2002, 11:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •