MyBB.support, le portail francophone de MyBB
[Resolue]Cherche plugin - Version imprimable

+- MyBB.support, le portail francophone de MyBB (http://mybb.fr)
+-- Forum : MyBB.fr (http://mybb.fr/forum-1.html)
+--- Forum : Support (http://mybb.fr/forum-5.html)
+--- Sujet : [Resolue]Cherche plugin (/thread-4353.html)

Pages : 1 2 3 4


RE: [Resolue]Cherche plugin - Saphir - 04-08-2011

Ouais mais ça ça va plutôt être côté CSS, et moi je m'y connais pas vraiment là-dedans ! Big Grin


RE: [Resolue]Cherche plugin - britana - 04-08-2011

Une dernière petite question est-il possible de faire comme sur l'image, le pseudo ainsi que le logo d'activité dessus un rectangle :

[Image: 177874montre.png]


RE: [Resolue]Cherche plugin - Saphir - 04-08-2011

Vu le dégradé, le rectangle me semble être une image, donc même méthode que précédemment, <div style="background-image: url('http://tonsite.fr/image.png')> / </div>, mais au niveau de $post['username'] (un truc dans le genre, là j'ai pas cherché).


RE: [Resolue]Cherche plugin - exdiogene - 04-08-2011

Voici une suggestion de ma part, au lieu de :
Code PHP :
<div style="background-image: url('tonimage.png'); padding-top: 10px; padding-bottom: 10px;">{$post['useravatar']}</div

Je suggère, en remplaçant par les largeur et hauteur réelles de l'image de fond en pixels :
Code PHP :
<div style="background-image: url('tonimage.png'); height: 150px; width: 150px; text-align: center; overflow: hidden">{$post['useravatar']}</div

De cette façon cela se présentera mieux si l'avatar est de petite ou grande taille... Wink


RE: [Resolue]Cherche plugin - britana - 04-08-2011

je test ce que tu dis ex, Saphir rien ne s'affiche pour le pseudo.


RE: [Resolue]Cherche plugin - Saphir - 04-08-2011

Ben je vois pas alors :s
Et merci exdiogene, il faut vraiment que je révise mon css Big Grin

Euh EDIT parce que gros doute, tu as bien mis ça à la place de $post['username'] ?
Code PHP :
<div style="background-image: url('http://tonsite.fr/image.png')">$post['username']</div

et non pas
Code PHP :
<div style="background-image: url('http://tonsite.fr/image.png')> / </div> 

OK, j'avais oublié des guillemets -_-"


RE: [Resolue]Cherche plugin - Iced - 04-08-2011

@Britana, t'as bien remplacé http://tonsite.fr/image.png par l'adresse de l'image, hein?


RE: [Resolue]Cherche plugin - britana - 04-08-2011

Oui et je n'ai pas de
Code PHP :
$post['username'
, j'ai
Code PHP :
{$post['onlinestatus']}{$post['profilelink']} 



RE: [Resolue]Cherche plugin - exdiogene - 04-08-2011

Alors il faudra faire comme :
Code PHP :
<div style="background-image: url('http://tonsite.fr/image.png');">{$post['onlinestatus']}{$post['profilelink']}</div



RE: [Resolue]Cherche plugin - britana - 05-08-2011

Merci exdiogene ça marche, aurais-tu un tuyau pour les marges ?


RE: [Resolue]Cherche plugin - britana - 05-08-2011

Désolé du double message mais quelqu'un aurait-il une solution pour la marge ainsi que pour que lors des long message, le vert ou jaune continu et ne s'arrête pas ?


RE: [Resolue]Cherche plugin - exdiogene - 05-08-2011

Selon moi la classe CSS qu'il faut modifier pour la couleur est "postbit_details" alors il faudrait quelque chose comme ceci dans le style pour avoir le vert :

.postbit_details{
background: #c0ff80;
}


RE: [Resolue]Cherche plugin - britana - 28-08-2011

Au niveau des couleurs, le php ça fait bof car avec Mozilla, le CSS n'est pas détecté, n'y aurait-il pas une autre solution ?


RE: [Resolue]Cherche plugin - britana - 31-08-2011

N'y a t'il personne qui puisse m'aide ?


RE: Cherche plugin - Gérald59 - 03-09-2011

[quote='exdiogene' pid='24093' dateline='1309525898']
La variable $post englobe les colonnes des tables mybb_posts et mybb_users...

Dans la table users il y a la colonne 'usergroup' qui peut être utilisée si 'gid' n'y apparait pas. Alors le code serait :
Code PHP :
<div class="monstyle_{$post['usergroup']}">{$post['message']}</div


Bonjour,

Pardon de relancer se sujet, mais je voudrai pareil, mais je sais pas ou aller exactement pour faire comme toi exdiogene, je veux pas me tromper, alors je préfère attendre tes explications.
MERCI.




RE: Cherche plugin - Saphir - 03-09-2011

(30-06-2011, 21:44)exdiogene a écrit :  Si le "rang" signifie un groupe, alors un plugin n'est pas nécessaire, il suffit de créer un style particulier pour un groupe particulier.

Ensuite il faut inclure le message dans une section similaire à celle-ci dans le template "postbit":
Code PHP :
<div class="monstyle_{$post['usergroup']}">{$post['message']}</div

Pour terminer il faut inclure le style dans "global.css" du thème choisi comme ceci pour le groupe #4:
Code PHP :
.monstyle_4{
  
background #ffff00;





RE: [Resolue]Cherche plugin - Gérald59 - 03-09-2011

Ou dans tout ça:

postbit
postbit_attachments
postbit_attachments_attachment
postbit_attachments_attachment_unapproved
postbit_attachments_images
postbit_attachments_images_image
postbit_attachments_thumbnails
postbit_attachments_thumbnails_thumbnail
postbit_author_guest
postbit_author_user
postbit_avatar
postbit_away
postbit_classic
postbit_delete_pm
postbit_edit
postbit_editedby
postbit_email
postbit_find
postbit_forward_pm
postbit_gotopost
postbit_groupimage
postbit_ignored
postbit_inlinecheck
postbit_iplogged_hiden
postbit_iplogged_show
postbit_multiquote
postbit_offline
postbit_online
postbit_pm
postbit_posturl
postbit_quickdelete
postbit_quote
postbit_rep_button
postbit_reply_pm
postbit_replyall_pm
postbit_report
postbit_reputation
postbit_signature
postbit_warn
postbit_warninglevel
postbit_www


RE: [Resolue]Cherche plugin - Saphir - 03-09-2011

postbit et postbit_classic


RE: [Resolue]Cherche plugin - Gérald59 - 04-09-2011

J'ai réussit, merci mais j'ai pas l'encadrement comme vous juste le fond du texte qui est vert !!!!


RE: [Resolue]Cherche plugin - Gérald59 - 04-09-2011

(03-09-2011, 23:44)Gérald59 a écrit :  Ou dans tout ça:

postbit
postbit_attachments
postbit_attachments_attachment
postbit_attachments_attachment_unapproved
postbit_attachments_images
postbit_attachments_images_image
postbit_attachments_thumbnails
postbit_attachments_thumbnails_thumbnail
postbit_author_guest
postbit_author_user
postbit_avatar
postbit_away
postbit_classic
postbit_delete_pm
postbit_edit
postbit_editedby
postbit_email
postbit_find
postbit_forward_pm
postbit_gotopost
postbit_groupimage
postbit_ignored
postbit_inlinecheck
postbit_iplogged_hiden
postbit_iplogged_show
postbit_multiquote
postbit_offline
postbit_online
postbit_pm
postbit_posturl
postbit_quickdelete
postbit_quote
postbit_rep_button
postbit_reply_pm
postbit_replyall_pm
postbit_report
postbit_reputation
postbit_signature
postbit_warn
postbit_warninglevel
postbit_www

Et pour les modérateurs c'est lequel ?


 Utilitaire de traduction fourni par Regentronique