vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - [Naxon] Global Variables (https://vborg.vbsupport.ru/showthread.php?t=155144)

Naxon 08-12-2007 10:00 PM

[Naxon] Global Variables
 
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:
Quote:

$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 :)

Naxon 08-13-2007 08:31 PM

First post reserved.

Version 1.1 Released: New Variables
Variables added in 1.1:
Quote:

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

Adrian Schneider 08-13-2007 08:35 PM

Not to be rude, but what is the point of this?

Cole2026 08-13-2007 08:45 PM

Quote:

Originally Posted by SirAdrian (Post 1316813)
Not to be rude, but what is the point of this?

Yeah, doesn't the userinfo array carry all this information?

ragtek 08-13-2007 08:47 PM

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)

Naxon 08-13-2007 08:53 PM

^ I know, I'm doing now a new version with new variables.

ragtek 08-13-2007 08:54 PM

lol?

SCRIPT3R 08-13-2007 08:57 PM

same idea; https://vborg.vbsupport.ru/showthread.php?t=133923? but again, useless as all this is already available by default.

Naxon 08-13-2007 09:25 PM

Version 1.1 Released: New Variables
Variables added in 1.1:
Quote:

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

ragtek 08-13-2007 09:32 PM

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 ;)


All times are GMT. The time now is 04:46 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.01010 seconds
  • Memory Usage 1,733KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete