05-412-421: Information Retrieval อาจารย์ ธีภากรณ์ นฤมาณนลิณี

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

USING WORDPRESS. WEEK 1 1.Why WP? 2.Setting Up WP 3.Exploring the Admin screen 4.Page Organization 5.Posting 6.Polls.
SAM 2007 v3.0 The Student Experience Including SAM Projects and Course Assess assignments.
This presentation can be downloaded at Presented by the Office of Public Affairs Using the Cal State L.A. Web.
CPSC 203 Introduction to Computers Tutorial 59 & 64 By Jie (Jeff) Gao.
Java Integrated Development Environments: ECLIPSE Part1 Installation.
1 CA201 Word Application Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
5 Days Open Source Workshop Zencart – Wordpress – Joomla Welcome Day 3.
Presented by Mina Haratiannezhadi 1.  publishing, editing and modifying content  maintenance  central interface  manage workflows 2.
Getting an account with WordPress.com Open your web browser ( mozilla firefox, internet explorer, opera, etc.,)
Figure 1. Hit analysis in 2002 of database-driven web applications Hits by Category in 2002 N = 73,873 Results Reporting 27% GME 26% Research 20% Bed Availability.
User guide Harris Broadcast May How to use Broadcast Go to: Click on broadcast.
A detailed guide on how to set-up your printing storefront. Please Note: Storefronts are compatible with all browsers, however for optimal use of the admin.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Web Content Management Systems. Lecture Contents Web Content Management Systems Non-technical users manage content Workflow management system Different.
Installing CiviCRM onto Wordpress. How does it work?
Danielle Baldwin, ITS Web Services CMS Administrator Application Overview and Joomla 1.5 RC 1 Highlights.
Using Dreamweaver. Slide 1 Dreamweaver has 2 screens that do different things The Document window where you create your WebPages The Site window where.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
Scoring Program Updates & XML upload to the NSRCA web site July 2013.
1 MySQL and phpMyAdmin. 2 Navigate to and log on (username: pmadmin)
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Lecture Note 9: Introduction to the MS Access
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
E-Commerce: Introduction to Web Development 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics What is a Web.
PubMed/History, Advanced Search and Review (module 4.3)
CPSC 203 Introduction to Computers Lab 23 By Jie Gao.
XP New Perspectives on Microsoft FrontPage 2002 Tutorial 1 1 Microsoft FrontPage 2002 Tutorial 1 – Introducing FrontPage 2002.
15.1 Fundamentals of HTML.
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
VistA Imaging Capture via Scanning. October VistA Imaging Capture via Scanning The information in this documentation includes only new and updated.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
ITCS373: Internet Technology Lecture 5: More HTML.
XHTML & Forms. PHP and the WWW PHP and HTML forms – Forms are the main way users can interact with your PHP scrip Typical usage of the form tag in HTML.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
Exercise Your your Library ® RefWorks: The Basics October 10, 2006.
SIMSWeb “Internet Remote Access” The most advanced central station software in the universe !
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
FrontPage Tutorial Part 2 Creating a Course Web Site.
1 EndNote X2 Your Bibliographic Management Tool 29 September 2009 Humanities and Social Sciences Resource Teams.
Table of Contents TopicSlide Administrator Login 2 Administrator Navigations 3 Managing AlternativeDr.com Blogs 4 Managing Dr. Lloyd May Blogs 5 Managing.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Working with Data Lists.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
15.1 Fundamentals of HTML 2 assignments: 1st—complete the worksheet. 2nd—create your first HTML web page following the directions in this PowerPoint where.
January 2006Colby College ITS Setting Up Course Pages.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
JDS5 Training Guide. On Start Up you will see this screen click the OK button Click OK.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
PHP Form Processing * referenced from
Joomla Awdhesh Kumar Singsys Pte Ltd. What is Joomla? Joomla is an award-winning content management system (CMS), which enables you to build Web sites.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
Intro to WordPress (Using XAMPP)
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
: Information Retrieval อาจารย์ ธีภากรณ์ นฤมาณนลิณี
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Core LIMS Training: Advanced Administration
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
GDSS – Digital Signature
The Ultimate Joomla! Form Builder and Manager
Presentation transcript:

: Information Retrieval อาจารย์ ธีภากรณ์ นฤมาณนลิณี

: Information RetrievalCreating Joomla! Extensions 2 Lecture 7 Creating Joomla! Extensions

: Information RetrievalCreating Joomla! Extensions 3 Preview Lots of free add-ons (modules, components, templates) are available in the Internet, but they may not be exactly matched to what we need. So, the knowledge on Joomla programming is required for creating extensions Surely, it will involve PHP programming and MySQL database management

: Information RetrievalCreating Joomla! Extensions 4 Outline Introducing Modules, Component & Plug-Ins Basic approach for creating extensions –Using copy command –Using Wrapper module Advanced approach for creating extensions –Creating your own front-end module –Creating your own back-end module –Creating your own component

: Information RetrievalCreating Joomla! Extensions 5 Modules, Component & Plug-Ins Source: Joomla: Overview about components, modules, and plug-ins, Joomla: Overview about components, modules, and plug-ins

: Information RetrievalCreating Joomla! Extensions 6 Outline Introducing Modules, Component & Plug-Ins Basic approach for creating extensions –Using copy command –Using Wrapper module Advanced approach for creating extensions –Creating your own front-end module –Creating your own back-end module –Creating your own component

: Information RetrievalCreating Joomla! Extensions 7 Using copy command to create a module The copy command from Module Manager allow you to create a new module in the simple manner 1. Tick in this box 2. Click to copy

: Information RetrievalCreating Joomla! Extensions 8 Using copy command to create a module (cont.) Noticed a prefix “ Copy of …” of the resulted module Exercise: Follow the example above in order to create a new Main Menu (give the name “ Main Menu2 ” ), but put it in the other location on your site, e.g. right Change them upon your needs

: Information RetrievalCreating Joomla! Extensions 9 Using copy command to create a module (cont.) The copy approach also apply to any module on the administrator screen In the below figure, the “ cpanel ” position refers to Control Panel screen of Admin screen (see next slide)

: Information RetrievalCreating Joomla! Extensions 10 Control Panel Screen

: Information RetrievalCreating Joomla! Extensions 11 Outline Introducing Modules, Component & Plug-Ins Basic approach for creating extensions –Using copy command –Using Wrapper module Advanced approach for creating extensions –Creating your own front-end module –Creating your own back-end module –Creating your own component

: Information RetrievalCreating Joomla! Extensions 12 What ’ s the wrapper? Similar to what the word “ wrap ” means Wrapped page

: Information RetrievalCreating Joomla! Extensions 13 Wrapper (mod_wrapper) Wrapper module can ease you to bring your existing sites (or html pages actually) to appear inside Joomla This can be done by setting an existing URL and wraping it inside an inline frame (or iFrame) for display within the Joomla site Joomla web site Your existing page

: Information RetrievalCreating Joomla! Extensions 14 Wrapper: a demo Open Module Manager and select to display only mod_wrapper for clarity

: Information RetrievalCreating Joomla! Extensions 15 Wrapper: a demo (cont.) Exercise: Create a new wrapper module by using the copy command that we just learned and named it My Test Wrapper

: Information RetrievalCreating Joomla! Extensions 16 Wrapper: a demo (cont.) 1. Put the URL of a link to desired web page (either internal or ext. to your sites) 2. Try different ticks to see variously different effects

: Information RetrievalCreating Joomla! Extensions 17 Outline Introducing Modules, Component & Plug-Ins Basic approach for creating extensions –Using copy command –Using Wrapper module Advanced approach for creating extensions –Creating your own front-end module –Creating your own back-end module –Creating your own component

: Information RetrievalCreating Joomla! Extensions 18 Writing a Front-end Module Goal: Create a simple module –Name: mod_hellofrom –Parameter: location (its value can be set in Module Mgr) –Function: display location along with the welcome message

: Information RetrievalCreating Joomla! Extensions 19 Understanding Structure of the Module Each module package contains a min. of two files: –a PHP code file holds the execution code of the module display –an XML descriptor file contains all of the installation directives and information about the module holds also the module parameters that can be configured through the Module Manager interface

: Information RetrievalCreating Joomla! Extensions 20 Preparing a directory & files 1.Create a folder named mod_hellofrom on a local drive 2. Create a file named mod_hellofrom.xml in the /mod_hellofrom folder, and enter the following code:

: Information RetrievalCreating Joomla! Extensions 21

: Information RetrievalCreating Joomla! Extensions 22 The PHP code file (cont.) 3. Create a file named mod_hellofrom.php in the /mod_hellofrom folder, and enter the following code: always begin any extension with a check (under the no direct access section) to ensure that the code is being executed by the Joomla system

: Information RetrievalCreating Joomla! Extensions 23 The PHP code file (cont.) $myLocation variable uses the get() method of the $params object to get the value of the module parameter called location, which was defined earlier in the XML descriptor file $myDateTime is set to a formatted string holding the current system time and date

: Information RetrievalCreating Joomla! Extensions 24 The PHP code file (cont.) Using the echo() function to output the text to the browser page, but via the JText::_() method Note: Now 2 files have been completely prepared

: Information RetrievalCreating Joomla! Extensions 25 The PHP code file (cont.) 4. Zip both files into a file named after the module (e.g., mod_hellofrom.zip)

: Information RetrievalCreating Joomla! Extensions 26 Install our new module For Installing the Zip file, it can be done easily through the module manager

: Information RetrievalCreating Joomla! Extensions 27 Install our new module (cont.) Success Message will shown to confirm for the success

: Information RetrievalCreating Joomla! Extensions 28 View our new module by Administrator Using Module Manager and access our new module

: Information RetrievalCreating Joomla! Extensions 29 View our new module by Administrator (cont.) Exercise: See the result on your site and try to change to different location (e.g. right)

: Information RetrievalCreating Joomla! Extensions 30 Congratulation!

: Information RetrievalCreating Joomla! Extensions 31 Outline Introducing Modules, Component & Plug-Ins Basic approach for creating extensions –Using copy command –Using Wrapper module Advanced approach for creating extensions –Creating your own front-end module –Creating your own back-end module –Creating your own component

: Information RetrievalCreating Joomla! Extensions 32 Example: Writing a Back-end Module Back-end Module or Administrator Module usually help with maintenance and administration of the site So it is never seen by a front-end user because it generally exposes private system information In this example, our back-end module will list content articles that are missing the article metadata, which is useful for Search Engine Note: We will not go in detail here. But you can study the attached code mod_missingmeta for details

: Information RetrievalCreating Joomla! Extensions 33 Outline Introducing Modules, Component & Plug-Ins Basic approach for creating extensions –Using copy command –Using Wrapper module Advanced approach for creating extensions –Creating your own front-end module –Creating your own back-end module –Creating your own component

: Information RetrievalCreating Joomla! Extensions 34 Component vs. Module Components are likely to have more advanced feature than Modules, e.g. user interaction to a form A component can have a complete Administrator interface, whereas a module is limited to simple parameter settings The interface for a component is accessible through the Components menu of the Administrator interface

: Information RetrievalCreating Joomla! Extensions 35 Writing a component Name: com_suggestionbox Parameter: many (see picture) Function: display a form allowing user to provide feedback on visiting. All of the user data will be stored to a database table for later examination by the administrator Goal: Create a simple component

: Information RetrievalCreating Joomla! Extensions 36 Preparing a directory & files 1.Create a folder named com_suggestionbox on a local drive 2. Create a file named suggestionbox.xml in the /com_suggestionbox folder, and enter the following code:

: Information RetrievalCreating Joomla! Extensions 37 The XML file

: Information RetrievalCreating Joomla! Extensions 38 The XML file (cont.) Note: This administration section is important for making this component to be appeared in the list in the Components menu –To provide an access to the specialized interface of the component –To provide a way for verifying if the component is installed

: Information RetrievalCreating Joomla! Extensions 39 The PHP Code File Check if this parameter has been posted, then begin to process accordingly Use this style so that no table will be created unless it does not exist

: Information RetrievalCreating Joomla! Extensions 40 Guarantee the uniqueness for each record Enable time & date to be diplayed when it is created 3 input fields Ensure some text will not foul up the insertion routine e.g. the quotation Get IP address of the submitter automatically from the machine

: Information RetrievalCreating Joomla! Extensions 41 Message to thank users for their submission Or display a blank form if no form variables are detected Ensure to match the current template

: Information RetrievalCreating Joomla! Extensions 42 The PHP Code File (cont.) Note: Now 2 files have been completely prepared

: Information RetrievalCreating Joomla! Extensions 43 The PHP code file (cont.) 3. Zip both files into a file named after the module (e.g., com_suggestionbox.zip)

: Information RetrievalCreating Joomla! Extensions 44 Install our new component For Installing the Zip file, it can be done easily through the module manager

: Information RetrievalCreating Joomla! Extensions 45 Install our new module (cont.) Success Message will shown to confirm for the success

: Information RetrievalCreating Joomla! Extensions 46 View our new component by Administrator You may now access the component form the Component menu Note: Nothing to do here, just checking if it works

: Information RetrievalCreating Joomla! Extensions 47 Access it under the Menus menu Suppose we want to create a menu button (e.g. showing in the Main Menu) so that users can access our component on the web page Open the Main Menu from the Menu Manager and click a new button

: Information RetrievalCreating Joomla! Extensions 48 Access it under the Menus menu (cont.)

: Information RetrievalCreating Joomla! Extensions 49 Congratulation!

: Information RetrievalCreating Joomla! Extensions 50 Reference Dan Rahmel, Beginning Joomla! From Novice to Professional, Springer-Verlag New York, Inc., July