Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [b]install.myplugin.php:[/b]
- [code type=php]if ( ! ( defined( '_VALID_CB' ) || defined( '_JEXEC' ) || defined( '_VALID_MOS' ) ) ) { die( 'Direct Access to this location is not allowed.' ); }
- function plug_cbsubs_myplugin_install(){
- // This wasn't originally here
- echo "FFS TEXT HAD BETTER DISPLAY";
- // This also wasn't originally here
- // this is how Beat does it (and he returns an empty string!)
- ?>
- <strong>TEXT HAD BETTER DISPLAY</strong>
- <?php
- // sigh... I've tried this and empty strings
- return "TEXT HAD BETTER DISPLAY 3";
- }[/code]
- [b]cbsubs.myplugin.xml:[/b]
- [code type=xml](snip)
- <installfile>install.myplugin.php</installfile>
- <uninstallfile>uninstall.myplugin.php</uninstallfile>
- (snip)[/code]
- [b]uninstall.myplugin.php:[/b]
- [code type=php]if ( ! ( defined( '_VALID_CB' ) || defined( '_JEXEC' ) || defined( '_VALID_MOS' ) ) ) { die( 'Direct Access to this location is not allowed.' ); }
- function plug_cbsubs_myplugin_uninstall(){
- return "<strong>Byeeee</strong>";
- }
- [/code]
- My database section works fine, and the plugin works fine, but this installfile just won't trigger.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement