vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Recalling options (https://vborg.vbsupport.ru/showthread.php?t=91461)

Michael Morris 07-01-2005 05:26 PM

Recalling options
 
I can't get this to work

$vbulletin->options['spamscan_maxposts']

The variable is empty, yet it should have been loaded with all the other options. Do I have to do anything special to get user defined setting options to load?

Andreas 07-01-2005 05:32 PM

[sql]
select value from setting where varname='spamscan_maxpost';
[/sql]

What does this query return?

Michael Morris 07-01-2005 05:36 PM

The value of 20. Further, I can edit the value using the admincp >> vbulletion options >> Vspam Scan options (I've installed all the necessary phrases). PHP My admin also pulls the value. So it's definitely in the database and in the right place. Why can't I pull it up at runtime

(and yes, I declared $vbulletin global at the beginning of the plug in, just in case.

Andreas 07-01-2005 05:41 PM

That's strange, if it is in the Database and does appear in vBulletin Options it should definitly be there.

What does
PHP Code:

print_r($vbulletin->options); 

output?

Michael Morris 07-01-2005 05:58 PM

testArray (
[templateversion] => 3.5.0 Beta 2
[attachfile] =>
[attachpath] => /path/to/your/attachment/directory
[usefileavatar] =>
[avatarpath] => ./customavatars
[avatarurl] => customavatars
[profilepicpath] => ./customprofilepics
[profilepicurl] => customprofilepics
[divnotpara] => 1
[usebbcodeparserecurse] => 2
[fulltextsearch] =>
[bbactive] => 1
[bbclosedreason] =>

Sorry, the board is unavailable at the moment while we are testing some functionality.

We will be back soon...
[bbtitle] => vb3.5 Test Forums
[bburl] => http://localhost/vb35
[hometitle] => Local Host
[homeurl] => http://localhost
[contactuslink] => sendmessage.php
[contactustype] => 1
[contactusoptions] => Site Feedback Registration Problem
[webmasteremail] => webmaster@localhost
[privacyurl] =>
[copyrighttext] =>
[companyname] =>
[faxnumber] =>
[address] =>
[keywords] => vbulletin,forum,bbs,discussion,jelsoft,bulletin board
[description] => This is a discussion forum powered by vBulletin. To find out about vBulletin, go to http://www.vbulletin.com/ .
[useforumjump] => 1
[pagenavpages] => 3
[pagenavs] => 10 50 100 500 1000
[enableaccess] => 1
[showimicons] => 1
[addtemplatename] =>
[usestrikesystem] => 1
[forumleaders] => 1
[allowedreferrers] =>
[threadmarking] =>
[markinglimit] => 10
[allowimgsizefailure] =>
[imagetype] => GD
[regimagetype] => GD
[gdversion] =>
[gdfont] =>
[magickpath] =>
[magickfont] =>
[thumbpng] => 1
[yestoday] => 1
[timeoffset] =>
[dstonoff] =>
[dateformat] => m-d-Y
[timeformat] => h:i A
[registereddateformat] => M Y
[calformat1] => F j, Y
[calformat2] => F j
[logdateformat] => H:i, jS M Y
[cookietimeout] => 900
[cookiepath] => /
[cookiedomain] =>
[gzipoutput] => 1
[gziplevel] => 1
[addheaders] =>
[nocacheheaders] =>
[useheaderredirect] => 1
[allowphpinfo] =>
[cachemaxage] => 7
[threadviewslive] =>
[attachmentviewslive] =>
[sessionlimit] =>
[loadlimit] =>
[safeupload] =>
[tmppath] => /tmp
[copypostindex] => 1
[register_shutdown] => 1
[languageid] => 1
[styleid] => 1
[allowchangestyles] => 1
[cleargifurl] => clear.gif
[storecssasfile] =>
[usepopups] => 1
[legacypostbit] =>
[enableemail] => 1
[displayemails] => 1
[secureemail] =>
[emailfloodtime] => 60
[usemailqueue] => 1
[emailsendnum] => 10
[needfromemail] =>
[use_smtp] =>
[smtp_host] =>
[smtp_port] => 25
[smtp_user] =>
[smtp_pass] =>
[smtp_tls] =>
[enablecensor] => 1
[censorchar] => *
[censorwords] =>
[blankasciistrip] => 160 173
[allowregistration] => 1
[usecoppa] =>
[moderatenewmembers] =>
[regimagecheck] => 1
[welcomemail] => 1
[newuseremail] =>
[allowmultiregs] =>
[verifyemail] =>
[requireuniqueemail] => 1
[minuserlength] => 3
[maxuserlength] => 25
[illegalusernames] =>
[usereferrer] => 1
[defaultregoptions] => 4686473
[ctMaxChars] => 25
[ctCensorWords] => admin forum moderator vbulletin leader
[ctCensorMod] => 1
[allowsignatures] => 1
[sigmax] => 500
[allowbbcode] => 1
[allowsmilies] => 1
[allowbbimagecode] =>
[allowhtml] =>
[ignoremods] =>
[avatarenabled] => 1
[numavatarswide] => 5
[numavatarsperpage] => 10
[profilepicenabled] => 1
[reputationenable] =>
[reputationdefault] => 10
[reputationundefined] => is off the scale
[showuserrates] => 5
[adminpower] => 10
[rdpower] => 365
[pcpower] => 1000
[kppower] => 100
[minreputationpost] => 50
[minreputationcount] => 10
[maxreputationperday] => 10
[reputationrepeat] => 20
[unallowvbcode] => 1
[unallowsmilies] => 1
[unallowimg] => 1
[unallowhtml] =>
[enablememberlist] => 1
[memberlistposts] =>
[memberlistfields] => 216
[memberlistperpage] => 30
[usememberlistadvsearch] => 1
[profilelastpost] =>
[enablebanning] => 1
[banip] =>
[banemail] =>
[allowkeepbannedemail] => 1
[globalignore] =>
[allowedbbcodes] => 1023
[codemaxlines] => 30
[quickreply] => 1
[quickreplyclick] => 1
[postminchars] => 10
[ignorequotechars] => 1
[quotetitle] =>
[postmaxchars] => 10000
[maximages] => 4
[stopshouting] => 1
[allowdynimg] =>
[floodchecktime] => 30
[editthreadtitlelimit] => 5
[addpolltimeout] =>
[edittimelimit] =>
[noeditedbytime] => 2
[logip] => 1
[allowvbcodebuttons] => 2
[wysiwyg_show_smiliebox] =>
[smtotal] => 15
[smcolumns] => 3
[wysiwyg_smtotal] => 15
[syscolorpicker] =>
[attachtotalspace] =>
[attachlimit] => 5
[attachboxcount] => 1
[attachurlcount] => 1
[allowattachdel] => 1
[allowclosedattachdel] =>
[allowduplicates] => 1
[viewattachedimages] => 1
[attachthumbs] => 1
[attachthumbssize] => 100
[thumbquality] => 75
[attachrow] => 5
[maxpolloptions] => 10
[maxpolllength] => 100
[updatelastpost] =>
[showvotes] => 1
[votechange] =>
[enablesearches] => 1
[searchfloodtime] =>
[searchperpage] => 25
[maxresults] => 500
[similarthreadsearch] =>
[similarthreadthreshold] => 3.5
[badwords] =>
[goodwords] => vb vbb php sql
[minsearchlength] => 4
[maxsearchlength] => 20
[allowwildcards] => 1
[multimatchscore] => 15
[datescore] => 15
[threadtitlescore] => 5
[posttitlescore] => 5
[replyscore] => 0.10
[replyfunc] => none
[viewscore] => 0.01
[viewfunc] => none
[ratescore] => 0.5
[ratefunc] => none
[forumhome] => index
[displayloggedin] => 1
[showbirthdays] => 1
[showevents] => 1
[showholidays] => 1
[showeventtype] =>
[activememberdays] => 30
[activememberoptions] => 3
[forumhomedepth] => 2
[forumdisplaydepth] => 2
[subforumdepth] =>
[showforumdescription] => 1
[hideprivateforums] => 1
[showlocks] =>
[lastthreadchars] => 30
[showmoderatorcolumn] =>
[nav_forumdesc] =>
[showforumusers] =>
[maxthreads] => 20
[showstickies] => 1
[showdots] => 1
[usehotthreads] => 1
[hotnumberviews] => 150
[hotnumberposts] => 15
[linktopages] => 1
[maxmultipage] => 3
[threadpreview] => 150
[oneannounce] => 1
[showthreadusers] =>
[maxposts] => 10
[usermaxposts] => 5,10,20,30,40
[showdeficon] => images/icons/icon1.gif
[wordwrap] => 50
[threadvoted] =>
[threadsubscribed] => 1
[showsimilarthreads] => 1
[postelements] =>
[allowthreadedmode] => 1
[threadedmode] =>
[threaded_listdepth] => 5
[threaded_maxcache] => 40
[threaded_trimtitle] => 30
[enablepms] => 1
[checknewpm] => 1
[pmmaxchars] => 5000
[pmfloodtime] => 60
[pmperpage] => 50
[pmmaxperpage] => 100
[privallowicons] => 1
[privallowbbcode] => 1
[privallowsmilies] => 1
[privallowbbimagecode] => 1
[privallowhtml] =>
[WOLenable] => 1
[WOLrefresh] => 60
[WOLguests] => 1
[WOLresolve] =>
[enablespiders] =>
[archiveenabled] => 1
[archive_threadtype] => 1
[archive_threadsperpage] => 250
[archive_postsperpage] => 250
[cpstylefolder] => vBulletin_3_Default
[timeoutcontrolpanel] =>
[adminquickstats] =>
[cp_collapse_forums] =>
[cp_usereditcolumns] => 2
[externaljs] =>
[externalrss] =>
[externalxml] =>
[errorlogdatabase] =>
[errorlogsecurity] =>
[errorlogphp] =>
[errorlogmaxsize] => 1048576
[disableerroremail] =>
[subscriptionmethods] =>
[ppemail] =>
[ncxemail] =>
[worldpay_instid] =>
[authorize_loginid] =>
[enablehooks] => 1
[hourdiff] => -14400 )

Not there... :( Why?

Andreas 07-01-2005 06:01 PM

Have you tried to go into vBulletin Options and just hit Save somewhere?
Because if you create a new setting via mySQL, it will not instantly apper in $vbulletin->options as this comes from a datastore cache which needs to be rebuilt.

Michael Morris 07-01-2005 06:08 PM

Quote:

Originally Posted by KirbyDE
Have you tried to go into vBulletin Options and just hit Save somewhere?
Because if you create a new setting via mySQL, it will not instantly apper in $vbulletin->options as this comes from a datastore cache which needs to be rebuilt.

That was the problem. Thanks.

Andreas 07-01-2005 06:14 PM

:)
You should not create Settings directly through mySQL, use vBulletin to do so - it's much more convenient, and updates the Cache automatically.


All times are GMT. The time now is 03:50 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.01281 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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