Annonce

  •  » Utilisation
  •  » [Résolu] Mettre le bloc identification dans le header

#16 2009-11-21 15:32:45

VDigital
Former Piwigo Team
Montpellier (FR)
2005-05-04
15127

Re: [Résolu] Mettre le bloc identification dans le header

PWG Stuffs n'est pas fait pour ça.

Fait un "template-extension" à partir du standard.
Regarde la fonction include dans smarty pour inclure le block d'identifcation dans le header.
Désactive du menu le bloc standard via AMM.
Après c'est jouer avec les CSS.


Vincent -« Plus vidéaste averti que photographe amateur... »
La galerie - Le blog   

Piwigo est une application libre de gestion de photos en ligne.

Hors ligne

#17 2009-11-21 18:18:23

makno
Membre
Nantes
2007-10-24
1273

Re: [Résolu] Mettre le bloc identification dans le header

Fait un "template-extension" à partir du standard.

Ok, fait

Regarde la fonction include dans smarty pour inclure le block d'identifcation dans le header.

Fait j'ai rentré cette ligne dans "myheader.tpl" 

{include file='file:/htdocs/PhpMyGallery/template/yoga/identification.tpl'}

et j'obtiens :

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/htdocs/PhpMyGallery/template/yoga/identification.tpl) is not within the allowed path(s): (/var/www/virtual/instants-de-scenes.com/:/usr/share/php/:/tmp:/var/lib/php5) in /var/www/virtual/instants-de-scenes.com/htdocs/PhpMyGallery/include/smarty/libs/Smarty.class.php on line 1662

Warning: Smarty error: unable to read resource: "file:/htdocs/PhpMyGallery/template/yoga/identification.tpl" in /var/www/virtual/instants-de-scenes.com/htdocs/PhpMyGallery/include/smarty/libs/Smarty.class.php on line 1093


Instants de Scènes, c'est là ! Sur mon site, vous trouverez 600 projets artistiques et 20 000 photos dans tous les domaines des arts vivants : théâtre, clown, danse, arts de la rue, conte, cirque, etc...

Hors ligne

#18 2009-11-21 19:11:00

VDigital
Former Piwigo Team
Montpellier (FR)
2005-05-04
15127

Re: [Résolu] Mettre le bloc identification dans le header

makno a écrit:

{include file='file:/htdocs/PhpMyGallery/template/yoga/identification.tpl'}

Chemin réel ou relatif stp de menubar_ identification.tpl et pas identification.tpl.

relatif: Si le myheader.tpl est dans ./template-extension
../ pour le niveau parent puis
template/yoga/menubar_identification.tpl

donc à priori
{include file='../template/yoga/menubar_identification.tpl'}
si cela veux bien (je n'ai pas testé).


Vincent -« Plus vidéaste averti que photographe amateur... »
La galerie - Le blog   

Piwigo est une application libre de gestion de photos en ligne.

Hors ligne

#19 2009-11-21 19:28:19

makno
Membre
Nantes
2007-10-24
1273

Re: [Résolu] Mettre le bloc identification dans le header

Et non, cela ne veut pas. myheader.tpl étant bien dans ./template-extension, j'ai fait un copié-collé de ta ligne et j'obtiens 

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/htdocs/PhpMyGallery/template/yoga/identification.tpl) is not within the allowed path(s): (/var/www/virtual/instants-de-scenes.com/:/usr/share/php/:/tmp:/var/lib/php5) in /var/www/virtual/instants-de-scenes.com/htdocs/PhpMyGallery/include/smarty/libs/Smarty.class.php on line 1662

Warning: Smarty error: unable to read resource: "file:/htdocs/PhpMyGallery/template/yoga/identification.tpl" in /var/www/virtual/instants-de-scenes.com/htdocs/PhpMyGallery/include/smarty/libs/Smarty.class.php on line 1093


Instants de Scènes, c'est là ! Sur mon site, vous trouverez 600 projets artistiques et 20 000 photos dans tous les domaines des arts vivants : théâtre, clown, danse, arts de la rue, conte, cirque, etc...

Hors ligne

#20 2009-11-21 21:36:38

