8d6279283762f2081b808f69f45806bceea745e7
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

1) <?xml version="1.0"?>
2) <!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
3) <package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
4) 	<id>SleePy:StopForumSpam</id>
5) 	<name>Stop Forum Spam</name>
jdarwood007 Update for 1.4

jdarwood007 authored 1 year ago

6) 	<version>1.4</version>
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

7) 	<type>modification</type>
8) 
9) 	<!-- 2.0 has no support for hooks -->
10) 	<install for="2.0.*">
Jeremy D Fix a few issues: - Redirec...

Jeremy D authored 2 years ago

11) 		<readme type="file" parsebbc="true">README.bbc</readme>
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

12) 		<database>install_sfs.php</database>
13) 		<code type="file">sfs_hooks_install.php</code>
14) 		<modification>install_smf20.xml</modification>
15) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

16) 		<require-file name="SFS.php" destination="$sourcedir" />
17) 		<require-file name="SFS-Subs-Admin.php" destination="$sourcedir" />
18) 		<require-file name="SFS-Subs-Logs.php" destination="$sourcedir" />
19) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
20) 
21) 		<!-- this dir may not exist in SMF -->
22) 		<create-dir name="admin" destination="$themedir/images" />
23) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
24) 
25) 		<!-- language files -->
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

26) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

27) 		<require-file name="language/StopForumSpam.finnish.php" destination="$themes_dir/default/languages" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

28) 
29) 		<redirect url="?action=admin;area=modsettings;sa=sfs" />
30) 	</install>
31) 
32) 	<uninstall for="2.0.*">
33) 		<!-- database changes, undone -->
34) 		<database>install_sfs.php</database>
35) 		<code type="file">sfs_hooks_remove.php</code>
36) 
37) 		<modification reverse="true">install_smf20.xml</modification>
38) 
39) 		<!-- language files, removed -->
40) 		<remove-dir name="$themes_dir/default/languages/StopForumSpam.english.php" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

41) 		<remove-dir name="$themes_dir/default/languages/StopForumSpam.finnish.php" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

42) 
43) 		<!-- source files, removed -->
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

44) 		<remove-file name="$sourcedir/SFS.php" />
45) 		<remove-file name="$sourcedir/SFS-Subs-Admin.php" />
46) 		<remove-file name="$sourcedir/SFS-Subs-Logs.php" />
47) 		<remove-file name="$themedir/StopForumSpam.template.php" />
48) 		<remove-file name="$themedir/images/admin/sfs.webp" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

49) 	</uninstall>
50) 
Jeremy D Fixed a bug

Jeremy D authored 2 years ago

51) 	<install for="2.1.*">
Jeremy D Fix a few issues: - Redirec...

Jeremy D authored 2 years ago

52) 		<readme type="file" parsebbc="true">README.bbc</readme>
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

53) 		<database>install_sfs.php</database>
54) 
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

55) 		<require-file name="SFS.php" destination="$sourcedir" />
56) 		<require-file name="SFS-Subs-Admin.php" destination="$sourcedir" />
57) 		<require-file name="SFS-Subs-Logs.php" destination="$sourcedir" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

58) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

59) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

60) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

61) 		<require-file name="language/StopForumSpam.finnish.php" destination="$themes_dir/default/languages" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

62) 
63) 		<!-- this dir may not exist in SMF -->
64) 		<create-dir name="admin" destination="$themedir/images" />
65) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

66) 
67) 		<!-- All the hooks -->
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

68) 			<!-- Main Section -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

69) 			<hook hook="integrate_pre_include" function="$sourcedir/SFS.php" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

70) 			<hook hook="integrate_pre_load" function="SFS::hook_pre_load" />
71) 			<hook hook="integrate_register" function="SFS::hook_register" />
72) 			<hook hook="integrate_create_control_verification_test" function="SFS::hook_create_control_verification_test" />
73) 
74) 			<!-- Admin Section -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

75) 			<hook hook="integrate_admin_include" function="$sourcedir/SFS-Subs-Admin.php" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

76) 			<hook hook="integrate_admin_areas" function="SFSA::hook_admin_areas" />
77) 			<hook hook="integrate_modify_modifications" function="SFSA::hook_modify_modifications" />
78) 			<hook hook="integrate_manage_logs" function="SFSA::hook_manage_logs" />
jdarwood007 Adds a test page Fixes #7

jdarwood007 authored 1 year ago

79) 			<hook hook="integrate_manage_registrations" function="SFSA::hook_manage_registrations" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

80) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

81) 			<!-- Profile Section -->
Jeremy D Fixed issues with install/u...

Jeremy D authored 2 years ago

82) 			<hook hook="integrate_pre_profile_areas" function="SFS::hook_pre_profile_areas" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

83) 
jdarwood007 Add logic to allow us to su...

jdarwood007 authored 1 year ago

84) 			<!-- Display Section -->
85) 			<hook hook="integrate_prepare_display_context" function="SFS::hook_prepare_display_context" />
86) 			<hook hook="integrate_mod_buttons" function="SFS::hook_mod_buttons" />
87) 
Jeremy D Fix a few issues: - Redirec...

Jeremy D authored 2 years ago

88) 		<redirect url="?action=admin;area=modsettings;sa=sfs" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

