Please login or register.

Login with username, password and session length
Advanced search  

News:

New version of Featured Listings Plugin available

Anzeige:

SOBI2 Featured Listings Plugin
Featured Listings
SOBI2 Radius Distance Search Plugin
Radius Distance Search
SOBI2 Import & Backup Plugin
SOBI2 Import & Backup
SOBI2 Search Module
Search Module
SOBI Donation/Spende
Pages: [1] 2   Go Down

Author Topic: Documentation - mod_sobi2featured (Joomla 1.0.x)  (Read 4105 times)

0 Members and 1 Guest are viewing this topic.

aboututila

  • Moderator
  • SOBI Hero
  • *
  • Thanx from users: 184
  • Offline Offline
  • Posts: 1327

  • Reviews:

    What is it?

Documentation - mod_sobi2featured (Joomla 1.0.x)
« on: 05. August 2009, 16:07:11 »

Also See
Introduction
Module Description
Module Features
Compatibility
Downloads
Change History
Installation Instructions
Configuration Instructions
CSS Styling
Cloning Instructions
Warranty and Support
Sample Screen Shots
Demo Sites
Tips and Tricks

Module Type Name: mod_sobi2featured
Latest Version: 1.0.10b

Introduction

This Module is available at no charge 'freeware' and was developed before the SOBI2 'Official' Featured Listings Plugin was released. The SOBI2 'Official' Featured Listings Plugin is now released under a Commercial Licence (you have to pay for it). The 'Official' Plugin has the added benefits of being able to manage Featured Listings impression counts, number of hits, days to display Featured Listings, can position Featured Listings Vcard's above non-Featured entries on the SOBI2 Frontpage, etc.

mod_sobi2featured will continue to be supported for the foreseeable future at the request of the SOBI2 Developers - Trinity & Neo.

« Last Edit: 23. January 2010, 17:52:43 by aboututila »
Logged
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 |  View Profile

aboututila

  • Moderator
  • SOBI Hero
  • *
  • Thanx from users: 184
  • Offline Offline
  • Posts: 1327

  • Reviews:

    What is it?

mod_sobi2featured (Joomla 1.0.x) - Module Description
« Reply #1 on: 05. August 2009, 16:26:32 »

Also See
Introduction
Module Description
Module Features
Compatibility
Downloads
Change History
Installation Instructions
Configuration Instructions
CSS Styling
Cloning Instructions
Warranty and Support
Sample Screen Shots
Demo Sites
Tips and Tricks

Module Description

A simple Featured Entries Module to display SOBI2 Entries in a Module if a user-specified SOBI2 Custom Field for the Entry matches the 'Featured Entry Key' value specified in the Module parameter settings. If no matching Entries are found, no module content is displayed. The standard SOBI2 fields 'Title', 'Icon' and 'Image' can be displayed together with an unlimited number of user-specified Custom Field data values and an optional link to the Entry 'Detailed' View.

« Last Edit: 10. August 2009, 19:03:21 by aboututila »
Logged
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 |  View Profile

aboututila

  • Moderator
  • SOBI Hero
  • *
  • Thanx from users: 184
  • Offline Offline
  • Posts: 1327

  • Reviews:

    What is it?

mod_sobi2featured (Joomla 1.0.x) - Module Features
« Reply #2 on: 05. August 2009, 16:59:08 »

Also See
Introduction
Module Description
Module Features
Compatibility
Downloads
Change History
Installation Instructions
Configuration Instructions
CSS Styling
Cloning Instructions
Warranty and Support
Sample Screen Shots
Demo Sites
Tips and Tricks

