| I hope this is the right place to put this question... I'm trying to make two components for a fanfiction site. One to upload the scripts to the server, one to list the scripts on the site. I seperated them because I only want myself and one other person to upload things to the site, but I want the public to be able to read what we've put on there. I've made the components, but Joomla's backend administration panel cannot 'see' them upon installation. I'm sure my problems stem from either my admin or toolbar files, but I'm only a newbie, and thus I don't know how to fix my problems. Below is the code for my scriptinstaller admin and toolbar -- the scriptreader code is essentially the same. admin.scriptinstaller.php: Code: <?php defined('_VALID_MOS') or die('Direct Access to this location is not allowed.'); // ensure user has access to this function if (!($acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'all' ) | $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_dailymessage' ))) { mosRedirect( 'index2.php', _NOT_AUTH ); } require_once( $mainframe->getPath( 'admin_html' ) ); require_once( $mainframe->getPath( 'class' ) ); ?> admin.scriptinstaller.html.php: Code: <?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); echo 'There are no configuration options as this is a simple component whose only function is to upload files to certain directories.'; ?> toolbar.scriptinstaller.php: Code: <?php defined('_VALID_MOS') or die('Direct access to this location is not allowed.'); require_once($mainframe->getPath('toolbar_html')); menuScriptInstaller::DEFAULT_MENU(); ?> toolbar.scriptinstaller.html.php: Code: <?php defined('_VALID_MOS) or die('Direct access to this location is not allowed.'); class menuScriptInstaller{ function DEFAULT_MENU(){ mosMenuBar::startTable(); mosMenuBar::save('save); mosMenuBar::cancel(); mosMenuBar::spacer(); mosMenuBar::endTable(); } } ?> These files are pretty empty because I don't have any configuration settings to worry about. The components should be 'on' if they're installed and published. Any ideas on how to get the backend to see the components? Also, I'm curious as to the proper way to refer to a table in the database. I've seen 'mos_tablename', '# __tablename' (a space between # and _), and '#__tablename' (no spaces) used. What are the differences between them? Thank you. ![]() |
Forum 





Author




Logged






