vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   AdminCP Quick Stats Tweak (https://vborg.vbsupport.ru/showthread.php?t=66891)

the Sandman 07-06-2004 02:29 AM

AdminCP Quick Stats Tweak
 
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&l imitnumber=30">[View]</a>

the Sandman 07-06-2004 08:34 AM

Quote:

Originally Posted by 58sniper
Edit the $vbphrase[new_users_today] phrase to read:

New Users Today <a href="/forum/admincp/user.php?do=find&orderby=joindate&direction=DESC&l imitnumber=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

1 Attachment(s)
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
Code:

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

Quote:

Originally Posted by KirbyDE
Well, not everybody does have the board installed in /forum ;)

Therefore you should use
Code:

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:

PHP Code:

  $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>"



All times are GMT. The time now is 06:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01604 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete