Jump to content
TNG Community
fluffy82

Move media section

Recommended Posts

fluffy82

I have some php experience, but the next question is quite risky to be playing around with... I don't want to break my site doing something wrong (even if I always back up the site and database, and keep a copy of the original of every file I modify). If someone has an idea on how to easily (?) do the following, let me know!

I would love the media for a person not to show as a "sub tab" on the person profile itself, but rather as another tab in the row with Person, Ancestors, Descendants, Timeline,...

The additional difficulty is that I use some mods that affect the person profile, including the media section. So if it can be done (which I doubt...) without moving the code, that would be best...

Worst case scenario: I would leave the media on the profile tab, and add (not move or replace) the media display where I want it. The media on the person profile can be enclosed in a unique div which is hidden. It puts unnecessary loading on the page, I guess, but it's a work around that should give the desired result.

Thanks in advance!

Share this post


Link to post
Share on other sites
tngrlkrz

Your post mirrored my wish---an upper menu tab to just see all media associated with an individual.  Since, thanks to mods, the person profile on my site may display parent photos (father,mother), family photos (spouses), as well as TNG personal photos, the 'individual' tab with all these media added is very long, even though they can be collapsed or expanded of course.

Your idea of a menu tab, rather than an 'innermenu' tab sounded like what I wanted.  However, I'm afraid this will only be a  'tease' to you, because as you surmised, there are many mods that intersperse changes within getperson.php, and there is no easy way.   I took the  drastic step of having a second getperson (media) php, and then create a tab for it in the upper menu, and removed the 'innermenu' media tab.  With all my 80 mods installed, I edited output directives in a copy of getperson.php to skip output of all but media files.  Lastly, changed the labeling so as to correctly ID the sections on the separate media tab, changed the 'media' label to 'photos,docs'.  This works quite well, but the BIG caveat is that any existing or new mods that alter getperson.php may require changes to the getperson_media.php.  And of course, any TNG updates require effort as well.  

Other than a couple lines in genlib.php for the tab placement in the tng_menu, all changes are within the second getperson.php.

All the mods work on the media tab as they do other functions on the regular person page:the slide show, the media previews, the single row presentation, as well as a option for caption/titles which another mod offers.

I am only sharing the concept here, because it cannot be a mod, since by its nature of having mods embedded within, the changes are extremely unique to my site. Yes it can be called a hack job, but the end result of my  3-day effort is worth it to me, as is the bit of work for future changes coming down the pike.

The current 'innermenu' tab 'media' displays only personal media, not the family or parent media (made possible from mods).  That tab could be moved up by a mod, but I just thought not seeing all the media undercuts the value of that tab for my usage.  

This with TNG 12.3

 image.png

 

 

Share this post


Link to post
Share on other sites
manofmull

Ron

80 mods! = wow, would you care to list them? (I thought I was doing well with 70)

I'm still using TNG11 but may upgrade to TNG13 later this year. Some mods you have are likely not available for TNG11.

My concern is that some mods exist that I don't have but maybe should have. Here's my lot, many i consider essential.

