Categories
Joomla!

Rokbridge Install Error

Rokbridge is a Joomla!/phpbb bridge designed to allow the use of Joomla authentication on a phpbb install.

Upon install, running Joomla 1.5.14, The following error was encountered when I accessed rockbridge through the Joomla! admin panel:

Fatal error: Class 'JFile' not found in /home/…/administrator/components/com_rokbridge/helper.php on line 145

This was a little difficult to track down, (more reports than solutions) but the solution seems to be to add the following line immediately prior to line 145 in the referenced file;

[sourcecode language="php"]
jimport( 'joomla.filesystem.file' );
[/sourcecode]

In my case, I added a comment and a line of whitespace above and below for clarity, so I have the following code: starting at line 130 in helper.php:

[sourcecode language="php"]

function getParams($refresh = false)

{

static $instance;

 

if ($instance == null || $refresh)

{

$component="com_rokbridge";

 

$table =& JTable::getInstance('component');

$table->loadByOption( $component );

 

// work out file path

$option = preg_replace( '#\W#', ", $table->option );

$path = JPATH_ADMINISTRATOR.DS.'components'.DS.$option.DS.'config.xml';

 

// following line added to fix error at install – see http://www.rockettheme.com/forum/index.php?f=199&t=115248&rb_v=viewtopic

jimport( 'joomla.filesystem.file' );

 

if (JFile::exists( $path )) {

$instance = new JParameter( $table->params, $path );

} else {

$instance = new JParameter( $table->params );

}

}

 

return $instance;

}

[/sourcecode]

 

Reference: http://www.rockettheme.com/forum/index.php?f=199&t=115248&rb_v=viewtopic

 

Categories
Joomla!

Display an alternate Joomla Template

Sometimes you just want to see what your site would look like in another template.

Simply add the parameter ?template=template_name to your URL and you’ll see it.

Technorati Tags: ,
Categories
Joomla!

How to clear sample data from a Joomla Website

Load Joomla to your site with all the sample data. This is the sequence of steps to remove most of the sample data.

  • Article Manager – Trash All
  • Trash Manager – Delete All
  • Category Manager – Delete All
  • Section Manager – Delete All
  • Menu Manager – Delete those not wanted. I keep the Main and Top ( Joomla requires one )
  • Menu Trash Manager – Delete All
  • The next are Optional if you don't want them:
  • Banner Manager – Delete all Banners, Clients and Categories
  • News Feed Manager – Delete all feeds and categories
  • Poll Manager – Delete all
  • Web Link Manager – Delete all links and categories
  • Module Manager – Delete Admin Welcome and turn off ones you don't want running. Example: banners etc.
  • Template Manager
    At this point, you have a bare bones Joomla without the sample data but with the core modules intact. ( less the optional ones you may have uninstalled.)

Now, if you want to duplicate this bare bones site to other sites without having to go through all the above steps:

1. Export the database (from the above site) and save it. It's used to provide the new site's DB.
2. Load Joomla to a new site, but don't go through the install procedures.
3. Create an empty mysql database on the new site.
4. Import the database created in step 1 into the new DB created in step 3..
5. Copy the configuration.php file from the original site to the new site and make changes to reflect the new site's info. e.g. host name, password, site name etc.
6. Rename the installation directory to something else or delete it.
That's it. You should be able to access the new "cloned" site with the same admin name and password.

Source: PhilOSparta in http://forum.joomla.org/viewtopic.php?f=428&p=1212862

Categories
Joomla!

Quick and Dirty Joomla install on Windows

Here are the quick and dirty steps for installing Joomla on a Windows machine.

  • Download the current released version of Joomla from http://www.joomla.org/download.html.
  • Unzip the archive file to the webserver, either in the root of the website or in the folder of your choice.
  • Identify or create the MySQL user and database you will use for the Joomla! installation.
    • Using the MySQL root account is a really bad idea.
    • Ensure that the MySQL user account has schema privileges on the database.
  • Access the folder or site on the webserver, i.e. http://localhost/joomla/ or http://www.example.com/joomla/.  Below, I'll assume you've installed it to http://localhost/joomla.
  • You'll see a series of configuration screens;
    • Choose Language:  The default is usually OK here.
    • Pre-Installation Check: Check for significant problems, click next when ready.
    • License: Click Next.
    • Database Configuration: Fill in this information as indicated.  If not sure of the database server, try 'localhost'.  Remember the caution above against using the root account, it is a serious security risk. Click Next.
    • FTP Configuration: Nothing to do here normally, just click Next.
    • Main Configuration:
      • Fill in the site name, admin email address and admin password.  (you'll be able to change these later.)  WRITE THIS INFO DOWN!
      • Installing the sample data is a good idea for new users and 'sandbox' test installations used to experiment with or gain familiarity with Joomla.  There's quite a bit of useful information for new Joomla users in the sample data.  Just click the 'Install Sample Data' button if you wish to do this.
    • Click Next when ready.
  • Now go to the webserver and delete the installation folder in you joomla website (where you unzipped the archive earlier.)  Your site won't work until this is done.
  • Now go back to your browser and click Site, or simply visit http://localhost/joomla.  You should now see your site up and running with a default template.

That's it.  Your Joomla setup is running.  You'll now want to login with the username 'admin' and the password you wrote down while filling in the installation screens.  Once you're logged in as admin, click Administrator in the resources menu and login again with the same username/password for the administrative back end of the website.  This area is not available to site visitors, event if they are members.  Only privileged accounts can log in here.  Once logged into the back end, click user manager and create a user account for yourself to experiment.  You'll want both the admin and user accounts to use if you're learning Joomla!.

Have fun!

(For those using Linux, a separate quick start guide is also available.)

Categories
Joomla!

Tips for Setting up Joomla! websites

1. Create a demo site with a standard set of components and plugins (delete config file, add installation folder for a clean Joomla install).

2. Create a sample database import after installing a new site, containing only relevant articles, etc.  This will save time deleting all the detrius from the sample data.