Home arrow Forum Getting the administrator to see a component/database reference
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 08, 2009, 11:38:54 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Addon Discussion
| |-+  Joomla Components
| | |-+  Getting the administrator to see a component/database reference
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Getting the administrator to see a component/database reference  (Read 1046 times)
Kevin Major
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
Getting the administrator to see a component/database reference
« on: April 24, 2006, 08:51:22 AM »

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. Smiley
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
i-Vibe.com
Search Contact About Advertise Blogs Topsites Submit News Register Login