PDA

View Full Version : AdminCP Quick Stats Tweak


the Sandman
07-06-2004, 02:29 AM
How would I go about adding a [View] link in the AdminCP Quick Stats next to the "New Users Today" stat which would bring up the New Registrations Listing. It currently is a bit awkward to get there and I do it all the time...

58sniper
07-06-2004, 02:46 AM
Edit the $vbphrase[new_users_today] phrase to read:

New Users Today <a href="/forum/admincp/user.php?do=find&orderby=joindate&direction=DESC&limitnumber=30">[View]</a>

the Sandman
07-06-2004, 08:34 AM
Edit the $vbphrase[new_users_today] phrase to read:

New Users Today <a href="/forum/admincp/user.php?do=find&orderby=joindate&direction=DESC&limitnumber=30">[View]</a>Thanks, but that didn't work. The [View] link did appear, but next to the New Users Today, not in the adjacent column like all the other [View] links in Quick Stats. And, the link didn't work. I'm guessing this will require a small code modification in /admincp/index.php...

58sniper
07-06-2004, 02:51 PM
Funny, but I copied & pasted that right out of mine, and the VIEW link works just fine. When you click on the link, it takes you to the same page as if you clicked on USERS>SEARCH FOR USERS>LIST NEW REGISTRATIONS in AdminCP.

Andreas
07-06-2004, 02:57 PM
Well, not everybody does have the board installed in /forum ;)

Therefore you should use

New Users Today <a href="user.php?do=find&orderby=joindate&direction=DESC&limitnumber=30">[View]</a>


As the page gets loaded from admincp directory this relative link should work in all installations, no matter what the real path is.

the Sandman
07-06-2004, 03:13 PM
Ah, OK, sorry I didn't even notice the use of "forum" instead of what I use, "forums'. Also, the Quick Stats in vB 3.0.2 and 3.0.3 look different from the Quick Stats in previous versions of vB3 - in the current version the [View] link is in the results column.

the Sandman
07-07-2004, 07:44 PM
Anyone have a way to do this for vB 3.0.2 and higher?

Boofo
07-07-2004, 08:39 PM
Well, not everybody does have the board installed in /forum ;)

Therefore you should use

New Users Today <a href="user.php?do=find&orderby=joindate&direction=DESC&limitnumber=30">[View]</a>


As the page gets loaded from admincp directory this relative link should work in all installations, no matter what the real path is.
Why don't you just make the number itself clickable instead of adding a View link? Like this:

$vbphrase['new_users_today'], "<a href=\"user.php?$session[sessionurl]do=find&amp;user[joindateafter]=".date('Y-m-d')."\" target=\"_blank\">".vb_number_format($newusers['count'])."</a>",