Evil quick reply 1.0.1

Viewtopic, viewforum, posting related hacks and MODs.
Viewing topics, forums, or posting add-ons.

Re: Evil quick reply 1.0.1

Postby krstin » 25 Aug 2008, 06:34

How to put this quick reply on Glacier style? Please help me, it is very urgent, thank you!
:wave:
krstin
Crewman
Crewman
 
Posts: 2
Joined: 25 Aug 2008, 06:31
Gender: Male




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Evil quick reply 1.0.1

Postby shuya » 13 Sep 2008, 18:38

hi,
i installed this mod today with relative success but have the same problem as a poster above me in that i have the words 'quick reply' and not the image. everything else is working well.

any ideas if there's an obvious mistake being made?
(to cover the most obvious i double checked the uploaded .gif, it's name and reference in the .cfg file. all seems in order there)
shuya
Crewman
Crewman
 
Posts: 1
Joined: 13 Sep 2008, 18:30
Gender: Male
phpBB Knowledge: 3

Re: Evil quick reply 1.0.1

Postby BurnOmatic » 14 Sep 2008, 23:03

will this mod work for phpbb3.0.2, for acidtech style?
User avatar
BurnOmatic
Cadet IV
Cadet IV
 
Posts: 59
Joined: 07 Apr 2008, 19:24
Gender: Male
phpBB Knowledge: 4

Re: Evil quick reply 1.0.1

Postby Lachty » 17 Oct 2008, 09:35

Here are installation instructions for Evil Quick Reply mod for the following styles: AcidTech, eTech, Serenity, Avalon, Getaway, Hestia, Hermes, WoW: Alliance.

instructions:
Code: Select all
http://www.stsoftware.biz/support/viewtopic.php?f=16&p=295


I have acidtech style witch funcions on the image below.
http://startrekguide.com/community/download/file.php?id=3631&mode=view/evilacid.gif
Here is functions_quick_reply.php with smilies and bbcodes:
Code: Select all
<?php
    /**
    * Evil quick reply
    *
    * @package   phpBB3
    * @version 1.0.1
    * @copyright (c) 2007 eviL3
    * @license   http://opensource.org/licenses/gpl-license.php GNU Public License
    *
    */

    /**
    * @ignore
    */
    if (!defined('IN_PHPBB'))
    {
       exit;
    }

    /**
    * This function will load everything needed for the evil quick reply
    *
    * @param int $topic_id
    * @param int $forum_id
    * @param array $topic_data
    */
    function quick_reply($topic_id, $forum_id, &$topic_data)
    {
       global $template, $user, $auth, $db;
       global $phpbb_root_path, $phpEx, $config;

       // Some little config for the quick reply, allows the admin to change these default values through the database.
       $qr_config = array(
          'enabled'         => true,    // Disable it easily
          'display_subject'   => true,   // Do you want the subject line to be displayed
          'hide_box'         => true,   // Shall the box be hidden on pageload?
          'resize'         => true,   // Display the buttons to resize the textarea?
                'bbcodes'         => isset($config['evil_qr_bbcodes']) ? $config['evil_qr_bbcodes'] : true,
          'smilies'         => isset($config['evil_qr_smilies']) ? $config['evil_qr_smilies'] : true,

       );

       // do evil_qr_ prefixed of the config values exist in $config
       // /me slaps highway of life
       foreach (array_keys($qr_config) as $key)
       {
          if (isset($config['evil_qr_' . $key]))
          {
             $qr_config[$key] = $config['evil_qr_' . $key];
          }
       }

       // Check if user has reply permissions for this forum or the topic is locked (thanks damnian)
       if (!$auth->acl_get('f_reply', $forum_id) || ($topic_data['topic_status'] == ITEM_LOCKED && !$auth->acl_get('m_lock', $forum_id)) || !$qr_config['enabled'])
       {
          return;
       }
    $bbcode_status   = ($config['allow_bbcode'] && $auth->acl_get('f_bbcode', $forum_id)) ? true : false;
       $smilies_status   = ($bbcode_status && $config['allow_smilies'] && $auth->acl_get('f_smilies', $forum_id)) ? true : false;
       $img_status      = ($bbcode_status && $auth->acl_get('f_img', $forum_id)) ? true : false;
       $url_status      = ($config['allow_post_links']) ? true : false;
       $flash_status   = ($bbcode_status && $auth->acl_get('f_flash', $forum_id) && $config['allow_post_flash']) ? true : false;
       $quote_status   = ($auth->acl_get('f_' . $mode, $forum_id)) ? true : false;


       // Hidden fields
       $s_hidden_fields = array(
          't'         => $topic_id,
          'f'         => $forum_id,
          'mode'      => 'reply',
          'lastclick'   => time(),
          'icon'      => 0,
       );

       // Set preferences such as allow smilies, bbcode, attachsig
       $reply_prefs = array(
          'disable_bbcode'   => ($config['allow_bbcode'] && $user->optionget('bbcode')) ? false : true,
          'disable_smilies'   => ($config['allow_smilies'] && $user->optionget('smilies')) ? false : true,
          'disable_magic_url'   => false,
          'attach_sig'      => ($config['allow_sig'] && $user->optionget('attachsig')) ? true: false,
          'notify'         => ($config['allow_topic_notify'] && ($user->data['user_notify'] || isset($topic_data['notify_status']))) ? true : false,
          'lock_topic'      => ($topic_data['topic_status'] == ITEM_LOCKED && $auth->acl_get('m_lock', $forum_id)) ? true : false,
       );

       foreach ($reply_prefs as $name => $value)
       {
          if ($value)
          {
             $s_hidden_fields[$name] = 1;
          }
       }

       $subject = ((strpos($topic_data['topic_title'], 'Re: ') !== 0) ? 'Re: ' : '') . censor_text($topic_data['topic_title']);

       if (!$qr_config['display_subject'])
       {
          // /me is a show-off
          list($s_hidden_fields['subject'], $subject) = array($subject, '');
       }

       // Confirmation code handling (stolen from posting.php)
       if ($config['enable_post_confirm'] && !$user->data['is_registered'])
       {
          // Show confirm image
          $sql = 'DELETE FROM ' . CONFIRM_TABLE . "
             WHERE session_id = '" . $db->sql_escape($user->session_id) . "'
                AND confirm_type = " . CONFIRM_POST;
          $db->sql_query($sql);

          // Generate code
          $code = gen_rand_string(mt_rand(5, 8));
          $confirm_id = md5(unique_id($user->ip));
          $seed = hexdec(substr(unique_id(), 4, 10));

          // compute $seed % 0x7fffffff
          $seed -= 0x7fffffff * floor($seed / 0x7fffffff);

          $sql = 'INSERT INTO ' . CONFIRM_TABLE . ' ' . $db->sql_build_array('INSERT', array(
             'confirm_id'   => (string) $confirm_id,
             'session_id'   => (string) $user->session_id,
             'confirm_type'   => (int) CONFIRM_POST,
             'code'         => (string) $code,
             'seed'         => (int) $seed,
          ));

          $db->sql_query($sql);

          $template->assign_vars(array(
             'S_CONFIRM_CODE'   => true,
             'CONFIRM_ID'      => $confirm_id,
             'CONFIRM_IMAGE'      => '<img src="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=confirm&amp;id=' . $confirm_id . '&amp;type=' . CONFIRM_POST) . '" alt="" title="" />',
       'IMG_STATUS'         => ($img_status) ? $user->lang['IMAGES_ARE_ON'] : $user->lang['IMAGES_ARE_OFF'],
          'SMILIES_STATUS'      => ($smilies_status) ? $user->lang['SMILIES_ARE_ON'] : $user->lang['SMILIES_ARE_OFF'],
          'URL_STATUS'         => ($bbcode_status && $url_status) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],
          ));
       }

       // new RC6/RC7 stuff
       add_form_key('posting');

       // Page title & action URL, include session_id for security purpose
       $s_action = append_sid("{$phpbb_root_path}posting.$phpEx", false, true, $user->session_id);

       // Assign template variables
       $template->assign_vars(array(
          'QR_SUBJECT'         => $subject,

          'S_QR_HIDDEN_FIELDS'   => build_hidden_fields($s_hidden_fields),
          'S_QR_POST_ACTION'      => $s_action,

          'S_QR_ENABLED'         => $qr_config['enabled'], // this is true anyway :P
          'S_QR_SUBJECT'         => $qr_config['display_subject'],
          'S_QR_HIDE_BOX'         => $qr_config['hide_box'],
          'S_QR_RESIZE'         => $qr_config['resize'],
       'S_MAGIC_URL_CHECKED'      => ($urls_checked) ? ' checked="checked"' : '',   
       'S_BBCODE_IMG'         => $img_status,
       'S_BBCODE_URL'         => $url_status,
       'S_BBCODE_QUOTE'      => $quote_status,
       'IMG_STATUS'         => ($img_status) ? $user->lang['IMAGES_ARE_ON'] : $user->lang['IMAGES_ARE_OFF'],
          'SMILIES_STATUS'      => ($smilies_status) ? $user->lang['SMILIES_ARE_ON'] : $user->lang['SMILIES_ARE_OFF'],
          'URL_STATUS'         => ($bbcode_status && $url_status) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],
       'S_LINKS_ALLOWED'         => $url_status,

       ));
          if ($qr_config['smilies'] || $qr_config['bbcodes'])
       {
          $user->add_lang('posting');
         
          if ($qr_config['smilies'])
          {
             include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
             
             generate_smilies('inline', $forum_id);
             $template->assign_var('S_SMILIES_ALLOWED', true);
          }
         
          if ($qr_config['bbcodes'])
          {
             $template->assign_var('S_BBCODE_ALLOWED', true);
          }
          display_custom_bbcodes();
       }

    }

    ?>


