boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Page de Post/Edit

 
Post new topic   Reply to topic    boardom Forum Index -> Aide en français
View previous topic :: View next topic  
Author Message
jason



Joined: 03 Oct 2003
Posts: 5

PostPosted: Fri Oct 03, 2003 4:30 am    Post subject: Page de Post/Edit Reply with quote

Bonjour a tous,

ma page de Post/Edit est un peu trop rudimentaire a mon gout, est-ce normal que les icones de raccourcis vers les smileys n'apparaissent pas?

autre question : quand j'insere une image dans un post, comment fait-on pour l'integrer dans le texte (en laissant un petit espace entre l'image et le texte, en alignant et tout et tout...)

Enfin, derniere question : comment fait on pour justifier le texte d'un post?

Merci d'avance Very Happy
Back to top
View user's profile Send private message Visit poster's website
archiguy



Joined: 05 Mar 2003
Posts: 47

PostPosted: Mon Oct 06, 2003 6:56 pm    Post subject: Reply with quote

1 (smileys) - c'est normal b2 ne possede pas cette fonction a la base....il faut la rajouter soi meme
change ca dans include/edit.form.php

Code:

<form name="post" action="b2edit.php" method="POST">
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
<input type="hidden" name="action" value="<?php echo $form_action.$form_extra ?>" />

<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
   <td<?php

if ($action != "editcomment") {

// this is for everything but comment editing
   ?>>
   <table height="60" align="left" cellpadding="0" cellspacing="0">
      <td height="60" width="190">
      <label for="title"><b>Title :</b></label><br />
      <input type="text" name="post_title" size="20" tabindex="1" style="width: 170px;" value="<?php echo $edited_post_title; ?>" id="title" />
      </td>
      <td>
      <label for="category"><b>Category :</b></label><br /><?php dropdown_categories(); ?>
      </td>
   </table>
   <?php

} else {
   
// this is for comment editing
   ?> colspan="2"> </td>
</tr>

<tr>
   <td>
   <label for="name"><b>Name :</b></label><br />
   <input type="text" name="newcomment_author" size="20" value="<?php echo format_to_edit($commentdata["comment_author"]) ?>" tabindex="1" id="name" /></td>
   <td>
   <label for="email"><b>E-mail :</b></label><br />
   <input type="text" name="newcomment_author_email" size="20" value="<?php echo format_to_edit($commentdata["comment_author_email"]) ?>" tabindex="2" id="email" /></td>
   <td>
   <label for="URL"><b>URL :</b></label><br />
   <input type="text" name="newcomment_author_url" size="20" value="<?php echo format_to_edit($commentdata["comment_author_url"]) ?>" tabindex="3" id="URL" />
   <?php
   
}

   ?>
   </td>
</tr>
<tr>
<td colspan="<?php echo $colspan; ?>">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<td valign="bottom">
<?php
if ($action != 'editcomment') {
   echo '<label for="content"><b>Post :</b></label>';
} else {
   echo '<br /><label for="content"><b>Comment :</b></label>';
}
?>
</td>
<td valign="bottom" align="right">
<?php if ($use_quicktags) include($b2inc.'/b2quicktags.php'); ?>
</td>
</table>

<textarea rows="9" cols="40" style="width:100%" name="content" tabindex="4" wrap="virtual" id="content"><?php echo $content ?></textarea><br />

<table cellspacing="0" cellpadding="0" border="0" width="100%">
<td valign="top">
<a class="search" tabindex="5" href="javascript:HighlightAll('post.content')">Select All</a>
</td>
<td valign="top" align="right">

<?php if ($use_smilies) { ?>
<script language="JavaScript" type="text/javascript">
function emoticon(theSmilie) {
   theSmilie = ' ' + theSmilie + ' ';
   if (document.post.content.createTextRange && document.post.content.caretPos) {
      var caretPos = document.post.content.caretPos;
      caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? theSmilie + ' ' : theSmilie;
   } else {
        document.post.content.value  += theSmilie;
   }
   document.post.content.focus();
   theSmilie = '';
}
</script>
<?php
   $newrow = 0;
   $prev_val="";
   asort($b2smiliestrans);
   while (list ($key, $val) = each ($b2smiliestrans)) {
           if($prev_val and $val==$prev_val) { }
           else if(!$prev_val or ($prev_val and $val!=$prev_val)){
?>
<img src="<?php echo "$smilies_directory/$val"; ?>" alt="<?php echo $key; ?>" border="0" onclick="emoticon('<?php echo $key; ?>')" onmouseover="style.cursor='hand'" />
<?php
                       $newrow++;
                       if($newrow == 26) { //new row after specified number of smilies
                                  echo '<br />';
                                   $newrow = 0;
                       }
           }
           $prev_val = $val;
}
?>
<?php } ?>
</td>
</table>


<input type="checkbox" class="checkbox" name="post_autobr" value="1" <?php
if ($autobr)

2 (mise en page) - c'est du html tout simple mais cela peut se faire vraiment dans le detail mais c'est une autre pair de manche !
3 (justification ) - dans les CSS qui se trouve dans layout2b.css
_________________
Archiguy
http://www.archiguy.com
Mais qu'est ce qu'il m'arrive?
Back to top
View user's profile Send private message Visit poster's website
jason



Joined: 03 Oct 2003
Posts: 5

PostPosted: Tue Oct 07, 2003 3:15 am    Post subject: Reply with quote

merci bien Very Happy
Back to top
View user's profile Send private message Visit poster's website
Philou



Joined: 05 Nov 2003
Posts: 1
Location: Trois Rivières Ouest (Québec, Canada)

PostPosted: Fri Nov 28, 2003 9:59 pm    Post subject: Reply with quote

Yep merci Archiguy !
Pour l'instant tes réponses me sont très utiles
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Aide en français All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group