Jump to content
TNG Community

custom and info tab issue


jeff g

Recommended Posts

😊 Hi!

I managed to get all my custom menu items directed to the info tab working within my custconfig.php

the genlib.php shows it pulling from the custconfig.php and adding to the info tab

BUT

I can not add any items to the regular cust menu hook. the custom menu tab is there,

but if I try to add or alter anything, I get a template page with nothing on it,

or if i try and create a "custmenu2" only for the info tab items and change custmenu to custmenu2 in the genlib.php I get a 500 error.

So the

short question for me is can I have both

$infomenulinks and  $custommenulinks

operating in the custconfig.php file? 

I must have some settings wrong when I am trying to apply it to both my info and custom tabs.

I successfully created the menu hooks and understand that, but how to have the genlib.php (I assume);

draw the needed info from the custconfig.php and apply it to the separate tabs, i am clueless.

 

clueless in japan😵

Thanks for any help with this

Jeff 😄

tab issue1.jpg

Link to comment
Share on other sites

3 hours ago, jeff g said:

 

I can not add any items to the regular cust menu hook. the custom menu tab is there,

but if I try to add or alter anything, I get a template page with nothing on it,

I take it that you are getting a blank page, which typically means that  you have a syntax error.  Copy your customconfig.php source and go to https://www.piliapp.com/php-syntax-check/

 

3 hours ago, jeff g said:

if i try and create a "custmenu2"

As far as I know, only one custom menu can be defined.  You can add entries to Find and Info pull downs though

Read the doc on Custom Menu in the TNG Wiki

Link to comment
Share on other sites

Ken,  😊 👍

Thank you so much!

I think you are saying,

it is possible to reassign second level menu tabs to info and find tabs,

but it is not possible to create a custom tab on top of that.

I guess perhaps people have gone the wordpress way  to have more flexibility with tabs and such?

The parameters are what they are given the balance of everything needed to happen in a TNG page,

So I am happy enough I will work with it and see if things evolve.

I do really appreciate again, you taking a moment Ken to answer my issue. 😄

Jeff

Link to comment
Share on other sites

FWIW, I think one of the reasons it was decided to not give the ability (with mod or not) to go beyond 4 tabs is that, depending on the screen resolution, you start to see the menu breakup into 2 rows, especially when the window (e.g.-PC OS) is narrowed or shrunken.  I sometimes view TNG in standard rather than mobile mode on my android phone, and those tabs take up a lot of space.  For that reason, I've even reduced the width of the tabs to their bare pixel minimum.  Other times I use Ken's nice Mobile Enhancement mod.

image.png

Ron

Link to comment
Share on other sites

38 minutes ago, jeff g said:

I think you are saying,

it is possible to reassign second level menu tabs to info and find tabs,

but it is not possible to create a custom tab on top of that.

Jeff,

Not sure I understand what you are trying to say.  I use a Site menu on my site and also add other entries to Find and Info, where I think they are appropriate

I know nothing about WordPress and for I am doing with my site, see no reason to use WordPress

Link to comment
Share on other sites

Ken, 

i dont use wordpress either.

the only choice for the menu hook is info, find, or a custom "help" tab, etc.

BUT 

i cant have items added to the find and info AND have a custom tab too it seems....

that is what i really want to do!

Jeff  :D

Link to comment
Share on other sites

Maybe you should post your customconfig.php or Mod Manager code for creating the custom menu hook and indicate exactly what is not working.  I tried to document it in the TNG wiki, but maybe I am too close to how it works and not explaining it sufficiently

Link to comment
Share on other sites

Thanks Ken :)

getting quite late in the am here, but i will post it for sure.

can i post it in its entirety ( not too much there), or is there a security issue posting it online like this?

The custom hook, I used in the past to make extra pages and all.

Read it thru maybe 15 times, still worth refreshing when it has been awhile since i approached it.

It is to your benefit to know it is well written, and explains what is needed.

I only need 4 tabs total on my site,

but redirecting the links in my customconfig to info and find just hasn't allowed for the 4th tab to be operational.

Jeff  :)

https://www.swissfamilygirod.com/

Link to comment
Share on other sites

jayat1familytree

Jeff

Here is part of my MOD for adding my customized links in the drop down menus, 

Just remember if it says [label_index] you need a language text variable like $text['1ft_branchlogin'] = "Branch Log-in";

You will see I have added links for the FIND, MEDIA and INFO drop menus as well as all of the new drop menu called MORE.

You can also set the visibility to only Admin or User

(needs the new custom menu extension mod to use the USER variable)

 

Hope that helps

Jay 

 

 

 

%target:customconfig.php%
%location:%
    //your custom PHP code goes here.

%end:%

%insert:before%
//        Custom Menu Hook Mod added to customconfig.php in TNG V10
//    For additional details see the TNG Wiki <a href="https:tng.lythgoes.net/wiki/index.php?title=Custom_Menu_Hook" target="_blank">Custom Menu Hook</a>.

//  Links for the Custom - MORE drop menu
$custmenu['title_index'] = "1ft_more_menu";
$link_nr=0; // the first link in the menu is always number 0
$custommenulinks[$link_nr]['target'] = "1ft_donate.php";
$custommenulinks[$link_nr]['icon'] = "img/Paypal_extra_small.gif";
$custommenulinks[$link_nr]['label_index'] = "1ft_donate";

$link_nr++; // increment the number for each additional link (1)
$custommenulinks[$link_nr]['target'] = "1ft_citiesandtowns.php";
$custommenulinks[$link_nr]['icon'] = "img/menu_place26x26.png";
$custommenulinks[$link_nr]['label_index'] = "1ft_cities_and_towns";

$link_nr++; // increment the number for each additional link (1)
$custommenulinks[$link_nr]['target'] = "1ft_help_wanted.php";
$custommenulinks[$link_nr]['icon'] = "img/1familytree49.png";
$custommenulinks[$link_nr]['label_index'] = "1ft_helpwanted";

$link_nr++; // increment the number for each additional link (1)
$custommenulinks[$link_nr]['target'] = "oldsite/index.htm";
$custommenulinks[$link_nr]['icon'] = "img/1familytree49.png";
$custommenulinks[$link_nr]['label_index'] = "1ft_oldsite";

$link_nr++; // increment the number for each additional link (1)
$custommenulinks[$link_nr]['target'] = "1ft_loglook1.php";
$custommenulinks[$link_nr]['admin'] = true;
$custommenulinks[$link_nr]['icon'] = "img/padlock_icon.png";
$custommenulinks[$link_nr]['label_index'] = "1ft_loglook";

$link_nr++; // increment the number for each additional link (1)
$custommenulinks[$link_nr]['target'] = "extensions/fgw/fgw_search.php";
$custommenulinks[$link_nr]['admin'] = true;
$custommenulinks[$link_nr]['icon'] = "img/padlock_icon.png";
$custommenulinks[$link_nr]['label_index'] = "1ft_fgw_worksheets";

$link_nr++; // increment the number for each additional link (1)
$custommenulinks[$link_nr]['target'] = "extensions/fgw/logview.php";
$custommenulinks[$link_nr]['admin'] = true;
$custommenulinks[$link_nr]['icon'] = "img/padlock_icon.png";
$custommenulinks[$link_nr]['label_index'] = "1ft_fgw_log_view";

$link_nr++; // increment the number for each additional link (1)
$custommenulinks[$link_nr]['target'] = "showreport.php?reportID=206";
$custommenulinks[$link_nr]['admin'] = true;
$custommenulinks[$link_nr]['icon'] = "img/padlock_icon.png";
$custommenulinks[$link_nr]['label_index'] = "1ft_branchlogin";

$link_nr++;
$custommenulinks[$link_nr]['target'] = "dateanalysis.php";
$custommenulinks[$link_nr]['icon'] = "img/date_analysis_icon_32x32.png";
$custommenulinks[$link_nr]['label_text'] = "Date Analysis";
$custommenulinks[$link_nr]['admin'] = true;


//  Links for the MEDIA drop menu
$link_nr=0; // increment the number for each additional link (1)
$mediamenulinks[$link_nr]['target'] = "submit_photo.php?rndlink=true";
$mediamenulinks[$link_nr]['icon'] = "img/menu_submit_photo_doc.png";
$mediamenulinks[$link_nr]['label_index'] = "1ft_submit_image";

// Links for the INFO drop menu

$link_nr=0; // increment the number for each additional link (1)
$infomenulinks[$link_nr]['target'] = "extensions/fgw/fgw.php";
$infomenulinks[$link_nr]['icon'] = "img/help_icon.png";
$infomenulinks[$link_nr]['label_index'] = "1ft_submitinfo_data";

$link_nr++; // increment the number for each additional link (1)
$infomenulinks[$link_nr]['target'] = "1ft_faq.php";
$infomenulinks[$link_nr]['icon'] = "img/help_icon.png";
$infomenulinks[$link_nr]['label_index'] = "1ft_faq";

$link_nr++; // increment the number for each additional link (1)
$infomenulinks[$link_nr]['target'] = "1ft_howtonavigate.php";
$infomenulinks[$link_nr]['icon'] = "img/help_icon.png";
$infomenulinks[$link_nr]['label_index'] = "1ft_howtonavigate";

$link_nr++; // increment the number for each additional link (1)
$infomenulinks[$link_nr]['target'] = "1ft_thingstoknow.php";
$infomenulinks[$link_nr]['icon'] = "img/help_icon.png";
$infomenulinks[$link_nr]['label_index'] = "1ft_thingstoknow";

$link_nr++; // increment the number for each additional link (1)
$infomenulinks[$link_nr]['target'] = "1ft_acknowledgements.php";
$infomenulinks[$link_nr]['icon'] = "img/help_icon.png";
$infomenulinks[$link_nr]['label_index'] = "1ft_acknowledgements";

$link_nr++; // increment the number for each additional link (1)
$infomenulinks[$link_nr]['target'] = "1ft_military1.php";
$infomenulinks[$link_nr]['icon'] = "img/menu_military.png";
$infomenulinks[$link_nr]['label_index'] = "1ft_military";

$link_nr++; // increment the number for each additional link (1)
$infomenulinks[$link_nr]['target'] = "1ft_religiousservice.php";
$infomenulinks[$link_nr]['icon'] = "img/help_icon.png";
$infomenulinks[$link_nr]['label_index'] = "1ft_religserv";


//  Links for the Custom - FIND drop menu

$link_nr=0; // the first link in the menu is always number 0
$findmenulinks[$link_nr]['target'] = "1ft_links.php";
$findmenulinks[$link_nr]['icon'] = "img/links_icon_60.png";
$findmenulinks[$link_nr]['label_index'] = "1ft_links";

$link_nr++; // increment the number for each additional link (1)
$findmenulinks[$link_nr]['target'] = "1ft_search_indexes.php";
$findmenulinks[$link_nr]['icon'] = "img/search_icon.png";
$findmenulinks[$link_nr]['label_index'] = "1ft_searchindex";

$link_nr++; // increment the number for each additional link (1)
$findmenulinks[$link_nr]['target'] = "_proxy_exec.php?job=search_area.php";
$findmenulinks[$link_nr]['icon'] = "img/search_icon.png";
$findmenulinks[$link_nr]['label_text'] = "Specialized Search - Coming Soon";


//  end of Custom Menu Hook Mod CUSTOM 1FamilyTree

%end:%
//cust_text.php Location 1
%target:languages/English-UTF8/cust_text.php%
%location:%
//Mods should put their changes before this line, local changes should come after it.
%end:%
%insert:before%

// Added Custom Menu Hook
$text['1ft_links'] = "Links";
$text['1ft_more_menu'] = "More";
$text['1ft_branchlogin'] = "Branch Log-in";
$text['1ft_submit_image'] = "Submit Image";
$text['1ft_fgw_log_view'] = "FGW Logs";
$text['1ft_fgw_worksheets'] = "FGW Worksheets";
$text['1ft_helpwanted'] = "Help Wanted";
$text['1ft_cities_and_towns'] = "Cities and Towns";
$text['1ft_submitinfo_data'] = "Submit Info Data";
// End of Custom menu hook text additions

%end:%
 

 

 

Link to comment
Share on other sites

😄 Jay!

supercool.

i will adapt it and try to see if it works with my site configuration.

It all appears clean and proper. mine is a little hacky at times.

Hopefully my customconfig.php will play well when called.

 

Link to comment
Share on other sites

11 hours ago, jeff g said:

Thanks Ken :)

getting quite late in the am here, but i will post it for sure.

can i post it in its entirety ( not too much there), or is there a security issue posting it online like this?

 

Link to comment
Share on other sites

that last one for boonie67 I believe,

but yes i agree Jay, 

There are a myriad of wonderful mods!

Very useful indeed  :D

Jeff

Link to comment
Share on other sites

Jay,

The mod I was looking for should hide the branches from drop down menu until logged in. One idea and suggestion would be to see is the TNG wiki better organized that could making searching easier. Each item in its own category however I do realize that is a large task with all entering their subject in the wiki pages.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...