Advertisement
Guest User

Untitled

a guest
Jul 14th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1.  
  2. [b]install.myplugin.php:[/b]
  3. [code type=php]if ( ! ( defined( '_VALID_CB' ) || defined( '_JEXEC' ) || defined( '_VALID_MOS' ) ) ) { die( 'Direct Access to this location is not allowed.' ); }
  4.  
  5. function plug_cbsubs_myplugin_install(){
  6. // This wasn't originally here
  7. echo "FFS TEXT HAD BETTER DISPLAY";
  8. // This also wasn't originally here
  9. // this is how Beat does it (and he returns an empty string!)
  10. ?>
  11. <strong>TEXT HAD BETTER DISPLAY</strong>
  12. <?php
  13. // sigh... I've tried this and empty strings
  14. return "TEXT HAD BETTER DISPLAY 3";
  15. }[/code]
  16.  
  17. [b]cbsubs.myplugin.xml:[/b]
  18. [code type=xml](snip)
  19. <installfile>install.myplugin.php</installfile>
  20. <uninstallfile>uninstall.myplugin.php</uninstallfile>
  21. (snip)[/code]
  22.  
  23. [b]uninstall.myplugin.php:[/b]
  24. [code type=php]if ( ! ( defined( '_VALID_CB' ) || defined( '_JEXEC' ) || defined( '_VALID_MOS' ) ) ) { die( 'Direct Access to this location is not allowed.' ); }
  25.  
  26. function plug_cbsubs_myplugin_uninstall(){
  27. return "<strong>Byeeee</strong>";
  28. }
  29. [/code]
  30.  
  31. 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