Jump to content
TNG Community
Sign in to follow this  
jayat1familytree

Where is text variable found

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

Share this post


Link to post
Share on other sites
bhemph

$text['graphdesc'] is the variable and it is a core TNG variable name, not one added by a mod.

Share this post


Link to post
Share on other sites
tngrlkrz

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

 

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
Sign in to follow this  

×