Partagez |
# Jeu 20 Déc - 16:11
AdminHeda/
PersonnageRécompenses
Messages : 188
Date d'inscription : 20/12/2018
Age : 34
Localisation : Polis
Date d'inscription : 20/12/2018
Age : 34
Localisation : Polis
Premiers pas
Félicitations ! Tu as passé l’étape cruciale de la validation. Bon jeu !
- Code:
<table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a></span></td>
</tr>
</table>
<div class="temp_profil">
<div class="rds_name">
</div>
<div class="rds_admin">{USERNAME} </div>
<div class="rds_last">{L_LAST_VISITED} : {LAST_VISIT_TIME}</div>
<div class="rds_profil">
<!-- BEGIN profile_field -->
<div id="field_id{profile_field.ID}">
<div>{profile_field.LABEL} {profile_field.CONTENT}</div>
<div>{RPG_IMAGE} {switch_rpg.rpg_fields.F_NAME} {switch_rpg.rpg_fields.F_VALUE_NEW}</div>
</div>
<!-- END profile_field -->
</div>
<div class="rds_sj-msg rds_sujet"><a rel="nofollow" class="genmed" href="/sta/{PUSERNAME}">{L_TOPICS}</a></div>
<div class="rds_mesgp">
<!-- BEGIN switch_dhow_mp -->
<span class="rds_profil">{L_PRIVATE_MSG} : {PRIVATE_MSG}</span>
<!-- END switch_dhow_mp -->
</div>
<div class="rds_sj-msg rds_messages"><a rel="nofollow" class="genmed" href="/spa/{PUSERNAME}">{L_POSTS}</a></div>
<div class="rds_img-avatar">{AVATAR_IMG}</div>
<div class="rds_enligne">
<!-- BEGIN switch_show_status -->
{USER_ONLINE}
<!-- END switch_show_status -->
</div>
<div class="rds_bottom">
<div class="rds_nnicone">
<!-- BEGIN contact_field -->
{contact_field.CONTENT}
<!-- END contact_field -->
<script type="text/javascript">
$(document).ready(function() {
if ($('.rds_enligne').text() == 'En ligne') {
$('.rds_enligne').addClass('onlinegreen');
} else {
$('.rds_enligne').addClass('onlinered');
}
});
</script>
</div>
<div>
<!-- BEGIN switch_auth_user -->
{ADMINISTRATE_USER} {BAN_USER}
<!-- END switch_auth_user -->
</div>
</div>
</div>
<br />
<script src="{JQUERY_ROOT}json/jquery.json-1.3.min.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$('[id^=field_id]').each(function() {
if ($(this).find('.field_editable').is('span, div')) {
$(this).hover(function() {
if ($(this).find('.field_editable.invisible').is('span, div')) {
$(this).find('.field_editable').prev().addClass('ajax-profil_hover').parent().addClass('ajax-profil_parent').append('<div class="ajax-profil_edit"><img src="{AJAX_EDIT_IMG}" /></div>');
$(this).find('.ajax-profil_edit').attr({
alt: "{L_FIELD_EDIT_VALUE}",
title: "{L_FIELD_EDIT_VALUE}"
}).click(function() {
$(this).prev().prev().removeClass('ajax-profil_hover').addClass('invisible').next().removeClass('invisible').append('<img src="{AJAX_VALID_IMG}" class="ajax-profil_valid" />').find('input,select');
$(this).prev().find('.ajax-profil_valid').attr({
alt: "{L_VALIDATE}",
title: "{L_VALIDATE}"
}).click(function() {
var content = new Array();
$(this).parent().find('[name]').each(function() {
var type_special = $(this).is('input[type=radio],input[type=checkbox]');
if ((type_special && $(this).is(':checked')) || !type_special) {
content.push(new Array($(this).attr('name'), $(this).attr('value')));
}
});
var id_name = $(this).parents('[id^=field_id]').attr('id');
var id = id_name.substring(8, id_name.length);
$.post(
"{U_AJAX_PROFILE}", {
id: id,
user: "{CUR_USER_ID}",
active: "{CUR_USER_ACTIVE}",
content: $.toJSON(content),
tid: "{TID}"
},
function(data) {
$.each(data, function(i, item) {
$('[id=field_id' + i + ']').find('.field_uneditable').html(item).end().find('.ajax-profil_valid').remove().end().find('.field_editable').addClass('invisible').end().find('.field_uneditable').removeClass('invisible');
});
},
"json"
);
});
$(this).remove();
});
}
}, function() {
if ($(this).find('.field_editable.invisible').is('span, div')) {
$(this).find('.field_editable').prev().removeClass('ajax-profil_hover');
$(this).find('.ajax-profil_edit').remove();
}
});
}
});
});
//]]>
</script>
Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
|
|