Donate Share December 2003: Project of the Month

PhpGedView

Tracker: Feature Requests

5 Tab shouldn't always display default - ID: 1399983
Last Update: Settings changed ( kosherjava )

This biggest annoyance in using the latest versions,
is having the tab change when editing. Why can't it
store the current tab if re-displaying the same
Individual Information page and leave it on the same
tab? This should be quite easy, though I haven't
looked at the code.

"Default Tab to show on Individual Information page"
should only be in effect when displaying the first
Individual Information page. Even if the Individual
changes, the Tab displayed on the previous Individual
Information page serve should be used, until the user
changes it.


Birchy ( birchy ) - 2006-01-08 23:29

5

Closed

Fixed

John Finlay

Interface Improvements

phpGedView

Public


Comments ( 5 )

Date: 2006-05-15 21:21
Sender: yalnifjProject AdminAccepting Donations

Logged In: YES
user_id=300048

I have just added this to the CVS for the next beta release
of version 4.0

--John


Date: 2006-03-08 05:17
Sender: birchy

Logged In: YES
user_id=1323533

I don't have the skills. It shouldn't be too time consuming
for someone that does. Could someone *please* do so? I've
tried, but can't figure it out.


Date: 2006-01-11 03:12
Sender: birchy

Logged In: YES
user_id=1323533

In the file "individual.php" of the latest 3.x.x version,
about line 912:
var lasttab = "";

function switch_tab(tab) {
lasttab = tab;

the var "lasttab" exists, but nothing seems to be done with
it.

Near the end of the file is the line below, which should do
what we need:

switch_tab(<?php print $default_tab; ?>);

perhaps:

if $default_tab == 99 {
switch_tab(<?php print $theLastTab; ?>)
}
else {
switch_tab(<?php print $default_tab; ?>)
}


I know only a little about PHP and almost nothing about
javascript. Can someone provide the code to
assing "lasttab" to a session cookie and then make it
available as (or assign to) a php var ("$theLastTab", e.g.)
that we can if/then against $default_tab?

We can worry about adding the user config option later. It
could probably just be stored as tab 99 for example (0-4
are currently used for the existing 5 tabs) and add the
text "Same as last tab visited" to the drop down
menu "Default Tab to show on Individual Information page"
on both the user config page and the GEDCOM congif page.



Date: 2006-01-10 19:48
Sender: jgilhousen

Logged In: YES
user_id=1065899

I never realized that annoyed me until you mentioned it.
I would second the request (and will work on becoming more
self aware).


Date: 2006-01-09 05:18
Sender: yalnifjProject AdminAccepting Donations

Logged In: YES
user_id=300048

I can see this being useful during editing, but I don't
think that most users would want this functionality. We
could include it as an option if you wanted to code it up.

Making it work would require using JavaScript to set a
session level cookie which could then be read by the PHP
code to load the page.

--John


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2006-06-20 21:21 kosherjava
close_date - 2006-06-20 21:21 kosherjava
resolution_id None 2006-05-15 21:21 yalnifj
assigned_to nobody 2006-05-15 21:21 yalnifj