The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Would you be interested in a version which ..... Details »» | |||||||||||||||||||||||||||
Would you be interested in a version which .....
Developer Last Online: Mar 2022
Gentlemen,
I have a friend here, who keeps bugging me to edit the code of AWS, to use $vboptions variables, instead of storing the warning system options in a separate table. This, reduces the number of queries AWS does, by one, every time you run Warn.php to warn someone or to view someone warnings. It doesn't query the `warning_options` table, the info is now stored in the `setting` table and cached in the $vboptions variables. Admitedly, this friend has done a lot of work to help me change AWS to this form, but there is still work to be done by me, and of course, I need to use my live board as a test engironment, for this version (my Sun decided that it had enough and started going south on me, so I do not have another test environment). So, if you are so kind, please vote in the poll here, to let me know if such a change would interest you. Kind regards Show Your Support
|
Comments |
#2
|
|||
|
|||
well tbh anything that uses less queries would be of great benefit and if u can release this top hack with same functions,with less then im all for it.
|
#3
|
|||
|
|||
I think it would be great for the performance.
I vote for a change. Also it would be fine if you can make a "fully phrased" version. |
#4
|
||||
|
||||
Guess 15 times what I voted
What other work needs to be done? Unless the native warning templates contain references to $warn_opts (I know I forgot to bundle these) then it does work. (So if you are referencing to these new templates then I will make an .xml file) |
#5
|
|||
|
|||
Quote:
Back to do more work. |
#6
|
||||
|
||||
Yes, every single file and file/template edit will work as is.
|
#7
|
|||
|
|||
Quote:
From what I saw, the script updated the $vboptions, with "Yes" and "No" values, instead of "1" and "0" values. The admin_warn.php expects to find 1 and zeros. All the program expects Yes and Nos, so I guess the admin_warn should be changed accordingly, to use Yes or Nos, these are used in templates as well. Also, in the files you send me, there are a lot of things you have changed for your own environment (rpg_user for example). Could you please remove them? Thanks and Rgds |
#8
|
||||
|
||||
First of all, the Warning Options shows up just fine here.
Second, if you look through the Warn.php and the template edits, you will see it expects to see 1 and 0 too. As for the templates, this is something you have to change for yourself as I already stated I did not do those. Thirdly, there is no such reference to "rpg_user" on my forum, as this would cause errors (since no such table exists). I will check it out though, and edit this post. As I thought, NO files I sent you contain such a code. I have checked EVERY file. Please recheck your facts and files. The word "rpg" appears a few times, because you included some redundant code that looks like ZT wrote, "rpg_option" and sum sh*t you obviously don't need. Could you be more specific as to what exactly does not work in the warning options? Error messages? |
#9
|
|||
|
|||
Quote:
you were right about the rpg_ whatever thing, it is not your code. It's something ZT wrote and I inherited, I'll have to go through it and remove it. The problem with the warning options is that when I run your warn_install_setting.php script, the $vboptions values are populated with 'Yes' and 'No's for the fields which are a Yes/No field. Then the admin_warn compares these values to 1's and 0's and of course, it never finds the proper values. I am going to try it again, but I did follow your instructions, uploaded the files and run the script. The values in the `setting` table are 'Yes' and 'No's. If Warn.php checks for 1/0s and if the instructions for the template edits are for 1/0's then your script should set the value of the $vboptions not to Yes/No but to 1/0. Does it make sense? Update: I cleaned up the setting table and the phrase table and then re_run the script. The problem exists for the Yes/No fields. Again, the values it enters in the setting table are NOT 1 and 0 they are Yes and No. I assume you need to change your script a little so that when it finds a value of Yes, it replaces that with 1 and when it finds a value of No (in warning_options) it replaces that with 0. Rgds |
#10
|
||||
|
||||
Of course of course of the back of a horse! NOW I see!
I will write you a parser to fix this right away Ok, this should do the trick. In warn_install_setting.php, find (both instances of) PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|