VDigital
Former Piwigo Team
Montpellier (FR)
2005-05-04
15127

Re: [Résolu] Mettre le bloc identification dans le header

Bizarre car:
http://instants-de-scenes.com/PhpMyGallery/template-extension/../template/yoga/menubar_identification.tpl =>
http://instants-de-scenes.com/PhpMyGall … cation.tpl
je le trouve bien sans pb.

On fait autrement...
soit:
{include file='http://instants-de-scenes.com/PhpMyGallery/template/yoga/menubar_identification.tpl'}


soit tu copies le contenu de ./template/yoga/menubar_identification.tpl
et colle-le directement à la place (remplace) de ton
{include file='../template/yoga/menubar_identification.tpl'}

Au moins une des 2 solutions va fonctionner.


Vincent -« Plus vidéaste averti que photographe amateur... »
La galerie - Le blog   

Piwigo est une application libre de gestion de photos en ligne.

Hors ligne

#21 2009-11-21 22:18:57

makno
Membre
Nantes
2007-10-24
1273

Re: [Résolu] Mettre le bloc identification dans le header

Oui, j'avais regardé aussi. Ceci dit j'ai essayé les deux solutions et j'ai toujours

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/htdocs/PhpMyGallery/template/yoga/identification.tpl) is not within the allowed path(s): (/var/www/virtual/instants-de-scenes.com/:/usr/share/php/:/tmp:/var/lib/php5) in /var/www/virtual/instants-de-scenes.com/htdocs/PhpMyGallery/include/smarty/libs/Smarty.class.php on line 1662

Warning: Smarty error: unable to read resource: "file:/htdocs/PhpMyGallery/template/yoga/identification.tpl" in /var/www/virtual/instants-de-scenes.com/htdocs/PhpMyGallery/include/smarty/libs/Smarty.class.php on line 1093

.Alors voici le code complet de myheader avec la solution  2 :

Code:

{* $Id: header.tpl 3272 2009-05-06 05:17:55Z ddtddt $ *}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
<meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
{if isset($meta_ref) } 
{if isset($INFO_AUTHOR)}
<meta name="author" content="{$INFO_AUTHOR|@replace:'"':' '}">
{/if}
{if isset($related_tags)}
<meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}">
{/if}
{if isset($COMMENT_IMG)}
<meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
{else}
<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
{/if}
{/if}

{* ajouté le 21 11 09 *}
<dt>{'identification'|@translate}</dt>
<dd>
  {if isset($USERNAME)}
  <p>{'hello'|@translate}&nbsp;{$USERNAME}&nbsp;!</p>
  {/if}

  <ul>
  {if isset($U_REGISTER)}
  <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li>
  {/if}

  {if isset($U_LOGIN)}
  <li><a href="{$U_LOGIN}" rel="nofollow">{'Connection'|@translate}</a></li>
  {/if}

  {if isset($U_LOGOUT)}
  <li><a href="{$U_LOGOUT}">{'logout'|@translate}</a></li>
  {/if}

  {if isset($U_PROFILE)}
  <li><a href="{$U_PROFILE}" title="{'hint_customize'|@translate}">{'customize'|@translate}</a></li>
  {/if}

  {if isset($U_ADMIN)}
  <li><a href="{$U_ADMIN}" title="{'hint_admin'|@translate}">{'admin'|@translate}</a></li>
  {/if}
  </ul>

  {if isset($U_LOGIN)}
  <form method="post" action="{$U_LOGIN}" id="quickconnect">
  <fieldset>
  <legend>{'Quick connect'|@translate}</legend>
  <div>
  <label for="username">{'Username'|@translate}</label><br/>
  <input type="text" name="username" id="username" value="" style="width:99%">
  </div>

  <div><label for="password">{'Password'|@translate}</label>
  <br/>
  <input type="password" name="password" id="password" style="width:99%">
  </div>

  {if $AUTHORIZE_REMEMBERING}
  <div><label for="remember_me">
  {'remember_me'|@translate}
  <input type="checkbox" name="remember_me" id="remember_me" value="1">
  </label></div>
  {/if}

  <div>
  <input class="submit" type="submit" name="login" value="{'Submit'|@translate}">
  <ul class="actions">
    <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/lost_password.png" class="button" alt="{'Forgot your password?'|@translate}"></a></li>
    {if isset($U_REGISTER)}
    <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/register.png" class="button" alt="{'Register'|@translate}"/></a></li>
    {/if}
  </ul>
  </div>

  </fieldset>
  </form>
  {/if}
</dd>


{if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('home'))}
<title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>{else}
<title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>{/if}
<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">

<link rel="start" title="{'home'|@translate}" href="{$U_HOME}" >
<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
{if isset($first.U_IMG)   }<link rel="first" title="{'first_page'|@translate}" href="{$first.U_IMG}" >{/if}
{if isset($previous.U_IMG)}<link rel="prev" title="{'previous_page'|@translate}" href="{$previous.U_IMG}" >{/if}
{if isset($next.U_IMG)    }<link rel="next" title="{'next_page'|@translate}" href="{$next.U_IMG}" >{/if}
{if isset($last.U_IMG)    }<link rel="last" title="{'last_page'|@translate}" href="{$last.U_IMG}" >{/if}
{if isset($U_UP)          }<link rel="up" title="{'thumbnails'|@translate}" href="{$U_UP}" >{/if}

<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/layout.css">
{* the next css is used to fix khtml (Konqueror/Safari) issue the "text/nonsense" prevents gecko based browsers to load it *}
<link rel="stylesheet" type="text/nonsense" href="{$ROOT_URL}template/{$themeconf.template}/fix-khtml.css">
<!--[if lt IE 7]>
  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie5-ie6.css">
<![endif]-->
<!--[if IE 7]>
  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie7.css">
<![endif]-->
<!--[if !IE]> <-->
  <link rel="stylesheet" href="{$ROOT_URL}template/{$themeconf.template}/not-ie.css" type="text/css">
<!--> <![endif]-->
<link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}template/{$themeconf.template}/print.css">
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
{$themeconf.local_head}
{if isset($U_PREFETCH)          }<link rel="prefetch" href="{$U_PREFETCH}">{/if}

{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}

<script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
<!--[if lt IE 7]>
<style>
  {* only because we need {$ROOT_URL} otherwise use fix-ie5-ie6.css *}
  BODY {ldelim} behavior:url("{$ROOT_URL}template-common/csshover.htc"); }
  A IMG, .button, .icon {ldelim}
    behavior:url("{$ROOT_URL}template-common/tooltipfix.htc");
  }
  FORM {ldelim} behavior: url("{$ROOT_URL}template-common/inputfix.htc"); }
</style>
<script type="text/javascript" src="{$ROOT_URL}template-common/pngfix.js"></script>
<![endif]-->

{if not empty($head_elements)}
  {foreach from=$head_elements item=elt}{$elt}
  {/foreach}
{/if}

</head>

<body id="{$BODY_ID}">
<div id="the_page">

{if not empty($header_msgs)}
<div class="header_msgs">
  {foreach from=$header_msgs item=elt}
  {$elt}<br />
  {/foreach}
</div>
{/if}

<div id="theHeader">{$PAGE_BANNER}</div>
{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
{if not empty($header_notes)}
<div class="header_notes">
  {foreach from=$header_notes item=elt}
  <p>{$elt}</p>
    {/foreach}
</div>
{/if}

Dernière modification par makno (2009-11-21 22:19:48)


Instants de Scènes, c'est là ! Sur mon site, vous trouverez 600 projets artistiques et 20 000 photos dans tous les domaines des arts vivants : théâtre, clown, danse, arts de la rue, conte, cirque, etc...

Hors ligne

#22 2009-11-21 22:46:16

VDigital
Former Piwigo Team
Montpellier (FR)
2005-05-04
15127

Re: [Résolu] Mettre le bloc identification dans le header

Faut-il encore ne pas insérer n'importe où...!

Code:

{* $Id: header.tpl 3272 2009-05-06 05:17:55Z ddtddt $ *}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
<meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
{if isset($meta_ref) } 
{if isset($INFO_AUTHOR)}
<meta name="author" content="{$INFO_AUTHOR|@replace:'"':' '}">
{/if}
{if isset($related_tags)}
<meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}">
{/if}
{if isset($COMMENT_IMG)}
<meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
{else}
<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
{/if}
{/if}
{if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('home'))}
<title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>{else}
<title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>{/if}
<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">

<link rel="start" title="{'home'|@translate}" href="{$U_HOME}" >
<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
{if isset($first.U_IMG)   }<link rel="first" title="{'first_page'|@translate}" href="{$first.U_IMG}" >{/if}
{if isset($previous.U_IMG)}<link rel="prev" title="{'previous_page'|@translate}" href="{$previous.U_IMG}" >{/if}
{if isset($next.U_IMG)    }<link rel="next" title="{'next_page'|@translate}" href="{$next.U_IMG}" >{/if}
{if isset($last.U_IMG)    }<link rel="last" title="{'last_page'|@translate}" href="{$last.U_IMG}" >{/if}
{if isset($U_UP)          }<link rel="up" title="{'thumbnails'|@translate}" href="{$U_UP}" >{/if}

<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/layout.css">
{* the next css is used to fix khtml (Konqueror/Safari) issue the "text/nonsense" prevents gecko based browsers to load it *}
<link rel="stylesheet" type="text/nonsense" href="{$ROOT_URL}template/{$themeconf.template}/fix-khtml.css">
<!--[if lt IE 7]>
  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie5-ie6.css">
<![endif]-->
<!--[if IE 7]>
  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie7.css">
<![endif]-->
<!--[if !IE]> <-->
  <link rel="stylesheet" href="{$ROOT_URL}template/{$themeconf.template}/not-ie.css" type="text/css">
<!--> <![endif]-->
<link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}template/{$themeconf.template}/print.css">
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
{$themeconf.local_head}
{if isset($U_PREFETCH)          }<link rel="prefetch" href="{$U_PREFETCH}">{/if}

{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}

<script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
<!--[if lt IE 7]>
<style>
  {* only because we need {$ROOT_URL} otherwise use fix-ie5-ie6.css *}
  BODY {ldelim} behavior:url("{$ROOT_URL}template-common/csshover.htc"); }
  A IMG, .button, .icon {ldelim}
    behavior:url("{$ROOT_URL}template-common/tooltipfix.htc");
  }
  FORM {ldelim} behavior: url("{$ROOT_URL}template-common/inputfix.htc"); }
</style>
<script type="text/javascript" src="{$ROOT_URL}template-common/pngfix.js"></script>
<![endif]-->

{if not empty($head_elements)}
  {foreach from=$head_elements item=elt}{$elt}
  {/foreach}
{/if}

</head>

<body id="{$BODY_ID}">
<div id="the_page">

{if not empty($header_msgs)}
<div class="header_msgs">
  {foreach from=$header_msgs item=elt}
  {$elt}<br />
  {/foreach}
</div>
{/if}

<div id="theHeader">{$PAGE_BANNER}</div>
{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}

{* ajouté le 21 11 09 *}
<dt>{'identification'|@translate}</dt>
<dd>
  {if isset($USERNAME)}
  <p>{'hello'|@translate}&nbsp;{$USERNAME}&nbsp;!</p>
  {/if}

  <ul>
  {if isset($U_REGISTER)}
  <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li>
  {/if}

  {if isset($U_LOGIN)}
  <li><a href="{$U_LOGIN}" rel="nofollow">{'Connection'|@translate}</a></li>
  {/if}

  {if isset($U_LOGOUT)}
  <li><a href="{$U_LOGOUT}">{'logout'|@translate}</a></li>
  {/if}

  {if isset($U_PROFILE)}
  <li><a href="{$U_PROFILE}" title="{'hint_customize'|@translate}">{'customize'|@translate}</a></li>
  {/if}

  {if isset($U_ADMIN)}
  <li><a href="{$U_ADMIN}" title="{'hint_admin'|@translate}">{'admin'|@translate}</a></li>
  {/if}
  </ul>

  {if isset($U_LOGIN)}
  <form method="post" action="{$U_LOGIN}" id="quickconnect">
  <fieldset>
  <legend>{'Quick connect'|@translate}</legend>
  <div>
  <label for="username">{'Username'|@translate}</label><br/>
  <input type="text" name="username" id="username" value="" style="width:99%">
  </div>

  <div><label for="password">{'Password'|@translate}</label>
  <br/>
  <input type="password" name="password" id="password" style="width:99%">
  </div>

  {if $AUTHORIZE_REMEMBERING}
  <div><label for="remember_me">
  {'remember_me'|@translate}
  <input type="checkbox" name="remember_me" id="remember_me" value="1">
  </label></div>
  {/if}

  <div>
  <input class="submit" type="submit" name="login" value="{'Submit'|@translate}">
  <ul class="actions">
    <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/lost_password.png" class="button" alt="{'Forgot your password?'|@translate}"></a></li>
    {if isset($U_REGISTER)}
    <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/register.png" class="button" alt="{'Register'|@translate}"/></a></li>
    {/if}
  </ul>
  </div>

  </fieldset>
  </form>
  {/if}
