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 115 results

  1. I would like to replace the links to his and her sides of the family tree with personalized links based on who is logged in. It appears that this mod has been done previously. Question: It has been a long time since I set up my site and I have done virtually nothing to it since setup. I would like to make this modification, but am at a loss as to how to accomplish it. Can someone help me with how to make this change? Please provide a step-by-step approach if you have the patience. This mod: https://tng.lythgoes.net/wiki/index.php/My_User_Links_Add-on This thread: https://tng.community/index.php?/forums/topic/12161-mod-wanted-or-code/&tab=comments#comment-57912 My site: http://www.garyconniefamilytree.net/index.php My server (if it matters): I am using SimplyHosting. Thank you, Gary
  2. Hello, I am looking for option to give a user acccess to sone branches, not only one? ENo
  3. Hi All, Attached is a text file with the SQL code I use to produce the figures for the 52 places and 4 perishes pointed to at the map on this site index page https://botebygden.se (If you have trouble understanding what I do, because it's only in Swedish; just ask and I'll explain) As you will notice, the map takes quite some time because of all the number collecting (it's really quick w/o the DB calls). And this is only a 690 persons DB... Every new figure is a DB call so it's 4 perishes x 3 events (below the map) and then 52 places x 4 events (list to the right of the map). My hope is that the SQLs can be combined or something to increase the speed and to be able to handle a bigger register. But I don't know SQL so well so I'm looking for help. Thank You In Advance, for any help or idea, Erik botebygdenSQL.txt
  4. Hi All, I created my first page in TNG today (an FAQ for visitors to my site). However, there was one thing that was frustrating and I am wondering if I could have done something differently. How do I chose the right size for the images without guessing a bunch of times and reloading the page after each adjustment. What is a good size for images that works? (width = , height = ). Here's what I did. I altered the template for a page as directed in the creating user pages documentation. I captured images I wanted to use with screenshots in Windows 10 (and then I edited the images (cropped, put in circles or underlining)). I used an online WYSIWYG HTML Editor for the text and inserted the images accordingly. I guessed on the sizing of the images and then changed them as I saw fit. I cut and pasted the code into the right place on the page blank. I uploaded the changes to the site, and all came out well, except the images are kind of different sizes. How do I fix that? Check out the page I created if you like: https://landgen.us/extrapgs/User FAQ.php Thanks for your help! Best, Bob
  5. Hi, I'm trying to turn off the use of templates to better customize the homepage (index.php). But, since I already have some useful text stored in the templates, I was wondering if its possible to access them without using templates directly? And maybe there will be some better ways to use text in the customized homepage without storing it in the index.php file itself? Best regards Jastro
  6. zanger02

    Template 18 - links on home page

    I'd like to add more links to the right of the existing links on the home page. No matter what I try the extra links don't show or they are duplicates of the first two. TNG v12.1 and template 18. Not sure what I'm missing. I'm a developer but I'm really new to PHP. Before changes <?php include($cms['tngpath'] . "surname_cloud.class.php"); $flags['noicons'] = true; $flags['noheader'] = true; $flags['nobody'] = true; $tngconfig['showshare'] = false; tng_header( $sitename ? "" : $text['ourhist'], $flags ); if(!$cms['support'] && $sitever != "mobile") echo "<body id=\"bodytop\" class=\"" . pathinfo(basename($_SERVER['SCRIPT_NAME']), PATHINFO_FILENAME) . " homebody\">\n"; $dadlabel = getTemplateMessage('t18_dadside'); $momlabel = getTemplateMessage('t18_momside'); ?> <div class="theader"> <div id="thomemast" class="mast"> <h1><?php echo getTemplateMessage('t18_maintitle'); ?></h1> <span class="tsubtitle"><?php echo getTemplateMessage('t18_headsubtitle'); ?></span> </div> <div id="tmenu"> <ul> <?php if($dadlabel) { ?> <li><a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t18_dadperson']; ?>&tree=<?php echo $tmp['t18_dadtree']; ?>"><?php echo $dadlabel; ?></a></li> <?php } if($momlabel) { ?> <li><a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t18_momperson']; ?>&tree=<?php echo $tmp['t18_momtree']; ?>"><?php echo $momlabel; ?></a></li> <?php } echo showLinks($tmp['t18_featurelinks'],false); ?> </ul> </div> </div> I tried adding two more links ............ $dadlabel = getTemplateMessage('t18_dadside'); $momlabel = getTemplateMessage('t18_momside'); $stepdadlabel = getTemplateMessage('t18_stepdadside'); $stepmomlabel = getTemplateMessage('t18_stepmomside'); ............ <?php if($dadlabel) { ?> <li><a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t18_dadperson']; ?>&tree=<?php echo $tmp['t18_dadtree']; ?>"><?php echo $dadlabel; ?></a></li> <?php } if($momlabel) { ?> <li><a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t18_momperson']; ?>&tree=<?php echo $tmp['t18_momtree']; ?>"><?php echo $momlabel; ?></a></li> <?php } if($stepdadlabel) { ?> <li><a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t18_stepdadperson']; ?>&tree=<?php echo $tmp['t18_stepdadtree']; ?>"><?php echo $stepdadlabel; ?></a></li> <?php } if($stepmomlabel) { ?> <li><a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t18_stepmomperson']; ?>&tree=<?php echo $tmp['t18_stepmomtree']; ?>"><?php echo $stepmomlabel; ?></a></li> <?php } echo showLinks($tmp['t18_featurelinks'],false); ?>
  7. I am doing a simple mod to my site that will show who was born or died on todays date. I got it working and get a list of people that is added to the topmenu.php file. My problem is that I also want the names in the list to link to the getperson.php page for more information on that person. This is the code I have echo '<a href="getperson.php?personID=' . $row['personID'] . '&tree=' . $row['gedcom'] . '">' . $row['firstname'] . ' ' . $row['lastname'] . '<br>' . $row['birthdatetr'] . '</a></p>'; This will give me: Parse error: syntax error, unexpected ' ' (T_STRING), expecting ',' or ';' in your code What makes this even more frustrating is that exactly the same line of code works perfectly in Joomla that runs in parallell with my TNG site. I have also tried different variants. If I run it without the HREF it will show the names, see screen shot. This line is in a While loop and if I don't do that loop it will show correctly the last line with working link. Below is the whole thing $query = "SELECT * FROM `tng_people` WHERE DAYOFMONTH( birthdatetr ) =$daynumber AND MONTH( birthdatetr ) =$monthnumber AND YEAR(`deathdatetr`) != 0000 ORDER BY birthdatetr"; if($result = mysqli_query($connection, $query)){ if(mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_array($result)){ echo "<p>"; echo '<a href="getperson.php?personID=' . $row['personID'] . '&tree=' . $row['gedcom'] . '">' . $row['firstname'] . ' ' . $row['lastname'] . '<br>' . $row['birthdatetr'] . '</a></p>'; } } } I'm not a PHP expert but I can normally get it done, this is above my skills. Appreciate any help, thanks.
  8. Having run a commercial site in the past, I like to give users a heads up if there's server performances issue or if I plan maintenance...just out of courtesy. I try to avoid sending emails out to this effect, so I have come up with some code I am going to use in my index.php file of the template I use whenever I need to.... So they'll see this and be able to dismiss it when they come to the home page. I think it would be great to put this in as a part of TNG itself...I could find myself using it for a lot of other things, like announcing more images etc...just to add a bit of excitement? I'm suggesting an alert that can remain on for a number of days, when you choose to use it, and before you put the site into maintenance mode. Phil
  9. I'm using template 18 and at the top of the front page, I want a link that says "Log In". When the user clicks that and logs in, I want the text to change to 2 links..."Most Wanted" and "Log Out" The great news is that on the front page, I have figured out the code. I have added this code to /templates/template18/index.php So I got that going and it works perfectly on the main page of the site. But when you move away from the main page, that all disappears. I realised that I need to edit /templates/template18/topmenu.php also for the rest of the sites pages. But this is where things start to go weird. Inserting the same code into the top menu file, it works in the exact opposite way to what you expect...it suggests you log in, when you already are. It's not picking up that currentuser variable. If I try using !$currentuser (and I'm not sure why I would) it also kind of works. On top of that, I have some histories pages that are available without login in, and it seems to ignore the fact that those don't require login. My site is a private site and still under development, so I can't share the link. All users are required to login to view any content, except a few history pages that I mentioned. TNG v12.2 Thanks, Phil
  10. Hi all, Fairly new to this. It's been a long time since I messed around with web pages. I've installed Template 15 and it has the featured articles with headers and the sidebar feature articles with headers. I've modified some of what appears there and I've looked around before posting, so my question is to add a new feature 'article' or feature post, do I need to edit the features.php (I think that's what the file is called) and add what i need, just as I would when creating a new web page? I did see something in the tutorials or wiki pages about modifying the code, but wasn't sure if it pertained to this, or something else. Also, would just adding a page feature1.php ; feature2.php etc be what I need to call the content from those pages to add to the feature 1, feature 2, sidebar feature 3, 4, 5 etc? Or should I be following this instruction for histories?: https://tng.lythgoes.net/wiki/index.php?title=User_Pages_-_Getting_Started I found it last night but I can't for the life of me find the features.php instructional. Basically, I want to be able to add the article that I've got to a page and keep it looking somewhat like the rest of the TNG site with the template colors etc. If I modify the colors, cool, but at the moment that's purely aesthetics and I have MUCH to do! Thanks in advance. Raewyn.
  11. LJLachance

    GDPR Popup "template?" Customize

    I want to modify the size and shape of the GDPR popup AND add an icon to the popup as well. Where will I find the size and shape defined in order to attempt to accomplish these changes? I have found that I can change the "layout" in terms of color etc., in mytngstyle.css as well as changed the wording in the Cookie Notes text of the languages but cannot find where the actual size and shape is defined. Thanks for any help.
  12. Hi all; I had posted this in another, older, thread but decided perhaps it should be here. Forgive me for any duplication. I'm still struggling to get the Simile Timeline to work properly. I've made the changes referenced earlier in this thread, in terms of changes to the history_html file, and by installing the revised Timeline by SKDavis. I much appreciate all the help. Here are the errors that are showing on the page. Can anyone help me with these errors, or point me to things to read or learn that might help me? simile-ajax-bundle.js:1541 TypeError: Cannot read property 'documentElement' of null "XmlHttp: Error handling onReadyStateChange" I have additional errors - similar verbiage - that I did not include, just for brevity. If I can find the error in this one, perhaps it will lead to the solution in the others. Maybe? Thanks for any help or direction. Mike
  13. Hi all, There's something off with my index.php page and I'm hoping some kind soul will help me understand how to fix it. If you hover over the top drop-down menu you'll see what I mean. https://thechosenscribe.uk/genealogy/index.php Thanks in advance Laura
  14. jimatpdx

    mytngstyle.css modification

    I am trying to run TNG hooked to Wordpress with the plugin. I understand that I can't use TNG templates and that I need to modify the mytngstyle.css file. With no modification the TNG page just looks like what is shown below. The WIKI says "The mytngstyle.css overrides the TNG following TNG style sheets: genstyle.css the default TNG style sheet when you do not select a template templatestyle.css the template override style sheet tngtabs1.css tngtabs2.css" My problem is that I have no experience with css files and don't know where to start modifying the mytngstyle.css file. Any suggestions would be appreciated. Jim Stevens Home Page Welcome, Administrator. Search Last Name: First Name: Other Features Log Out Register for a User Account Advanced Search Surnames Bookmarks Statistics Photos Histories Documents Videos Recordings Albums All Media Cemeteries Headstones Places Notes Dates and Anniversaries Reports Sources Repositories What's New Most Wanted Change Language Access Log Administration Contact Us Please customize this page! © 2019
  15. When someone registers using the new account form both the person AND I receive (as I've set it up) an acknowledgement email. In MY (Admin) email, I've got all the wording the way I want it BUT, at the bottom of the email I receive (the New TNG user registration request) is a link to Administration showing http://mysite/admin.php. I want to change that link to http://mysite/folder1/admin.php. Where can I find this link to change it? In the User Acknowledgement email where I thank them for registering, once again, I have all the wording the way I want it BUT, at the beginning we have HELLO (which I know how to change) and then the persons full name, as they entered it on the registration form. I want to use JUST the persons first name, not first and last. Is there a way to make this happen? Thanks for your help on this.
  16. I am very new to HTML - I'm having to learn it because I want to create history pages based on historytemplate.php, and I need to be able to format my text etc so it looks good on screen. At the moment I have two history files, the first (rogues1.php) was created by converting a Word file from Word into HTML, and copying the html into my new file. This has resulted in a lot of messy code, but thanks to Newfloridian some of this has been stripped out. The second (jamesmcaleerstory.php) was created by copying and pasting the contents of another Word document directly into a second php file, and starting the formatting from there. This is a much tidier file. Both are still very much a work in progress, so please be understanding. I've been using the forums and online HTML tutorial where I have been able to find something that seems to be what I want, but sometimes I can't find an answer that works, and other times it seems to work in one file and not another. I'm sure I am going to be posting a lot of queries for help in the next few weeks, but my first two questions are these: 1. Why do the two files handle single and double quotes differently from each other? In one (rogues1.php), I can just enter them directly and the display perfectly - as in father's or "The Flight of the Allens". In the other (jamesmcaleerstory.php) this produces and error - so here father's appears on the page as father’s. In this file I have to use codes &#39; and &#34; . However, there is at least one example in this same file where I have typed "Peter's" in the html document and it appears exactly as that with double and single quotes which is exactly what I wanted! 😩 2. My second question is about center-justifying text - ie so that text ends neatly on both sides and is centred in the middle of the page . This will apply to various quotations that I've included like a newspaper article extract in rogues1.php and a quote from a letter in jamesmcaleerstory.php. I found out how to produce the newspaper extract in two columns, which I liked but have since taken out, but it still didn't justify the text on both left and right. The files are attached and can be viewed on my website at http://parcel-of-rogues.org.uk/parcel-of-rogues/histories/rogues1.php and http://parcel-of-rogues.org.uk/histories/jamesmcaleerstory.php Username: Guest; Password: Familyfriend Can anyone help please? Thank you Sharon rogues1.php jamesmcaleerstory.php
  17. SharonM

    Help with custom History page

    I am trying a different way of recording Features and Histories on my site. I have created a custom page using Historytemplate.php, and so far have managed to get the title, font size, and temporary image as I want them. I have also added a link to a person page. I have been referencing the Wiki pages here, as well as getting additional help from HTML/PHP coding tutorials on the internet, but basically all I have done is copy and paste lines of code which I've found, which seem to be doing the sort of thing I want. So far so good. Now I want to add a link to open a pdf file, in the same way that I added a link to go to a person page, but I haven't been able to find a way to get this to work. I've put a copy of my code below (minus a large section of the text to save space). The code which is causing the problem is highlighted in bold - I've tried to use <a href ...> to make the link as the php code in the link to the person page completely defeats me, and inserted html seems to work elsewhere on the page. For testing/trial purposes I've also put the link in as a seperate line, so that I can identify it easily amongst all the other tags. The finished version would have this code in the previous paragrah, where the book is named. I should add that the custom template is in the Histories folder, and the document is in the Media folder (same location as the image already inserted successfully) I should also add that for the moment, the pronblem code has been renmoved from the php on my site, so that it looks and works OK until I can get this resolved. My site is in TNGv9 (for the moment) and is at http://parcel-of-rogues.org.uk/index.php It's locked down, but you can access the site with username "Guest" and "Familyfriend" if you need to. The page is can be accessed from the Features section on the right hand side, 2nd from bottom in that section, "Defrauding the Government" Many thanks for your help. <?php //Remove the following two lines before deploying copies of this file to the "histories" folder. //Replace all the "include" lines in your pre-5.x histories with the following lines (up to the next comment) include( "../begin.php"); //Nuke users must include "../../../begin.php" here if( !$cms['support'] ) $cms['tngpath'] = "../"; include($cms['tngpath'] ."genlib.php"); include($cms['tngpath'] ."getlang.php"); include($cms['tngpath'] ."$mylanguage/text.php"); tng_db_connect($database_host,$database_name,$database_username,$database_password) or exit; include($cms['tngpath'] ."checklogin.php"); include($cms['tngpath'] . "log.php" ); //end of new include lines $logstring = "<a href=\"histories/millenium1.php\">Defrauding the Revenue - Alfred & Dennett Allen</a>"; writelog($logstring); preparebookmark($logstring); //Note: histories created this way may function differently that other histories when placed in an "album". If that is annoying to you, consider creating //your history by pasting the text into Admin/Media/Body Text instead. // Remove the comments (leading slashes) on the next line if you don't want the TNG menu icons to show on your history page. //$flags[noicons] = true; tng_header( "Defrauding the Revenue - Alfred & Dennett Allen", $flags ); ?> <p class="subhead"><strong><font size="3">Defrauding the Revenue - Alfred & Dennett Allen</font></strong></p> <p class="normal"><font size="1"><i>The following article is by <a href="<?php echo $cms['tngpath']; ?>getperson.php?personID=I438&amp;tree=tree1"><b>William Albery</b></a> of Horsham. It first appeared in the <br> Sussex County Magazine, 1934 and later formed the basis for the chapter on Smuggling <br>in his book <b>A Millennium of Facts In the History of Horsham and Sussex 947-1947</i> </b>, published 1947.</p> <a href="../media/hist_William Albery Millennium chapter on Allens.pdf><b>A Millennium of Facts In the History of Horsham and Sussex 947-1947 </b> </a> <img src="../media/William Albery 2 Images of Horsham Susan Djabri.jpg" hspace="5" style="width:400px;height:300px;padding: 0 15px;" border="0" align="right" /> <div align="justify"> <p> A system of defrauding the Revenue was successfully carried on over ten years by two brothers, Alfred and Dennett Allen, maltsters and farmers. Alfred the elder, lived at Horsham near his malthouse in Springfield Road; Dennett, the younger, lived at Gay Street, West Chiltington. Both were steady and keen business men who were able to make honest trade pay. Precisely at what period of time they began cheating the Revenue is not known, but it was certainly at a time when such an act would trouble the consciences of but few business people. Moreover, it was soon evident that it paid well, a fact that would be sure to resist successfully any amount of moral promptings that might attempt to intrude into the business world. To the businesses carried on at the Horsham and Chiltington malthouses were added later, one each at Worthing, Mulsey, near Pulborough and Adversane - Five malthouses and three farms altogether, with plenty of financial means for carrying on a large trade. </p> ....removed content here..... <p>The trial came before the Chief Baron and a special jury at the Court of Exchequer, King's Bench, on the 16th June. The case against each of the absent Allens was gone into separately. The Attorney-General, Sir F. Thesiger, Mr Wilde Q.C., and Mr Bevan prosecuted for the Crown and Mr Collins and Mr Brown defended. There were thirty counts in the indictment, to which there was no defence. The Chief Baron said he had never heard of so flagrant and extensive a case of fiscal dishonesty as had been made out that day by the Crown against the defendants. The jury found the defendants guilty and although they were liable to a fine of &pound;370,000 the Solicitor General consented on behalf of the Crown to a fine of &pound;110,000. Had the Allens not escaped they would be in default of paying the fine have been imprisoned during Her Majesty's pleasure, but they were perfectly safe, and well-to-do to boot, in America, as the American Government would not, at that time, surrender men convicted of fraud. After a time, however the Solicitor General, upon the principle that half a loaf is better than no bread, reduced the amount of the fine to the odd &pound;10,000, which amount the Allens paid and so restored themselves to their country and their friends.</p> </font> </div> <?php tng_footer( "" ); ?>
  18. I am using template 18. Utilizing my limited knowledge of java-script and what I could look up on the internet, I created a script that uses some dom-manipulation to load 19 pictures of individuals over the main image on the home page so that it would resemble a montage of photos kind of laid about. It makes each photo a link to that individuals page. Each photo is of a deceased person in the tree. By using Adobe Elements I was able to make sure each photo was of a very small byte-size to reduce the time it took to load these images. I struggled trying to decide the best place to load and run this script and decided based on what I read on various websites, that the best place was as near the closing body tag as possible. Of course on TNG pages this would be the footer. After a few attempts to create a custom footer failed because they had no effect, I discovered that I could easily plant a script there just by putting in at Admin > General Settings > Site Design and Definition > Custom Footer message. It works. My question: Is the fact that it seems to work good enough? Is this best way to add script there using a text-box that was clearly meant to add text to the footer? Incidentally, the script checks to see if this is the home page and if so, to load another script that loads the pictures. var script = document.createElement("script"); script.type = "text/javascript"; if (document.title == "Our Family History") { script.src = "templates/template18/customloadpics.js"; } document.body.appendChild(script) What is the best way to put a script like this in the footer? Thanks, James Brown https://thebrownfamilytree.info
  19. wmpbrown

    How can I move "Contact Us"

    I want to move Contact Us to the empty space below. I'm using v11, template 10. Please include a screen shot of the code placement so I don't get it wrong.
  20. Bruce Roy

    Report formulas not working

    I have had several reports listing births/deaths/marriages in the last 12 months using the formula: ( Convert to Days Today (true date) - Convert to Days Birth Date (True) < 366 ) but they now produce an error code which I don't understand! An error has occurred in the TNG software. This could be due to a setup issue, an incomplete upgrade or a program bug. If you are the site owner, you may contact TNG support for help with this problem. Please copy the query below and paste it into your message. Query: SELECT tng_people.living, tng_people.private, lnprefix, prefix, suffix, tng_people.branch,lastname,firstname,birthdate,birthplace,treename, tng_people.personID, tng_people.gedcom, nameorder FROM (tng_people , tng_trees) WHERE (( TO_DAYS(todayDATE_ADD(NOW(), INTERVAL 15 HOUR)) - TO_DAYS(birthdatetr) < 366 )) AND tng_people.gedcom = "rr_tree" AND tng_people.gedcom = tng_trees.gedcom ORDER BY birthdatetr,lastname,firstname LIMIT 200 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')) - TO_DAYS(birthdatetr) < 366 )) AND tng_people.gedcom = "rr_tree" AND tng_pe' at line 1
  21. I seem to be having a coding problem. I'm trying to add a caption to an image in my history page. I would like the caption to be beneath the image and would like to image to be all the way to the left. Can anyone help me with the correct code to move the image to the left margin and the caption centered beneath it? Thank you, Kate
  22. Brett

    Identify Mods affecting pages

    Recently there have been some forum posts regarding conflicts on some sites, mainly due to Mod changes. It is not always easy to identify which Mods affect which pages. I would like to highlight Show Mod Names by Robin Richmond as a working solution. Show Mod Names lists mods (utilising the Mod) that affect the files used by the running program. While it does not identify errors, it can save some time, as it is not as necessary to uninstal all the Mods when finding the error Mod. It is only needed to uninstall those Mods affecting the page the error occurs on. If Mod developers would look into incorporating this into their Mods, it could benefit TNG admin users in identifying or reporting error detail. An example on the getperson.php is shown. No details print and the view is only available to logged in Admins.
  23. Hi everyone, On both the Registration form and the suggest form there is a link to the Data Protection Policy. My question is how I can accomplish some extra space between the Data Protection Policy link and the text above is. In my opinion it is squeezed together to much at the moment. Kind regards, Rob Severijns
  24. KmBdev

    Using History template

    I have followed the directions in the historytemplate.php. I get a -- Fatal error: Uncaught Error: Call to undefined function writelog() in E:\wamp64\www\histories\extrapgs\salemtrials.php:35 Stack trace: #0 {main} thrown in E:\wamp64\www\histories\extrapgs\salemtrials.php on line 35. The code is as follows: $yourlink = "/extrapgs/salemtrials.php"; $logstring = "<a href=\"extrapgs/salemtrials.php\">Salem Witch Hysteria</a>"; writelog($logstring); preparebookmark($logstring); Could anyone inform me of what the error is? I have been struggling with this. Thank you.
  25. Hello TNG team, I have a clean install of v. 12.0.3 and do not have any integrations, a couple small mods from the Community here is all. I was playing with New User Registration and noticed the following behavior. After the description is a proposed fix. Thank you for reading this. I look forward to the replies. ---Bob https://spanel.familyds.com/tng Pre Conditions: New user follows the Registration link and successfully submits a valid request. Procedure: The admin reviews the newly submitted access request and changes the username to something different than user submitted. Admin checks box to notify user upon activation with email. Admin submits (approves) the new registration. Post Conditions: The approval email is successfully generated, however the user name contained within is wrong. Instead of the modified user name the Admin approved, TNG continues to use the user-submitted user name. BUT the user name in the TNG database is properly changed to the Admin-approved text. Proposed design: Modify the User Review page with a listener on the field for user_name. If it is modified, the text that is used in the email is dynamically re-generated. This must apply whether or not the check box to notify user has been checked or not. Then, according to my understanding of how the current code works, the generated email notification will contain the correct user_name data matching the database. This design will allow the user to verify the text in the email that will be sent upon submission. Especially helpful for people that make small tweaks depending on who is registering.
×