Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Joomla 1.5 Sample Data Files ...

Options
  • 30-07-2008 6:47pm
    #1
    Closed Accounts Posts: 65 ✭✭


    Joomla 1.5

    I accidentally deleted most of the modules from my site that were setup with the sample data pack during installation

    How do I reinstall the sample data pack which contains all these modules ?

    I do not want to have to reinstall Joomla!

    Any help greatly appreciated :)

    Thanks in advance


Comments

  • Registered Users Posts: 648 ✭✭✭ChicoMendez


    backup first


    [PHP]
    DROP TABLE IF EXISTS `jos_modules`;
    CREATE TABLE `jos_modules` (
    `id` int(11) NOT NULL auto_increment,
    `title` text NOT NULL,
    `content` text NOT NULL,
    `ordering` int(11) NOT NULL default '0',
    `position` varchar(50) default NULL,
    `checked_out` int(11) unsigned NOT NULL default '0',
    `checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
    `published` tinyint(1) NOT NULL default '0',
    `module` varchar(50) default NULL,
    `numnews` int(11) NOT NULL default '0',
    `access` tinyint(3) unsigned NOT NULL default '0',
    `showtitle` tinyint(3) unsigned NOT NULL default '1',
    `params` text NOT NULL,
    `iscore` tinyint(4) NOT NULL default '0',
    `client_id` tinyint(4) NOT NULL default '0',
    `control` text NOT NULL,
    PRIMARY KEY (`id`),
    KEY `published` (`published`,`access`),
    KEY `newsfeeds` (`module`,`published`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=42 ;

    --
    -- Dumping data for table `jos_modules`
    --

    INSERT INTO `jos_modules` VALUES (1, 'Main Menu', '', 1, 'left', 0, '0000-00-00 00:00:00', 1, 'mod_mainmenu', 0, 0, 1, 'menutype=mainmenu\nmoduleclass_sfx=_menu\n', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (2, 'Login', '', 1, 'login', 0, '0000-00-00 00:00:00', 1, 'mod_login', 0, 0, 1, '', 1, 1, '');
    INSERT INTO `jos_modules` VALUES (3, 'Popular', '', 3, 'cpanel', 0, '0000-00-00 00:00:00', 1, 'mod_popular', 0, 2, 1, '', 0, 1, '');
    INSERT INTO `jos_modules` VALUES (4, 'Recent added Articles', '', 4, 'cpanel', 0, '0000-00-00 00:00:00', 1, 'mod_latest', 0, 2, 1, 'ordering=c_dsc\nuser_id=0\ncache=0\n\n', 0, 1, '');
    INSERT INTO `jos_modules` VALUES (5, 'Menu Stats', '', 5, 'cpanel', 0, '0000-00-00 00:00:00', 1, 'mod_stats', 0, 2, 1, '', 0, 1, '');
    INSERT INTO `jos_modules` VALUES (6, 'Unread Messages', '', 1, 'header', 0, '0000-00-00 00:00:00', 1, 'mod_unread', 0, 2, 1, '', 1, 1, '');
    INSERT INTO `jos_modules` VALUES (7, 'Online Users', '', 2, 'header', 0, '0000-00-00 00:00:00', 1, 'mod_online', 0, 2, 1, '', 1, 1, '');
    INSERT INTO `jos_modules` VALUES (8, 'Toolbar', '', 1, 'toolbar', 0, '0000-00-00 00:00:00', 1, 'mod_toolbar', 0, 2, 1, '', 1, 1, '');
    INSERT INTO `jos_modules` VALUES (9, 'Quick Icons', '', 1, 'icon', 0, '0000-00-00 00:00:00', 1, 'mod_quickicon', 0, 2, 1, '', 1, 1, '');
    INSERT INTO `jos_modules` VALUES (10, 'Logged in Users', '', 2, 'cpanel', 0, '0000-00-00 00:00:00', 1, 'mod_logged', 0, 2, 1, '', 0, 1, '');
    INSERT INTO `jos_modules` VALUES (11, 'Footer', '', 0, 'footer', 0, '0000-00-00 00:00:00', 1, 'mod_footer', 0, 0, 1, '', 1, 1, '');
    INSERT INTO `jos_modules` VALUES (12, 'Admin Menu', '', 1, 'menu', 0, '0000-00-00 00:00:00', 1, 'mod_menu', 0, 2, 1, '', 0, 1, '');
    INSERT INTO `jos_modules` VALUES (13, 'Admin SubMenu', '', 1, 'submenu', 0, '0000-00-00 00:00:00', 1, 'mod_submenu', 0, 2, 1, '', 0, 1, '');
    INSERT INTO `jos_modules` VALUES (14, 'User Status', '', 1, 'status', 0, '0000-00-00 00:00:00', 1, 'mod_status', 0, 2, 1, '', 0, 1, '');
    INSERT INTO `jos_modules` VALUES (15, 'Title', '', 1, 'title', 0, '0000-00-00 00:00:00', 1, 'mod_title', 0, 2, 1, '', 0, 1, '');
    INSERT INTO `jos_modules` VALUES (16, 'Polls', '', 1, 'right', 0, '0000-00-00 00:00:00', 1, 'mod_poll', 0, 0, 1, 'id=14\ncache=1', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (17, 'User Menu', '', 4, 'left', 0, '0000-00-00 00:00:00', 1, 'mod_mainmenu', 0, 1, 1, 'menutype=usermenu\nmoduleclass_sfx=_menu\ncache=1', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (18, 'Login Form', '', 8, 'left', 0, '0000-00-00 00:00:00', 1, 'mod_login', 0, 0, 1, 'greeting=1\nname=0', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (19, 'Latest News', '', 4, 'user1', 0, '0000-00-00 00:00:00', 1, 'mod_latestnews', 0, 0, 1, 'cache=1', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (20, 'Statistics', '', 6, 'left', 0, '0000-00-00 00:00:00', 0, 'mod_stats', 0, 0, 1, 'serverinfo=1\nsiteinfo=1\ncounter=1\nincrease=0\nmoduleclass_sfx=', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (21, 'Who''s Online', '', 1, 'right', 0, '0000-00-00 00:00:00', 1, 'mod_whosonline', 0, 0, 1, 'online=1\nusers=1\nmoduleclass_sfx=', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (22, 'Popular', '', 6, 'user2', 0, '0000-00-00 00:00:00', 1, 'mod_mostread', 0, 0, 1, 'cache=1', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (23, 'Archive', '', 9, 'left', 0, '0000-00-00 00:00:00', 0, 'mod_archive', 0, 0, 1, 'cache=1', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (24, 'Sections', '', 10, 'left', 0, '0000-00-00 00:00:00', 0, 'mod_sections', 0, 0, 1, 'cache=1', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (25, 'Newsflash', '', 1, 'top', 0, '0000-00-00 00:00:00', 1, 'mod_newsflash', 0, 0, 1, 'catid=3\r\nstyle=random\r\nitems=\r\nmoduleclass_sfx=', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (26, 'Related Items', '', 11, 'left', 0, '0000-00-00 00:00:00', 0, 'mod_related_items', 0, 0, 1, '', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (27, 'Search', '', 1, 'user4', 0, '0000-00-00 00:00:00', 1, 'mod_search', 0, 0, 0, 'cache=1', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (28, 'Random Image', '', 9, 'right', 0, '0000-00-00 00:00:00', 1, 'mod_random_image', 0, 0, 1, '', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (29, 'Top Menu', '', 1, 'user3', 0, '0000-00-00 00:00:00', 1, 'mod_mainmenu', 0, 0, 0, 'cache=1\nmenutype=topmenu\nmenu_style=list_flat\nmenu_images=n\nmenu_images_align=left\nexpand_menu=n\nclass_sfx=-nav\nmoduleclass_sfx=\nindent_image1=0\nindent_image2=0\nindent_image3=0\nindent_image4=0\nindent_image5=0\nindent_image6=0', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (30, 'Banners', '', 1, 'footer', 0, '0000-00-00 00:00:00', 1, 'mod_banners', 0, 0, 0, 'target=1\ncount=1\ncid=1\ncatid=33\ntag_search=0\nordering=random\nheader_text=\nfooter_text=\nmoduleclass_sfx=\ncache=1\ncache_time=15\n\n', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (31, 'Resources', '', 2, 'left', 0, '0000-00-00 00:00:00', 1, 'mod_mainmenu', 0, 0, 1, 'menutype=othermenu\nmenu_style=list\nstartLevel=0\nendLevel=0\nshowAllChildren=0\nwindow_open=\nshow_whitespace=0\ncache=1\ntag_id=\nclass_sfx=\nmoduleclass_sfx=_menu\nmaxdepth=10\nmenu_images=0\nmenu_images_align=0\nexpand_menu=0\nactivate_parent=0\nfull_active_id=0\nindent_image=0\nindent_image1=\nindent_image2=\nindent_image3=\nindent_image4=\nindent_image5=\nindent_image6=\nspacer=\nend_spacer=\n\n', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (32, 'Wrapper', '', 12, 'left', 0, '0000-00-00 00:00:00', 0, 'mod_wrapper', 0, 0, 1, '', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (33, 'Footer', '', 2, 'footer', 0, '0000-00-00 00:00:00', 1, 'mod_footer', 0, 0, 0, 'cache=1\n\n', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (34, 'Feed Display', '', 13, 'left', 0, '0000-00-00 00:00:00', 0, 'mod_feed', 0, 0, 1, '', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (35, 'Breadcrumbs', '', 1, 'breadcrumb', 0, '0000-00-00 00:00:00', 1, 'mod_breadcrumbs', 0, 0, 1, 'moduleclass_sfx=\ncache=0\nshowHome=1\nhomeText=Home\nshowComponent=1\nseparator=\n\n', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (36, 'Syndication', '', 3, 'syndicate', 0, '0000-00-00 00:00:00', 1, 'mod_syndicate', 0, 0, 0, '', 1, 0, '');
    INSERT INTO `jos_modules` VALUES (37, 'Resources', '', 7, 'left', 0, '0000-00-00 00:00:00', 1, 'mod_mainmenu', 0, 0, 1, 'menutype=othermenu\nmenu_style=list\nstartLevel=0\nendLevel=0\nshowAllChildren=0\nwindow_open=\nshow_whitespace=0\ncache=1\ntag_id=\nclass_sfx=\nmoduleclass_sfx=_menu\nmaxdepth=10\nmenu_images=0\nmenu_images_align=0\nexpand_menu=0\nactivate_parent=0\nfull_active_id=0\nindent_image=0\nindent_image1=\nindent_image2=\nindent_image3=\nindent_image4=\nindent_image5=\nindent_image6=\nspacer=\nend_spacer=\n\n', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (38, 'Advertisement', '', 3, 'right', 0, '0000-00-00 00:00:00', 1, 'mod_banners', 0, 0, 1, 'count=4\r\nrandomise=0\r\ncid=0\r\ncatid=14\r\nheader_text=Featured Links:\r\nfooter_text=<a href="http://www.joomla.org">Ads by Joomla!</a>\r\nmoduleclass_sfx=_text\r\ncache=0\r\n\r\n', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (39, 'Example Pages', '', 5, 'left', 0, '0000-00-00 00:00:00', 1, 'mod_mainmenu', 0, 0, 1, 'cache=1\nclass_sfx=\nmoduleclass_sfx=_menu\nmenutype=ExamplePages\nmenu_style=list_flat\nstartLevel=0\nendLevel=0\nshowAllChildren=0\nfull_active_id=0\nmenu_images=0\nmenu_images_align=0\nexpand_menu=0\nactivate_parent=0\nindent_image=0\nindent_image1=\nindent_image2=\nindent_image3=\nindent_image4=\nindent_image5=\nindent_image6=\nspacer=\nend_spacer=\nwindow_open=\n\n', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (40, 'Key Concepts', '', 3, 'left', 0, '0000-00-00 00:00:00', 1, 'mod_mainmenu', 0, 0, 1, 'cache=1\nclass_sfx=\nmoduleclass_sfx=_menu\nmenutype=keyconcepts\nmenu_style=list\nstartLevel=0\nendLevel=0\nshowAllChildren=0\nfull_active_id=0\nmenu_images=0\nmenu_images_align=0\nexpand_menu=0\nactivate_parent=0\nindent_image=0\nindent_image1=\nindent_image2=\nindent_image3=\nindent_image4=\nindent_image5=\nindent_image6=\nspacer=\nend_spacer=\nwindow_open=\n\n', 0, 0, '');
    INSERT INTO `jos_modules` VALUES (41, 'Welcome to Joomla!', '<div style="padding: 5px"><p>Congratulations on choosing Joomla! as your content management system. We hope you are able to create a successful Web site with our program and maybe you will be able to give something back to the community later.</p><p>To make your start with Joomla! as smooth as possible, we want to give you some pointers to documentation, common questions and help on securing your server. A good place to start is the "<a href="http://docs.joomla.org/beginners&quot; target="_blank">Absolute Beginners Guide to Joomla!</a>".</p><p>For your most common questions the best place to start looking for answers is the <a href="http://help.joomla.org/component/option,com_easyfaq/Itemid,268/&quot; target="_blank">Frequently Asked Questions (FAQ)</a> area. If you are stuck on a particular screen in the Administration area of Joomla! (which is where you are now), then try clicking on the Help toolbar button which you will find on almost all screens. This will take you to a page about that screen on our <a href="http://help.joomla.org&quot; target="_blank">Help Site</a>. If you still have questions then take a look on our <a href="http://forum.joomla.org&quot; target="_blank">forum</a> which is most likely the biggest resource on Joomla! there is and you will find almost every question answered at least once, so please try using the search function before asking your question.</p><p>Security is a big concern for us, which is why we would like you to subscribe to the <a href="http://forum.joomla.org/index.php/board,8.0.html&quot; target="_blank">announcement forum</a> (by clicking on the Notify button) to always get the latest information on new releases for Joomla! You should also read the <a href="http://help.joomla.org/component/option,com_easyfaq/task,view/id,167/Itemid,268/&quot; target="_blank">Joomla! Administrator''s Security Checklist</a> and regularly check the <a href="http://forum.joomla.org/index.php/board,267.0.html&quot; target="_blank">security forum</a>.</p><p>We hope you have much fun and success with Joomla! and hope to see you in the forum among the hundreds and thousands of contributors.</p><p>Your Joomla! team.<img alt="Smile" border="0" src="../plugins/editors/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-smile.gif" title="Smile" /></p><p>P.S.: To remove this message, delete the "Welcome to Joomla!" Module in the Administrator screen of the Module Manager (on the Extensions menu). Here is a <a href="index.php?option=com_modules&client=1">quick link</a> to this screen.</p></div>', 1, 'cpanel', 0, '0000-00-00 00:00:00', 1, 'mod_custom', 0, 2, 1, 'moduleclass_sfx=\n\n', 1, 1, '');

    --

    --
    -- Table structure for table `jos_modules_menu`
    --

    DROP TABLE IF EXISTS `jos_modules_menu`;
    CREATE TABLE `jos_modules_menu` (
    `moduleid` int(11) NOT NULL default '0',
    `menuid` int(11) NOT NULL default '0',
    PRIMARY KEY (`moduleid`,`menuid`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

    --
    -- Dumping data for table `jos_modules_menu`
    --

    INSERT INTO `jos_modules_menu` VALUES (1, 0);
    INSERT INTO `jos_modules_menu` VALUES (16, 1);
    INSERT INTO `jos_modules_menu` VALUES (17, 0);
    INSERT INTO `jos_modules_menu` VALUES (18, 1);
    INSERT INTO `jos_modules_menu` VALUES (19, 1);
    INSERT INTO `jos_modules_menu` VALUES (19, 2);
    INSERT INTO `jos_modules_menu` VALUES (19, 4);
    INSERT INTO `jos_modules_menu` VALUES (19, 27);
    INSERT INTO `jos_modules_menu` VALUES (19, 36);
    INSERT INTO `jos_modules_menu` VALUES (21, 1);
    INSERT INTO `jos_modules_menu` VALUES (22, 1);
    INSERT INTO `jos_modules_menu` VALUES (22, 2);
    INSERT INTO `jos_modules_menu` VALUES (22, 4);
    INSERT INTO `jos_modules_menu` VALUES (22, 27);
    INSERT INTO `jos_modules_menu` VALUES (22, 36);
    INSERT INTO `jos_modules_menu` VALUES (25, 0);
    INSERT INTO `jos_modules_menu` VALUES (27, 0);
    INSERT INTO `jos_modules_menu` VALUES (29, 0);
    INSERT INTO `jos_modules_menu` VALUES (30, 0);
    INSERT INTO `jos_modules_menu` VALUES (31, 1);
    INSERT INTO `jos_modules_menu` VALUES (32, 0);
    INSERT INTO `jos_modules_menu` VALUES (33, 0);
    INSERT INTO `jos_modules_menu` VALUES (34, 0);
    INSERT INTO `jos_modules_menu` VALUES (35, 0);
    INSERT INTO `jos_modules_menu` VALUES (36, 0);
    INSERT INTO `jos_modules_menu` VALUES (38, 1);
    INSERT INTO `jos_modules_menu` VALUES (39, 43);
    INSERT INTO `jos_modules_menu` VALUES (39, 44);
    INSERT INTO `jos_modules_menu` VALUES (39, 45);
    INSERT INTO `jos_modules_menu` VALUES (39, 46);
    INSERT INTO `jos_modules_menu` VALUES (39, 47);
    INSERT INTO `jos_modules_menu` VALUES (40, 0);
    INSERT INTO `jos_modules_menu` VALUES (42, 0);[/PHP]


  • Registered Users Posts: 4,386 ✭✭✭EKRIUQ


    First Back up your database and files to your local machine.

    A simpler method may be and depends how much work you have done on your site is to reinstall the joomla instalation directory.

    Then type www.yourwebsite/installation and follow the installation instructions

    That should reinstall all the sample data modules and information


Advertisement