![]() |
OK, I have the admin_warn.php working OK. There is one thing I want. How can I remove the Warning Hack line from the vBulletin Options? I want the options handled only from the Warning System menu.
I still want to figure out how the Upgrade Instructions need to be written. The people who are already using this hack, need to do several edits in their templates and files. The hack templates can be deleted and recreated from a new .xml file, which has the $vboption changes, so I need to come up with an upgrade script that will do that. The problem will be with the other changes in existing templates and in the php files. I'll keep you posted. |
You cannot remove that line.
The only thing you can do is put all the Warning Options under a different category, which would serve no purpose. EDIT: Actually, it would be possible through hacking the admincp/options.php file, but I must say I am highly against such an edit. It is 100% unneeded and adding more hassle to upgrading is not something anyone needs :p As for the template delete, you have been smart enough to name all your templates with a prefix of warn_, so you can just place this somewhere: $DB_site->query("DELETE FROM `" . TABLE_PREFIX . "template` WHERE `title` LIKE 'warn%' "); (SELECT * FROM `template` WHERE title LIKE 'warn%' to test it ) |
Quote:
In admin_warn, where the program saves the warning options in the setting table, you have the following code: PHP Code:
|
It works for me, but I can see how the if() is not needed.
|
Quote:
I am not sure I'll release it as it is. I think it will be too frustrating for the existing users to change everything to 1/0s. I may take the time to switch back to Yes and Nos again, just to help them out. Rgds |
I am curious, exactly what changes do your users have to make? And I am equally curious as to why YOU had to change the files? I did provide you with all files and vB file edits 100% (if we disregard the if() problem above) working, so if you are indeed saying that you manually changed all files from YesNo to 1/0, then...meh I will keep my comments to myself :p
It's not like you have provided patch instructions for file upgrades for a long time, you always just say "reupload $files". Of course, you CAN use Yes/No with the $vboptions as they are setup now, but it's more "vBish" to use 1/0 :p Yes/No, 1/0, whatever. It is of no difference :p |
Quote:
You are right, I do not provide patch instructions for AWS files. But you are forgetting one thing. AWS users have to change other php files too, such as showthread, editpost etc. The files you provided are perfect for a new installation (some minor issues were corrected, not important), but what about the other files? Files where checks are made to "Yes" or "No"? Also, they have to edit their already-changed templates, to change the comparisons from $hierarchical=='Yes' to $hierarchical==1 for example.When I come out with a new version, instructions are given on how to patch your files, in order to bring AWS up to the latest version. If you want to see what the instructions are (at this moment), have a look: Code:
UPGRADE FROM VERSION 3.2.0 TO VERSION 3.3.0 |
Hm. I see your point.
EDIT: Now I remember why 1/0 or Yes/No is important! It is the vBoption setting type "yesno" or blank. yesno makes it 1/0. To still use Yes/No in your hack, you will have to alter all the settings from "yesno" to blank. Quote:
|
Revan,
I am getting ready to release this thing, after I have ironed out some issues. My question to you is: What is your suggested installation procedure? The upgrade is easy. Run your script and then make the changes listed above. But for a new user, does your script requires that the warning_options table exist? Since this table is no longer needed, it shouldn't be included in the install_warn.php file. But I am not sure your script will work without it. Please let me know. Rgds |
It will work without it, because it sets reporterror to 0 before querying the table.
To make it better, do the follwoing edits to warn_install_setting: Add after the kill_setting: PHP Code:
PHP Code:
PHP Code:
|
All times are GMT. The time now is 09:26 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|