Multiple problème

dclick07 Messages postés 43 Date d'inscription mercredi 22 novembre 2006 Statut Membre Dernière intervention 26 février 2008 - 21 janv. 2008 à 19:19
cs_garfield90 Messages postés 388 Date d'inscription lundi 7 juillet 2003 Statut Webmaster Dernière intervention 10 février 2009 - 23 janv. 2008 à 16:18
Bonjour, j'aurais quelque question qui pourrait
grandement m'aider. Je suis venu demander de l'aide sur ce forum car
c'était mon dernier recours svp aider moi !!!!



Code:
,

----

{include file='header.tpl'}

{* JAVASCRIPT FOR ADDING COMMENT *}

{literal}

<script type='text/javascript'>

<!--

var comment_changed = 0;

var first_comment = 1;

var last_comment = {/literal}{$comments|@count}{literal};

var next_comment = last_comment+1;

var total_comments = {/literal}{$total_comments}{literal};

function removeText(commentBody) {

  if(comment_changed == 0) {

    commentBody.value='';

    commentBody.style.color='#000000';

    comment_changed = 1;

  }

}

function addText(commentBody) {

  if(commentBody.value == '') {

    commentBody.value = '{/literal}{$profile44}{literal}';

    commentBody.style.color = '#888888';

    comment_changed = 0;

  }

}

function checkText() {

  if(comment_changed == 0) {

    var commentBody = document.getElementById('comment_body');

    commentBody.value='';

  }

  var commentSubmit = document.getElementById('comment_submit');

  commentSubmit.value = '{/literal}{$profile45}{literal}';

  commentSubmit.disabled = true;

 

}

function addComment(is_error, comment_body, comment_date) {

  if(is_error == 1) {

    var commentError = document.getElementById('comment_error');

    commentError.style.display = 'block';

    if(comment_body == '') {

      commentError.innerHTML = '{/literal}{$profile46}{literal}';

    } else {

      commentError.innerHTML = '{/literal}{$profile47}{literal}';

    }

    var commentSubmit = document.getElementById('comment_submit');

    commentSubmit.value = '{/literal}{$profile48}{literal}';

    commentSubmit.disabled = false;

  } else {

    var commentError = document.getElementById('comment_error');

    commentError.style.display = 'none';

    commentError.innerHTML = '';

    var commentBody = document.getElementById('comment_body');

    commentBody.value = '';

    addText(commentBody);

    var commentSubmit = document.getElementById('comment_submit');

    commentSubmit.value = '{/literal}{$profile48}{literal}';

    commentSubmit.disabled = false;

    var commentSecure = document.getElementById('comment_secure');

    commentSecure.value=''

    var secureImage = document.getElementById('secure_image');

    secureImage.src = secureImage.src + '?' + (new Date()).getTime();

    total_comments++;

    var totalComments = document.getElementById('total_comments');

    totalComments.innerHTML = total_comments;

    if(total_comments > 10) {

      var oldComment = document.getElementById('comment_'+first_comment);

      if(oldComment) { oldComment.style.display = 'none'; first_comment++; }

    }

    var newComment = document.createElement('div');

    var divIdName = 'comment_'+next_comment;

    newComment.setAttribute('id',divIdName);

    var newTable = "<table cellpadding='0' cellspacing='0'
width='100%'>----, \";

    {/literal}

      {if $user->user_info.user_id != 0}

        newTable
\"www.outaouaisweb.com/index_main.asp


Pour l'instant j'me contenterais de ca :)


Si quelqu'un peut m'aider ce serais grandement aprécié!!!


Ceci n'est pas du spam mais simplement le site que je suis en train de construire!! www.garde-conact.com


Merci à tous !

1 réponse

cs_garfield90 Messages postés 388 Date d'inscription lundi 7 juillet 2003 Statut Webmaster Dernière intervention 10 février 2009
23 janv. 2008 à 16:18
Si tu as acheter ca,  demande a la société/personne qu'il l'a fait de te le modifier en fonction de tes besoins.
car perso, je ne toucherai jamais a un code comme ca, car c'est immonde à lire.

Welcome in a smarty club

"They are 10 sorts of persons whose understand binary and whose not"
0
Rejoignez-nous