Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-01-2005, 05:26 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 07-01-2005, 05:32 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

What does this query return?
Reply With Quote
  #3  
Old 07-01-2005, 05:36 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-01-2005, 05:41 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 07-01-2005, 05:58 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 07-01-2005, 06:01 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 07-01-2005, 06:08 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 07-01-2005, 06:14 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


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


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

Forum Jump


All times are GMT. The time now is 10:01 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.03886 seconds
  • Memory Usage 2,245KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete