Difference between revisions of "Random Photo Display mod"
(Text replacement - "{{CURRENTLOGGEDUSER}}" to "{{#replace:{{CURRENTLOGGEDUSER}}}}") |
|||
Line 7: | Line 7: | ||
| mod_summary = Makes changes for displaying a random image and related information on Home Page. | | mod_summary = Makes changes for displaying a random image and related information on Home Page. | ||
| mod_validation = The mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]] | | mod_validation = The mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]] | ||
− | | download_link = [http://www.katiandgraham.com/genealogy/ccount/click.php?id=20&user={{CURRENTLOGGEDUSER}}&page={{PAGENAMEE}} Random_photo_display_v9.0.0.0.zip]{{Tv80}}{{Tv90}}{{Tv100}}{{Tv110}} | + | | download_link = [http://www.katiandgraham.com/genealogy/ccount/click.php?id=20&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Random_photo_display_v9.0.0.0.zip]{{Tv80}}{{Tv90}}{{Tv100}}{{Tv110}} |
| download_stats = [http://www.katiandgraham.com/genealogy/ccount/index.php?action=stats&groupid=13 See download statistics] | | download_stats = [http://www.katiandgraham.com/genealogy/ccount/index.php?action=stats&groupid=13 See download statistics] | ||
| mod_author = Graham Chamberlain | | mod_author = Graham Chamberlain |
Revision as of 16:06, 8 March 2017
Downloads of Random Photo Display mod are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account | ||
If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox
|
Random Photo Display mod applies to TNG version all |
|
Random Photo Display mod | |||||
---|---|---|---|---|---|
Summary | Makes changes for displaying a random image and related information on Home Page. | ||||
Validation | The mod is XHTML compliant. | ||||
Mod Updated | {{{mod_last_update}}} | ||||
Download link | Random_photo_display_v9.0.0.0.zip
| ||||
Download stats | See download statistics | ||||
Author(s) | Graham Chamberlain | ||||
Homepage | Random Photo Display mod (This page) | ||||
Mod Support | My Mod Support | ||||
Contact Developer | My Mod Support | ||||
Latest Mod | 9.0.0.0 for TNG V11,V10,V9,V8 and V7 | ||||
Min TNG V | 8.0.0 using integrated Mod Manager TNG 7.1.0 requires manual installation of Mod Manager | ||||
Max TNG V | 11+ | ||||
Files modified | randomphoto.php | ||||
Related Mods | |||||
Notes |
Introduction
This mod was developed to enable an image border and display of media description for a random image. A mouse-over on the image will display a 'tooltip' in a pop-up with the text you have entered in the 'Description' field of the 'Media Information' section of Admin/Media edit.
Developer
Graham Chamberlain developed this mod.
Requirements
- A working TNG installation.
- An installed current version of the Mod Manager
- A backup of your TNG randomphoto.php file.
Automated Installation
- Download the appropriate file for your TNG version from the download links in the mod summary area in the upper right.
- Extract the random_photo_display_v9.0.0.0.zip to your /mod folder.
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the random_photo_display_v9.0.0.0.cfg.
Custom Text Additions
Image Source:
Add the following to your customconfig.php: '$rp_mediatypeID = "photos";' (without the single outer quotes);
this is the default setting which you should change
to the appropriate (Collection ID) value for your alternative choice of images.
- Note: The Collection ID can be found if you select/edit the relevant collection in Admin/Media.
Image Size:
You may like to display your random image a bit larger than the default. Add your preferred maximum image size to customconfig.php (in the root TNG folder) as in the following example:
$rp_maxwidth = "250"; $rp_maxheight = "200";
Image Border:
The mod contains reference to the style 'bordrandimage' for controlling the colour and shape of a border for the random image. On the author's (template8) website this is defined as:
/* border colour for randomimage */ .bordrandimg{ border: 2px solid #211A16; border-radius: 4px; }
- Note: If you want an image border you will need to add this style to your mytngstyle.css file, and edit the border and/or border-style appropriately.
In the event of a problem with your TNG site
- Try using the Mod Manager Remove capability
- Or copy your randomphoto.php file to your TNG directory
- * all should be well now
Revision History
Version | Date | Contents |
---|---|---|
v9.0.0.0 | 27 March 2012 |
TNG User sites using this mod
If you download and install this mod, please add your TNG sites to the table below
URL | User | Note | Mod-Version/TNG-Version | User-language |
---|---|---|---|---|
Chamberlain & Eidenbenz Genealogy | Graham Chamberlain | Mod developer | V9.0.0.0/10.0.0 | EN, FR, DE, SP |
Zausmers and More-smers | Joyaa Antares | Contented user | V9.0.0.0/TNG 9.1.0 | EN |
KingsThings Chronicle | Garry King | Scared Newby | V9.0.0.0 / TNG V9.2.1 / Template 10 | EN |
... | ... | ... | ... | ... |