Rechercher

 
 

Résultats par :
 


Rechercher Recherche avancée

Derniers sujets

» Mes groupes ne s'affichent pas !
Aujourd’hui à 18:22 par Marie [TRENCH] <3

» Couleur des sujets
Aujourd’hui à 18:22 par Futuroscophile

» Diviser un sujet en plusieurs
Aujourd’hui à 18:21 par Rituel Malefique

» uploader des mp3 directement sur mon forum
Aujourd’hui à 18:19 par Elisa Rivombrosa

» Comment avoir les icones, flash, video...
Aujourd’hui à 18:19 par Rituel Malefique

» banniere pour mon forum
Aujourd’hui à 18:20 par guiguiw

» creation d'un theme complet pour forum " r clan"
Aujourd’hui à 18:19 par bilal06

» Module "sujet du moment"
Aujourd’hui à 18:18 par Presley

» Favicon
Aujourd’hui à 18:08 par arry1

Flux RSS


Yahoo! 
Google Reader 
MSN 
AOL 
NewsGator 
Rojo 
Bloglines 


Marque-page social


  http://illiweb.com/fa/social_bookmarking/digg.gif   http://illiweb.com/fa/social_bookmarking/delicious.gif   http://illiweb.com/fa/social_bookmarking/reddit.gif   http://illiweb.com/fa/social_bookmarking/stumbleupon.gif   http://illiweb.com/fa/social_bookmarking/slashdot.gif   http://illiweb.com/fa/social_bookmarking/furl.gif   http://illiweb.com/fa/social_bookmarking/yahoo.gif   http://illiweb.com/fa/social_bookmarking/google.gif   http://illiweb.com/fa/social_bookmarking/blinklist.gif   http://illiweb.com/fa/social_bookmarking/blogmarks.gif   http://illiweb.com/fa/social_bookmarking/technorati.gif 

Conservez et partagez l’adresse de Forum gratuit : Le forum des forums actifs sur votre site de social bookmarking

Centrer l'image d'un rang

Page 1 sur 2 1, 2  Suivante

Voir le sujet précédent Voir le sujet suivant Aller en bas

Question Centrer l'image d'un rang

Message par Thess le Jeu 8 Mai - 12:44

Bonjour Bonjour !

Pardon de déranger les aides disponibles !

Je souhaiterais savoir le code qu'il faut mettre pour parvenir à centrer l'image d'un rang (si cela est possible) au lieux qu'elle se situe sur le coté gauche.

Merci de votre réponse et de votre attention !

Thess
****

Messages : 208
Inscrit le : 20 Aoû 2005
Humeur : 17 ans
Localisation : Paris

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par FANCH 56 le Jeu 8 Mai - 14:17

d

FANCH 56
****

Sexe:MasculinSagittaireRat
Messages : 477
Inscrit le : 25 Juil 2005
Age : 59
Localisation : Morbihan
Emploi/Loisirs : Retraité, pêche

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Thess le Jeu 8 Mai - 15:15

Pardon ??? je ne lis rien dans le message...oO ?

Thess
****

Messages : 208
Inscrit le : 20 Aoû 2005
Humeur : 17 ans
Localisation : Paris

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par FANCH 56 le Jeu 8 Mai - 15:31

Erreur.

FANCH 56
****

Sexe:MasculinSagittaireRat
Messages : 477
Inscrit le : 25 Juil 2005
Age : 59
Localisation : Morbihan
Emploi/Loisirs : Retraité, pêche

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Thess le Jeu 8 Mai - 17:52

il n'y a pas de code ?
Car pourtant sur certains forums, on voit bien que leurs images de rangs sont au milieu au dessus de leurs avatars...

Thess
****

Messages : 208
Inscrit le : 20 Aoû 2005
Humeur : 17 ans
Localisation : Paris

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Thess le Ven 9 Mai - 20:05

UP SVP !

Thess
****

Messages : 208
Inscrit le : 20 Aoû 2005
Humeur : 17 ans
Localisation : Paris

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Ven 9 Mai - 20:47

Essaye d'écrire ceci pour le rang :
Code:
<div style="text-align: center;">Texte</div>

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Thess le Sam 10 Mai - 12:21

???

je n'ai pas tout compris...
c'est une image que je souhaite mettre... pas un texte..
Tu peux me montrer un exemple stp ?

Thess
****

Messages : 208
Inscrit le : 20 Aoû 2005
Humeur : 17 ans
Localisation : Paris

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Sam 10 Mai - 12:51

Ben si tu veux centrer l'image du rang, il faut la mettre dans le nom du rang en ajoutant ceci à son nom :
Code:
<br><div style="text-align: center;"><img src="http://adresse de l'image"></div>

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Alexarbitre le Sam 10 Mai - 12:53

Au lieu de vous embêter avec du html, vous pouvez aussi mettre le lien de votre image dans " Url de l'image du rang "

Alexarbitre
+ Hyperactif +

Sexe:MasculinSagittaireSerpent
Messages : 2077
Inscrit le : 18 Nov 2007
Age : 18
Humeur : Plus de MP | plus de support via MSN | Plus de pub
Localisation : On a tous quelque chose à se reprocher. Certains plus que d'autres.
Emploi/Loisirs : Bon niveau html, xhtml, css | Débutant javascript, Php5 et MySql

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Sam 10 Mai - 12:59

Alexarbitre a écrit:Au lieu de vous embêter avec du html, vous pouvez aussi mettre le lien de votre image dans " Url de l'image du rang "

Oui, mais l'image ne sera pas centrée, non ?

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Alexarbitre le Sam 10 Mai - 13:03

En effet scratch ...

Mais le code sera trop long dans le nom du rang, et ne marchera pas.

Alexarbitre
+ Hyperactif +

Sexe:MasculinSagittaireSerpent
Messages : 2077
Inscrit le : 18 Nov 2007
Age : 18
Humeur : Plus de MP | plus de support via MSN | Plus de pub
Localisation : On a tous quelque chose à se reprocher. Certains plus que d'autres.
Emploi/Loisirs : Bon niveau html, xhtml, css | Débutant javascript, Php5 et MySql

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Sam 10 Mai - 13:49

Ben, j'ai essayé, ça rentre, mais tout juste.
Essaye ce code qui est un peu plus court :
Code:
<br><div align="center"><img src="http://adresse de l'image"></div>

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Alexarbitre le Sam 10 Mai - 13:52

J'ai encore plus court :

Code:
<br /><center><img src="url-de-limage" /></center>


Dernière édition par Alexarbitre le Sam 10 Mai - 14:09, édité 1 fois

Alexarbitre
+ Hyperactif +

Sexe:MasculinSagittaireSerpent
Messages : 2077
Inscrit le : 18 Nov 2007
Age : 18
Humeur : Plus de MP | plus de support via MSN | Plus de pub
Localisation : On a tous quelque chose à se reprocher. Certains plus que d'autres.
Emploi/Loisirs : Bon niveau html, xhtml, css | Débutant javascript, Php5 et MySql

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Sam 10 Mai - 14:05

Effectivement, bien trouvé. Ah par contre, penser à rajouter le saut de ligne avant, sinon l'image sera collée au texte.

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Alexarbitre le Sam 10 Mai - 14:09

Message édité Wink

Alexarbitre
+ Hyperactif +

Sexe:MasculinSagittaireSerpent
Messages : 2077
Inscrit le : 18 Nov 2007
Age : 18
Humeur : Plus de MP | plus de support via MSN | Plus de pub
Localisation : On a tous quelque chose à se reprocher. Certains plus que d'autres.
Emploi/Loisirs : Bon niveau html, xhtml, css | Débutant javascript, Php5 et MySql

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Thess le Sam 10 Mai - 19:32

j'ai essayé et ca ne marche pas snif...

Thess
****

Messages : 208
Inscrit le : 20 Aoû 2005
Humeur : 17 ans
Localisation : Paris

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Sam 10 Mai - 20:25

Aucun des trois codes ?

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Thess le Sam 10 Mai - 20:48

non... l'image n'apparait plus et quand je regarde le champ il est vide et il me faut mettre un nouveau lien...

Thess
****

Messages : 208
Inscrit le : 20 Aoû 2005
Humeur : 17 ans
Localisation : Paris

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Sam 10 Mai - 21:13

Et celui là ?
Code:
<br><div align="center"><img src="http://adresse de l'image"></div>

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Conan_the_destroyer le Dim 11 Mai - 10:18

Bonjour,

J'ai testé tous vos codes ce matin car moi aussi je cherche à centrer l'image de rang.

Quand vous entrez le code avec l'Url de votre image dans la fenetre d'association de l'image et que vous validez et que vous retournez dans l'administration, la fenetre est redevenue vide.

Ce qui veut dire que le code quel qu'il soit n'est pas accepté... Very Happy

Après pourquoi? Je pense que seul un lien vers votre image est accepté, c'est tout... scratch

Ou alors il faut passer par les templates pour faire la modif...mais quelle page HTML contient le placement précis de cette image de rang?

Conan_the_destroyer
Restez sympa, je suis un nouveau membre ;)

Sexe:MasculinScorpionChèvre
Messages : 15
Inscrit le : 29 Jan 2008
Age : 40
Humeur : Entre l'époque où les océans ont englouti l'Atlantide et l'avènement des fils d'Arius...
Localisation : Dans le monde perdu
Emploi/Loisirs : Technicien MAP moteur proto

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Alexarbitre le Dim 11 Mai - 11:19

reflexion Tu as une très bonne idée !

Dans PA => Thèmes => Templates => Profil
J'ai édité le Template profile_view_body ( le seul qui correspondrait selon moi à l'affichage du rang ), ai regardé les variables entre accolades, mais n'ai pas réussi à déterminer laquelle commandait l'affichage du rang, sauf une qui me semble intéressante.

Nous allons faire un test :

Vous allez supprimer le contenu de ce template en cliquant sur " modifier " et le remplacer par celui-ci :

<table width="100%" border="0" cellspacing="2" cellpadding="2" align="center">
<tr>
<td><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a></span></td>
</tr>
</table>

<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
<tr>
<th class="thHead" colspan="2" nowrap="nowrap" height="25">{L_VIEWING_PROFILE}</th>
</tr>
<tr>
<td class="catLeft" align="center" width="40%" height="28"><b><span class="gen">{L_USER_PRESENCE}</span></b></td>
<td class="catRight" width="60%" align="center"><b><span class="gen">{L_ABOUT_USER}</span></b></td>
</tr>
<tr>
<td class="row1" align="center" valign="top" height="120">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_AVATAR_IMG}</span></td>
<td width="100%"><b><span class="gen">{AVATAR_IMG}</span></b></td>
</tr>
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_RANK}:</span></td>
<td width="100%"><center><b><span class="gen">{POSTER_RANK}</span></b></center></td>
</tr>
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_STATUT}:</span></td>
<td width="100%"><b><span class="gen">{USER_ONLINE}</span></b></td>
</tr>
<!-- BEGIN switch_allow_friendsfoes -->
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_FRIENDS_AND_FOES}:</span></td>
<td width="100%"><strong><span class="gen">{FRIENDSFOES}</strong></b></td>
</tr>
<!-- END switch_allow_friendsfoes -->
<!-- BEGIN switch_auth_user -->
<tr>
<td valign="middle" nowrap="nowrap" align="right"><br /><span class="gen">{L_ADMINISTRATE_USER}:</span></td>
<td width="100%"><br /><strong><span class="gen">{ADMINISTRATE_USER}{BAN_USER}</span></strong></td>
</tr>
<!-- END switch_auth_user -->
</table>
</td>
<td class="row1" rowspan="3" valign="top">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td align="right" valign="middle" nowrap="nowrap"><span class="gen">{L_JOINED}: </span></td>
<td width="100%"><b><span class="gen">{JOINED}</span></b></td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap"><span class="gen">{L_LAST_VISITED}: </span></td>
<td><b><span class="gen">{LAST_VISIT_TIME}</span></b></td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap"><span class="gen">{L_TOTAL_POSTS}: </span></td>
<td valign="top"><b><span class="gen">{POSTS}</span></b><br>
<span class="genmed">[{POST_PERCENT_STATS} / {POST_DAY_STATS}]</span> <br>
<span class="genmed"><a class="genmed" href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS} :</a><br>
- <a class="genmed" href="{U_SEARCH_USER}">{L_TOPICS}</a><br>
- <a class="genmed" href="{U_SEARCH_USER}&show_results=posts">{L_POSTS}</a></span></td>
</tr>
<!-- BEGIN switch_dhow_mp -->
<tr>
<td align="right" valign="middle" nowrap="nowrap"><span class="gen">{L_PRIVATE_MSG}: </span></td>
<td><b><span class="gen">{PRIVATE_MSG}</span></b></td>
</tr>
<!-- END switch_dhow_mp -->
<tr>
<td align="right" valign="middle" nowrap="nowrap"><span class="gen">{L_LOCATION}: </span></td>
<td><b><span class="gen">{LOCATION}</span></b></td>
</tr>
<tr>
<td align="right" valign="middle" nowrap="nowrap"><span class="gen">{L_WEBSITE}: </span></td>
<td><span class="gen"><b>{WWW}</b></span></td>
</tr>
<tr>
<td align="right" valign="middle" nowrap="nowrap"><span class="gen">{L_OCCUPATION}: </span></td>
<td><b><span class="gen">{OCCUPATION}</span></b></td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap"><span class="gen">{L_INTERESTS}: </span></td>
<td><b><span class="gen">{INTERESTS}</span></b></td>
</tr>
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_GENDER}: </span></td>
<td> <b><span class="gen">{GENDER}</span></b></td>
</tr>
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_BIRTHDAY}: </span></td>
<td><b><span class="gen">{BIRTHDAY} {ZODIAC_IMG}{CHINESE_IMG}</span></b></td>
</tr>
<!-- BEGIN switch_profile_fields -->
<tr>
<td colspan="2" class="catLeft" align="center"><b><span class="gen">
<form action="profile.forum?mode=viewprofile&u={USER_ID}" method="post">
<input type="hidden" name="userid" value="{USER_ID}" />
{L_PROFILE_FIELDS}</span></b>
</td>
</tr>
<!-- BEGIN field -->
<tr>
<td class="gensmall row1" align="right"><span>{switch_profile_fields.field.NAME}:</span></td>
<td class="gensmall row2" valign="middle"><span>{switch_profile_fields.field.OBJECT}</span><br /></td>
</tr>
<!-- END field -->
<!-- BEGIN show_submit -->
<tr>
<td class="gensmall row1" align="right"></td>
<td class="gensmall row2" valign="middle"><input type="submit" value="{L_MODIFY}" name="modify_profilefields" class="liteoption"/><br /></td>
</tr>
<!-- END show_submit -->
</form>
<!-- END switch_profile_fields -->
</table>
</td>
</tr>
<tr>
<td class="catLeft" align="center" height="28"><b><span class="gen">{L_CONTACT} Invité</span></b></td>
</tr>
<tr>
<td class="row1" valign="top" height="{S_CONTACT_HEIGHT}">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
{L_EMAIL_ADDRESS}
{EMAIL_IMG}
<tr>
<td align="right" valign="middle" nowrap="nowrap"><span class="gen">{L_PM}:</span></td>
<td class="row1" valign="middle"><b><span class="gen">{PM_IMG}</span></b></td>
</tr>
{L_MESSENGER}
{MSN}
{L_YAHOO}
{YIM_IMG}
{L_AIM}
{AIM_IMG}
{L_ICQ_NUMBER}

<td class="row1">
<script type="text/javascript" language="JavaScript">
<!--
if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 ) {
document.write(' {ICQ_IMG}');
} else {
document.write('<table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;><tr><td nowrap=&quot;nowrap&quot;><div style=&quot;position:relative;height:18px&quot;><div style=&quot;position:absolute&quot;>{ICQ_IMG}</div><div style=&quot;position:absolute;left:3px;top:-1px&quot;>{ICQ_STATUS_IMG}</div></div></td></tr></table>');
}
//-->
</script>
<noscript>
{ICQ_IMG}
</noscript>
{L_SKYPE}
{SKYPE_IMG}
</td>
</tr>

<!-- BEGIN switch_admin_user_comment_active -->
<tr>
<td align="right" valign="middle" nowrap="nowrap" width="10%">
<span class="gen">{L_COMMENTS} :</span><br><span class="gensmall">{L_MODS_AND_ADMINS}</span>
</td>
<td class="row1" valign="middle" width="90%">
<table align="center">
<tr>
<td>
<form action="{S_PROFILE_ACTION}" method="post" name="user_comment">
<input type="hidden" value="update_admin_user_comment" name="mode" />
<input type="hidden" value="{USER_ID}" name="userid" />
<textarea class="post" name="admin_user_comment_text" rows="8" cols="30">{ADMIN_USER_COMMENT}</textarea>
<br />
<input type="submit" class="mainoption" name="user_comment_maj" value="{L_UPDATE}" />
</form>
</td>
</tr>
</table>

</td>
</tr>

<!-- END switch_admin_user_comment_active -->
</table>
</td>
</tr>
<!-- BEGIN switch_rpg -->
<tr>
<td colspan="2" class="catLeft" align="center"><b><span class="gen">{L_VIEWING_RPG}</span></b></td>
</tr>
<tr>
<td class="row1" align="center" valign="top" height="6">
{RPG_IMAGE}<br><br>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<!-- BEGIN rpg_fields_left -->
<tr>
<td align="right" valign="middle" nowrap="nowrap">
<span class="gen">{switch_rpg.rpg_fields_left.F_NAME} : </span>
</td>
<td width="100%" valign="middle" nowrap="nowrap">
<b><span class="gen">{switch_rpg.rpg_fields_left.F_VALUE}</b></span>
</td>
</tr>
<!-- END rpg_fields_left -->
</table>
</td>
<td class="row1" align="center" valign="top" height="6">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<!-- BEGIN rpg_fields -->
<tr>
<td align="right" valign="middle" nowrap="nowrap">
<span class="gen">{switch_rpg.rpg_fields.F_NAME} : </span>
</td>
<td width="100%" valign="baseline">
<b><span class="gen">{switch_rpg.rpg_fields.F_VALUE}</b></span>
</td>
</tr>
<!-- END rpg_fields -->
</table>
</td>
</tr>
<tr>
<td colspan="2" align="center" class="row1">
{U_ADMIN_RPG}
</td>
</tr>
<!-- END switch_rpg -->
</table>
<br />


Fais un copier/coller ça sera plus rapide.
=> Valides
Quand tu auras enregistré, tu seras redirigé vers la page avec tous les templates du profil affichés.
Retourne voir le template profile_view_body, qui aura changé de couleur, et clique sur le gros + vert qui est apparu à côté pour revalider.

Maintenant, tu dois pouvoir mettre le lien du rang dans la case pour image, et il devrait être centré.

Alexarbitre
+ Hyperactif +

Sexe:MasculinSagittaireSerpent
Messages : 2077
Inscrit le : 18 Nov 2007
Age : 18
Humeur : Plus de MP | plus de support via MSN | Plus de pub
Localisation : On a tous quelque chose à se reprocher. Certains plus que d'autres.
Emploi/Loisirs : Bon niveau html, xhtml, css | Débutant javascript, Php5 et MySql

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Dim 11 Mai - 11:22

Désolé de te couper Alexarbitre, j'ai juste besoin d'une précision :
Conan_the_destroyer a écrit:Quand
vous entrez le code avec l'Url de votre image dans la fenetre
d'association de l'image et que vous validez et que vous retournez dans
l'administration, la fenetre est redevenue vide.

C'est normal, ce code doit être entré dans le nom du rang.

J'ai fait un test et ça marche très bien, regardez ici : http://demonstration2.forumactif.fr/type-01-f10/exemple-de-message-t1.htm#3

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Alexarbitre le Dim 11 Mai - 11:26

Merci ZC Wink

Alexarbitre
+ Hyperactif +

Sexe:MasculinSagittaireSerpent
Messages : 2077
Inscrit le : 18 Nov 2007
Age : 18
Humeur : Plus de MP | plus de support via MSN | Plus de pub
Localisation : On a tous quelque chose à se reprocher. Certains plus que d'autres.
Emploi/Loisirs : Bon niveau html, xhtml, css | Débutant javascript, Php5 et MySql

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Dim 11 Mai - 12:32

De rien.
Par contre, j'ai essayé de modifeir les templates sur un forum en phpbb2; et cela ne marche pas, c'est bizarre pourtant ce que tu as entré me semble tout à fait correct...
reflexion

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Alexarbitre le Dim 11 Mai - 12:35

Comme je l'ai marqué, je ne suis pas tellement sûr de la variable Confused
Et c'est le template quand tu vas voir le profil, pas celui qu'on trouve dans les posts.

Alexarbitre
+ Hyperactif +

Sexe:MasculinSagittaireSerpent
Messages : 2077
Inscrit le : 18 Nov 2007
Age : 18
Humeur : Plus de MP | plus de support via MSN | Plus de pub
Localisation : On a tous quelque chose à se reprocher. Certains plus que d'autres.
Emploi/Loisirs : Bon niveau html, xhtml, css | Débutant javascript, Php5 et MySql

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Dim 11 Mai - 12:47

Edit : Ah non, j'ai trouvé mieux, faut faire ceci :
Va dans Templates/Génral et modifie viewtopic_body (en bas), tu effaces tout, et tu colles ceci :
Code:
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td align="left" valign="middle" nowrap="nowrap"><span class="nav">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" id="{POST_IMG_ID}" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a> 
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" id="i_reply" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authreply -->
</span></td>
<td class="nav" valign="middle" width="100%"><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC}</span></td>
<!-- BEGIN insert_plus_menu -->
<td align="right" valign="bottom" nowrap="nowrap" width="100%"><span class="gensmall"><b>
<script type="text/javascript"><!--
insert_plus_menu('f{FORUM_ID}&t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
//-->
</script>
</b></span></td>
<!-- END insert_plus_menu -->
</tr>
</table>
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="3">
<tr align="right">
<td class="catHead" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="9%" class="noprint"></td>
<td align="center" nowrap="nowrap" class="t-title"> <span class="cattitle"><!-- google_ad_section_start -->{TOPIC_TITLE}<!-- google_ad_section_end --></span></td>
<td align="right" nowrap="nowrap" width="9%" class="browse-arrows"><a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> <a href="#bottom">{L_GOTO_DOWN}</a> </td>
</tr>
</table>
</td>
<tr><td class="row1" colspan="2" align="right" valign="top"><span class="gensmall">{PAGINATION}</span></td></tr>
</tr>{POLL_DISPLAY}<tr>
<th class="thLeft" nowrap="nowrap" width="150" height="26">{L_AUTHOR}</th>
<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
   <!-- BEGIN displayed -->
   <tr class="post">
      <td class="{postrow.displayed.ROW_CLASS}" valign="top" width="150">
         <span class="name"><a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span><br />
         <span class="postdetails poster-profile">
            {postrow.displayed.POSTER_RANK}<div style="text-align: center;">
            {postrow.displayed.RANK_IMAGE}</div>{postrow.displayed.POSTER_AVATAR}<br /><br />
            {postrow.displayed.POSTER_GENDER}
            {postrow.displayed.ZODIAC_IMG}
            {postrow.displayed.CHINESE_IMG}<br />
            {postrow.displayed.POSTER_AGE_INT}
            {postrow.displayed.POSTER_AGE}{postrow.displayed.POSTER_JOINED_INT}
            {postrow.displayed.POSTER_JOINED}{postrow.displayed.POSTER_POSTS_INT}
            {postrow.displayed.POSTER_POSTS}{postrow.displayed.POSTER_FROM_INT}
            {postrow.displayed.POSTER_FROM}{postrow.displayed.POSTER_HOBBIES_INT}
            {postrow.displayed.POSTER_HOBBIES}{postrow.displayed.POSTER_HUMOR_INT}
            {postrow.displayed.POSTER_HUMOR}
            {postrow.displayed.POSTER_PERSONALIZED_PROFILE}
            {postrow.displayed.POSTER_RPG}
         </span><br />
      </td>
      <td class="{postrow.displayed.ROW_CLASS}" valign="top" width="100%" height="28">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td><span class="postdetails"><img src="{postrow.displayed.MINI_POST_IMG}" alt="{postrow.displayed.L_MINI_POST_ALT}" title="{postrow.displayed.L_MINI_POST_ALT}" border="0">{L_POST_SUBJECT}: {postrow.displayed.POST_SUBJECT}  <img src="{postrow.displayed.MINI_TIME_IMG}" alt="" border="0">{postrow.displayed.POST_DATE}</span></td>
               <td align="right" valign="top" nowrap="nowrap" class="post-options">
                  {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}
               </td>
            </tr>
            <tr>
               <td colspan="2" class="hr">
                  <hr />
               </td>
            </tr>
            <tr>
               <td colspan="2"><span class="postbody"><!-- google_ad_section_start -->{postrow.displayed.MESSAGE}<!-- google_ad_section_end -->{postrow.displayed.SIGNATURE}</span><span class="gensmall">{postrow.displayed.EDITED_MESSAGE}</span></td>
            </tr>
         </table>
      </td>
   </tr>
   <tr>
      <td class="{postrow.displayed.ROW_CLASS} browse-arrows" align="center" valign="middle" width="150"><a href="#top">{L_BACK_TO_TOP}</a> <a href="#bottom">{L_GOTO_DOWN}</a></td>
      <td class="{postrow.displayed.ROW_CLASS} messaging" valign="bottom" nowrap="nowrap" width="100%" height="28">
         <table width="18" border="0" cellspacing="0" cellpadding="0" height="18">
            <tr>
               <td valign="middle" nowrap="nowrap">
               {postrow.displayed.PROFILE_IMG} {postrow.displayed.PM_IMG} {postrow.displayed.EMAIL_IMG} {postrow.displayed.WWW_IMG} {postrow.displayed.AIM_IMG} {postrow.displayed.YIM_IMG} {postrow.displayed.MSN_IMG} {postrow.displayed.SKYPE_IMG} {postrow.displayed.ONLINE_IMG}
               <script type="text/javascript" language="JavaScript"><!--
               if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 ) {
                  document.write('{postrow.displayed.ICQ_IMG}');
               } else {
                  document.write('</td><td>&nbsp;</td><td valign=&quot;top&quot; nowrap=&quot;nowrap&quot;><div style=&quot;position:relative&quot;><div style=&quot;position:absolute&quot;>{postrow.displayed.ICQ_IMG}</div><div style=&quot;position:absolute;left:3px;top:-1px&quot;>{postrow.displayed.ICQ_STATUS_IMG}</div></div>');
               }
               //-->
               </script>
               <noscript>{postrow.displayed.ICQ_IMG}</noscript>
               </td>
            </tr>
         </table>
      </td>
   </tr>
   <!-- END displayed -->
   <!-- BEGIN hidden -->
   <tr>
      <td class="postdetails {postrow.hidden.ROW_CLASS}" colspan="2" align="center">{postrow.hidden.MESSAGE}</td>
   </tr>
   <!-- END hidden -->
<!-- END postrow -->
<!-- BEGIN no_post -->
<tr align="center">
<td class="row1" colspan="2" height="28">
   <span class="genmed">{no_post.L_NO_POST}</span>
</td>
</tr>
<!-- END no_post -->
<tr align="right">
<td class="catBottom" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<td width="9%"></td>
<td align="center" nowrap="nowrap"><a name="bottomtitle"></a><span class="cattitle">{TOPIC_TITLE}</span></td>
<td align="right" nowrap="nowrap" width="9%"><a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> <a href="#top">{L_BACK_TO_TOP}</a> </td>
</table>
</td>
</tr>
</table>

<table class="forumline noprint" width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="row2" valign="top" {COLSPAN_PAGINATION} width="150"><span class="gensmall">{PAGE_NUMBER}</span></td>
<!-- BEGIN topicpagination -->
<td class="row1" align="right" valign="top"><span class="gensmall">{PAGINATION}</span></td>
<!-- END topicpagination -->
</tr>
<!-- BEGIN switch_user_logged_in -->
<!-- BEGIN watchtopic -->
<tr>
<td class="row2" colspan="2" align="right" valign="top"><span class="gensmall">{S_WATCH_TOPIC}</span></td>
</tr>
<!-- END watchtopic -->
<!-- END switch_user_logged_in -->
<tr>
<td class="row2" colspan="2" align="center" style="padding:0px">
<!-- BEGIN switch_user_logged_in -->
<a name="quickreply"></a>
{QUICK_REPLY_FORM}<br />
<!-- END switch_user_logged_in -->
</td>
</tr>
<tbody id="info_open" style="display:''">
<!-- BEGIN show_permissions -->
<tr>
<td class="row2" valign="top" width="25%"><span class="gensmall">{L_TABS_PERMISSIONS}</span></td>
<td class="row1" valign="top" width="75%"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
<!-- END show_permissions -->
<tr>
<td class="catBottom" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" width="100%"><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC}</span></td>
<!-- BEGIN show_permissions -->
<td align="right" valign="middle"><span class="gensmall"><a href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0"></a></span></td>
<!-- END show_permissions -->
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="info_close" style="display:none">
<tr>
<td class="catBottom" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" width="100%"><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC}</span></td>
<td align="right" valign="middle"><span class="gensmall"><a href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0"></a></span></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>


<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="2" align="center">
<tr>
<form action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
<td align="left" valign="middle" nowrap="nowrap" {WIDTH_GALLERY}><span class="nav">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" id="{POST_IMG_ID}" alt="{L_POST_NEW_TOPIC}" align="middle" border="0"></a> 
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" id="i_reply" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0"></a>
<!-- END switch_user_authreply -->
</span>
</td>
<!-- BEGIN viewtopic_bottom -->
<td align="right" nowrap="nowrap"><span class="gensmall">{L_JUMP_TO}: {S_JUMPBOX_SELECT} <input class="liteoption" type="submit" value="{L_GO}"></span></td>
<!-- END viewtopic_bottom -->
<!-- BEGIN moderation_panel -->
<td align="center">
<span class="gensmall">{moderation_panel.U_YOUR_PERSONAL_MODERATE}</span>
</td>
<td align="center" width="250">
<span class="gensmall"> </span>
</td>
<!-- END moderation_panel -->
</form>
</tr>
<!-- BEGIN viewtopic_bottom -->
<tr>
<td colspan="2" align="left" valign="top" nowrap="nowrap"><br>{S_TOPIC_ADMIN}<br />
<form name="action" method="get" action="{S_FORM_MOD_ACTION}">
<input type="hidden" name="t" value="{TOPIC_ID}" />
<input type="hidden" name="sid" value="{S_SID}" />
<span class="gen">{L_MOD_TOOLS}<br />{S_SELECT_MOD} <input class="liteoption" type="submit" value="{L_GO}"></span>
</form>
</td>
</tr>
<!-- END viewtopic_bottom -->
</table>


Après, tu valides, et tu coches la petite croix verte.

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Conan_the_destroyer le Dim 11 Mai - 14:07

Mille excuses, je n'avais pas bien lu, parfois les réveils le matin sont difficiles. Very Happy

J'ai fait comme expliqué dans le nom de rang, mais mon lien d'image semble trop grand(je me suis servi de servimage) le code est donc tronqué ainsi que le lien vers l'image... Et comme je veux garder le nom de rang, cela pose problème...

Je vais donc passer par les templates, Merci. Very Happy

Conan_the_destroyer
Restez sympa, je suis un nouveau membre ;)

Sexe:MasculinScorpionChèvre
Messages : 15
Inscrit le : 29 Jan 2008
Age : 40
Humeur : Entre l'époque où les océans ont englouti l'Atlantide et l'avènement des fils d'Arius...
Localisation : Dans le monde perdu
Emploi/Loisirs : Technicien MAP moteur proto

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par ze_chaofan le Dim 11 Mai - 14:28

De rien, dis nous si ça marche correctement ce dernier code.

ze_chaofan
# Tropactif #

Sexe:MasculinGémeauxCoq
Messages : 1569
Inscrit le : 15 Mai 2007
Age : 15
Humeur : Localiser, Comprendre & Résoudre
Localisation : Je suis à la fois devant, derrière, et à côté de toi... ça te va comme réponse ?
Emploi/Loisirs : Me casser la tête.

Revenir en haut Aller en bas

Re: Centrer l'image d'un rang

Message par Thess le Dim 11 Mai - 15:14

Olalala...je ne comprends rien...

que faut il faire alors ?

Rentre l'un des trois premier codes que vous avez donné dans la partie " titre " ?

Thess
****

Messages : 208
Inscrit le : 20 Aoû 2005
Humeur : 17 ans
Localisation : Paris

Revenir en haut Aller en bas

Page 1 sur 2 1, 2  Suivante

Voir le sujet précédent Voir le sujet suivant Revenir en haut


Permission de ce forum:

Vous ne pouvez pas répondre aux sujets dans ce forum