Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[Naxon] Global Variables Details »
[Naxon] Global Variables
Mod Version: 1.1, by Naxon (Member) Naxon is offline
Developer Last Online: Aug 2015 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (2 votes - 5.00 average) Installs: 10
Released: 13 Aug 2007 Last Update: 13 Aug 2007 Downloads: 66
Not Supported  

Please note that this mod is in BETA stage and it isn't contains a lot of variables...
In the future (next version) I'll add more variables.

Variables List:
$naxon[userid] - User's ID.
$naxon[username] - Username.
$naxon[usergroup] - User's group ID.
$naxon[userposts] - User's post count.
$naxon[userkarma] - Users karma (reputation).
$naxon[usermail] - User's email address.
$naxon[ip] - User's IP.

## Added in version 1.1 ##

$naxon[totalforums] - Total number of forums.
$naxon[totalcats] - Total number of categories.
$naxon[totalpms] - Total number of Private Messages.
$naxon[totalthreads] - Total number of threads.
$naxon[totalposts] - Total number of posts.
This Modifictioin Is Running Queries !!

You can use those variables wherever you want !

Just Upload The Product !!

Next version - more vars

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
ZH - Global Variables Ziki vBulletin 3.5 Add-ons 5 05 Aug 2008 08:29
Administrative and Maintenance Tools ZH - Global Variables Ziki vBulletin 3.6 Add-ons 26 25 Jul 2007 19:33

Comments
  #2  
Old 13 Aug 2007, 21:31
Naxon Naxon is offline
 
Join Date: Oct 2006
Real name: Daniel
First post reserved.

Version 1.1 Released: New Variables
Variables added in 1.1:
$naxon[totalforums] - Total number of forums.
$naxon[totalcats] - Total number of categories.
$naxon[totalpms] - Total number of Private Messages.
$naxon[totalthreads] - Total number of threads.
$naxon[totalposts] - Total number of posts.

Last edited by Naxon; 13 Aug 2007 at 22:25.
Reply With Quote
  #3  
Old 13 Aug 2007, 21:35
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Not to be rude, but what is the point of this?
__________________
Sr Software Developer / Tech Lead
Reply With Quote
  #4  
Old 13 Aug 2007, 21:45
Cole2026 Cole2026 is offline
 
Join Date: Feb 2004
Real name: Cole
Originally Posted by SirAdrian View Post
Not to be rude, but what is the point of this?
Yeah, doesn't the userinfo array carry all this information?
Reply With Quote
  #5  
Old 13 Aug 2007, 21:47
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
all this variables existists without your plugin
so it is just extracode that have to be executed and extramemory because you are not using & ( don't know whats the exact name on english)
Reply With Quote
  #6  
Old 13 Aug 2007, 21:53
Naxon Naxon is offline
 
Join Date: Oct 2006
Real name: Daniel
^ I know, I'm doing now a new version with new variables.
Reply With Quote
  #7  
Old 13 Aug 2007, 21:54
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
lol?
Reply With Quote
  #8  
Old 13 Aug 2007, 21:57
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
same idea; http://www.vbulletin.org/forum/showthread.php?t=133923? but again, useless as all this is already available by default.
Reply With Quote
  #9  
Old 13 Aug 2007, 22:25
Naxon Naxon is offline
 
Join Date: Oct 2006
Real name: Daniel
Version 1.1 Released: New Variables
Variables added in 1.1:
$naxon[totalforums] - Total number of forums.
$naxon[totalcats] - Total number of categories.
$naxon[totalpms] - Total number of Private Messages.
$naxon[totalthreads] - Total number of threads.
$naxon[totalposts] - Total number of posts.
Reply With Quote
  #10  
Old 13 Aug 2007, 22:32
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
i would use the forumcache instead of your query for the forums, because if someone don't have the rights, he shouldn know how many forums exist in my eyes

for all other things the same..
just want to help
Reply With Quote
  #11  
Old 13 Aug 2007, 22:35
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
This adds five select queries to every page, including selecting the entire post, pm and thread tables !

I suggest you need to rethink this - those queries will kill anything but the smallest forums.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #12  
Old 13 Aug 2007, 23:53
Naxon Naxon is offline
 
Join Date: Oct 2006
Real name: Daniel
^ sorry, I forgot to add this on the new version.
Reply With Quote
  #13  
Old 14 Aug 2007, 02:08
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
 
Join Date: Jan 2002
Real name: Wayne
It would be better to create a datastore row for this and then use a scheduled task to update that row. Then all the information can be pulled with one query, you don't pull extra crap out of the database and the administrator of the site can adjust the interval to suit his/her site. Just adding variables to add them isn't always a good idea.
__________________
Wayne Luke
Get started with your own social network. Purchase and download vBulletin today.
Reply With Quote
  #14  
Old 14 Aug 2007, 04:40
Surviver's Avatar
Surviver Surviver is offline
 
Join Date: Feb 2006
Real name: Julian
With the following PHP-Code you can save 2 Queries.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
vBPoint
Reply With Quote
  #15  
Old 14 Aug 2007, 05:16
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Originally Posted by Naxon View Post
^ sorry, I forgot to add this on the new version.
Whats the point of duplicating these?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Those are all already available in $bbuserinfo / $vbulletin->userinfo
__________________
Looking for ImpEx?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 17:28.

Layout Options | Width: Wide Color: