Jump to content
TNG Community
Janos Dibusz

Planner

Recommended Posts

Janos Dibusz

There is no connection to the database, but don't know why.
The TNG 10 change anyting fode connection, but I don't know change
So If somebody can repair this 2 files for my, I'm very happy.

Share this post


Link to post
Share on other sites
Merv

Hi, Try replacing all the instances of mysql_xxxxx (where xxxxx is query or result etc) with tng_xxxxx  Also, all instances of mysql_fetch  to tng_fetch.

Share this post


Link to post
Share on other sites
theKiwi
16 hours ago, Janos Dibusz said:

I have a new idea. TNG 8 is work, TNG 11 not work.
http://dibuszfamily.com/planner.php

Somebody can help for my?

If I search for 

Dibusz in one of the boxes it shows a chart with every box called Unknown.

What do you expect should happen on this page.

Where did this page come from - it's not part of a normal TNG installation.

Roger

Share this post


Link to post
Share on other sites
Janos Dibusz

Hi

I would like add a new details for this, but I not have idea how I do this:

Affter lastname I would like see the firstname also.

Somebody can help for my? Thanks.

//Get people for autocomplete
if(!empty($_POST['tree']) AND $_POST['tree'] != '-x--all--x-') {
    $query = "SELECT personID,lastname,suffix,gedcom FROM $people_table WHERE sex = 'M' AND gedcom = '". $_POST['tree'] ."' ORDER BY lastname";
} else {
    $query = "SELECT personID,lastname,suffix,gedcom FROM $people_table WHERE sex = 'M' ORDER BY lastname";
}
$males = tng_query($query) or die ($text['cannotexecutequery'] . ": $query");
$malesstr = '';
while($row = mysqli_fetch_row($males)){
    //remove '-s and "-s
    $row[1] = str_replace("'", "`", $row[1]);
    $row[1] = str_replace('"', "`", $row[1]);
    
    //generate JS array
    if(!empty($row[2])) {
        $malesstr .= "'" .$row[3] . '-' . $row[0] . " " . $row[1] ." (". $row[2] .")',";
    } else {
        $malesstr .= "'" .$row[3] . '-' . $row[0] . " " . $row[1] ."',";
    }
}

Share this post


Link to post
Share on other sites
Merv

Hi,

I'm not sure exactly what you are asking however if you would like the surname to display first on your site you could try this...

Administration>> Set Up[>> General Settings>> Names>> Name Order>> Surname first>> Save

Share this post


Link to post
Share on other sites
nacsaszta

Van még valaki, aki magyarra fordította, vagy fordítani akarja? .Én most vettem meg a 13.0.1 verziót. Merv webhelyén látom, hogy Nála működik a Mobile View & Touchscreen, én men találom, hol lehet ezt láthatóvá tenni. Segít valaki? A fordítás kb. 90 százalékig kész, most kezdem az ellenőrzését, a magyar nyelvhelyesség sajátosságai miatt.

Is there anyone else who has translated into Hungarian or wants to translate it? I just bought version 13.0.1. I can see on Merv's website that he has "Mobile View & Touchscreen", I can find where to make it visible. Does anyone help? The translation is about 90 percent complete, I'm starting to check it now, due to the peculiarities of Hungarian grammar.

Share this post


Link to post
Share on other sites
bhemph

Merv has made a customization to add the "Mobile View & Touchscreen".  Another user who has made a similar customization is Ron https://www.kmtrees.com/ who has "Switch to Mobile view" as his text at the top and bottom of each page.  Both are links that point to the page with ?sitever=mobile on the end of the page address.  Merv's change would be to the template index page from the looks of it, while Ron's is a change to the template header and footer so that it can appear on each page.

Share this post


Link to post
Share on other sites
Merv
On 11/24/2020 at 2:27 AM, nacsaszta said:

 I can see on Merv's website that he has "Mobile View & Touchscreen", I can find where to make it visible.

Yes it is just a link to the mobile site. It was just for testing purposes that I have never got around to removing.

The *Switch to Mobile view" is the better way to go.

Share this post


Link to post
Share on other sites
nacsaszta
15 hours ago, Merv said:

Yes it is just a link to the mobile site. It was just for testing purposes that I have never got around to removing.

The *Switch to Mobile view" is the better way to go.

Thanks Merv! :)

Share this post


Link to post
Share on other sites
tngrlkrz
On 11/23/2020 at 8:36 PM, bhemph said:

Another user who has made a similar customization is Ron https://www.kmtrees.com/ who has "Switch to Mobile view" as his text at the top and bottom of each page

I just published the Switch_Mobile_or_Standard mod which was assembled from the private code   for the 'switch mobile display'  or 'switch standard display' buttons. 

Edit Options let you choose button locations:

  • Footer Only = 0
  • Header Only = 1
  • Both Header and Footer = 2

No template files are modified, only genlib.php.   

The mod tested out OK with the Mobile_Site_Enhancements and  User_Footer_Copyright mods.

While I had no conflicts, there could be some with other mods I don't use which modify the header or footer logic.

I tested the mod on TNG 13.0.1 and TNG 12.3 without issue.

 

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

×