Quick Reply Smilies

Mods etc.

Moderator: Integra Moderator

Quick Reply Smilies

PostAuthor: Eon » Tue Apr 11, 2006 9:36 am

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?
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

Re: Quick Reply Smilies

PostAuthor: Michaelo » Thu Apr 13, 2006 11:48 am

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
Last edited by Michaelo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1646
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 5:14 pm
Cash on hand: 0.00
Location: Dublin, Ireland

PostAuthor: Eon » Thu Apr 13, 2006 12:10 pm

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..
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

PostAuthor: Michaelo » Thu Apr 13, 2006 6:04 pm

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
Last edited by Michaelo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1646
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 5:14 pm
Cash on hand: 0.00
Location: Dublin, Ireland

PostAuthor: Eon » Fri Apr 14, 2006 4:33 am

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.
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

PostAuthor: MrGrim » Sun Sep 10, 2006 2:33 am

any luck?
Last edited by MrGrim on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Not a newbie...Had a name Change.lol T.r.a.g!!!!

MrGrim
Members
Members
 
Posts: 84
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 28, 2006 1:53 am
Cash on hand: 0.00


Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Majestic-12 [Bot]