89) 	</install>
90) 
Jeremy D Fixed a bug

Jeremy D authored 2 years ago

91) 	<uninstall for="2.1.*">
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

92) 		<!-- database changes, undone -->
93) 		<database>install_sfs.php</database>
94) 
95) 		<!-- All the hooks, removed -->
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

96) 			<!-- Main Section -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

97) 			<hook hook="integrate_pre_include" function="$sourcedir/SFS.php" reverse="true" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

98) 			<hook hook="integrate_pre_load" function="SFS::hook_pre_load" reverse="true" />
99) 			<hook hook="integrate_register" function="SFS::hook_register" reverse="true" />
Jeremy D Fixed a bug

Jeremy D authored 2 years ago

100) 			<hook hook="integrate_create_control_verification_test" function="SFS::hook_create_control_verification_test" reverse="true" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

101) 
102) 			<!-- Admin Section -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

103) 			<hook hook="integrate_admin_include" function="$sourcedir/SFS-Subs-Admin.php" reverse="true" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

104) 			<hook hook="integrate_admin_areas" function="SFSA::hook_admin_areas" reverse="true" />
105) 			<hook hook="integrate_modify_modifications" function="SFSA::hook_modify_modifications" reverse="true" />
106) 			<hook hook="integrate_manage_logs" function="SFSA::hook_manage_logs" reverse="true" />
jdarwood007 Adds a test page Fixes #7

jdarwood007 authored 1 year ago

107) 			<hook hook="integrate_manage_registrations" function="SFSA::hook_manage_registrations" reverse="true" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

108) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

109) 			<!-- Profile Section -->
Jeremy D Fixed issues with install/u...

Jeremy D authored 2 years ago

110) 			<hook hook="integrate_pre_profile_areas" function="SFS::hook_pre_profile_areas" reverse="true" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

111) 
jdarwood007 Add logic to allow us to su...

jdarwood007 authored 1 year ago

112) 			<!-- Display Section -->
113) 			<hook hook="integrate_prepare_display_context" function="SFS::hook_prepare_display_context" reverse="true" />
114) 			<hook hook="integrate_mod_buttons" function="SFS::hook_mod_buttons" reverse="true" />
115) 
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

116) 		<!-- language files, removed -->
jdarwood007 Unistall fix

jdarwood007 authored 4 years ago

117) 		<remove-file name="$themes_dir/default/languages/StopForumSpam.english.php" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

118) 		<remove-file name="$themes_dir/default/languages/StopForumSpam.finnish.php" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

119) 
120) 		<!-- source files, removed -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

121) 		<remove-file name="$sourcedir/SFS.php" />
122) 		<remove-file name="$sourcedir/SFS-Subs-Admin.php" />
123) 		<remove-file name="$sourcedir/SFS-Subs-Logs.php" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

124) 		<remove-file name="$themedir/StopForumSpam.template.php" />
125) 		<remove-file name="$themedir/images/admin/sfs.webp" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

126) 	</uninstall>
127) 
jdarwood007 Update for 1.4

jdarwood007 authored 1 year ago

128) 	<upgrade from="1.0-1.3" for="2.1.*">
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

129) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
jdarwood007 Update for 1.4

jdarwood007 authored 1 year ago

130)         <require-file name="language/StopForumSpam.finnish.php" destination="$themes_dir/default/languages" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

131) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
132) 		<require-file name="SFS.php" destination="$sourcedir" />
133) 		<require-file name="SFS-Subs-Admin.php" destination="$sourcedir" />
jdarwood007 Update for 1.4

jdarwood007 authored 1 year ago

134)         <require-file name="SFS-Subs-Logs.php" destination="$sourcedir" />
Jeremy D Fixed issues with install/u...

Jeremy D authored 2 years ago

135) 		<hook hook="integrate_pre_profile_areas" function="SFS::hook_pre_profile_areas" />
jdarwood007 Add logic to allow us to su...

jdarwood007 authored 1 year ago

136) 		<hook hook="integrate_prepare_display_context" function="SFS::hook_prepare_display_context" />
137) 		<hook hook="integrate_mod_buttons" function="SFS::hook_mod_buttons" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

138) 
139) 		<!-- this dir may not exist in SMF -->
140) 		<create-dir name="admin" destination="$themedir/images" />
141) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

142) 	</upgrade>
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

143) 
jdarwood007 Update for 1.4

jdarwood007 authored 1 year ago

144) 	<upgrade from="1.0-1.3" for="2.0.*">
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

145) 		<code type="file">sfs_hooks_install.php</code>
146) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
jdarwood007 Update for 1.4

jdarwood007 authored 1 year ago

147)         <require-file name="language/StopForumSpam.finnish.php" destination="$themes_dir/default/languages" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

148) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
149) 		<require-file name="SFS.php" destination="$sourcedir" />
150) 		<require-file name="SFS-Subs-Admin.php" destination="$sourcedir" />
jdarwood007 Update for 1.4

jdarwood007 authored 1 year ago

151)         <require-file name="SFS-Subs-Logs.php" destination="$sourcedir" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

152) 
153) 		<!-- this dir may not exist in SMF -->
154) 		<create-dir name="admin" destination="$themedir/images" />
155) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

156) 	</upgrade>