And next you need this file posting_qr_body.html (for acidtech and subsilver2):
Code: Select all
<div id="quick_reply">
   <form action="{S_QR_POST_ACTION}" method="post" id="postform">
      <table class="tablebg" width="100%" cellspacing="1">
      <tr>
         <th colspan="2">{L_QUICK_REPLY}</th>
      </tr>
      <!-- IF S_QR_SUBJECT -->
      <tr>
         <td class="row2" align="center" valign="middle" colspan="2"><input class="post" type="text" name="subject" size="45" maxlength="64" tabindex="1" value="{QR_SUBJECT}" style="width: 70%;" /></td>
      </tr>
      <!-- ENDIF -->
<!-- Subsilver2 fix - Start -->
      <tr>
         <td class="row1" valign="top" width="22%">
         <!-- IF S_SMILIES_ALLOWED -->
            <table width="100%" cellspacing="5" cellpadding="0" border="0" align="center">
               <tr>
                  <td class="gensmall" align="center"><b>{L_SMILIES}</b></td>
               </tr>
               <tr>
                  <td align="center">
                  <!-- BEGIN smiley -->
                     <a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
                  <!-- END smiley -->
                  </td>
               </tr>
               <!-- IF S_SHOW_SMILEY_LINK -->
               <tr>
                  <td align="center"><a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a></td>
               </tr>
            <!-- ENDIF -->
            </table>
         <!-- ENDIF -->
         </td>
         <td class="row2" width="78%">
            <script type="text/javascript">
            // <![CDATA[
               var form_name = 'postform';
               var text_name = 'message';
            // ]]>
            </script>
           
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
               <!-- INCLUDE posting_buttons.html -->
               <tr>
                  <td valign="top" style="width: 100%;"><textarea name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" style="width: 98%;">{MESSAGE}</textarea></td>
                  <!-- IF S_BBCODE_ALLOWED -->
                  <td width="80" align="center" valign="top">
                     <script type="text/javascript">
                     // <![CDATA[
                        colorPalette('v', 7, 6)
                     // ]]>
                     </script>
                  </td>
                  <!-- ENDIF -->
               </tr>
            </table>
         </td>
      </tr>
