Results 1 to 6 of 6

Thread: Login, forward to search

  1. #1
    tpharaoh is offline Member
    Join Date
    Aug 2009
    Posts
    5

    Default Login, forward to search

    I posted this on another thread, but it was old, so maybe it is not viewed so often...

    I was trying to use the URL to do login and then go straight to search results.

    This method worked in another crm, which is quite similar
    http://localhost/sugar/index.php?act..._string=012399

    This is how I assumed it should be in Sugar:
    http://localhost/sugar/index.php?act...012222&x=0&y=0

    The final goal is a link which will log me on and run the search it will be used in a screen pop for telephone system.

  2. #2
    tpharaoh is offline Member
    Join Date
    Aug 2009
    Posts
    5

    Default Re: Login, forward to search

    I should add the telephone system is not asterisk, its a custom program so the post aobut YAAI would not work for me

  3. #3
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Login, forward to search

    Yes this looks possible. Look at modules/Users/Authenticate.php to find variable names.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  4. #4
    tpharaoh is offline Member
    Join Date
    Aug 2009
    Posts
    5

    Default Re: Login, forward to search

    Quote Originally Posted by SugarDev.net View Post
    Yes this looks possible. Look at modules/Users/Authenticate.php to find variable names.
    Thanks for the quick reply, it does log in with the above, but it doesn't forward to search which the login_module I assumed did. I tried also with return_module, same result.

  5. #5
    tpharaoh is offline Member
    Join Date
    Aug 2009
    Posts
    5

    Default Re: Login, forward to search

    I got an idea from you, I guess this isn't a clean solution but it works for my needs...

    I added this to Authenticate.php and in my login string I added the search_string I want.

    if($_GET[search_string]!=''){
    $searchurl="Location: index.php?action=UnifiedSearch&module=Home&search_ form=false&advanced=false&query_string=$_GET[search_string]&x=14&y=8";
    header($searchurl);
    }

  6. #6
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Login, forward to search

    If that's the case it seems that it is indeed impossible without coding.

    But you could also put that code in an after_login logic hook and be upgrade-safe.

    Finally, I don't want to nit pick, but this call is a bit better:

    SugarApplication::redirect($searchurl);
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Forward request with error
    By 850039 in forum Developer Help
    Replies: 2
    Last Post: 2009-01-24, 08:49 AM
  2. Forward archived emails
    By Proware in forum Feature Requests
    Replies: 8
    Last Post: 2007-10-29, 12:33 PM
  3. How to forward an email?
    By Proware in forum Help
    Replies: 0
    Last Post: 2006-07-03, 04:01 AM
  4. Looking forward to 4.2 patch a
    By nkendrick in forum Help
    Replies: 2
    Last Post: 2006-04-03, 10:41 PM
  5. Forward with email ?
    By ymartin in forum General Discussion
    Replies: 1
    Last Post: 2006-03-21, 09:29 PM

Bookmarks

Posting Permissions

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