Module Features

  • This Module does not create or modify any SOBI2 or Joomla Database tables.
  • This Module makes a minimum of 2, maximum of 5, database queries every time the module is output.
  • The value of a user-specified SOBI2 Custom Field is used to select which SOBI2 entries are eligible for display by this Module.
  • Optional use of SQL 'LIKE' Operator (default is SQL '=' Operator) for 'Featured Entries' Key
  • The maximum number of 'Featured' entries to be displayed is specified in the Module configuration.
  • User-specified Sort Order of 'Featured Entries' display - Random, Date Created, Title or User-specified Custom Field.
  • Optional display of module in SOBI Details, and/or Category, and/or Search Views
  • Optional display of the standard SOBI2 fields 'Title', 'Icon' and 'Image'.
  • Optional display of an unlimited number of user-specified SOBI2 Custom Data fields.
    (The order in which the Custom Data fields are output is specified in the Module configuration).
  • Optional display of Custom Data Field Labels.
  • Optional linking of Title, and/or Icon, and/or Image to the detailed view of each SOBI2 'featured' entry.
  • Optional display of a link, with user-specified 'link text', to the detailed view of each SOBI2 'featured' entry.
  • Optional 'Category Filter' - 'Featured Entries' displayed can be restricted to those 'Featured Entries' that 'belong' to the category being displayed in the current SOBI2 'Category View'.
  • Optional user-specified custom code (text, HTML, Javascript, etc) output before and/or after 'standard' module output.
  • Module output is 'tableless', (data to be displayed is output in <div>'s).
  • Module Output validates XHTML 1.0 Strict, CSS level 2.1
  • Use user-specified styling in site Template(s) to style module output.

As with all Modules;
  • The Module can be copied to enable SOBI2 entries with different user-specified SOBI2 entry selection criteria to be displayed in different Module positions.
  • A user-specified Module Class suffix allows user-specified CSS styling in the Site Template(s) for each instance of the Module.
  • The Module can be 'cloned' to work with SOBI2 clones.

« Last Edit: 11. August 2009, 16:08:37 by aboututila »
Logged
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 |  View Profile

aboututila

  • Moderator
  • SOBI Hero
  • *
  • Thanx from users: 184
  • Offline Offline
  • Posts: 1327

  • Reviews:

    What is it?

mod_sobi2featured (Joomla 1.0.x) - Compatibility
« Reply #3 on: 05. August 2009, 17:09:59 »

Also See
Introduction
Module Description
Module Features
Compatibility
Downloads
Change History
Installation Instructions
Configuration Instructions
CSS Styling
Cloning Instructions
Warranty and Support
Sample Screen Shots
Demo Sites
Tips and Tricks

Compatibility

Tested with Joomla 1.0.12 and SOBI2 RC 2.7.3
Tested with Joomla 1.0.13 and SOBI2 RC 2.7.4b
Tested with Joomla 1.5.6  (with legacy plug-in) and SOBI2 RC 2.8.7
Tested with Joomla 1.5.9  (with legacy plug-in) and SOBI2 RC 2.9.0.1
Tested with Joomla 1.5.14 (with legacy plug-in) and SOBI RC 2.9.2.3
Should work with all Joomla 1.0.x, 1.5.x (with legacy plug-in) and SOBI2 RC 2.7.x, RC 2.8.x, RC 2.9.x combinations

« Last Edit: 24. September 2009, 16:19:48 by aboututila »
Logged
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 |  View Profile

aboututila

  • Moderator
  • SOBI Hero
  • *
  • Thanx from users: 184
  • Offline Offline
  • Posts: 1327

  • Reviews:

    What is it?

« Last Edit: 10. August 2009, 19:04:21 by aboututila »
Logged
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 |  View Profile

aboututila

  • Moderator
  • SOBI Hero
  • *
  • Thanx from users: 184
  • Offline Offline
  • Posts: 1327

  • Reviews:

    What is it?

mod_sobi2featured (Joomla 1.0.x) - Change History
« Reply #5 on: 05. August 2009, 18:47:37 »

Also See
Introduction
Module Description
Module Features
Compatibility
Downloads
Change History
Installation Instructions
Configuration Instructions
CSS Styling
Cloning Instructions
Warranty and Support
Sample Screen Shots
Demo Sites
Tips and Tricks

Change History

  • Version 1.0.10b
    Released 26-Nov-2008
    # bugfix - SOBI 'Image' and 'Icon' images not being displayed under certain conditions. Fixed by changing SOBI2 'Image' and 'Icon' URL's from relative to absolute references.

  • Version 1.0.10a
    Released 25-Nov-2008
    # Bugfix for links with Joomla 1.5.x
    # Bugfix - PHP Error - Notice: Undefined variable: CategoryFilter in ....

  • Version 1.0.10
    Released 23-Aug-2008

    + Add: Module Parameters - Custom Code - Pre-text and Post-text
    Enable Administrator custom code (text, HTML, Javascript, etc) to be output before and/or after 'standard' module output.

    + Add: Module Parameters - Show Module in SOBI Views
    If 'Hide' is set, module produces no output in SOBI Details, and/or Category, and/or Search Views.

    + Add; Module Parameter - Use SQL 'LIKE' Operator with Featured Entry Key value
    Default setting is SQL '=' Operator, only SOBI Entries which exactly equal 'Featured Entry' Key value are selected as 'Featured' Entries. If this parameter is set to 'Yes' then SQL 'LIKE' Operator syntax can be used for 'Featured Entry' Key value.

    These 3 features were added at the request of SOBI2 User 'Charlynancy' who assisted with module coding and testing.

  • Version 1.0.9
    Released 7-Dec-2007

    + Add: optional display of Module Execution Time
    For performance analysis of large SOBI databases with large number of 'Featured Entries'. (Please advise module Author if Module Execution time exceeds 1 second).

    + Add: optional "Enable Joomla SEF URL's"
    Because of problems with Joomla 1.5 RC1 and RC2, v1.0.8 of the module did not output Joomla SEF URL's. However, some people wanted this feature. With v1.0.9 Joomla SEF URL's can be enabled or disabled. The default setting is "Off" so people with other SEF components such as OpenSEF and Artio can experiment with the setting that best suits their needs.

    + Add: optional Content Title
    If the Joomla Module "Show Title" is set to "Yes" then the module title is displayed regardless of if there are any 'Featured Entries' to be displayed. The new 'Content Title' will only be displayed if it contains user-specified text and if there are 'Featured Entries' to display. Suggested use is with Joomla Module "Show Title" set to "No" and appropriate text such as "Featured Listings" entered in the 'Content Title'. Use Joomla Site Template to style 'Content Title' text. Minimal CSS Selector is;
    div.sobi2Featured div.contenttitle {myCSS}

    ! Change: Re-write of algorithm for selection of 'Featured Entries'. Previous algorithm produced incomplete results and the larger the number of 'Featured Entries', the more obvious the erroneous results of the previous algorithm became.

    # Bugfix: Incorrect sorting for "Entry created" now fixed.

  • Version 1.0.8
    Released 7-Nov-2007

    + Add: optional 'Category Filter' - 'Featured Entries' displayed can be restricted to those 'Featured Entries' that 'belong' to the category being displayed in the current SOBI2 'Category View'.

    + Add: optional 'Category Filter - zero override' - If Category Filter is 'On' but zero 'Featured Entries' would be displayed as a result of the Filter, then the Filter is ignored.

    + Add: module configuration description has link to module 'Home Page' on SOBI Forum.

    + Add: module configuration description has link to module 'Download Page' on Sigsui.net Downloads.

    + Add: module configuration parameter groups now have color highlighting.

    ! Change: optimize SQL queries. module now makes a minimum of 2, maximum of 5 SQL queries, depending on module configuration settings.

    ! Change: removed Joomla sefRelToAbs() for generating link URL's. Link URL's now generated as relative URL's consistent with some other SOBI2 modules, such as mod_sobi2latest.

    ! Change: Updated module configuration instructions (Configuration.txt) included with module package (and on Module 'Home Page' http://www.sigsiu.net/forum/index.php/topic,5274.0.html)

    # Bugfix: multiple module copies configured with sort order other than 'random' resulted in duplicate function error

  • Version 1.0.7
    Released 20-Oct-2007

    * changed - for 'featured' entries to be displayed by the Module, they must be;
                     (a) 'Featured', and
                     (b) non-expired, and
                     (c) published, and
                     (d) approved.
                     The conditions in (c) and (d) above did not apply to previous module versions.

    * changed - removed hard-coded upper limit of '20' in the 'Maximum number of Entries to Display'. (Previous versions limited maximum number of entries to '20', even if the module was configured to display more.)

  • Version 1.0.6
    Released 17-Oct-2007

    * fixed - Module generated invalid HTML if 'Display Text Link to Entry Details' was set to 'No'

  • Version 1.0.5
    Released 14-Oct-2007

    * fixed - stripos() function only valid if PHP 5 installed. Changed to strpos() for PHP 4 and PHP 5 compatability.

    * added - optional module configuration parameters to link Title, and/or Icon, and/or Image to the detailed view of 'featured' SOBI2 entries

    * added - optional display of custom data field labels with user-specified 'separator' text

    * changed - mod_sobi2featured distribution package. Split up original ReadMe.txt and put content into separate files in a new 'docs' folder included with mod_sobi2featured.zip

  • Version 1.0.4
    Released 7-Oct-2007

    * fixed - Module displayed "foreach loop error" if no Custom Field ID's were specified in the "Display Custom Field ID's" module configuration

  • Version 1.0.3
    Released 1-Oct-2007

    * changed - The order in which you enter the Custom Field ID's in the "Display Custom Field ID's" module configuration is the order in which they will be displayed in the module output.

    * added - basic checking for module configuration errors.

    * added - If module is configured to display icon, but no icon file exists, then <div class='noicon'></div> is output in HTML and user-defined styling can be added to Site Template CSS to format presentation.

    * added - If module is configured to display image, but no image file exists, then <div class='noimage'></div> is output in HTML and user-defined styling can be added to Site Template CSS to format presentation.

    * added - expired entries are not displayed.

    * added - module configuration now supports display of entries sorted by - Random, Date Created, Title or User-specified Custom Field

    * added - HTML comment lines to start and end of HTML generated by Module

  • Version 1.0.2
    Released 22-Sep-2007

    * replace function sobi2BuildOutput() with while() loop to avoid duplicate function error with module copies

  • Version 1.0.1
    Released 22-Sep-2007

    * rename function buildOutput() to sobi2BuildOutput() to avoid duplicate function error with sobi2 clones

    * added module cloning instructions to ReadMe.txt

    * added this file 'ChangeLog.txt' to module zip package

  • Version 1.0
    Released 1-Sep-2007

    * Original Release

« Last Edit: 10. August 2009, 22:20:24 by aboututila »
Logged
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 |  View Profile

aboututila

  • Moderator
  • SOBI Hero
  • *
  • Thanx from users: 184
  • Offline Offline
  • Posts: 1327

  • Reviews:

    What is it?

mod_sobi2featured (Joomla 1.0.x) - Installation Instructions
« Reply #6 on: 05. August 2009, 19:05:16 »

Also See
Introduction
Module Description
Module Features
Compatibility
Downloads
Change History
Installation Instructions
Configuration Instructions
CSS Styling
Cloning Instructions
Warranty and Support
Sample Screen Shots
Demo Sites
Tips and Tricks

Installation Instructions

Install the Module in the usual manner.

1.0 In the Joomla Administrator->Installers->Modules
    Install the module package mod_sobi2featured in the normal manner.

1.1 In Joomla Administrator->Site Modules
    Find and configure the Module as required
    Remember to publish and save the Module after your changes.

2.0 Now read the Module Configuration Instructions

2.1 The module can not display any output until the module parameters
    'Featured Entry' Field ID
    and
    'Featured Entry' Key
    have been configured.

    Refer Module Configuration Instructions items 5.1 and 5.2
    Also refer Tips & Tricks - Featured Entry Key Configuration

« Last Edit: 10. August 2009, 19:05:00 by aboututila »
Logged
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 |  View Profile

aboututila

  • Moderator
  • SOBI Hero
  • *
  • Thanx from users: 184
  • Offline Offline
  • Posts: 1327

  • Reviews:

    What is it?

mod_sobi2featured (Joomla 1.0.x) Configuration Instructions
« Reply #7 on: 05. August 2009, 19:13:20 »

Also See
Introduction
Module Description
Module Features
Compatibility
Downloads
Change History
Installation Instructions
Configuration Instructions
CSS Styling
Cloning Instructions
Warranty and Support
Sample Screen Shots
Demo Sites
Tips and Tricks

Configuration Instructions

The module is configured in the Joomla Administrator back-end
(a) From the Joomla Administrator menu got to Modules->Site Modules
(b) Find mod_sobi2featured and click on it to enter the module configuration screen.

The module configuration screen is divided into a number of sections.
The first section - Details - are the standard Joomla module configuration parameters and will not be discussed in these instructions.

The next section - Parameters - are module configuration parameters specific to mod_sobi2featured.
As of mod_sobi2featured v1.0.8, this section has been divided into sub-sections.

1.0 Sub-section - Parameters - Content Title

1.1 Content Title
    The Text entered here will be displayed before the individual 'Featured Entries'. If there are no 'Featured Entries' to be displayed, this text will NOT be displayed.

If the Joomla Module "Show Title" is set to "Yes" then the module title is displayed regardless of if there are any 'Featured Entries' to be displayed. Suggested use of this feature is with Joomla Module "Show Title" set to "No" and appropriate text such as "Featured Listings" entered in the 'Content Title'. Use Joomla Site Template to style 'Content Title' text. Minimal CSS Selector is;
div.sobi2Featured div.contenttitle {myCSS}

2.0 Sub-section - Parameters - CSS Styling

2.1 Module Class Suffix
    This suffix is appended to the class name (class='moduletable') of the HTML element containing the entire module, to allow individual styling of the entire module. (ie: class='moduletableModuleClassSuffix' for Joomla 1.0.x or class='moduletable ModuleClassSuffix' for Joomla 1.5.x).

2.2 Contents Wrapper Class
    This additional class is added to the class name (class='s2reFeatured') of the HTML div containing all the 'Featured Entries', allowing individual module contents styling. (ie: class='s2reFeatured ContentsWrapperClass')

Note:
(a) Module Class Suffix is for the HTML element containing the entire module, including it's Title (if shown).
(b) For Module Class Suffix, the Suffix is appended to the default class name in accordance with Joomla conventions.
(c) Contents Wrapper Class is an additional class added to the standard class name (class='s2reFeatured').
(d) The module Contents Wrapper excludes the Module Title, but includes all 'Featured Entries' content.
(e) The Contents Wrapper Class is provided in case you want to have a 'standard' module CSS, (using Module Class Suffix), but then have variations of the contents CSS, say for different module positions.

3.0 Sub-section - Parameters - Custom Code

3.1 Pre-text
    The contents of this parameter will be output before the HTML of the standard module output. If there is no standard module output, the contents of this parameter will not be output. The contents of this parameter can be plain text, HTML, Javascript, etc.

3.2 Post-text
    The contents of this parameter will be output after the HTML of the standard module output. If there is no standard module output, the contents of this parameter will not be output. The contents of this parameter can be plain text, HTML, Javascript, etc.

4.0 Sub-section - Parameters - Show Module in SOBI Views

4.1 Show module in SOBI Details View
    If the current view is a SOBI2 Details view and this parameter is set to 'Hide', then the module will not produce any output.
 
4.2 Show module in SOBI Category View
    If the current view is a SOBI2 Category view and this parameter is set to 'Hide', then the module will not produce any output.
 
4.1 Show module in SOBI Search View
    If the current view is a SOBI2 Search view and this parameter is set to 'Hide', then the module will not produce any output.

Note: About SOBI Views
      ================

The SOBI2 component can generated several 'types' of 'views' in the Joomla Front-end.
Broadly, these 'types' are;
(a) MainPage View - Shows the SOBI2 mainpage
(b) Entry/Edit View - Create/edit a new/existing entry
(c) Details View - shows the details of only one entry
(d) Search View - specify searches and view search results
(e) Category View - browsing through categories and sub-categories of entries

5.0 Sub-section - Parameters - 'Featured Entry' selection
    These Parameters define which SOBI2 entries are selected as 'Featured Entries'.
     Also see Tips & Tricks - Featured Key Entry Key Configuration

5.1 'Featured Entry' Field ID
     Set this to the value of the Custom Field ID (not Custom Field Name) whose contents will be used to select a SOBI2 entry as a 'Featured Entry'.

5.2 'Featured Entry' Key
     Set this to the value that the Custom Field specified in 5.1 must be equal to in order to be selected as a 'Featured Entry'. (ie: If the contents of the Custom Field with the ID specified in 5.1 equals the value of the 'Featured Entry' Key, then this SOBI2 Entry will be selected as a 'Featured Entry')

5.3 Use SQL 'LIKE' Operator with Featured Entry Key
    If 'Yes', then Module uses SQL 'LIKE' Operator (and use of 'LIKE' Operator syntax in 'Featured Entry' Key) to SELECT entries instead of SQL '=' Operator. For example, if 'Yes', then you can select all the entries that contain the string 'music' by entering the string %music% as the Featured Entry Key. (% matches any characters)

5.4 Category Filter
    (See Note below About SOBI Views)
    This parameter has 2 settings - 'On' or "Off' ('Off' is the default setting).

    (a) If the 'Category Filter' is configured to 'Off',
        then;
        this parameter has no effect
        (and the 'Featured Entries' will be displayed according to the other module configuration parameters).

    (b) If the 'Category Filter' is configured to 'On',
        then;
        (i) the 'Featured Entries' displayed are restricted to those 'Featured Entries' that 'belong' to the category being displayed in the current SOBI2 'Category View'.

        (ii) for all other cases (ie: the current 'page' being viewed in Joomla is NOT a SOBI 'Category View'),
            then;
            the  'Category Filter' has no effect,
            (and the 'Featured Entries' will be displayed according to the other module configuration parameters).

5.5 Category Filter - zero override
    This parameter has 2 settings - 'Yes' or 'No' ('No' is the default setting)

    (a) If 'Category Filter - zero override' is configured to 'No',
        then;
        this parameter has no effect.

    (b) If the 'Category Filter - zero override' is configured to 'Yes',
        then;
        If as a result of the 'Category Filter' operation, zero 'Featured Entries' would be displayed for a particular 'Category View', then the 'Category Filter' is has no effect,
        (and the 'Featured Entries' will be displayed according to the other module configuration parameters).

5.6 Maximum number of Entries to Display
    Set this to the maximum number of 'Featured Entries' to be displayed by the module.

6.0 Sub-section - Parameters - Standard Data Fields

6.1 Display Title
    If set to 'Yes' the SOBI2 Entry Titles for the 'Featured Entries' will be displayed by the module.

6.2 Link Title to Entry details
    If set to 'Yes' clicking on the Title text will display the Entry's Details View.
    This parameter has no effect if 'Display Title' is 'No'

6.3 Display Icon
    If set to 'Yes' the SOBI2 Entry Icon for the 'Featured Entries' will be displayed by the module.
   
6.4 Link Icon to Entry details
    If set to 'Yes' clicking on the Icon graphic will display the Entry's Details View.
    This parameter has no effect if 'Display Icon' is 'No'

6.5 Display Image
    If set to 'Yes' the SOBI2 Entry Image graphic for the 'Featured Entries' will be displayed by the module.
   
6.6 Link Image to Entry details
    If set to 'Yes' clicking on the Image graphic will display the Entry's Details View.
    This parameter has no effect if 'Display Image' is 'No'

7.0 Sub-section - Parameters - Custom Data Fields

7.1 Display Custom Fields with ID
    Enter a list of comma separated list of Custom Field ID's (not Custom Field Names) that you want to be displayed for each 'Featured Entry'.
    If 'blank', no Custom Field data will be displayed.
    The order of Custom Field ID's in the comma separated list, is the order they will be displayed for each 'Featured Entry'.

7.2 Display Custom Field Labels
    If set to 'Yes' the Custom Field labels will be displayed with the Custom Field data.
    This parameter has no effect if 'Display Custom Fields with ID' is blank.

7.3 Label Separator Text/HTML Entities
    Enter the text/HTML Entities used to separate the Custom Field Labels from the Custom Field data.
    This parameter has no effect if 'Display Custom Labels' is 'No'
    Note: due to a 'feature' of Joomla, the HTML entity &nbsp; (non-blanking space) needs to be used for leading and trailing spaces.

8.0 Sub-section - Parameters - Text Link

8.1 Display Text Link to Entry Details
    If set to 'Yes', the text entered in 'Link Text' will be displayed after each 'Featured Entry'.
    Clicking on the 'Link Text' will display the Entry's Details View.

8.2 Link Text
    The Text entered here will be displayed after each 'Featured Entry'.

9.0 Sub-section - Parameters - Joomla SEF URL's

9.1 Enable Joomla SEF URL's
    if set to 'Yes', the links (if any) to the Entry's Details View will be formatted using Joomla sefRelToAbs() function. Joomla SEF URL's must be enabled in Joomla Global Configuration for this setting to have effect.
    Because of problems with Joomla 1.5 RC1 and RC2, v1.0.8 of the module did not output Joomla SEF URL's. However, some people wanted this feature. With v1.0.8d Joomla SEF URL's can be enabled or disabled. The default setting is "Off" so people with other SEF components such as OpenSEF and Artio can experiment with the setting that best suits their needs.

10.0 Sub-section - Parameters - Sort Order

10.1 Display Featured Entries sorted by
    Select a Sorting Order for the 'Featured Entries' to be displayed by the module.

10.2 Sort by Custom Field ID
    Set this to the value of the Custom Field ID (not Custom Field name) that will be used for sorting. The value of the Custom Field ID must be equal to one of the Custom Field ID's specified in the 'Display Custom Fields with ID' parameter.
    This parameter has no effect if 'Display Featured Entries sorted by' is not set to 'Custom Field: Ascending' or 'Custom Field: Descending'.

11.0 Sub-section - Parameters - Debug & Performance

11.1 Display Module Execution Time
    If set to 'Yes', the module will display the time taken to process the module in seconds to 3 decimal places.
    Normal module execution time should be less than 1 second, however this may increase for large numbers of 'Featured Entries' with complex selection/processing criteria. If you think the Module is too slow, please turn this on and provide feedback to the module Author.

« Last Edit: 10. August 2009, 19:05:19 by aboututila »
Logged
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 |  View Profile

aboututila

  • Moderator
  • SOBI Hero
  • *
  • Thanx from users: 184
  • Offline Offline
  • Posts: 1327

  • Reviews:

    What is it?

mod_sobi2featured (Joomla 1.0.x) - CSS Styling
« Reply #8 on: 05. August 2009, 19:22:37 »

Also See
Introduction
Module Description
Module Features
Compatibility
Downloads
Change History
Installation Instructions
Configuration Instructions
CSS Styling
Cloning Instructions
Warranty and Support
Sample Screen Shots
Demo Sites
Tips and Tricks

CSS Styling

CSS styling for mod_sobi2featured assumes the reader has a basic understanding of how to modify the CSS in the Joomla site Template(s), usually located in {myJoomlaSite}/templates/templateName/css/template_css.css

mod_sobi2featured has been designed so that all HTML output by the module is readily accessible for CSS styling via the site Template(s). (The module outputs almost all HTML elements with 'class= ' in the tags).

In order to determine how to specify/design the module CSS for your site Template(s), it is probable easiest to install the module and then view the resulting HTML from the Joomla front-end. This is because the form of the HTML output by the module is variable (dependant on several of the module configuration settings). When viewing the resulting HTML, the mod_sobi2featured output can be located by looking for the HTML between the HTML comments;
<!-- Start Module mod_sobi2featured -->
<!-- End Module mod_sobi2featured -->

Tips & Tricks - 'side-by-side' entries
-----------------------------------
To show module entries 'side-by-side', add the following CSS to your Site Template;
div.sobi2Featured div.entry {float:left; width:x%;}
where;
    x% = 50% for 2 'side-by-side' entries
    x% = 33.33% for 3 'side-by-side' entries
    x% = 25% for 4 'side-by-side' entries
    etc, etc
If your 'side-by-side' entries will not always be the same vertical height, then it is probable they may not wrap as you would like.

To solve this you can either;
(a) set 'side-by-side' entries to be the same specified vertical height,
     ie: div.sobi2Featured div.entry {float:left; width:50%;height:zpx;}
     where z is the height in pixels for your largest/longest entry.

(b) or use 'child' and 'adjacent sibling' CSS selectors and force a 'clear:both;' at the appropriate entry.
     Unfortunately, selecting the appropriate entry div.entry is not easily done until CSS v3 is reliably implemented by the major browsers.
     ie: if you have 2 'side-by-side' entries, then you need to force a 'clear:both' after every 2 consecutive entries, (ie entries 3, 5, 7, 9, etc)
         if you have 3 'side-by-side' entries, then you need to style a 'clear:both' after every 3 consecutive entries, (ie entries 4, 7, 10, etc)

    The only way I know to do this in CSS-2 is to use child and sibling selectors;
    ie If you have 2 'side-by-side' entries, then the CSS would be;
    div.sobi2Featured div.entry {float:left;width:50%;clear:none;}
    div.sobi2Featured>div.entry+div.entry+div.entry {clear:both}
    div.sobi2Featured>div.entry+div.entry+div.entry+div.entry+div.entry {clear:both}
    div.sobi2Featured>div.entry+div.entry+div.entry+div.entry+div.entry+div.entry+div.entry {clear:both}

    etc, etc (adding +div.entry+div.entry) until the number of div.entry's is sufficient for the maximum number of 'featured entries' you intended to display.
    Obviously if you intend to have a large number of 'featured entries' this is not a very efficient method, but I know of no method without using Javascript.

-------------------------------------------------------------------------------------------------------
The following is an attempt to document the form of the HTML output by the module.

    The output of the entire module is dependent on the Site Template
    (refer Joomla Developer mosLoadModules( $position_name [, $style] )
    Assuming the site Template is using the default (no $style argument) for a Table column output,
    then the entire module output will be of the following form;

    <!-- comments to explain the Module CSS styling -->
    <!-- these comments are not in the output HTML-->

    <table cellpadding="0" cellspacing="0" class="moduletableModuleClassSuffix">
    <!--where ModuleClassSuffix=Module Parameters 'Module Class Suffix' value-->
    <tr>
    <th valign="top">Joomla Module Title</th>
    <!--where Joomla Module Title=display of Joomla Module Title-->
    <!--Not output if Module Details 'Show title'=No-->
    </tr>

    <tr>
    <td>
    <!--The mod_sobi2Featured Module contents are then output in a 'tableless' format-->

    <div class='sobi2Featured ContentsWrapperClass'>
    <!--where ContentsWrapperClass=Module Parameter 'Contents Wrapper Class' value-->

    <div class='contenttitle Content Title'>
    <!--where Content Title=Module Parameter 'Content Title' value-->
    <!--Not output if 'Content Title' is blank or if there are no Entries to be displayed-->

      <div class='entry'> <!--Repeated for each Entry-->

         <div class='title'>data</div>
         <!--where data=display of Entry Title-->
         <!--Not output if Module Parameter 'Display Title'=No-->

         <div class='icon'>img</div>
         <!--where img=display of Entry Icon-->
         <!--Not output if Module Parameter 'Display Icon'=No-->
         <!--or-->
         <div class='noicon'></div>
         <!-- if Module Parameter 'Display Icon'=Yes, but no Icon exists for this entry-->

         <div class='image'>img</div>
         <!--where img=display of Entry image-->
         <!--Not output if Module Parameter 'Display Image'=No-->
         <!--or-->
         <div class='noimage'></div>
         <!-- if Module Parameter 'Display Image'=Yes, but no Image exists for this entry-->

         <div class='customfields'>
         <!--Not Output if no customfields to output-->

             <div class='CCustomFieldId'>data</div>
             <!--Repeated for each Custom Field-->
             <!--where CustomFieldId=Custom Field ID number-->
             <!--where data=display of Custom Field data-->

         </div>

         <div class='link'>link</div>
         <!--where link=display of link-->
         <!--Not output if Module Parameter 'Display Link to Entry Details'=No-->

      </div>
    </div>
    </td>
    </tr>

    Define your own CSS styling in your site Template(s) based on the above HTML model.

« Last Edit: 10. August 2009, 19:05:42 by aboututila »
Logged
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 |  View Profile

aboututila

  • Moderator
  • SOBI Hero
  • *
  • Thanx from users: 184
  • Offline Offline
  • Posts: 1327

  • Reviews:

    What is it?

mod_sobi2featured (Joomla 1.0.x) - Cloning Instructions
« Reply #9 on: 05. August 2009, 19:28:35 »

Also See
Introduction
Module Description
Module Features
Compatibility
Downloads
Change History
Installation Instructions
Configuration Instructions
CSS Styling
Cloning Instructions
Warranty and Support
Sample Screen Shots
Demo Sites
Tips and Tricks

Cloning Instructions

1.0 Unpack the zip file to an empty directory

1.1 In BOTH files; mod_sobi2featured.php and mod_sobi2featured.xml,
    using CASE-SENSITIVE find and replace,
    change all occurrences of the string;
(a) sobi2 to myclone
(b) SOBI2 to MYCLONE

    where 'myclone' is the name of your SOBI2 clone

1.2 rename the files mod_sobi2featured.php and mod_sobi2featured.xml
     changing all occurrences of the string;
(a) sobi2 to myclone
    where 'myclone' is the name of your clone

1.3 re-zip the file into a zip file named
    mod_myclonefeatured.zip
    where 'myclone' is the name of your clone

1.4 Install module as normal

« Last Edit: 10. August 2009, 19:06:05 by aboututila »
Logged
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 |  View Profile
Pages: [1] 2   Go Up
« previous next »
 

Page created in 0.353 seconds with 22 queries.

Partner Sites: Joomla Web Design  |  Yagendoo Templates  |  LayDev - Joomla Templates  |  Joomla Downloads  |  CyberTyper.ch  |  Codingfish  |  Akeeba Backup  |  See all partners