<!-- Subsilver2 fix - End -->
      <!-- IF S_QR_RESIZE -->
      <tr>
         <td class="row2" colspan="2">
            <input type="button" value=" + " class="btnlite" onclick="textbox_resize(100);" />
            <input type="button" value=" - " class="btnlite" onclick="textbox_resize(-100);" />
         </td>
      </tr>
      <!-- ENDIF -->
      <!-- IF not S_USER_LOGGED_IN -->
      <tr>
         <td class="row1" width="15%"><label for="username"><b class="genmed">{L_USERNAME}: </b></label></td>
         <td class="row2" valign="middle"><input type="text" style="width: 300px" class="post" name="username" id="username" size="30" tabindex="3" /></td>
      </tr>
      <!-- IF S_CONFIRM_CODE -->
      <tr>
         <td class="row1"><label for="confirm_code"><b class="genmed">{L_CONFIRM_CODE}: </b></label></td>
         <td class="row2">
            {CONFIRM_IMAGE}<br clear="all" /><br />
            <input type="hidden" name="confirm_id" value="{CONFIRM_ID}" />
            <input class="post" type="text" name="confirm_code" id="confirm_code" size="8" maxlength="8" tabindex="4" />
         </td>
      </tr>
      <!-- ENDIF -->
      <!-- ENDIF -->
      <tr>
         <td class="cat" align="center" colspan="2">
            {S_QR_HIDDEN_FIELDS}
            <input type="submit" name="preview" tabindex="6" value="{L_PREVIEW}" class="btnlite" />&nbsp;&nbsp;
            <input type="submit" name="post" tabindex="5" value="{L_SUBMIT}" class="btnmain" accesskey="s" />
         </td>
      </tr>
      </table>
   {S_FORM_TOKEN}
   </form>
</div>

<script type="text/javascript">
<!--
/**
* Toggle the visibility of the qr box
*/
function toggle_quick_reply()
{
   if (document.getElementById('quick_reply'))
   {
      if (document.getElementById('quick_reply').style.display == 'none')
      {
         document.getElementById('quick_reply').style.display = 'block';
      }
      else
      {
         document.getElementById('quick_reply').style.display = 'none';
      }
   }
}

<!-- IF S_QR_RESIZE -->
/**
* Resize a textbox
* Original function by Disturbed One (http://www.hvmdesign.com/)
*/
function textbox_resize(pix)
{
   var box         = document.getElementById('message');
   var new_height   = (parseInt(box.style.height) ? parseInt(box.style.height) : 300) + pix;

   if (new_height > 0)
   {
      box.style.height = new_height + 'px';
   }

   return false;
}
<!-- ENDIF -->

if (<!-- IF S_QR_HIDE_BOX -->1<!-- ELSE -->0<!-- ENDIF -->)
{
   if (document.addEventListener)
   {
      document.addEventListener('DOMContentLoaded', toggle_quick_reply, false);
   }
   else
   {
      window.onload = function()
      {
         toggle_quick_reply();
      }
   }
}
//-->
</script>
Lachty
Crewman
Crewman
 
Posts: 4
Joined: 17 Oct 2008, 05:05
Gender: Male
phpBB Knowledge: 5

Re: Evil quick reply 1.0.1

Postby StefanM » 15 Nov 2008, 07:38

Hello!

Who can help me?

Image

Greetings StefanM
StefanM
Crewman
Crewman
 
Posts: 1
Joined: 15 Nov 2008, 07:32
Gender: Male

Re: Evil quick reply 1.0.1

Postby BurnOmatic » 30 Dec 2008, 01:26

@ Lachty

so with these files i can get it to work on acidtech huh, ive been wanting this for a while now, but some of the edits were wacked out, the quickreply button would never show up..
User avatar
BurnOmatic
Cadet IV
Cadet IV
 
Posts: 59
Joined: 07 Apr 2008, 19:24
Gender: Male
phpBB Knowledge: 4

Re: Evil quick reply 1.0.1

Postby cfeedback » 01 Feb 2009, 15:56

Not sure if this is a problem with AutoMOD, but when I tried to use it to install evil quick reply it installed without error, but nothing happened. (I refreshed the styles / purged the cache)

I also notice that when you go to view the "Details" for the mod on the installed mod page, it says file not found...all other installed mods take you to the original install instructions. And AutoMOD comes up with an error when you try to uninstall.

Finally, I tried to make the required edits by hand, I'm not completely helpless I've done plenty of mods that way, but the I cannot understand the subsilver2 instructions at all.

Specifically, my confusion stems from the fact that it tells you to find several times and then do nothing? Also, it tells you to find </div> which is all over the place in viewtopic_body.html file but it doesn't specify which one? Sorry for the confusion, its probably on my end, but I would appreciate any help in getting this running.

I attached a couple screenshots to illustrate what I mean. Thanks in advance for any help.
Attachments
viewbody.jpg
quickreplyerror.jpg
cfeedback
Crewman
Crewman
 
Posts: 1
Joined: 01 Feb 2009, 15:47
Gender: Male
phpBB Knowledge: 3

Re: Evil quick reply 1.0.1

Postby Rocko2 » 01 Feb 2009, 17:54

Looks nice. Maybe make it a bit more advanced?
User avatar
Rocko2    
Ensign
Ensign
 
Posts: 63
Joined: 10 Dec 2008, 19:43
Location: New Zealand
Gender: Male
phpBB Knowledge: 10

Re: Evil quick reply 1.0.1

Postby logix » 05 Feb 2009, 12:44

This mod looks awsome! Could you put a mirror :this: cause PHPbb.com link isnt working ( site is in maintenance )
logix    
Crewman
Crewman
 
Posts: 4
Joined: 04 Feb 2009, 12:00
Gender: Male
phpBB Knowledge: 2

Re: Evil quick reply 1.0.1

Postby NumberOne » 05 Feb 2009, 13:44

logix wrote:This mod looks awsome! Could you put a mirror :this: cause PHPbb.com link isnt working ( site is in maintenance )


+10000 I have been looking everywhere for this mod since phpbb.com has been down. Help!
User avatar
NumberOne    
Ensign
Ensign
 
Posts: 65
Joined: 05 Feb 2009, 13:41
Location: USS Enterprise
Gender: Male
phpBB Knowledge: 8

PreviousNext

Return to Topic, Forum, Posting MOD Downloads

Who is online

Users browsing this forum: No registered users and 5 guests