Results 1 to 7 of 7

Thread: I need help with hiding IM popup link to free members

  1. #1
    hd-4real
    Guest

    Default I need help with hiding IM popup link to free members

    Hi all,

    Who knows the code for what I need. Please see the attached image to see what I mean. I want to hide the IM {user} now link if a user is a free member. I only want gold members to see the IM {user} now link.

    Please who can help me.



    Regards,

    hd-4real[/img]
    Attached Images Attached Images

  2. #2
    hd-4real
    Guest

    Default

    Is there no one who can help me out with a quickmod or something. If this has to be a special mod made for this please let me know who can do it and what it will cost. I need this option because my site is launching tomorrow and free members will be able to use the IM.

    Regards,

    hd-4real

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

    Default

    Since you want to hide the link, you should use the gold auth; check on the page that generates the link for the your IM, or, in your template file for that page, surrounded by <? and ?>

    I can do it for you, but not for a day or two - I'm in the middle of several things right now.

    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.

  4. #4
    hd-4real
    Guest

    Default

    Quote Originally Posted by Smoge
    Since you want to hide the link, you should use the gold auth; check on the page that generates the link for the your IM, or, in your template file for that page, surrounded by <? and ?>

    I can do it for you, but not for a day or two - I'm in the middle of several things right now.

    Smoge
    Hi Smoge,

    I tried a few things but since i'm a noobie I don't know how to get it working so if you could help when you can I would appreciate it.

    Regards,

    hd-4real

  5. #5
    hd-4real
    Guest

    Default

    Is there really no one who can help. I will pay I need this to be done asap because promotion and signups have already begun. Please who can help and what will it cost.

    Regards,

    hd-4real

  6. #6

    Join Date
    Apr 2005
    Posts
    19

    Default

    Hi,

    If you want you can use this code " Available for free option control " standart members not used it

    Ver : 4.001

    File : profile.php

    find this line 466

    //Buttons START

    //modified by Dan - starts here

    $ai_im = "";
    $al_im = "";

    $chat_with_me = getParam("enable_im") == "on" ? 1 : 0;

    if ( $chat_with_me )
    {
    if ( $user_is_online )
    {
    $out .= MenuItem("_red",_t("_chat now"), "window.document.forms['imform'].elements['imsg'].value='{$p_arr['NickName']}> ';", "javascript: void(0);", $site[url], 0, "_blank");
    $al_im ="<a href=\"javascript: void(0);\" OnClick=\"launchAddToIM({$p_arr['ID']})\"";
    }
    else
    $al_im ="<a href='#' OnClick=\"alert('Sorry, but user is OFFLINE at the moment.\\nPlease try later...');return false;\"";
    }

    if ( $pa_icon_preload )
    $al_im.="onMouseOut =\"javascript: i06$p_arr[ID].src='$site[images]pa_im.gif';\"";


    $al_im .= ">";

    $file_icon = $dir['root']."templates/tmpl_".$tmpl."/images_".$tmpl."/pa_im.gif";

    if ( file_exists( $file_icon ) )
    $ai_im = $al_im."<img name=i06$p_arr[ID] src=\"".$site[images]."pa_im.gif\" border=0></a>";
    else
    $ai_im = '';
    $al_im .= _t("_chat now");//.= "<img alt=\""._t("_chat now")."\" name=i01$p_arr[ID] src=\"$site[images]pa_im2.gif\" border=0></a>";

    //modified by Dan - ends here

    and replace :

    //Buttons START

    //modified by Dan - starts here

    $ai_im = "";
    $al_im = "";
    if ( $AVAILABLE_FOR_FREE )
    {

    $chat_with_me = getParam("enable_im") == "on" ? 1 : 0;

    if ( $chat_with_me )
    {
    if ( $user_is_online )
    {
    $out .= MenuItem("_red",_t("_chat now"), "window.document.forms['imform'].elements['imsg'].value='{$p_arr['NickName']}> ';", "javascript: void(0);", $site[url], 0, "_blank");
    $al_im ="<a href=\"javascript: void(0);\" OnClick=\"launchAddToIM({$p_arr['ID']})\"";
    }
    else
    $al_im ="<a href='#' OnClick=\"alert('Sorry, but user is OFFLINE at the moment.\\nPlease try later...');return false;\"";
    }

    if ( $pa_icon_preload )
    $al_im.="onMouseOut =\"javascript: i06$p_arr[ID].src='$site[images]pa_im.gif';\"";


    $al_im .= ">";

    $file_icon = $dir['root']."templates/tmpl_".$tmpl."/images_".$tmpl."/pa_im.gif";

    if ( file_exists( $file_icon ) )
    $ai_im = $al_im."<img name=i06$p_arr[ID] src=\"".$site[images]."pa_im.gif\" border=0></a>";
    else
    $ai_im = '';
    $al_im .= _t("_chat now");//.= "<img alt=\""._t("_chat now")."\" name=i01$p_arr[ID] src=\"$site[images]pa_im2.gif\" border=0></a>";

    }
    //modified by Dan - ends here

  7. #7

    Join Date
    Apr 2005
    Posts
    19

    Default

    Ver 3.3

    profile.php

    Find this code : line 376

    //Buttons START

    $ai_im = "";
    $al_im = "";

    $chat_with_me = getParam("enable_im") == "on" ? 1 : 0;
    if ( $chat_with_me )
    {
    if ( $user_is_online )
    {
    $out .= MenuItem("_red",_t("_Private message"), "window.document.forms['imform'].elements['imsg'].value='{$p_arr['NickName']}> ';", "javascript: void(0);", $site[url], 0, "_blank");

    $ai_im ="<img alt=\""._t("_Private message")."\" name=i06$p_arr[ID] src=\"$site[images]pa_im.gif\" border=0>";
    $al_im ="<a href=\"javascript: void(0);\" OnClick=\"launchAddToIM({$p_arr['ID']});\"";
    if ( $pa_icon_preload )
    {
    $al_im.="onMouseOver=\"javascript: i06$p_arr[ID].src='$site[images]pa_im2.gif';\"";
    $al_im.="onMouseOut =\"javascript: i06$p_arr[ID].src='$site[images]pa_im.gif';\"";
    }
    $al_im .= ">";
    $ai_im = $al_im.$ai_im."</a>";
    $al_im .= _t("_chat now")."</a>   ";
    }
    }

    and replace this code

    //Buttons START

    $ai_im = "";
    $al_im = "";
    if ( $AVAILABLE_FOR_FREE )
    {
    $chat_with_me = getParam("enable_im") == "on" ? 1 : 0;
    if ( $chat_with_me )
    {
    if ( $user_is_online )
    {
    $out .= MenuItem("_red",_t("_Private message"), "window.document.forms['imform'].elements['imsg'].value='{$p_arr['NickName']}> ';", "javascript: void(0);", $site[url], 0, "_blank");

    $ai_im ="<img alt=\""._t("_Private message")."\" name=i06$p_arr[ID] src=\"$site[images]pa_im.gif\" border=0>";
    $al_im ="<a href=\"javascript: void(0);\" OnClick=\"launchAddToIM({$p_arr['ID']});\"";
    if ( $pa_icon_preload )
    {
    $al_im.="onMouseOver=\"javascript: i06$p_arr[ID].src='$site[images]pa_im2.gif';\"";
    $al_im.="onMouseOut =\"javascript: i06$p_arr[ID].src='$site[images]pa_im.gif';\"";
    }
    $al_im .= ">";
    $ai_im = $al_im.$ai_im."</a>";
    $al_im .= _t("_chat now")."</a>   ";
    }
    }
    }

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hiding stats
    By Juls4short in forum General Issues, Comments, Questions
    Replies: 2
    Last Post: 03-24-2008, 02:30 PM
  2. Featured members link
    By Prometheus in forum Free Mod Exchange
    Replies: 4
    Last Post: 10-03-2006, 11:10 PM
  3. Top members link are not really visible !!!
    By uhom in forum Bugs Dolphin 5.1
    Replies: 1
    Last Post: 08-01-2006, 10:01 AM
  4. For free members send free pre made notes
    By stevie in forum Wishlist
    Replies: 3
    Last Post: 07-16-2005, 11:41 PM
  5. Gold members, Girls for free, PM
    By Smoge in forum Wishlist
    Replies: 0
    Last Post: 03-03-2005, 03:07 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
  •