Bienvenue, Invité
Nom d'utilisateur : Mot de passe :
Whilst small files can be uploaded to forum posts, if you have a custom theme or module to contribute please add it on the "Add-ons" page.
  • Page :
  • 1

SUJET :

Displaying inside a table il y a 11 ans 2 mois #1

  • mikkitobi
  • Portrait de mikkitobi Auteur du sujet
  • Visiteur
  • Visiteur
Copy and pasted from the Help Forum.....

The problem I am having is partly if not fully due to us wanting to add our own headers and footers and styles and menus overlaid on webtrees.... and I know you guys dont want to be supporting this stuff - especially non standard stuff.... BUT it does seem strange that trying to force the output inside a HTML table is causing problems.

I am trying to display the individual.php inside a table set to width 883 to match our custom header..... but according to web developer toolbar the width is 1720 which is exactly what I see on screen - I have to scroll way off to the right to see everything... and the sidepanel is located at the right side of a normal screen width instead of the far right of the individual display.

I am guessing that something in the themes and styles are conflicting with my attempt to display the output inside a table....

In Firefox (3.5.9) the display width is ridiculous.... about twice that expected for a table that is supposed to be only 883 pixels wide! In IE 8.0.6001 it is not so large but still wrong and in IE 7.0.5730 it is as bad as Firefox....

In Firefox and IE 8 if you hide and then show the sidepanel the display corrects itself and the display is correctly shown as width 883 exactly as per the table. In IE7 hiding and showing the sidepanel does NOT fix the problem.... go figure! So something in the sidepanel hide/show code is correcting the problem in SOME browsers. That makes me think that the problem is not entirely down to our custom headers but instead a problem with the standard layout.

I know you guys are busy but if there is an obvious reason for this I would appreciate feedback. I include a link to one of my prototypes.... I have modified it slightly so it doesnt force a login to our server/systems.

www.jewishgen.org/webtrees/individual.ph...0126&ged=1_10000.GED

Regards

Michael

Connexion ou Créer un compte pour participer à la conversation.

Re:Displaying inside a table il y a 11 ans 2 mois #2

Your problem is that the sidebar positioning (and all its related elements, including the width of the tab content, are calculated sizes. These only really work in DIVs, and require the use of absolute / relative positioning references.

However, if you play around with some of the calculations in sidebar.php you might get it to work.

A far easier solution would be to not use the sidebar at all. Just untick it from the Module Administration page. Its is a nice-to-have feature, not totally necessary.
Nigel

www.our-families.info

Hosted at:
Follow me at:

Connexion ou Créer un compte pour participer à la conversation.

Re:Displaying inside a table il y a 11 ans 2 mois #3

  • mikkitobi
  • Portrait de mikkitobi Auteur du sujet
  • Visiteur
  • Visiteur
kiwi wrote:

Your problem is that the sidebar positioning (and all its related elements, including the width of the tab content, are calculated sizes. These only really work in DIVs, and require the use of absolute / relative positioning references.

However, if you play around with some of the calculations in sidebar.php you might get it to work.

A far easier solution would be to not use the sidebar at all. Just untick it from the Module Administration page. Its is a nice-to-have feature, not totally necessary.


Thanks. I knew the sidebar was having an impact.... I will experiment....

M

Connexion ou Créer un compte pour participer à la conversation.

Re:Displaying inside a table il y a 11 ans 2 mois #4

  • mikkitobi
  • Portrait de mikkitobi Auteur du sujet
  • Visiteur
  • Visiteur
kiwi wrote:

Your problem is that the sidebar positioning (and all its related elements, including the width of the tab content, are calculated sizes. These only really work in DIVs, and require the use of absolute / relative positioning references.

However, if you play around with some of the calculations in sidebar.php you might get it to work.

A far easier solution would be to not use the sidebar at all. Just untick it from the Module Administration page. Its is a nice-to-have feature, not totally necessary.


Another quick question....

Given that our viewers will be guests, ie not logged in, how can I set the initial sidepanel setting as closed? That might solve our problem on most browsers....

M

Connexion ou Créer un compte pour participer à la conversation.

Re:Displaying inside a table il y a 11 ans 2 mois #5

In sidebar.php look for this section:
// Sidebar state control ---------------------------------------------------------------------------
// NOTE: Need config option for setting $sidebar_state.
$sidebar_state = "open";	// "open"	= Sidebar initially open, [default]	+ normally auto pinned 
							// "closed" = Sidebar initially closed, 		+ normally auto unpinned
// -------------------------------------------------------------------------------------------------
Nigel

www.our-families.info

Hosted at:
Follow me at:

Connexion ou Créer un compte pour participer à la conversation.

Re:Displaying inside a table il y a 11 ans 2 mois #6

  • mikkitobi
  • Portrait de mikkitobi Auteur du sujet
  • Visiteur
  • Visiteur
kiwi wrote:

In sidebar.php look for this section:

// Sidebar state control ---------------------------------------------------------------------------
// NOTE: Need config option for setting $sidebar_state.
$sidebar_state = "open";	// "open"	= Sidebar initially open, [default]	+ normally auto pinned 
							// "closed" = Sidebar initially closed, 		+ normally auto unpinned
// -------------------------------------------------------------------------------------------------


thanks. i just posted a bug re the sidepanel.... if you disable it in the admin panel the open/close icons and pin still display onscreen....

btw the width problem persists even without the sidepanel.... the TREE tab appears to be the problem - all the other TABS I tested were the correct 883 width but the tree display went wider.....

M

Connexion ou Créer un compte pour participer à la conversation.

Re:Displaying inside a table il y a 11 ans 1 mois #7

  • Inhambane
  • Portrait de Inhambane
  • Visiteur
  • Visiteur
Which theme do you use? I've had this problem all the way since PGV 4.1.7 using the Cloudy theme.
Changing theme to F.A.B in webtrees seem to solve the problem. Personally I don't like the interactive tree, and luckily this can be deactivated in webtrees.

Connexion ou Créer un compte pour participer à la conversation.

Re:Displaying inside a table il y a 11 ans 1 mois #8

  • ToyGuy
  • Portrait de ToyGuy
  • Hors Ligne
  • Modérateur
  • Modérateur
  • Live like it's Christmas every day - Santa Stephen
  • Messages : 4926
I don't see this effect in webtrees. There is a distinct bounding box that confines the tree layouts in every theme. Granted, the border is quite small (only a couple of pixels, but it is defintely there.

As to a remedy in PGV, check with Rob as he manages the COLORS themes and most likely issued the fix for this in webtrees. Probably a simply patch as, TMK, the colors themes were based on cloudy.
-Stephen
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28

Connexion ou Créer un compte pour participer à la conversation.

Avez-vous besoin d'une solution d'hébergement web pour votre site webtrees ?
Si vous préférez un hébergeur spécialisé de webtrees, la page suivante en liste quelques-uns capables de vous offrir ce type de service :

Re:Displaying inside a table il y a 11 ans 1 mois #9

I think you need to start a fresh topic. I, at least, have no idea what you are talking about.

You seem to be trying to link a problem you are having with the original post here - but this post is about a problem attempting to customise webtrees by completely changing its presentation "Displaying within a table".

At this stage we are not able to help with customising webtrees, so hardly any of the development team will read anything posted here.

Please do the following:
1- post your Help request in the Help forum, and start from the beginning - describe exactly what problem you are having.
2- Ensure you provide full details about your setup, version of webtrees especially
3 - Check that your problem has not already been reported on the Bug tracker (link under Launchpad, above).
4 - Have a look at the DEMO site (link above) and see if the same problem exists there. If it doesn't, there's a good chance the problem will be unique to your installation.
Nigel

www.our-families.info

Hosted at:
Follow me at:

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par kiwi.
  • Page :
  • 1
Propulsé par Kunena