Jump to content
TNG Community

Where is text variable found


jayat1familytree

Recommended Posts

jayat1familytree

I would like to change or add to the text listed on the descendant text+ page but cannot find where the text variable is coming from or stored at?

Specifically the phrase " Descendancy chart to this point,"

 

descendants_text_at_top_of_desc_list.jpg

 

Thanks in advance for any help.

Jay

Link to comment
Share on other sites

Jay,

The easiest is to  just override the variable $text['graphdesc'] with your own in cust_text.php.  Then you need not change anything else.  It is also used in descendtext, descendtables and register.php. However, if you offer languages, you would have to input your translations to the appropriate cust_text.php.

Otherwise, if you just want your example tab of 'text+' changed,  It could be swapped out with your own new variable put into cust_text.php  and descendtextplus.php at these lines (in version Textplus_charts_v10.1.0.12) I am using version ~.14 beta .  

~line 257         echo "<p><img src=\"{$cms['tngpath']}img/dchart.gif\" width='10' height='9' alt='' border='0'/> = {$text['graphdesc']}, <img src=\"{$cms['tngpath']}img/tng_plus.gif\" width='9' height='9' alt='' border='0'/> = {$text['expand']}, <img src=\"{$cms['tngpath']}img/tng_minus.gif\" width='9' height='9' alt='' border='0'/> = {$text['collapse']}</p>\n";

~line 549                             $rval .= "&nbsp;<a href=\"$desctracker_url" . "trail=$newtrail&amp;tree=$tree\" title=\"{$text['graphdesc']}\"><img src=\"{$cms['tngpath']}img/dchart.gif\" width='10' height='9' alt=\"{$text['graphdesc']}\" border='0'/></a> "; 

Ron

 

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...