Page 1 of 4 12 ... LastLast
Results 1 to 10 of 32

Thread: Need FlashChat to open to new window

  1. #1
    Drakontas
    Guest

    Default Need FlashChat to open to new window

    I use aeDating version 3.3, the DEF template and FlashChat.

    I would like Flashchat to open to a new window but am unsure of the proper coding to use.

    If the CHAT tab at the top of the screen is used, Flashchat opens to a new window. But when the CHAT link in the member control panel is used, it opens within the same browser window.

    I believe the code I need to modify is located in aechat.php:
    header("Location: {$site['url']}chat/");

    and my assumption is that it is that's where I modify the code... but I don't know how to format "_blank" into it. What really confuses me is that if I place my cursor over the Online Chat tab at the top of the screen and over the chat link in the control panel it points to the same url file (aechat.php). I don't know why the link in the member control panel will not open to a new window.

    Any help would be appreciated.

    (Yeah, I'm a novice PHP user).

    Steven

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Hi,

    No - you need to take care of this in your menu... not in aechat.php....

    You need a Target="_blank" or similar command, in your menu code.

    Here is an example, to point you in the right direction...

    Code:
    $ret .= MenuItem("#F3C302",_t("_Chat"), "", "", "http://www.mysite.com/mypage.php", 0, "_blank"  );
    Note - this function is done, and can be done, in several different ways throughout the aeDating code. and there is a difference between $ret and $out.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    Drakontas
    Guest

    Default

    Hi Smoge, thanks for the reminder of this post. I did forget, but that's because I am still very much a novice to all of this... I don't know what file(s) to implement your instructions into.

  4. #4
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    You can make these changes in /inc/menu_design_XXX.inc.php

    Where the XXX is your template name.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  5. #5
    woody3369
    Guest

    Default FlashChat

    Thanks again Smoge. Works great.

  6. #6

    Join Date
    Oct 2005
    Posts
    226

    Default

    How about opening in a popup window - no address bar/status bar etc??
    Regards
    Greg

    ----------------------------------------
    www . adult only dating . com

    Any help supplied is tested and working on version aeDating 4.02 CLEAN 4

    ----------------------------------------
    ** For Sale **
    www. the date exchange . com (Whitelabel)
    www. the adult exchange . com (Whitelabel)
    See http://www.modmysite.com/showthread.php?t=1841 for more details

  7. #7
    Prometheus
    Guest

    Default

    Yeah. For 4.1.2 it's in the design.inc.php

    Around line 490
    find this code

    Code:
    $ret .= MenuItem("",_t("_Chat"), "", "aechat.php", $site[url] );
    Replace it with this code.

    Code:
    $ret .= MenuItem("",_t("_Chat"), "", "aechat.php",$site[url],0,"target=_blank" );
    Thank guys. I guess my mind is going.
    Todd
    Last edited by Smoge; 10-14-2006 at 11:57 PM.

  8. #8
    Direct_Effect
    Guest

    Default how to do this in dolphin?

    anyone know?

  9. #9
    BlinkyBill01
    Guest

    Default

    Ok, got the chat to open in a new window, but is there a way to get it sized without any scrollbars (it was asked above) ?

    I was looking at the

    Code:
    $target = "_blank" )
    and I can't get this to work:

    Code:
     $targetfeatures = "scrollbars=no=width=415=height=440", $target = "_blank" )
    Any suggestions?

  10. #10
    Prometheus
    Guest

    Default

    See this post: Just one of many.

    http://www.modmysite.com/showthread....ght=Chat+popup




    Change the html as you please.

    Todd

Page 1 of 4 12 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 07-16-2006, 01:23 PM
  2. page open in new window
    By stevie in forum General Troubleshooting
    Replies: 2
    Last Post: 09-05-2005, 10:13 AM
  3. no new window open but.....
    By Jack Kubel in forum General Troubleshooting
    Replies: 3
    Last Post: 07-22-2005, 01:00 PM
  4. Frameless Window for flashchat
    By PeekHoles in forum Wishlist
    Replies: 0
    Last Post: 05-05-2005, 03:04 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
  •