Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2004, 02:29 AM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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...
Reply With Quote
  #2  
Old 07-06-2004, 02:46 AM
58sniper 58sniper is offline
 
Join Date: Sep 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #3  
Old 07-06-2004, 08:34 AM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #4  
Old 07-06-2004, 02:51 PM
58sniper 58sniper is offline
 
Join Date: Sep 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: gif view.gif (14.1 KB, 0 views)
Reply With Quote
  #5  
Old 07-06-2004, 02:57 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 07-06-2004, 03:13 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 07-07-2004, 07:44 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone have a way to do this for vB 3.0.2 and higher?
Reply With Quote
  #8  
Old 07-07-2004, 08:39 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>"
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:05 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.04634 seconds
  • Memory Usage 2,255KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete