LightBox2

Après avoir dressé un petit panorama des plugins permettant de faire des diaporamas dans WordPress, j’installe LightBox2 pour voir.

Après avoir activé le plugin il suffit d’ajouter le tag rel= »lightbox » ou rel= »lightbox[roadtrip] » pour utiliser le plugin dans un article.

Finalement j’ai installé LightBox+ de John Noone sur mes sites mais pour répondre à la demande du Bazaar de ci dessous, le tag rel= »lightbox » est à associer à un lien qui mène vers une image et non à l’image elle-même.


Pour être plus clair voici le code qui permet d’utiliser la LightBox :

<a href="http://wordpress-tuto.fr/wp-content/uploads/images/LhostisPecheur.JPG" rel="lightbox"><img src="http://wordpress-tuto.fr/wp-content/uploads/images/.thumbs/.LhostisPecheur.JPG" alt="LhostisPecheur.JPG" title="LhostisPecheur.JPG" border="0" height="96" width="62" /></a>

Ce qui donne :

LhostisPecheur.JPG

Notez aussi que ce type de vignette (la partie src= du code ci dessus) avec une relation vers une image (la partie href= de ce même code) est généré automatiquement si on choisi « Thumbnail with link to the image » dans la liste déroulante appelée « Insert as : » quand on insère une image avec le plugin ImageManager.


Tags : ,
Commentaires
  • Le Bazaar dit :

    Bonsoir,

    je l’ai installé mais je ne sais pas ou mettre la commande « rel=”lightbox[roadtrip]” » ?

    Est-ce que vous pouvez donner un exemple concret histoire d’être sûr que je comprenne le fonctionnement.

    Merci,
    A+

  • libretto dit :

    Bonsoir Le Bazaar, j’ai complété mon article avec une réponse à votre question. Cela vous convient-il ?

  • ShadowKris dit :

    Attention cependant, si vous tentez de rendre votre page web valide W3C, en xhtml, les caractères « [ ] » ne sont pas acceptés dans l’attribut « rel ».

    Personnellement j’ai du modifier le code javascript pour obtenir quelque chose du genre « lightbox:roadtrip » qui est valide et marche tout aussi bien en modifiant facilement ;)

    (Cela dit, je travaille avec Slimbox qui est associé au frameworks Mootools, mais la base reste la même)

  • Vincenzo dit :

    Bonjour,

    Pareil que Bazaar… ça focntionne pas quand je met rel=”lightbox” ou rel=”lightbox[roadtrip]” dans un article que je créé… ça ce met ou exactement quand on a une image dans un article ou plusieurs images..?

    Merci d’avance…

  • Alice dit :

    bonjour,
    Je me régale avec lightbox, c’est génial et résultat bluffant.
    Seulement voila : impossible de mettre une image et du texte à côté. word press renvoie le texte automatiquement à la ligne. Et si je le mets dans un tableau, l’image perd la mise en forme.
    exemple : http://www.gerard-roveri.com/?page_id=5
    Une idée peut-être ?
    Merci pour votre aide

  • Mathieu dit :

    Bonjour,

    Mon problème à moi est de diminuer la bordure blanche. Quelqu’un sait-il comment faire ?

    Je n’arrive qu’à modifier la bordure du haut :(

    Merci pour votre aide.

  • chrek dit :

    juste une question, j’ai un bandeau flash en haut de ma page et lightbox ne marche pas dessus, c’est a dire que mon anim flash ecrase l’effet lightbox, c’est normal ?
    Est ce que ca fait la meme chose a d’autres personnes ?

  • zyad dit :

    bonjour j’ai une question dont je peine à trouver réponse …

    je veux installer lightbox mais je n’est pas de serveur ou hébergeur …

    j’ai un blog via les serveurs de wordpress…

    ma question est simple est ce que je peut me servir de ligthbox dans mon cas …?

    merci d’avance de vos réponses …

    zyad

  • YKK Zippers and products are found in our everyday clothing, more so for pants and jeans.

    They are also made for protective equipment used on some physically demanding jobs, the

    military gear used by the army, various systems and components found in the automobiles,

    some Architectural aluminium products include fenestration systems for glass exteriors,

    entrances for commercial and institutional structures, aluminum sunshades, and residential

    windows. They also develop and produce industrial machinery, equipment, and dyes.

  • v2com dit :

    The Zipper history all started with what they called the « clasp locker ». This clasp locker

    was invented by a man named Whitcomb L. Judson back in 1891. It was a complicated

    assemblage of hooks and eyes, which help many people save time and sore backs fastening

    their shoes with one hand. Then in 1913, a Swede named Gideon Sundback developed the

    predecessor of today’s zipper that used metal teeth, and he patented it in 1917. His

    « separable fastener » had more fasteners per inch than the earlier clasp locker. Much later,

    the B.F. Goodrich Co. used the separable fastener in rubber boots and came up with the name

    « zipper » because the boots could be fastened with one hand. So buy only the affordable and

    durable quality zippers.. the YKK Zippers.

    • lepoussinpiou dit :

      Fewer distractions
      Okay, clothing in middle schools and high schools are generally more important to those age groups, than to adults. However, requiring employees to

      wear uniforms in the workplace can cause workers to become less distracted, and more focused on their work. And the more focused that workers are on

      their work, the more productive they can be.

  • Uniforms prevent offensive clothing
    The same article of street clothing could seem harmless to one person, or outrageously offensive to another person. This could involve the design on a

    shirt, the length of a skirt, and so on. When a group of workers wears the same uniform, everyone is placed on an equal level.

  • Workers become more disciplined
    Studies involving children and uniforms have revealed that when students wear uniforms, they tend to be more disciplined. While the situation is somewhat more drastic for adults working in companies, workers could certainly appear and act more professional, by wearing uniforms.
    For various workers in the healthcare industry, uniforms are required. Clothing such as scrubs, provide several benefits that can improve a worker’s performance. Furthermore, scrubs are diverse, hygienic, easy-to-easy, and easy-to-dry. Scrubs justify making uniforms, the right form of attire in the healthcare industry!

  • weight brand dit :

    The same article of street clothing chaussure Timberland could seem harmless to one person, or outrageously offensive to another person

  • Lester vous dit :

    Est-ce que vous pouvez donner un exemple concret histoire d’être sûr que je comprenne le Nike Free 5.0 fonctionnement

  • tout-y-est dit :

    Some of the people who have attended hundreds of auctions, both medium-range and high-end, take exception to some of the prices that are given out on the Antiques Road Show and other venues that are similar in nature. These people question the validity of some of those verbal appraisals for the simple fact that they are verbal. They are not in writing and they have not been paid for which makes them capricious by definition.
    A verbal appraisal is a far cry from a written one. A written appraisal may be needed for any number of different reasons such as division of marital assets, estate planning, charitable donations, tax returns and so forth.

  • ventesimmo dit :

    A written appraisal lists the replacement costs of items at today’s prices for insurance purposes. Even though a written appraisal is a respected document this does not mean that someone can take those same items that are covered by the appraisal to a local auction house or an antique store and get the appraised values. It doesn’t work that way.
    In some states, people who do written appraisals must be licensed. In other states it depends on what is being appraised. Written appraisals have their place but they are not meant to determine the value of an item someone wants to sell at auction because they need the money. When people do decide to sell some of their keepsakes or family heirlooms and they take them to auction, they are sometimes shocked by the response they get to their question, « How much do you think these will bring? »

  • vetagora dit :

    Auction houses know the reality of the secondary marketplace, which is why they are forever quoting that worn out expression, « Something is only worth what someone is willing to pay for it. » Customers understandably get upset when they are quoted lower but more realistic prices than what their appraisals show. Once the difference between secondary market values and replacement costs are explained to them, the customers can then make educated decisions as to how they wish to proceed – keep the items or sell them.
    What customers have more trouble with are verbal appraisals and how they vary from the estimated auction values they are usually quoted. Prices presented by programs like the Antiques Road Show or prices presented to them verbally by local antiques dealers are a far cry from what they will most likely get at auction.

  • version serveur dit :

    Est-ce que vous pouvez donner un exemple nike free 2 concret histoire d’être sûr que je comprenne le fonctionnement

  • painted vers dit :

    est à associer à un lien qui nike blazer mène vers une image et non à l’image elle-même

  • creatrice adresse dit :

    est à associer à un lien qui mène vers air max 90 une image et non à l’image elle-même

  • A written appraisal may be needed for any number of different reasons such as division of marital assets, estate planning, charitable donations, tax returns and so forth. Air Max TN Homme It doesn’t work that way.

  • permettant dit :

    ainsi qu’en partageant ce jeu concours nike tn requin but more realistic prices than what their appraisals show

  • to auction dit :

    provide several benefits that can improve a worker’s performance air yeezy 2 Zippers and products are found in our everyday clothing

  • lavoile-carry dit :

    Prices presented by programs like the Antiques Road Show or prices presented to http://www.lavoile-carry.fr them verbally by local antiques dealers are a far cry from what they will most likely get at auction.

  • tn dit :

    For various workers in the healthcare industry, uniforms are required. Clothing such as scrubs, http://www.gaypodcast.fr/tn-pas-chere-livraison-gratuite-chaussure-nike-tn-requin-pas-cher.html provide several benefits that can improve a worker’s performance.

  • dadicar dit :

    A written appraisal lists http://www.dadicar.fr/Nike-Tn-Requin-Pas-Cher-s1959.html the replacement costs of items at today’s prices for insurance purposes.

  • A written appraisal may be needed for any number of different reasons such as division of marital http://www.lagarenne-dulac.fr/timberland-pas-cher-soldes-timberland-rouge.html assets, estate planning, charitable donations, tax returns and so forth.

  • A written appraisal may be needed for any number of different reasons such as division of marital http://www.lavilledesamoureux.fr/jordanpascher/nike-air-max-pas-cher-chine/ assets, estate planning, charitable donations, tax returns and so forth.

  • gink-o dit :

    You could also use rolling bins and baskets to store accessories and smaller garments http://www.gink-o.fr you may not wear during the upcoming season but need to have on hand.

Réagissez