Difference between revisions of "Add Cloud of Names"

From TNG_Wiki
Jump to navigation Jump to search
(One intermediate revision by the same user not shown)
Line 146: Line 146:
  
 
[[Category:Mods for TNG v12]]
 
[[Category:Mods for TNG v12]]
[[Category:surname_cloud.class.php Mods]]
+
[[Category:surname_cloud.class.php mods]]
[[Category:templates/index.php Mods]]
+
[[Category:index.php templates mods]]

Revision as of 17:08, 12 December 2019

Restricted Downloads of Add Cloud of Names 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 Restricted
Caution 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


Caution


Cloud of Names
Summary Insert a cloud of names on your homepage.
Validation
Mod Updated 04 dec 2019
Download link for
TNG 12.0

add_cloud_of_names_v12.0.2.1
Download stats Show statistics
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod 12.0.2.1 for TNG v12
Min TNG V n.c
Max TNG V 12+
Files modified
surname_cloud.class.php
templates/templateXX/index.php
Related Mods
Notes



Purpose of the Mod

This mod installs a name cloud on your current home page.
Modify the number of names to display, change the colors, exclude some names, everything is easily configurable thanks to the Easy Edit function.
Want to change your template? uninstall the mod, change the template, reinstall the mod. That's all.
Users of templates 12 and 16 who already have their own surnames cloud will read carefully
the recommendations below before installing! Thank you.
PS: As there were many files to modify and test, it is likely that I could have done better for some templates!
Feel free to send me your comments or changes that you yourself have brought to the code of your template ! Thanks again !

Development

Written by : [MichelKirsch] de Charleroi - Hainaut - Belgium

Requirements

A TNG v 12.0.2 installation in working order.
For templates 12 and 16, the code of the index.php files restored to their original state.

IMPORTANT : Before installing

Before installing, it is judicious to make a backup copy of the the surname_cloud.class.php file (It will be modified by this mod)
The file templates/templateXX/index.php (where XX is the number of the template you actually use) will be modified too.
The mod only modify ONE index.php file at a time!

INSTALLATION

  • Unzip the received file directly in the "mods" sub directory of your TNG installation.
  • Via Mod Manager, install the Mod.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod

Known Problems

Use with templates 12 and 16.
This mod replaces the name cloud code in these two templates. To make sure that the installation is going well,
it is imperative that your index.php file (in templates/template12 or template16) has not been modified by you.
For example, you may have changed the number of names to be displayed in the template. These two files must have their original form
to make the installation run smoothly. Here is the original code of the two files for the "name cloud" part:
templates/template12/index.php (near line 64 and next)

 
  										<!-- Surname Cloud -->
										<br />
										<div>
											<?php
												$nc = new surname_cloud();
												$nc->display(100);
											?>
										</div>

templates/template16/index.php (near line 209 and next)

 
 					<div class="tblock">
						<h2><?php echo $text['surnames'] . " | <a href=\"$surnames_url\">" . $text['more'] . "</a>"; ?></h3>
						<?php
							$nc = new surname_cloud();
							$nc->display(100);
						?>
					</div>

template 12 users will also take care to modify their surnames cloud title via the menus
[Administration/Configurations/Configuration of template/First surnames] so that it "matches" the number of names displayed by the cloud...

In the event of a problem

  • Try using the Mod Manager Remove capability
  • Templates 12 and 16 : Make sure your index.php files are restored to their original state
  • Open an issue in the [forums], or on [my page]. At worst, send me an email....
  • Copy the backup of the affected files back to your TNG directory

Historic of modifications

Version Release Date Contents
V12.0.2.1 04 dec 2019 First online version.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:
If you have any problem to do it, send me a mail...

URL User Note Mod-Version TNG-Version User-language
Racines luxo-hennuyeres Michel Kirsch Developper of the Mod 12.0.2.1 12.0.2 FR/EN/NL/D/SP

Screenshots

Template 14 without surnames cloud.

Without cloud

Idem with the surnames cloud.

With Cloud

Access the Easy Edit facility via the button in the Mod Manager.

Easy Edit button

The Easy Edit file with the help file.

Easy Edit and help