1. * Menu Row Stats Counters     menu_row_stats_counters_v.10.1.0.0.cfg     10.1.0.0     
Installed [Options]
2. Add Person Cremated Row     add_person_cremated_row_v10.0.0.1.cfg     10.0.0.1          Installed
3. Admin Families Plus     admin_families_plus_v9.1.0.0a.cfg     9.1.0.0a          Installed
4. Admin Media Search     admin_media_search_v10.1.0.7c.cfg     10.1.0.7c     
Installed
5. Admin Menu link added to menu Bar     AdminMenuLink.cfg     12.0.0.0          Installed
6. Admin Places Geocode     admin_places_geocode_v10.1.0.2.cfg     10.1.0.2     
Installed
7. All Burials and Died Headstone Indicator     all_burials_died_hs_indicator_v11.cfg     11.0.0.0          Installed
8. Balanced Media     balanced_media_v11.0.0.0.cfg     11.0.0.0     
Installed [Options]
9. Bold Children Name Mull     bold_children_name_mull.cfg     11.1.2.0mull          Installed
10. Bold Person Name Mull     bold_person_name_mull.cfg     11.1.2.0mull          Installed
11. Cemeteries Admin List     cemeteries_admin_list_v9.2.0.1.cfg     9.2.0.1          Installed
12. Cemetery Session     cemetery_session_v8.1.3.2.cfg     8.1.3.2     
Installed
13. Count Descendants     count_descendants_v10.1.0.6.cfg     10.1.0.6     
Installed
14. CountAncestorsDescendants mod     CountAncestorsDescendants_mod_v10.1.1.3c.cfg     10.1.1.3c     
Installed [Options]
15. Cousins     cousins_10.1.3.2d.cfg     10.1.3.2d     
Installed [Options]
16. CSV Reports for Admin only     csv_reports_admin_v10.1.2.2.cfg     10.1.2.2     
Installed
17. Date Analysis     date_analysis_v11.0.0.0.cfg     11.0.0.0     
Installed [Options]
18. Default Photo Preview Fixed     default_photo_prev_fixed_v10.1.2.0.cfg     10.1.2.0     
Installed
19. Descendtree Counter mod     Descendtree_Counter_mod_v10.0.0.1b.cfg     10.0.0.1b     
Installed
20. Display source references as hints.     Display_sources_as_hints_v10.1.0.0.cfg     10.1.0.0          Installed
21. Event Map Add Children Births     event_map_add_children_v10.0.0.1.cfg     10.0.0.1     
Installed
22. Family Chart Help     family_chart_help_v11.0.0.2a.cfg     11.0.0.2a     
Installed
23. Family Chart Links     family_chart_links_v11.0.0.1.cfg     11.0.0.1          Installed
24. Family Indicators Mod     family_indicators_v10.1.0.1c.cfg     10.1.0.1c     
Installed
25. Family Preview Mod     family_preview_v10.1.0.2c.cfg     10.1.0.2c     
Installed
26. FGWTabs     fgw_tabs_v11.0.0.9.cfg     11.0.0.9     
Installed [Options]
27. GeoCode Assistant     geocode_assist_v10.1.0.2.cfg     10.1.0.2     
Installed
28. Great To Grand     great_to_grand_v11.0.0.1.cfg     11.0.0.1          Installed
29. ID Analysis     id_analysis_v11.0.0.1.cfg     11.0.0.1     
Installed
30. ID Prefix Format     id_prefix_format_v10.0.0.1.cfg     10.0.0.1          Installed
31. Insert Children Gender     insert_children_gender.cfg     11.1.0.0          Installed
32. Living Color Mod     living_color_v11.0.0.15.cfg     11.0.0.15     
Installed [Options]
33. Male, Female, and Parent Lines     male_female lines and parent sides_v11.0.0.7.cfg     11.0.0.7     
Installed [Options]
34. Mapplace2Link     Mapplace2Link_mod_v10.1.3.2.cfg     10.1.3.2     
Installed [Options]
35. Media Icons Mod     media_icons_mod_v10.1.0.1.cfg     10.1.0.1     
Installed
36. Media Preview Fixed     media_previewfixed_v11.0.1.0.cfg     11.0.1.0     
Installed
37. Mobile Individual Page Map - Person Map     mobile_ind_page_person_map_v11.0.0.1.cfg     11.0.0.1     
Installed
38. OpenStreetMap     openstreetmap_v11.1.2.5a.cfg     11.1.2.5a     
Installed [Options]
39. Other Spouses     other_spouses_v10.1.3.0.cfg     10.1.3.0     
Installed
40. Person Media Edit     person_media_edit_v9.0.3.0.cfg     9.0.3.0          Installed
41. Person Not Found Mod     person_not_found_v10.1.0.1.cfg     10.1.0.1     
Installed
42. Person Preview Fixed     person_previewfixed_v9.0.0.0.cfg     9.0.0.0          Installed
43. PersonID Note     personid_notes_v11.0.0.0.cfg     11.0.0.0     
Installed
44. Places Subject to Deletion     places_subject_delete_v10.1.0.1.cfg     10.1.0.1     
Installed
45. Redundant Person Tabs     redundant_person_tabs_v11.0.0.0.cfg     11.0.0.0     
Installed
46. Regroup Person-No Living Data     regroup_person-no_living_data_v10.0.1.12.cfg     10.0.1.12     
Installed
47. Relate     relate_11.0.0.2a.cfg     11.0.0.2     
Installed [Options]
48. Relocate Person Photos     relocate_pers_photos_v9.1.0.0.cfg     9.1.0.0          Installed
49. Remove Gender Row     remove_gender_row_v10.0.0.0.cfg     10.0.0.0          Installed
50. Remove Modifier Name     remove_modifier_name_V11.0.0.1.cfg     11.0.0.1     
Installed
51. Remove Tree Name     remove_tree_name_v10.0.0.0.cfg     10.0.0.0          Installed
52. Research Link Mod     researchmod_v11.1.2.5.cfg     11.1.2.5     
Installed [Options]
53. Reset_Living_Flag     reset_living_flag_v9.2.2a.cfg     9.2.2a          Installed
54. Rip Prevention     rip_prevention_v11.0.2.0b.cfg     11.0.2.0b          Installed [Options]
55. Show Children Spouses     show_children-spouses_V11.1.2.0.cfg     11.1.2.0     
Installed
56. Show End of Line Mull     show_endofline_mull_v11.1.2.0.cfg     11.1.2.0mull          Installed
57. Show Husband or Wife mod     Show_Husband_or_Wife_mod_v11.0.1.0.cfg     11.0.1.0     
Installed
58. Show Nickname     show_nicknames_v11.0.0.3.cfg     11.0.0.3     
Installed [Options]
59. Show Siblings mod     ShowSiblings_mod_v10.1.0.4.cfg     10.1.0.4     
Installed [Options]
60. Showfolio     showfolio_v10.1.1.9.cfg     10.1.1.9     
Installed [Options]
61. Special List     special_list_v11.1.2.0.cfg     11.1.2.0     
Installed
62. Submit Photo Tabs v11.0.0.0     submit_photo_tab_V11.0.0.0.cfg     11.0.0.0     
Installed
63. Submit Photo/Document v10.1.0.0     submitphotoform_V10.1.0.0.cfg     10.1.0.0     
Installed [Options]
64. Suggest Form Help     suggest_form_help_V9.0.0.0.cfg     9.0.0.0          Installed
65. Surname Statistics     surname_statistics_v10.1.0.1d.cfg     10.1.0.1d     
Installed [Options]
66. Tables of descendants     tables_of_descendants_v10.1.3.3.cfg     10.1.3.3     
Installed [Options]
67. TextPlus Charts     textplus_charts_v10.1.0.10a.cfg     10.1.0.10a     
Installed
68. Usercomments     usercomments_v11.1.2.Beta9.cfg     11.1.2.Beta9          Installed [Options]
69. Verticalchart_Photos     Verticalchart_Photos_mod_v10.1.3.0.cfg     10.1.3.0     
Installed
70. Wikipedia Link Mod     wikipedia_link_v11.0.2.3.cfg     11.0.2.3

Share this post


Link to post
Share on other sites
tngrlkrz

Hi,  to see listing of mods,  simply click the 'installed mods' in my signature line.  It is 'live' from my production site. ☺️  Installed are roughly 35 mods that may require TNG 12.x, with some exceptions perhaps where they run but were not tested on earlier versions.

 

Share this post


Link to post
Share on other sites
fluffy82

That's exactly what I want to achieve. As the innermenu media tab actually seems to be a separate php I hoped the solution would be more simple...

I'll ponder about it a little more.

Share this post


Link to post
Share on other sites
tngrlkrz
12 hours ago, fluffy82 said:

As the innermenu media tab actually seems to be a separate php

Actually, the innermenu media tab *is* calling the same getperson.php, and not redrawing the entire page, just the section that, in my snapshot above, is labelled 'person photo/doc/etc', nothing else.  Moving of the tab for just that section perhaps could be accomplished with a mod, not sure. However, I found it necessary to create a custom getperson_media.php in order to display the 'family' and 'parent' sections.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×