What does this hack do?
When a member hot lists, blocks or adds a member to any of these lists the OTB output is
"User was added to your ??? list".
Now the display will be, as an example, "webmaster was added to your hot list"
"Ann was added to your hot list" or whatever the members name is that you added or blocked.
(see screen shot for before and after)
Code:on your list_pop.php find if ( $action == "hot" ) { after add $arr_nick = db_arr("SELECT NickName FROM Profiles WHERE Profiles.ID = $actID"); find and delete $ret .= "<center> "._t("_User was added to hot list")." </center>"; replace with $ret .= "<center> ". $arr_nick['NickName'] . _t("_User was added to hot list")." </center>"; find if ( $action == "friend" ) { afer add $arr_nick = db_arr("SELECT NickName FROM Profiles WHERE Profiles.ID = $actID"); find if ( $action == "block" ) { after add $arr_nick = db_arr("SELECT NickName FROM Profiles WHERE Profiles.ID = $actID"); find and delete $out .= "<center> "._t("_User was added to block list")." </center>"; replace with $out .= "<center> ". $arr_nick['NickName']. _t("_User was added to block list")." </center>"; find and delete $ret .= "<center> "._t("_User was added to friend list")." </center>"; replace with $ret .= "<center> ". $arr_nick['NickName']._t("_User was added to friend list")." </center>"; In your lang file change '_User was added to friend list' => 'User was added to your friends list', to '_User was added to friend list' => '<br>was added to your friends list', change '_User was invited to friend list' => 'User was invited to your friends list', to '_User was invited to friend list' => '<br>was invited to your friends list' change '_User was added to hot list' => 'User was added to your hot list', to '_User was added to hot list' => '<br>was added to your hot list', ange '_already_in_friend_list' => 'This user already in your Friends list!', to '_already_in_friend_list' => '<br>is already in your Friends list!', change '_User was added to block list' => 'User was added to your block list', to '_User was added to block list' => '<br>was added to your block list',
Done
Enjoy.
Prometheus


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks