Page 1 of 1

Quick Reply Smilies

PostPosted: Tue Apr 11, 2006 10:36 am
Author: Eon
Ok, I installed this mod as per the instructions from the other site, and first off the view more emoticons does not work cause you are supposed to have a Quick smilie.tpl or something, but that I can deal with. Don't need any more smilies if I can get the ones we use to show up where I want them.

I have been able to locate them under the QR box, above the b ox, above the buttons and all around below and above.

However I am looking at putting them bised the QR box in rows similar to what you see when you make a regular post.

Seeing as how it is a form, so the box takes up one whole line, just a really big one, so I got the smilies beside the box, but only one row at the bottom or top or middle.

I then tried to put a table inside the form and place everything inside a table and organize it like I wanted it. This did not work.

Code: Select all
 //// Quick Reply Mod//if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) ){     $quick_reply_form = "";}else{     if ( $can_watch_topic && $is_watching_topic )     {         $notify = 1;     }     else     {         $notify = $userdata['user_notify'];     }     $bbcode_uid = $postrow[$total_posts - 1]['bbcode_uid'];     $last_poster = $postrow[$total_posts - 1]['username'];     $last_msg = $postrow[$total_posts - 1]['post_text'];     $last_msg = str_replace("]" . $last_msg . "[/quote]";     $quick_reply_form = "     <script>                 var is_submit = false;         function checkForm() {             formErrors = false;             document.post.message.value = '';             if (document.post.input.value.length < 2) {                 formErrors = '" . $lang['Empty_message'] . "';             }             if (formErrors) {                 alert(formErrors);                 return false;             } else if (is_submit) {                 alert('Your post is already submitted');                 return false;             } else {                 is_submit = true;             }             if (document.post.quick_quote.checked) {                 document.post.message.value = document.post.last_msg.value;             }             document.post.message.value += document.post.input.value;             return true;         }         function emoticon(text) {           text = ' ' + text + ' ';           if (document.post.input.createTextRange && document.post.input.caretPos) {              var caretPos = document.post.input.caretPos;              caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;              document.post.input.focus();           } else {              document.post.input.value  += text;              document.post.input.focus();           }     }       </script>     <form>     <span><b>".$lang['Quick_Reply'].":</b><br>";       if (!$userdata['session_logged_in'])     {         $quick_reply_form .= $lang['Username'] . ": <input><br>";     }       $quick_reply_form .= "</textarea>   <img>   <img>   <img>   <img><br>         <input>".$lang['Quote_last']."<br>     <input>".$lang["Attach_signature"]."<br>     <input>     <input>     <input>     <input>     <input>     <input>     <input>     <input>     </form></span>";}  


That is the code on the quick reply with the smilies in it. In that layout the smilies are on the right side of the qr box at the bottom.

I am such a noob I can not figure it out. I am sure you can do it with a table because everything I read says you can. But I don't know the layout of the code enough to know where exactly it should go.

Any ideas?

Re: Quick Reply Smilies

PostPosted: Thu Apr 13, 2006 12:48 pm
Author: Michaelo
Try this...
Code: Select all
 //// Quick Reply Mod//if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) ){    $quick_reply_form = "";}else{    if ( $can_watch_topic && $is_watching_topic )    {       $notify = 1;    }    else    {       $notify = $userdata['user_notify'];    }    $bbcode_uid = $postrow[$total_posts - 1]['bbcode_uid'];    $last_poster = $postrow[$total_posts - 1]['username'];    $last_msg = $postrow[$total_posts - 1]['post_text'];    $last_msg = str_replace("]" . $last_msg . "[/quote]";    $quick_reply_form = "    <script>                 var is_submit = false;       function checkForm() {          formErrors = false;          document.post.message.value = '';          if (document.post.input.value.length < 2) {             formErrors = '" . $lang['Empty_message'] . "';          }          if (formErrors) {             alert(formErrors);             return false;           } else if (is_submit) {                alert('Your post is already submitted');                 return false;             } else {                is_submit = true;             }          if (document.post.quick_quote.checked) {             document.post.message.value = document.post.last_msg.value;          }          document.post.message.value += document.post.input.value;          return true;       }       function emoticon(text) {           text = ' ' + text + ' ';           if (document.post.input.createTextRange && document.post.input.caretPos) {              var caretPos = document.post.input.caretPos;              caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;              document.post.input.focus();           } else {              document.post.input.value  += text;              document.post.input.focus();           }     }      </script>    <form>    <span><b>".$lang['Quick_Reply'].":</b><br>";      if (!$userdata['session_logged_in'])    {       $quick_reply_form .= $lang['Username'] . ": <input><br>";    }<table><tr><td>    $quick_reply_form .= "<textarea></textarea>"</td>   <td><img>  <img>  <img>  <img>  <img>  <img>  <img>  <img>  <img>  <img>  <img>  <img><br></td></tr></table>    <input>".$lang['Quote_last']."<br>    <input>".$lang["Attach_signature"]."<br>    <input>    <input>    <input>    <input>    <input>    <input>    <input>    <input>    </form></span>";}  

Note there were a couple of error in the code... missing ('')
Mike

PostPosted: Thu Apr 13, 2006 1:10 pm
Author: Eon
Parse error: parse error, unexpected '<' in /hsphere/local/home/dffclan/dffclan.net/viewtopic.php on line 2545


That's what I get when I place that code in there.

That is what it was doing to me too..

PostPosted: Thu Apr 13, 2006 7:04 pm
Author: Michaelo
Lets try something different... What file contains the code above? If it is a php file you need to add ?> ... <?php

Give me the link for the mod and I will install it and get back to you.
Mike

PostPosted: Fri Apr 14, 2006 5:33 am
Author: Eon
http://integramod.com/home/viewtopic.ph ... ht=smilies

There is a missing file, the tpl file that it mentions. No one has come up with it yet. However the mod works, there is just no view more emoticons. You can click on it but it errors. I tried creating one from the posting smilies, but it would not paste them in the QR box. I am not worried about this as long as I can get the smilies placed where I want them so I can put as many as I want without it being a big blob at the bottom.

PostPosted: Sun Sep 10, 2006 3:33 am
Author: MrGrim
any luck?