In index.php,How will I go about removing the Online Members in the choices below? It is in ae4. I think due to the new system it scare people away when there is nobody online when selecting this option.
Online Members | Random Members | Latest Members | Top Members
Find the section which has:
Here, you will see the different cases for the four options... you need to comment out the online users code in each case.Code:switch ( $mode ) { // online members case 'online':
See below for an example... you will notice, all the online stuff is commented out.... you should also set your default display for this page in your Admin panel to something other than online - since it will no longer exist on your page.. maybe rand or one of the other two.
In the admin, global settings, Profiles area, adjust: "Show members on index page (if enabled in the template, by default available in the 'ae4' template), possible values: online, rand, last, top"
Note: I have not tested this much - the database of the aeDating I used to test it only had two users... if you find a problem, post it - and we can look at it together.Code:switch ( $mode ) { // online members // case 'online': // { // $min = GetParam( "member_online_time" ); // $sql .= " FROM Profiles WHERE LastNavTime > SUBDATE(NOW(), INTERVAL $min MINUTE) AND Status = 'Active' $add LIMIT $max_num"; // $ret .= _t("_Online Members") . " | " . // "<a href=\"{$_SERVER['PHP_SELF']}?mode=rand&sx=$sx\">" . _t("_Random Members") . "</a>" . " | " . // "<a href=\"{$_SERVER['PHP_SELF']}?mode=last&sx=$sx\">" . _t("_Latest Members") . "</a>" . " | " . // "<a href=\"{$_SERVER['PHP_SELF']}?mode=top&sx=$sx\">" . _t("_Top Members") . "</a>"; // break; // } // random members case 'rand': { $sql .= " FROM Profiles WHERE Status = 'Active' $add ORDER BY RAND() LIMIT $max_num"; $ret .= // "<a href=\"{$_SERVER['PHP_SELF']}?mode=online&sx=$sx\">" . _t("_Online Members") . "</a>" . " | " . _t("_Random Members") . " | " . "<a href=\"{$_SERVER['PHP_SELF']}?mode=last&sx=$sx\">" . _t("_Latest Members") . "</a>" . " | " . "<a href=\"{$_SERVER['PHP_SELF']}?mode=top&sx=$sx\">" . _t("_Top Members") . "</a>"; break; } // last registered members case 'last': { $sql .= " FROM Profiles WHERE Status = 'Active' $add ORDER BY LastReg DESC LIMIT $max_num"; $ret .= // "<a href=\"{$_SERVER['PHP_SELF']}?mode=online&sx=$sx\">" . _t("_Online Members") . "</a>" . " | " . "<a href=\"{$_SERVER['PHP_SELF']}?mode=rand&sx=$sx\">" . _t("_Random Members") . "</a>" . " | " . _t("_Latest Members") . " | " . "<a href=\"{$_SERVER['PHP_SELF']}?mode=top&sx=$sx\">" . _t("_Top Members") . "</a>"; break; } // top rated members case 'top': { $sql .= ", COUNT(*) AS `count`, SUM(Mark)/COUNT(*) AS mark FROM Votes INNER JOIN Profiles ON (ID = Member) WHERE Status = 'Active' $add GROUP BY Member HAVING `count` > 2 ORDER BY Mark DESC LIMIT $max_num"; $ret .= // "<a href=\"{$_SERVER['PHP_SELF']}?mode=online&sx=$sx\">" . _t("_Online Members") . "</a>" . " | " . "<a href=\"{$_SERVER['PHP_SELF']}?mode=rand&sx=$sx\">" . _t("_Random Members") . "</a>" . " | " . "<a href=\"{$_SERVER['PHP_SELF']}?mode=last&sx=$sx\">" . _t("_Latest Members") . "</a>" . " | " . _t("_Top Members"); break; } }
If you want to carry this over to the statistics box, that is also possible, but another topic, so I will not cover it here.
Smoge


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks