vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to call vbcode in another php file ? (https://vborg.vbsupport.ru/showthread.php?t=91388)

ROTPAR 06-30-2005 02:22 PM

How to call vbcode in another php file ?
 
Hi all,

I just installed reviewpost and it doesn´t integrate my vbstyles correctly. So I have to do all manually. Now there is a header php and a footer php file and I don´t knowhow to call the header, navigation templates and the stats like "currently active users"....so the footer template.

Can anyone help me ?

MoT3rror 08-16-2007 09:24 AM

there are only a speciric ammount of $show varibles and for the most part they are not global

Code:

$bbuserinfo
$vboptions
$stylevar

Are the 3 globals that i am aware about besides $GLOBAL

$bbuserinfo can show anything that is stored in the usertable field for the specific person who is online: IE $bbuserinfo[posts] will show the amount of posts, $bbuserinfo[username] will show a users, username.

$vboptions are all the options that are stored in the settings table like to show DHTML or the name of your board or even your bulletin boards url
$vboptions[bburl] $vboptions[homeurl]

$stylevar holds all the non css style settings, like the image directorys.


Here are the $bbuserinfo vars. (also anything within the user database table can be used aswell)

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] =>


$vboptions vars

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] =>
)

And the $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] =>
)



All times are GMT. The time now is 12:53 AM.

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.01137 seconds
  • Memory Usage 1,787KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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