Jump to content
TNG Community

Search the Community

Showing results for tags 'code'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • TNG Specific
    • Announcements
    • Questions and Answers
    • Installation and Configuration
    • New Ideas and Suggestions
    • Code Discussion
    • Templates or Design Questions
    • CMS Integrations
    • TNG Wiki
  • Community
    • Member Webpages
    • Genealogy
    • Chit Chat
    • Questions and Answers
    • Offers And Requests

Blogs

  • Community News
  • TNG News

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 106 results

  1. I have problems with google maps. I have a google API code. This also introduced. But still will not start. What am I doing wrong? I use TNG 11:02
  2. ** RC1 for NearDark, NearDawn and the installer have been withdrawn. v10.1.0.2 for both templates and the installer are now available. ** Ever wanted to try a 'drop in' replacement for Template 8 that doesn't have all that visual clutter and hard to read fonts? I've just produced v10.1.0.2, release candidate 1 for the NearDark and NearDawn templates and pared them with a new installer that makes the templateconfig.php changes, folds in the menu bar changes that used to be provided by the Icon Gravity mod, and adds localized language files for Spanish (and Spanish-UTF8) Features: Surname clouds that can be controlled from the template configuration page. You can hide/show them and control the number of surnames. The "Mom's Side" and "Dad's Side" elements of the left menu can also be hidden or shown. "Scrolling Content" is a new feature that allows you to switch the main page between fixed height content columns that scroll, and non-scrolling columns that show all your content. (Template configuration page.) Internationalization - NearDark and NearDawn are now fully internationalized with Spanish support provided out-of-the-box as a test case. All New: I've created an installation mod called NearD Support that does all the installation work for you. Just unpack the templates in the TNG's template directory, unpack and install the mod and you should be good to go. One caution, once you start configuring the templates through their configuration page, NearD Support will complain about not being able to roll back the templateconfig.php changes (obviously). So pulling out the NearDark and NearDawn elements in templateconfig.php has to be done manually after the initial install. NearD Support folds in the changes to the menu bar that used to be provided by Icon Gravity. So no need to add that mod any longer. I'll also be adding more languages as I get assistance with the phrases. v10.1.0.2-rc1 of NearDark, NearDawn, and NearD Support should work for TNG 10.1.0 and later, but I've done most of my testing against TNG 11. You can see examples on the Wiki pages for NearDark and NearDawn, but these haven't been updated yet for the new features. If you give these a try, please let me know what you think. Thanks, Bill Herndon
  3. tngrlkrz

    Mobile and Standard Site Views

    TNG offers mobile users a 'switch' button at the bottom of each page (before the footer) to switch between standard and mobile views. I added Ken Roy's very useful Mobile Site Enhancement Mod to improve the mobile view appearance. It looked so good that i thought on occasion it would be nice to have that view available on the PC as well. However, I couldn't find a way to have that happen short of having a link which appends the '?sitever="mobile", and the the switch back to 'standard' appears, but the the switch again to 'mobile' button does not. So, I put the following code into my private Mod but wanted to share it anyone else finds it useful. The code is the same used to set mobile devices back to mobile from standard. Maybe there's another way or better code set the 'site' to mobile, but this works fine for me on all pages, and still works fine on mobile phones as well. I think maybe Darrin could add this code so the option is available on all devices. // modify genlib.php -- give ability to switch to mobile on a laptop %target:genlib.php% %location:% include($cms['tngpath'] . "stdsitecredit.php"); %end:% %insert:before% else { $thispage = getScriptName(false); $thispage = preg_replace('/\??\&?sitever=(mobile|standard|tablet)/',"",$thispage); $con = strpos($thispage, "?") == false ? "?" : "&amp;"; $gotover = "mobile"; $message = $text['switchm']; $footer .= "<p class=\"smaller center\">\n"; $footer .= "<a href=\"$thispage{$con}sitever=$gotover\" class=\"fieldnameback lightlink2 rounded4\">&nbsp;{$message}&nbsp;</a>\n"; $footer .= "</p><br/>\n"; } %end:% Ron TNG 11.0.2 http://www.kmtrees.com wampserver 2.5,legacy 7.5, family historian 6.2.2, win 10 pro
  4. All, I have published Simple SEO 11.0.0.3-rc1 to my site and am hoping that some intrepid TNG users will help me beta-test this revision to the mod. This version internationalizes the family titles that appear on the Family Group, Family Chart, Suggest and Edit pages; supports internationalized titles in PDF reports; pushes those titles into page headers (in the same manner that simplified dates are added to individual pages); and supports family titles with, and without, IDs. That last feature is controlled by a mod parameter. The approach to localization of titles is a little novel. Since word order is important and is dictated by contemporary grammar, the mod uses PHP classes to provide translation and ordering. The impact is that adding a new language is achieved by adding a new subclass rather than by adjusting the language files. (So...you can't just change or override the chosen translation. Unless you want to modify some code.) I'm open to alternatives to this approach, but it seemed to be the easiest way to get what I wanted. The languages supported are: Danish, English, French, German, Norwegian, PortugueseBR, Spanish, and Swedish. I'll add any additional languages that I can get translations for. Thanks in advance for any assistance with the testing. I plan to publish the mod formally in about a week when I've completed the backport for TNG 10. k/r Bill Herndon
  5. I keep thinking I'm getting close to getting my TNG site fully working after 3 weeks of working on it, but then discover yet another problem. Here's one. I'm trying desperately to follow the directions for creating custom pages as shown on this page: http://tng.lythgoes.net/wiki/index.php/User_Pages_-_Getting_Started My custom pages work just fine until you try to follow almost any standard link from that page, and then my custom pages sub-directory is inserted into the URL. So, for example, a link on the page goes to http://roots.inforapenny.com/tng/newacctform.php from the home page or any non-custom page, but from any custom page, it wants to go down this path: http://roots.inforapenny.com/tng/mypages/newacctform.php I'm using v11.0.1, template 15, and my site is at http://roots.inforapenny.com/tng/ An example of a custom page is: http://roots.inforapenny.com/tng/mypages/kinshipchart.php The code at the top of another custom page is shown below (they all have the same basic code at the top and the same problem): <?php include( "../tng_begin.php"); if( !$cms['support'] ) $cms['tngpath'] = "../"; $yourtitle = "Privacy"; $yourlink = "/mypages/Privacy.php"; $logstring = "<a href=\"$mypages/Privacy.php\">Privacy</a>"; writelog($logstring); preparebookmark($logstring); //STEP 5: Remove the comments (leading slashes) on the next line if you *DON'T* want the TNG menu bar to show on your page. //$flags['noicons'] = true; tng_header( $yourtitle, $flags ); ?> Perhaps I should mention that I'm also hopelessly confused regarding the cust_text file and customconfig.php file and mods, but I think that's another issue, though it may not be. I'll also mention that I have a companion site in Wordpress, and I've installed, then deactivated, then reactivated the TNG Wordpress Integration plugin in that site, which I am also confused about, but I mention that here only in case there is some interference from that plugin (WP and TNG are each installed in their own folders at the root of the main directory; it looks like the TNG Wordpress Integration plugin added another instance of Wordpress also in the root of the main directory, though not in a subfolder thereof, as TNG and my initial Wordpress site are). OK, I hope this makes sense and that somebody can help me. TIA! Marilyn
  6. Hello all, Suppose you don't have a side-scrolling mouse or pad. Also suppose that you open a very wide and high descendants tree at a TNG site. Much wider and higher than your browser window. To see the rightmost top part of that tree, you first have to scroll all the way to the bottom of the tree to find the horizontal scroll bar. Then you have to scroll to the right and then scroll all the way up again. Maybe to find that you scrolled too far to the right... I have found a way to place scroll bars outside of the visible part of the tree, and adapt the visible part to the size of the browser window. You can see it in action here: (Make your browser only 1200-1300 pixels wide for a good "test environment") https://xerxx.se/descend.php?personID=I36&tree=tredNr2&display=standard&generations=8 If you scroll down with the right-most scroll bar, you will find that the box where the tree is displayed is a bit smaller than your browser window. And you will find a horizontal scroll bar below the box. So now you can scroll right-left without having to go to the bottom of the tree first. So far so good. However! If you hover any of the "more" arrows below the person boxes, the pop-up appears. But... That is only if you have not scrolled the tree in any direction: When you use the scroll bars, the pop-ups lose their orientation and appears at places you don't expect - often outside the visible part. (And that's even worse than having to scroll to the bottom.) So: Is there some coder out there who knows what to do and where, to give the correct coordinates to the pop-ups? I certainly can not do it... Unfortunately (Posted also at tngusers2) Thanks In Advance, Erik
  7. How to change front page photos and text for users with different tree ID assigned? I use tng v. 11.0.1 and Template15. Thanks in advance.
  8. I am getting the following error. Just started occurring one day. I had not done anything to the site. Occurs on accessing the site and can not proceed further. Not sure where to start any guidance appreciated. Fatal error: Call to undefined function session_register() in /home/hardyus/www/www/TNG/globallib.php on line 5. . Version 9 of TNG http://www.hardyus.com/history thanks Steve
  9. I would like to have the option (mod?) to select which data of living people should be visible on the site without users have to log-in. In TNG it isn't possible to show only the abbreviations of the name for living when not logged in as a user, What can I do to realize just that? Bernard
  10. Since TNG V11, I have a problem with the admin utilities menu, but only in the Dutch language, it doesn't show the first two columns [action] and [select] for backing up the files. When I change to the US language the problem is gone. The problem is caused by the Personal Table Maintenance mod v10.1.0.4 somehow. When I unistall this mod, the problem is gone and it works OK. When I unistall all my mod's and only install this mod (and put the translated textstring in cust_text.php) the problem is back. Please help Bernard
  11. SiEiNo

    Suggest tab . . . .

    Hi, After upgrading to TNG v11.0.0 the "Suggest tab" is missing. I've had several looks on my language files. The file "$text['suggest'] = "Suggest"; " is there - in Norwegian ("Forslag") files as well. My Sites language is set to Norwegian ISO-8859-1, both in Adm.section and the user interface. I've tried to change to English, but that gave no solution. But suddenly after having installed the mods 'Submit Photo/Document' and 'Submit Photo Tabs' the 'Suggest' tab could be seen taken the place of the 'Edit' tab. But this happens only when I use the 'Submit Photo/Document' tab. What happens / what can be done? ENo
  12. My menu icons don't give correct views. Any ideas . . . ? ENo
  13. After upgrade to version 11, the Family Chart won't work. Earlier I used the Family Chart Mod. ? ENo
  14. marcirish

    Mobile website issues

    Good Folks, My TNG website works wonderfully and has been modified to show things the way I want.  However, when I access the site on a mobile device (iPad or iPhone) I run into issues  The site loads just fine on the mobile devices but I after I select a person to view I have issues.  The person's individual information displays correctly but none of the links in the menu items or links in the person's record work.  Does anyone have any suggestions about how to debug this issue?  My website is: http://marcirish.com/genealogy/index.php Thanks in advance. Marc
  15. I've just released Citation Master v10.0.2.6 and v10.1.0.6 for TNG 10.0.2 - 10.1.3. The version includes code changes that disambiguate some duplicate functions in order to support compatibility with the Regroup Person Profile series of mods and other similar mods. I've also included some pale branding on source browsing page to help me to determine what versions are installed across the TNG community. v10.1.0.6 and v10.0.2.6 are suggested, but not required, updates for Citation Master. If, however, you never installed the version 5 functionality (v10.1.0.5 or v10.0.2.5), I recommend installing this update. As always, the Wiki page is here. Bill Herndon Lindell-Herndon Genealogy
  16. Katryne

    Php 7 and ereg

    Hello ! My hosting provider 1&1 makes me upgrade the php version for my web site, unless I pay some extra 76€ per year. I had to choose between php 5.6 and 7 and selected php7 in order to keep safe for a while. All my websites do run correctly now under php7, or so I believed until TNG showed some difficulties (in editing a report in this example) because of some ereg functions which are obsolete since php5.3. So I ran HandyFileTools over my TNG backup and found 147 ereg and 141 split, that should be replaced. (I am sure for the ereg, not for the split.) I did manage in other cms to replace half a dozen ereg functions. Here is what I noted down (in French) 4 or 5 years ago when I used to make my websites compliant with php 5.3 : http://katryne.legtux.org/pages/023-fabriquer-le-web-passer-la-toise-du-php5-fr.php But I am no coder and do not dare such a huge fork of TNG. What advice can you give me ? Do you think I will encounter other problems than the report-editing issue ? Do you think that TNG should need some update concerning the new php compliance ? (Please, excuse my language, I may sound blunt, but English is not my mother tongue) Here is my web site (sorry, nearly every page is for members only) : http://clan.chauvigne.info/index.php or included in my main site : http://chauvigne.info/geneakat.php Thank you in advance for advice and help.
  17. MoMalloy

    Requiring LOGON on custom page

    I am using TNG 10.0.2 utilizing Template 5. I have not modified pages before, not real familiar with PHP. I have created the page and it works, but now I want to require the logon. Link will apear in my menu on the home page.  Part 1: How do I modify the code to require authentication (code attached).  Part 2: If the user does not have a logon, I want the user to be prompted that authentication is required. Is there already a page for this or does one need to create one. Code.html
  18. john_rogers

    Person's Name in Pedigree

    I want to modify how a person's name is displayed in pedigrees, specifically, I want to incorporate the nickname field somehow. Can someone please point me to the file and line of code where the person name in the pedigree is defined? Thanks, John
  19. Hi, I've been trying to rework the 'surname_cloud.class.php' file to pull from a specific branch. I've had minor success but this code restricts the number of surnames to only 6 when there should be at least 50.... I only have 1 tree on my site=tree1. The branch name=priecamp. The cloud is at the bottom of this page... http://www.whakapapaonline.com/priestleyhome.php Any ideas? Method: display($top, $surnameTree, $surnameBranch) - generates html code to display the surname cloud Parameters: $top - number of names to put in the cloud (default is 50 names) $surnameTree - limit names from this tree (default is "" which means all trees) $surnameBranch - limit names from this branch (default is "" which means all branches) */ function display($top="50", $surnameTree="", $surnameBranch="priecamp") { global $people_table, $text, $lnprefixes; $treeBranchUrlString = "&amp;tree=$surnameTree"; // If you have surnames you wish to exclude enter them here $wherestr = "WHERE lastname<>\"\" AND lastname<>\"Unknown\"AND lastname<>'[--?--]'"; // Ignore these last names $more = getLivingPrivateRestrictions($people_table, false, false); if($more) { $wherestr .= $wherestr ? " AND " . $more : "WHERE $more"; } if ($surnameTree != "") { $treeString = "gedcom = \"" . $surnameTree . "\""; $wherestr .= $wherestr ? " AND " . $treeString : "WHERE " . $treeString; $treeBranchUrlString .= "&amp;tree=$surnameTree"; } if ($surnameBranch = "priecamp") { $branchString = "branch = \"" . $surnameBranch . "\""; $wherestr .= $wherestr ? " AND " . $branchString : "WHERE " . $branchString; $treeBranchUrlString .= "&amp;branch=$surnameBranch"; } 
  20. Merv

    In Memoriam Display

    Posting this in the hope that I could get the code to add an "In Memorial" display on my site like the one that Roger "The Kiwi" has at the top of his website... http://genealogy.clanmoffat.org/index.php Would add a nice touch to any site in my opinion
  21. Jan Bastiaanssen

    Different showing of sources

    In de getperson.php are shown (if available) sourcenumbers between [ ] Instead of jumping down the page and click it again i would like it to show the source itself (in a popup-window) just by hoovering over it. I have not a clue of how to do this, any help would be very welcome. Jan www.bastiaanssen.us  
  22. smh

    Custom Menu Warnings

    I am trying to add a custom drop down menu that will go back to the wordpress home page.  I have added the following code to customconfig.php. $custmenu['title_index'] = "back"; $link_nr=0; $custommenulinks[$link_nr]['target'] = "../../"; $custommenulinks[$link_nr]['label_index'] = "hr"; $custommenulinks[$link_nr]['external'] = true; The link works, but the following messages appear in the header: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/.../.../customconfig.php:54) in /home/hammit6/public_html/genealogy/begin.php on line 28 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/.../.../customconfig.php:54) in /home/hammit6/public_html/genealogy/begin.php on line 28 Warning: Cannot modify header information - headers already sent by (output started at /home/.../.../customconfig.php:54) in /home/hammit6/public_html/genealogy/genlib.php on line 57 Surname List: Hammittroots.com       I was able to add the drop down menu and links in the local version (wampserver) with no problem, so I am not sure why there is an issue on the live site. Any help would be appreciated!! Thanks in advance, Susan    
  23. The TNG article WebApps - The Least You Need To Know is a good start; it talks about the <?php ...?> syntax, but I was just talking to a new TNG user who doesn't know PHP (or programming) at all, but wants to make some simple HTML changes.  Does anyone knows of a very basic introduction to PHP that covers just enough to allow a non-programmer who knows HTML & CSS to edit HTML code within TNG PHP files. I've looked for a PHP tutorial about which I could say "Read the first 5 articles", or something like that, but they all get into more that the non-programmer needs to know before they cover everything that the non-programmer does need. Here my start of an article outline: The general syntax of a PHP file, which is essentially an HTML document with embedded PHP code that runs on the server and generates HTML, CSS, and JavaScript code, resulting in transient HTML document - i.e one that exists only as it is being downloaded from the server to your PC. When PHP is processing a PHP file, when it sees "<?php" it goes in to "PHP mode" and expects to see PHP code instead of HTML.  Then it sees "?>", it goes back to HTML modeThe php "echo" command, which how you send text to the HTML document when you are in PHP mode. The PHP if-then-else structure which is used to display one block of HTML code if a logical condition is true, and another block of HTML code if that condition is not true.  You don't necessarily need to write if-then-else structures; you just need to understand the structure so that you can be sure to put HTML code where it is needed.The very basics of PHP arrays and strings, so that you can understand how PHP programs refer to the elements of a template or the elements of a database record when displaying information (i.e. when sending text to the HTML document).A reference to the Wiki's mod tutorials.Is that broad (or narrow) enough?
  24. dennis800121

    Statcounter in footer.php

    Help!! I would love to have a visit counter on my page. I have been using googles analytics but i dont like it. I found statcounters counter and got the code that i want to put in the footer.php but the code is in HTML and not PHP. How do i solve this? I just want a counter on the bottom on my page The code i got from statcounter is this: #####################################################<!-- Start of StatCounter Code for WordPress (either .com or .org) --><script type="text/javascript">var sc_project=10544563;var sc_invisible=0;var sc_security="b635080d";var scJsHost = (("https:" == document.location.protocol) ?"https://secure." : "http://www.");document.write("<sc"+"ript type='text/javascript' src='" + scJsHost+"statcounter.com/counter/counter.js'></"+"script>");</script><noscript><div class="statcounter"><a title="shopify analytics ecommercetracking" href="http://statcounter.com/shopify/" target="_blank"><imgclass="statcounter" src="http://c.statcounter.com/10544563/0/b635080d/0/"alt="shopify analytics ecommerce tracking"></a></div></noscript><!-- End of StatCounter Code for WordPress (either .com or .org) -->##################################################### Please, can someone help me!
  25. Skjoldhoj

    Problems with Php 5.6

    After my TNG hosting company has upgraded to Php version 5.6 I cannot login with any user, the program hang. Same happend with Contact me and Language switch, the program hang. It started when I was running TNG 10.1.0. After upgrade to TNG 10.1.2 the problem still exist. Any problems with TNG and Php 5.6? Regards Peter   My web site is in Denmark http://peter-skjoldhoj.dk/TNG/index.php If you try to login, the system hangs. It happend with all userlogin and also my Admin login (user psk, password Adelgunde), With no login I'm really helpless.  The system also hangs if you try to select language. Help needed.
×