</dd>





{if not empty($header_notes)}
<div class="header_notes">
  {foreach from=$header_notes item=elt}
  <p>{$elt}</p>
    {/foreach}
</div>
{/if}

ET je vois dans ton généré ceci:

<title="photos artistiques="" projets="" et="" spectacles="" de=""><font color="#660000"><font size="4">Pour une mémoire des arts vivants</font></font><br/>
<br/><br/><br/></title="photos>
Je ne sais pas où tu es allé pêché une balise <title avec une telle syntaxe...
C'est du n'importe quoi.

ET, j'en profite pour te donner la liste des erreurs de ton généré.
Result: 37 erreurs / 0 avertissements (C'est pas mal).

line 44 column 7 - Erreur: required attribute "TYPE" not specified
line 64 column 6 - Erreur: an attribute specification must start with a name or name token
line 64 column 6 - Erreur: document type does not allow element "TITLE" here
line 64 column 100 - Erreur: required attribute "ALT" not specified
line 64 column 100 - Erreur: document type does not allow element "IMG" here
line 65 column 3 - Erreur: document type does not allow element "BR" here
line 65 column 7 - Erreur: document type does not allow element "BR" here
line 66 column 6 - Erreur: an attribute specification must start with a name or name token
line 66 column 6 - Erreur: document type does not allow element "TITLE" here
line 66 column 65 - Erreur: there is no attribute "COLOR"
line 66 column 74 - Erreur: element "FONT" undefined
line 66 column 86 - Erreur: there is no attribute "SIZE"
line 66 column 87 - Erreur: element "FONT" undefined
line 66 column 138 - Erreur: document type does not allow element "BR" here
line 67 column 3 - Erreur: document type does not allow element "BR" here
line 67 column 7 - Erreur: document type does not allow element "BR" here
line 67 column 11 - Erreur: document type does not allow element "BR" here
line 67 column 17 - Erreur: end tag for "TITLE" omitted, but its declaration does not permit this
line 66 - Info: start tag was here
line 67 column 17 - Erreur: end tag for "TITLE" omitted, but its declaration does not permit this
line 64 - Info: start tag was here
line 113 column 30 - Erreur: document type does not allow element "SCRIPT" here; missing one of "DT", "DD" start-tag
line 159 column 212 - Erreur: required attribute "ALT" not specified
line 165 column 30 - Erreur: document type does not allow element "SCRIPT" here; missing one of "DT", "DD" start-tag
line 203 column 32 - Erreur: there is no attribute "ALT"
line 203 column 89 - Erreur: there is no attribute "TARGET"
line 203 column 200 - Erreur: required attribute "ALT" not specified
line 205 column 177 - Erreur: there is no attribute "BORDER"
line 205 column 210 - Erreur: there is no attribute "ALIGN"
line 205 column 237 - Erreur: required attribute "ALT" not specified
line 209 column 209 - Erreur: required attribute "ALT" not specified
line 261 column 8 - Erreur: end tag for element "P" which is not open
line 406 column 16 - Erreur: there is no attribute "ALIGN"
line 406 column 109 - Erreur: end tag for "SPAN" omitted, but its declaration does not permit this
line 406 column 25 - Info: start tag was here
line 406 column 234 - Erreur: end tag for element "SPAN" which is not open
line 406 column 238 - Erreur: end tag for element "P" which is not open
line 406 column 242 - Erreur: end tag for element "P" which is not open
line 425 column 134 - Erreur: end tag for "SPAN" omitted, but its declaration does not permit this
line 425 column 30 - Info: start tag was here
line 464 column 131 - Erreur: end tag for "SPAN" omitted, but its declaration does not permit this
line 464 column 30 - Info: start tag was here


Vincent -« Plus vidéaste averti que photographe amateur... »
La galerie - Le blog   

Piwigo est une application libre de gestion de photos en ligne.

Hors ligne

#23 2009-11-22 00:41:47

makno
Membre
Nantes
2007-10-24
1273

Re: [Résolu] Mettre le bloc identification dans le header

si j'ai donné toute la page, c'est bien parce que je me doutais que ça pouvait être quelque chose comme ça. J'ai donc remis le code là ou tu l'a mis, ce qui n'a rien changé. je suppose donc que celà a à voir avec la suite. Après m'avoir dit que "c'était du n'importe quoi", ce qui est surement vrai mais que je trouve assez cassant exprimé comme ça, tu me parles d'un "généré" (?) suivi d'une liste d'erreur comportant des lignes et des colonnes dont je me demandes bien ou elles peuvent se trouver, et des messages dont je n'ai pas idée de ce qu'il faut faire.

Sur ton conseil posté plus haut, j'essaie de poser les bonnes questions, et je ne sais même pas ce que je sais ou pas. Des bribes de connaissances pêchées à droite à gauche, dans le désordre, qui aboutissent à ce résultat. Si tu as l'impression que je te fais perdre ton temps dis le moi franchement, ça m'évitera de perdre le mien en postant sur le forum pour me faire rembarrer, parce que là, outre que j'ai donc passé bien des heures à faire "n'importe quoi", je ne sais absolument plus par quel bout prendre le truc.


Instants de Scènes, c'est là ! Sur mon site, vous trouverez 600 projets artistiques et 20 000 photos dans tous les domaines des arts vivants : théâtre, clown, danse, arts de la rue, conte, cirque, etc...

Hors ligne

#24 2009-11-22 00:56:29

LucMorizur
Membre
Vienne (Isère, 38)
2009-03-01
1969

Re: [Résolu] Mettre le bloc identification dans le header

Moi j'aurais tendance à penser que, si c'est faisable juste par une modif avec Firebug, c'est qu'alors il suffit juste d'appliquer des instructions CSS sur le bloc concerné.

Par contre désolé, je ne connais pas assez le CSS :-/ ...

Si j'ai bon, Vincent, tu donnes la solution ?...

Hors ligne

#25 2009-11-22 01:15:04

Gotcha
Ex Equipe Piwigo
Pierrelatte (26)
2007-03-14
13331

Re: [Résolu] Mettre le bloc identification dans le header

Avec Firebug on peut aussi facilement injecter et manipuler du PHP/HTML...
C'est toute la puissance de Firebug justement ;-)


Ayez comme premier réflexe de consulter le wiki.
Ensuite, veuillez effectuer une recherche sur le forum avant de poser votre question.

LE FAIRE EST LE REVELATEUR DE L'ETRE

Hors ligne

#26 2009-11-22 08:13:17

VDigital
Former Piwigo Team
Montpellier (FR)
2005-05-04
15127

Re: [Résolu] Mettre le bloc identification dans le header

Gotcha a écrit:

Avec Firebug on peut aussi facilement injecter et manipuler du PHP/HTML...
C'est toute la puissance de Firebug justement ;-)

HTML : oui

mais "manipuler du PHP": non!


Vincent -« Plus vidéaste averti que photographe amateur... »
La galerie - Le blog   

Piwigo est une application libre de gestion de photos en ligne.

Hors ligne

#27 2009-11-22 08:22:59

VDigital
Former Piwigo Team
Montpellier (FR)
2005-05-04
15127

Re: [Résolu] Mettre le bloc identification dans le header

LucMorizur a écrit:

si c'est faisable juste par une modif avec Firebug, c'est qu'alors il suffit juste d'appliquer des instructions CSS sur le bloc concerné.

Par contre désolé, je ne connais pas assez le CSS :-/ ...

Si j'ai bon, Vincent, tu donnes la solution ?...

Oui (CSS suffirait) mais non:
Je souhaite que makno aboutisse.
Que son résultat soit propre afin que s'il a d'autres besoins, les solutions appliquées ici ne perturbent les évolutions futures.

Et effectivement, Gotcha a raison, j'avais déplacé du HTML (pas du php).


Vincent -« Plus vidéaste averti que photographe amateur... »
La galerie - Le blog   

Piwigo est une application libre de gestion de photos en ligne.

Hors ligne

#28 2009-11-22 09:09:46

VDigital
Former Piwigo Team
Montpellier (FR)
2005-05-04
15127

Re: [Résolu] Mettre le bloc identification dans le header

J'ai vu que le header a été un peu modifié... Evite de le modifier plus encore ou alors cela aura encore de conséquences sur ce qui suit.


Un peu de CSS (ce n'est qu'un premier jet) pour makno:

#theHeader dl#mbIdentification { left:68%; position:relative; top:-380px; width:400px; }
#theHeader dl#mbIdentification dt,
#theHeader dl#mbIdentification li { display:none; }
#theHeader dl#mbIdentification form li { display:inline; }
#theHeader dl#mbIdentification #quickconnect { text-align: left; }
#theHeader dl#mbIdentification form#quickconnect input[type="submit"] { position: relative; left: 120px; top: -25px; }
#theHeader dl#mbIdentification form#quickconnect ul.actions { position: relative; left: 240px; top: -45px; }
#theHeader dl#mbIdentification form#quickconnect fieldset { height:140px; }

Il faudra encore jouer avec les pixels peut-être et tenter de faire encore un peu plus de relatif.
exemple: width:400px;
à remplacer par:      min-width:360px; width:32.4%;


Vincent -« Plus vidéaste averti que photographe amateur... »
La galerie - Le blog   

Piwigo est une application libre de gestion de photos en ligne.

Hors ligne

#29 2009-11-22 09:26:58

makno
Membre
Nantes
2007-10-24
1273

Re: [Résolu] Mettre le bloc identification dans le header

Oui, j'ai un peu modifié le header. Comme tu l'as compris, cette histoire d'erreur m'a pris un peu la tête, et des 6 heures du matin j'ai fait un validate HTML, puis fait bouillir mon neurone. Bref, j'ai réduit le nb d'erreur à 13 (ou 17, je sais plus), j'ai notamment réécrit mes déclarations dans configuration -> générale.

Ce CSS, je le rentre dans mywipi\theme.css je suppose ? Je laisse de côté myheader ?

merci pour vos réponses :)


Instants de Scènes, c'est là ! Sur mon site, vous trouverez 600 projets artistiques et 20 000 photos dans tous les domaines des arts vivants : théâtre, clown, danse, arts de la rue, conte, cirque, etc...

Hors ligne

#30 2009-11-22 09:48:13

VDigital
Former Piwigo Team
Montpellier (FR)
2005-05-04
15127

Re: [Résolu] Mettre le bloc identification dans le header

A la fin de ton mywipi... (Si tu ne proposes que mywipi).
Sinon à la fin de yoga/local-layout.css me parait tout indiqué.
Merci LocalFiles Editor.


Je laisse de côté myheader ? NON, relis ce que j'ai écrit depuis ce matin (J'ai justifié pourquoi le déplacement du HTML).

Dernière modification par VDigital (2009-11-22 09:50:23)


Vincent -« Plus vidéaste averti que photographe amateur... »
La galerie - Le blog   

Piwigo est une application libre de gestion de photos en ligne.

Hors ligne

  •  » Utilisation
  •  » [Résolu] Mettre le bloc identification dans le header

Pied de page des forums

Propulsé par FluxBB

github twitter newsletter Faire un don Piwigo.org © 2002-2024 · Contact