Difference between revisions of "Balanced Media"
Line 93: | Line 93: | ||
| '''Without the mod installed''' | | '''Without the mod installed''' | ||
This is the default TNG 9 template 3 layout. | This is the default TNG 9 template 3 layout. | ||
− | | [[Image: | + | | [[Image:balanced_media_before.gif|Without the mod installed]] |
|- valign="top" | |- valign="top" | ||
| '''With the mod installed but without styling''' | | '''With the mod installed but without styling''' | ||
Once you have this mod installed this is how that same page will look like. As you can see the structure has changed by styling as almost nil. | Once you have this mod installed this is how that same page will look like. As you can see the structure has changed by styling as almost nil. | ||
− | | [[Image: | + | | [[Image:balanced_media_unstyled.gif|With the mod installed but without styling]] |
|- valign="top" | |- valign="top" | ||
| '''Fixed width styling''' | | '''Fixed width styling''' | ||
Line 112: | Line 112: | ||
/* Add some space between each generation block */ | /* Add some space between each generation block */ | ||
.bmm_lastrow td {padding-bottom: 15px;}</nowiki> | .bmm_lastrow td {padding-bottom: 15px;}</nowiki> | ||
− | | [[Image: | + | | [[Image:balanced_media_fixedwidth.gif|Fixed width styling]] |
|- valign="top" | |- valign="top" | ||
| '''Variable width styling''' | | '''Variable width styling''' | ||
Line 130: | Line 130: | ||
.bmm_genheader th {padding-top:15px;} | .bmm_genheader th {padding-top:15px;} | ||
thead .bmm_side p.subhead {margin-bottom:0em;}</nowiki> | thead .bmm_side p.subhead {margin-bottom:0em;}</nowiki> | ||
− | | [[Image: | + | | [[Image:balanced_media_varwidth.gif|Variable width styling]] |
|- valign="top" | |- valign="top" | ||
| '''Template 3 styling''' | | '''Template 3 styling''' | ||
Line 153: | Line 153: | ||
td.bmm_name {padding:1px 5px;} | td.bmm_name {padding:1px 5px;} | ||
tr.bmm_genheader th {padding:2px 5px;}</nowiki> | tr.bmm_genheader th {padding:2px 5px;}</nowiki> | ||
− | | [[Image: | + | | [[Image:balanced_media_template3.gif|Template 3 styling]] |
|} | |} | ||
Revision as of 09:48, 29 June 2012
Balanced Media | ||
---|---|---|
Summary | Balance both sides of the Media view of the Ancestors tab | |
Validation | The mod is XHTML compliant. | |
Mod Updated | {{{mod_last_update}}} | |
Download link | Coming soon
balanced_media_v9.0.3.0.zip See download statistics | |
Download stats | {{{download_stats}}} | |
Author(s) | Bart 'Roebie' Degryse | |
Homepage | Balanced Media | |
Mod Support | TNG forum | |
Contact Developer | ||
Latest Mod | 9.0.0.0 for TNG v9.0.0 - v9.0.2 9.0.3.0 for TNG v9.0.3 | |
Min TNG V | 9.0.0 | |
Max TNG V | 9.0.3 | |
Files modified | extrastree.php | |
Related Mods | ||
Notes |
Purpose of the mod
This mod will add placeholders for the missing people in the Media view of the Ancestors tab balancing both sides. Additionally it will add ancestor chart numbering just as on the Ahnentafel view and the Text view.
Developer
This mod was developed by Bart 'Roebie' Degryse
Requirements
- A working TNG installation.
- A backup of all affected files (see the list in the summary in the upper right corner of the page)
- An installed current version of the Mod Manager (is already included in TNG v9)
Installation
- Download the appropriate zip file as shown in the summary in the upper right corner of the page. NOTE that I host these zip files on my own server. That way I can count the number of downloads for each mod I made and estimate the relevance of such mod.
- Extract the config file from the downloaded zip file into the mods folder.
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.
Feature List
All versions of this mod do two things:
- Add placeholders for the missing people in the Media view of the Ancestors tab. The result is that both sides get balanced.
- Add ancestor chart numbering. These numbers are already on the Ahnentafel view and the Text view and this mod adds them to the Media view too.
The 9.0.0.0 version of this mod also
- fixes one of the inconsistencies regarding how living, private and LDS information are handled that were fixed in TNG v9.0.3 (see issue 20 in the v9.0.3 change history)
What this mod does NOT do is
- styling the new balanced Media view (see the next paragraph for more)
Styling the balanced Media view
The main thing to keep in mind is that this mod only structures the data in a table. It does nothing to style the display. At least nothing more than the default extrastree.php does. The classes that were in the default are still available after installing this mod. I have however added a whole bunch of classes (+ an id for the table itself), so it should be possible to style whatever part of the table to your liking by adding some css to the mytngstyle.css file of your template.
Here's a list of all classes I've added:
- bmm_table: this is not a class but an id for the table.
- bmm_left: the left part of the table, eg De Wilde side in my screenshots (columns 1 and 2)
- bmm_right: obvious
- bmm_number: the columns with the "ancestor chart number" (columns 1 and 3)
- bmm_name: the columns with the names of the ancestors (columns 2 and 4)
- bmm_title: the row with "Media: Family of..."
- bmm_legend: the row with the camera image and the text "At least one photo, history or other media item exists for this individual"
- bmm_side: the row with the text "De Wilde side" and "Degryse side" in my screenshots
- bmm_genheader: each row with a generation name (parents, grandparents, ...)
- bmm_gendata: each row with two ancestor chart numbers and two ancestor names on it ("2. De Wilde, Geert and 3. Degryse, Tina")
- bmm_lastrow: the last bmm_gendata row within each generation also gets this class
Note that some cells in the table thus have two classes: eg. each ancestor chart number cell has the class bmm_number but also bmm_left or bmm_right. The same goes for the cells with ancestor names in it.
There are also some structural elements available:
- colgroup + col: the table structure is predefined with the colgroup and col html tags. The first colgroup also has class bmm_left, the second bmm_right, the first col in each colgroup also has class bmm_number, the second bmm_name.
- thead: the first three rows in the table (the ones with classes bmm_title, bmm_legend and bmm_side) are grouped in the thead html tag.
- tbody: each generation (that is one row with class bmm_genheader and one or more rows with bmm_gendata) is grouped in the tbody html tag (eg 1 bmm_genheader row + 4 bmm_gendata rows for great grandparents)
Visualization of this mod
The following images show the visual effects of installing the mod and shows some examples of styling for this mod. The examples have only been tested with template 3, but should work with other templates without much changing. Especially the colors would need changing!
In the event of a problem
- Try using the Mod Manager Remove capability
- Contact me through the TNG forum.
- Contact me by email. My email address is in the description column of this mod on the Mod Manager page
- Copy the backup of the affected files back to your TNG directory
Revision History
Version | Release Date | Contents |
---|---|---|
v9.0.3.0 | 29 June 2012 | Initial config file release for TNG v9.0.3 |
v9.0.0.0 | 29 June 2012 | Initial config file release for TNG v9.0.0 upto v9.0.2 |
Sites using this mod
If you download and install this mod, please add your TNG site to the table below:
URL | User | Note | Mod-Version/TNG-Version | User-language |
---|---|---|---|---|
no public site | Bart 'Roebie' Degryse | Mod developer | V9.0.3.0/TNG 9.0.3 | NL/EN/ES |