vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Variables for conditionals (https://vborg.vbsupport.ru/showthread.php?t=64118)

zetetic 06-18-2004 04:27 PM

Okay, here are the values of my $bbuserinfo array on index.php (I've deleted the actual values for security purposes, and I apologize in advance if posting this code somehow violates any rules here):

Code:

Array
(
    [userid] =>
    [temp] =>
    [field1] =>
    [field2] =>
    [field3] =>
    [field4] =>
    [subfolders] =>
    [pmfolders] =>
    [buddylist] =>
    [ignorelist] =>
    [signature] =>
    [searchprefs] =>
    [usergroupid] =>
    [membergroupids] =>
    [displaygroupid] =>
    [username] =>
    [password] =>
    [passworddate] =>
    [email] =>
    [styleid] =>
    [parentemail] =>
    [homepage] =>
    [icq] =>
    [aim] =>
    [yahoo] =>
    [showvbcode] =>
    [usertitle] =>
    [customtitle] =>
    [joindate] =>
    [daysprune] =>
    [lastvisit] =>
    [lastactivity] =>
    [lastpost] =>
    [posts] =>
    [reputation] =>
    [reputationlevelid] =>
    [timezoneoffset] =>
    [pmpopup] =>
    [avatarid] =>
    [avatarrevision] =>
    [options] =>
    [birthday] =>
    [birthday_search] =>
    [maxposts] =>
    [startofweek] =>
    [ipaddress] =>
    [referrerid] =>
    [languageid] =>
    [msn] =>
    [emailstamp] =>
    [threadedmode] =>
    [autosubscribe] =>
    [pmtotal] =>
    [pmunread] =>
    [salt] =>
    [arcadesettings] =>
    [lang_options] =>
    [lang_code] =>
    [lang_charset] =>
    [lang_locale] =>
    [lang_imagesoverride] =>
    [lang_dateoverride] =>
    [lang_timeoverride] =>
    [lang_registereddateoverride] =>
    [lang_calformat1override] =>
    [lang_calformat2override] =>
    [lang_logdateoverride] =>
    [lang_decimalsep] =>
    [lang_thousandsep] =>
    [showsignatures] =>
    [showavatars] =>
    [showimages] =>
    [coppauser] =>
    [adminemail] =>
    [showvcard] =>
    [dstauto] =>
    [dstonoff] =>
    [showemail] =>
    [invisible] =>
    [showreputation] =>
    [receivepm] =>
    [emailonpm] =>
    [hasaccessmask] =>
    [postorder] =>
    [urlusername] =>
    [musername] =>
    [displaygrouptitle] =>
    [displayusertitle] =>
    [realstyleid] =>
    [tzoffset] =>
    [lastvisitdate] =>
    [permissions] => Array
        (
            [usergroupid] =>
            [title] =>
            [description] =>
            [usertitle] =>
            [passwordexpires] =>
            [passwordhistory] =>
            [pmquota] =>
            [pmsendmax] =>
            [pmforwardmax] =>
            [opentag] =>
            [closetag] =>
            [canoverride] =>
            [ispublicgroup] =>
            [forumpermissions] =>
            [pmpermissions] =>
            [calendarpermissions] =>
            [wolpermissions] =>
            [adminpermissions] =>
            [genericpermissions] =>
            [genericoptions] =>
            [pmpermissions_bak] =>
            [attachlimit] =>
            [avatarmaxwidth] =>
            [avatarmaxheight] =>
            [avatarmaxsize] =>
            [profilepicmaxwidth] =>
            [profilepicmaxheight] =>
            [profilepicmaxsize] =>
            [arcadepermissions] =>
        )

    [forumpermissions] => Array
        (
            [1] =>
            [2] =>
        )

    [calendarpermissions] => Array
        (
            [1] =>
        )

    [joingroupid] =>


Zachery 06-18-2004 04:32 PM

Quote:

Originally Posted by tmhall
Okay, here are the values of my $bbuserinfo array on index.php (I've deleted the actual values for security purposes, and I apologize in advance if posting this code somehow violates any rules here):

Code:

Array
(
    [userid] =>
    [temp] =>
    [field1] =>
    [field2] =>
    [field3] =>
    [field4] =>
    [subfolders] =>
    [pmfolders] =>
    [buddylist] =>
    [ignorelist] =>
    [signature] =>
    [searchprefs] =>
    [usergroupid] =>
    [membergroupids] =>
    [displaygroupid] =>
    [username] =>
    [password] =>
    [passworddate] =>
    [email] =>
    [styleid] =>
    [parentemail] =>
    [homepage] =>
    [icq] =>
    [aim] =>
    [yahoo] =>
    [showvbcode] =>
    [usertitle] =>
    [customtitle] =>
    [joindate] =>
    [daysprune] =>
    [lastvisit] =>
    [lastactivity] =>
    [lastpost] =>
    [posts] =>
    [reputation] =>
    [reputationlevelid] =>
    [timezoneoffset] =>
    [pmpopup] =>
    [avatarid] =>
    [avatarrevision] =>
    [options] =>
    [birthday] =>
    [birthday_search] =>
    [maxposts] =>
    [startofweek] =>
    [ipaddress] =>
    [referrerid] =>
    [languageid] =>
    [msn] =>
    [emailstamp] =>
    [threadedmode] =>
    [autosubscribe] =>
    [pmtotal] =>
    [pmunread] =>
    [salt] =>
    [arcadesettings] =>
    [lang_options] =>
    [lang_code] =>
    [lang_charset] =>
    [lang_locale] =>
    [lang_imagesoverride] =>
    [lang_dateoverride] =>
    [lang_timeoverride] =>
    [lang_registereddateoverride] =>
    [lang_calformat1override] =>
    [lang_calformat2override] =>
    [lang_logdateoverride] =>
    [lang_decimalsep] =>
    [lang_thousandsep] =>
    [showsignatures] =>
    [showavatars] =>
    [showimages] =>
    [coppauser] =>
    [adminemail] =>
    [showvcard] =>
    [dstauto] =>
    [dstonoff] =>
    [showemail] =>
    [invisible] =>
    [showreputation] =>
    [receivepm] =>
    [emailonpm] =>
    [hasaccessmask] =>
    [postorder] =>
    [urlusername] =>
    [musername] =>
    [displaygrouptitle] =>
    [displayusertitle] =>
    [realstyleid] =>
    [tzoffset] =>
    [lastvisitdate] =>
    [permissions] => Array
        (
            [usergroupid] =>
            [title] =>
            [description] =>
            [usertitle] =>
            [passwordexpires] =>
            [passwordhistory] =>
            [pmquota] =>
            [pmsendmax] =>
            [pmforwardmax] =>
            [opentag] =>
            [closetag] =>
            [canoverride] =>
            [ispublicgroup] =>
            [forumpermissions] =>
            [pmpermissions] =>
            [calendarpermissions] =>
            [wolpermissions] =>
            [adminpermissions] =>
            [genericpermissions] =>
            [genericoptions] =>
            [pmpermissions_bak] =>
            [attachlimit] =>
            [avatarmaxwidth] =>
            [avatarmaxheight] =>
            [avatarmaxsize] =>
            [profilepicmaxwidth] =>
            [profilepicmaxheight] =>
            [profilepicmaxsize] =>
            [arcadepermissions] =>
        )

    [forumpermissions] => Array
        (
            [1] =>
            [2] =>
        )

    [calendarpermissions] => Array
        (
            [1] =>
        )

    [joingroupid] =>


Anything in the user table, and all userprofile feilds are avable thogh $bbuserinfo

zetetic 06-18-2004 04:42 PM

Here's the $vboptions array (keeping in mind my board is hacked, so I may have options here that others don't):

Code:

Array
(
    [templateversion] =>
    [attachfile] =>
    [attachpath] =>
    [usefileavatar] =>
    [avatarpath] =>
    [avatarurl] =>
    [divnotpara] =>
    [usebbcodeparserecurse] =>
    [bbactive] =>
    [bbclosedreason] =>
    [bbtitle] =>
    [bburl] =>
    [hometitle] =>
    [homeurl] =>
    [contactuslink] =>
    [contactusoptions] =>
    [webmasteremail] =>
    [privacyurl] =>
    [copyrighttext] =>
    [companyname] =>
    [faxnumber] =>
    [address] =>
    [keywords] =>
    [description] =>
    [useforumjump] =>
    [pagenavpages] =>
    [enableaccess] =>
    [showimicons] =>
    [addtemplatename] =>
    [usestrikesystem] =>
    [yestoday] =>
    [timeoffset] =>
    [dstonoff] =>
    [dateformat] =>
    [timeformat] =>
    [registereddateformat] =>
    [calformat1] =>
    [calformat2] =>
    [logdateformat] =>
    [cookietimeout] =>
    [cookiepath] =>
    [cookiedomain] =>
    [gzipoutput] =>
    [gziplevel] =>
    [addheaders] =>
    [nocacheheaders] =>
    [useheaderredirect] =>
    [allowphpinfo] =>
    [cachemaxage] =>
    [threadviewslive] =>
    [attachmentviewslive] =>
    [emailsendnum] =>
    [sessionlimit] =>
    [loadlimit] =>
    [allowimgsizefailure] =>
    [gdversion] =>
    [safeupload] =>
    [tmppath] =>
    [usemailqueue] =>
    [needfromemail] =>
    [copypostindex] =>
    [languageid] =>
    [styleid] =>
    [allowchangestyles] =>
    [cleargifurl] =>
    [storecssasfile] =>
    [usepopups] =>
    [legacypostbit] =>
    [enablecensor] =>
    [censorchar] =>
    [censorwords] =>
    [blankasciistrip] =>
    [enableemail] =>
    [displayemails] =>
    [secureemail] =>
    [emailfloodtime] =>
    [allowregistration] =>
    [usecoppa] =>
    [moderatenewmembers] =>
    [regimagecheck] =>
    [welcomemail] =>
    [newuseremail] =>
    [allowmultiregs] =>
    [verifyemail] =>
    [requireuniqueemail] =>
    [minuserlength] =>
    [maxuserlength] =>
    [illegalusernames] =>
    [usereferrer] =>
    [defaultregoptions] =>
    [ctMaxChars] =>
    [ctCensorWords] =>
    [ctCensorMod] =>
    [allowsignatures] =>
    [sigmax] =>
    [allowbbcode] =>
    [allowsmilies] =>
    [allowbbimagecode]
    [allowhtml] =>
    [ignoremods] =>
    [avatarenabled] =>
    [numavatarswide] =>
    [numavatarsperpage] =>
    [profilepicenabled] =>
    [reputationenable] =>
    [reputationhide] =>
    [reputationdefault] =>
    [reputationundefined] =>
    [showuserrates] =>
    [adminpower] =>
    [rdpower] =>
    [pcpower] =>
    [kppower] =>
    [minreputationpost] =>
    [minreputationcount] =>
    [maxreputationperday] =>
    [reputationrepeat] =>
    [unallowvbcode] =>
    [unallowsmilies] =>
    [unallowimg] =>
    [unallowhtml] =>
    [enablememberlist] =>
    [memberlistposts] =>
    [memberlistfields] =>
    [memberlistperpage] =>
    [usememberlistadvsearch] =>
    [profilelastpost] =>
    [enablebanning] =>
    [banip] =>
    [banemail] =>
    [allowkeepbannedemail] =>
    [globalignore] =>
    [allowedbbcodes] =>
    [codemaxlines] =>
    [quickreply] =>
    [quickreplyclick] =>
    [postminchars] =>
    [ignorequotechars] =>
    [quotetitle] =>
    [postmaxchars] =>
    [maximages] =>
    [stopshouting] =>
    [allowdynimg] =>
    [floodchecktime] =>
    [editthreadtitlelimit] =>
    [addpolltimeout] =>
    [edittimelimit] =>
    [noeditedbytime] =>
    [logip] =>
    [allowvbcodebuttons] =>
    [wysiwyg_show_smiliebox] =>
    [smtotal] =>
    [smcolumns] =>
    [wysiwyg_smtotal] =>
    [syscolorpicker] =>
    [attachtotalspace] =>
    [attachlimit] =>
    [attachboxcount] =>
    [allowattachdel] =>
    [allowclosedattachdel] =>
    [allowduplicates] =>
    [viewattachedimages] =>
    [attachthumbs] =>
    [attachthumbssize] =>
    [attachrow] =>
    [thumbpng] =>
    [maxpolloptions] =>
    [updatelastpost] =>
    [showvotes] =>
    [votechange] =>
    [enablesearches] =>
    [searchfloodtime] =>
    [minsearchlength] =>
    [maxsearchlength] =>
    [goodwords] =>
    [searchperpage] =>
    [maxresults] =>
    [allowwildcards] =>
    [similarthreadsearch] =>
    [similarthreadthreshold] =>
    [multimatchscore] =>
    [datescore] =>
    [threadtitlescore] =>
    [posttitlescore] =>
    [replyscore] =>
    [replyfunc] =>
    [viewscore] =>
    [viewfunc] =>
    [ratescore] =>
    [ratefunc] =>
    [forumhome] =>
    [displayloggedin] =>
    [showbirthdays] =>
    [birthdaydatecut] =>
    [showevents] =>
    [showholidays] =>
    [showeventtype] =>
    [forumhomedepth] =>
    [forumdisplaydepth] =>
    [subforumdepth] =>
    [showforumdescription] =>
    [hideprivateforums] =>
    [showlocks] =>
    [lastthreadchars] =>
    [showmoderatorcolumn] =>
    [showforumusers] =>
    [maxthreads] =>
    [showstickies] =>
    [showdots] =>
    [usehotthreads] =>
    [hotnumberviews] =>
    [hotnumberposts] =>
    [linktopages] =>
    [maxmultipage] =>
    [threadpreview] =>
    [oneannounce] =>
    [showthreadusers] =>
    [maxposts] =>
    [usermaxposts] =>
    [showdeficon] =>
    [enableage] =>
    [wordwrap] =>
    [threadvoted] =>
    [threadsubscribed] =>
    [showsimilarthreads] =>
    [allowthreadedmode] =>
    [threadedmode] =>
    [threaded_listdepth] =>
    [threaded_maxcache] =>
    [enablepms] =>
    [checknewpm] =>
    [pmmaxchars] =>
    [pmfloodtime] =>
    [pmperpage] =>
    [pmmaxperpage] =>
    [privallowicons] =>
    [privallowbbcode] =>
    [privallowsmilies] =>
    [privallowbbimagecode] =>
    [privallowhtml] =>
    [WOLenable] =>
    [WOLrefresh] =>
    [WOLguests] =>
    [WOLresolve] =>
    [enablespiders] =>
    [spiderstrings] =>
    [spiderdesc] =>
    [archiveenabled] =>
    [archive_threadsperpage] =>
    [archive_postsperpage] =>
    [cpstylefolder] =>
    [timeoutcontrolpanel] =>
    [adminquickstats] =>
    [cp_collapse_forums] =>
    [cp_usereditcolumns] =>
    [externaljs] =>
    [externalrss] =>
    [externalxml] =>
    [errorlogdatabase] =>
    [errorlogsecurity] =>
    [errorlogmaxsize] =>
    [disableerroremail] =>
    [subscriptionmethods] =>
    [ppemail] =>
    [ncxemail] =>
    [worldpay_instid] =>
    [authorize_loginid] =>
    [abspath] =>
    [hourdiff] =>
)


zetetic 06-18-2004 04:46 PM

And $stylevar:

Code:

Array
(
    [cellpadding] =>
    [cellspacing] =>
    [closedthreadimage] =>
    [codeblockwidth] =>
    [contenttype] =>
    [formspacer] =>
    [formwidth] =>
    [formwidth_usercp] =>
    [htmldoctype] =>
    [htmlextrasfolder] =>
    [imagesfolder] =>
    [imgdir_attach] =>
    [imgdir_button] =>
    [imgdir_editor] =>
    [imgdir_misc] =>
    [imgdir_poll] =>
    [imgdir_rating] =>
    [imgdir_reputation] =>
    [imgdir_statusicon] =>
    [messagewidth] =>
    [messagewidth_usercp] =>
    [newreplyimage] =>
    [newthreadimage] =>
    [outerborderwidth] =>
    [outertablewidth] =>
    [spacersize] =>
    [tablewidth] =>
    [textareacols_ie4] =>
    [textareacols_ns4] =>
    [textareacols_ns6] =>
    [titleimage] =>
    [textdirection] =>
    [left] =>
    [right] =>
    [languagecode] =>
    [charset] =>
    [body_bgcolor] =>
    [body_fgcolor] =>
    [page_bgcolor] =>
    [page_fgcolor] =>
    [tborder_bgcolor] =>
    [tborder_fgcolor] =>
    [tcat_bgcolor] =>
    [tcat_fgcolor] =>
    [thead_bgcolor] =>
    [thead_fgcolor] =>
    [tfoot_bgcolor] =>
    [tfoot_fgcolor] =>
    [alt1_bgcolor] =>
    [alt1_fgcolor] =>
    [alt2_bgcolor] =>
    [alt2_fgcolor] =>
    [alt3_bgcolor] =>
    [alt3_fgcolor] =>
    [wysiwyg_bgcolor] =>
    [wysiwyg_fgcolor] =>
    [time_fgcolor] =>
    [highlight_fgcolor] =>
    [fjsel_bgcolor] =>
    [fjsel_fgcolor] =>
    [fjdpth0_bgcolor] =>
    [fjdpth0_fgcolor] =>
    [panel_bgcolor] =>
    [panel_fgcolor] =>
    [panelsurround_bgcolor] =>
    [panelsurround_fgcolor] =>
    [legend_fgcolor] =>
    [vbmenu_control_bgcolor] =>
    [vbmenu_control_fgcolor] =>
    [vbmenu_popup_bgcolor] =>
    [vbmenu_popup_fgcolor] =>
    [vbmenu_option_bgcolor] =>
    [vbmenu_option_fgcolor] =>
    [vbmenu_hilite_bgcolor] =>
    [vbmenu_hilite_fgcolor] =>
    [imgdir_arcade] =>
    [outerdivwidth] =>
    [divwidth] =>
)


RapCheck 07-28-2004 05:50 PM

good thread, it just helped me

gotta love the search

Brad 07-29-2004 04:29 AM

functions that can be used with conditionals:

PHP Code:

// php functions
in_array();
is_array();
is_numeric();
isset();
empty();
defined();
array();

// vBulletin functions
can_moderate(); 
can_moderate_calendar();
exec_switch_bg();
is_browser();
is_member_of(); 


feldon23 08-14-2004 04:32 PM

Not sure how posting a list of variables without example values is helpful...

When hacking vB3, I usually
PHP Code:

echo "<pre>";
print_r($array);
echo 
"</pre>"

so I can see what a variable is for.

T3MEDIA 02-11-2005 11:25 PM

User id is say 150
how do I write this in code to find his field20 lets say in his profile.
If I use $bbuserinfo it pulls back my (the loged in users) info.
I want to pull any users info...

this isnt proper code but I want something like this.

$onlineuser[userid](field20)
just assume $onlineuser acutally pulls the user id of 150
field20 lets say is "Huston"

at the end of the day on the HTML page you see HUSTON
and it would change for each user.
this is for WOL BTW

neocorteqz 02-24-2005 10:30 AM

Quote:

Originally Posted by T3MEDIA
User id is say 150
how do I write this in code to find his field20 lets say in his profile.
If I use $bbuserinfo it pulls back my (the loged in users) info.
I want to pull any users info...

this isnt proper code but I want something like this.

$onlineuser[userid](field20)
just assume $onlineuser acutally pulls the user id of 150
field20 lets say is "Huston"

at the end of the day on the HTML page you see HUSTON
and it would change for each user.
this is for WOL BTW


$bbuserinfo[field20]

Guest190829 02-24-2005 01:47 PM

This is very useful, keep up the good work!


All times are GMT. The time now is 08:16 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.01381 seconds
  • Memory Usage 1,829KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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