Evil Quick Reply

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
Decalan
Registered User
Posts: 3
Joined: Tue Jul 22, 2008 11:13 pm

Re: Evil Quick Reply

Post by Decalan » Tue Jul 29, 2008 12:16 am

Hey, I've installed everything and upadted everything, refreshed everything but still nothing happens.
I know the button is uploaded as I can find it in image sets, any idea what's wrong?

Mr. Bond
Registered User
Posts: 54
Joined: Mon Feb 04, 2008 1:11 pm

Re: Evil Quick Reply

Post by Mr. Bond » Tue Jul 29, 2008 12:19 am

Decalan wrote:Hey, I've installed everything and upadted everything, refreshed everything but still nothing happens.
I know the button is uploaded as I can find it in image sets, any idea what's wrong?
Check to make sure you did all the edits correctly and refresh imagesets / theme again ;)

Decalan
Registered User
Posts: 3
Joined: Tue Jul 22, 2008 11:13 pm

Re: Evil Quick Reply

Post by Decalan » Tue Jul 29, 2008 12:44 am

Mr. Bond wrote:
Decalan wrote:Hey, I've installed everything and upadted everything, refreshed everything but still nothing happens.
I know the button is uploaded as I can find it in image sets, any idea what's wrong?
Check to make sure you did all the edits correctly and refresh imagesets / theme again ;)
EDIT:I went through and repeated the whole installation, rechecking all my footsteps, I fixed my mistakes and get this:

Image

Also, the quick reply button is at the top, and if I click it the repeating quic reply boxes become only one.

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: Evil Quick Reply

Post by igorw » Tue Jul 29, 2008 1:04 am

Check your template edits (viewtopic_body.html), you must have done some kind of mistake.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

Decalan
Registered User
Posts: 3
Joined: Tue Jul 22, 2008 11:13 pm

Re: Evil Quick Reply

Post by Decalan » Tue Jul 29, 2008 1:19 am

eviL<3 wrote:Check your template edits (viewtopic_body.html), you must have done some kind of mistake.
Okay, I hate to sound stupid here but in the installton for the template you have to edit the file "styles/prosilver/template/viewtopic_body.html", the first thing to do in the is find "{S_POLL_ACTION}" what do I do once I've found it? :oops:

User avatar
*Capmaster*
Registered User
Posts: 159
Joined: Tue Mar 20, 2007 5:00 pm
Location: Albuquerque, NM
Contact:

Re: Evil Quick Reply

Post by *Capmaster* » Tue Jul 29, 2008 9:58 pm

I've tried everything (for 2 days now) to get all the standard posting buttons to show up in the Quick Reply. I've sat in front of this monitor reading this topic for so long, I've developed nerve endings in my PC chair :shock:

The posting_qr_body file has the "include posting_buttons" in the right place. All file edits for php and template files are done, themes, imagesets and templates refreshed, as well as the cache purged. And, no ....I'm one of the few who is NOT having problems with my quick reply button appearing, although I spent a fair amount of time on that one :x

By adding the red statement in the functions_quick_reply.php I was able to get my spoiler tag button to work:
if ($qr_config['bbcodes'])
{
$template->assign_var('S_BBCODE_ALLOWED', true);
}
display_custom_bbcodes();
but still no QUOTE, URL or IMG tags :?

It's the same in three Prosilver-based styles and two subsilver-based styles.

BTW, I'm using phpBB3 RC7.

Here are the screen grabs of the regular posting buttons:

Image





and the Quick Reply buttons:

Image



Any ideas?

User avatar
*Capmaster*
Registered User
Posts: 159
Joined: Tue Mar 20, 2007 5:00 pm
Location: Albuquerque, NM
Contact:

Re: Evil Quick Reply

Post by *Capmaster* » Wed Jul 30, 2008 6:45 pm

Fixed. I had to open the quick_reply.php file from Olympus Quick Reply (previous version that worked with the buttons) and just go line by line to see which bbcode statements were missing or different. It worked. It even works with URL Prompt which I had installed previously 8-) :

Image


For those of you who want all your buttons to show, replace the entire includes/functions_quick_reply.php file with this:

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'   => false,   // Do you want the subject line to be displayed
      'hide_box'         => false,   // 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&id=' . $confirm_id . '&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();
   }

}

?>

hartap
Registered User
Posts: 1
Joined: Sun Aug 03, 2008 7:04 am

Re: Evil Quick Reply

Post by hartap » Sun Aug 03, 2008 8:15 am

my first error... is the bbcode and smile.. its not shown in quick reply box...
and i change my functions_quick_reply.php all with the capmaster paste code....

the smile and bbcode shown.. but when i click... nothing shown and send me to the top of my page

This is my posting_qr_body.html

Code: Select all

<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>

<div id="quick_reply">
	<form action="{S_QR_POST_ACTION}" method="post">
		<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 -->
		<tr>
			<td class="row2" align="center" valign="middle" colspan="2"><textarea name="message" id="message" rows="15" cols="76" tabindex="2" style="width: 70%; height: 250px;"></textarea></td>
		</tr>
			<!-- INCLUDE posting_buttons.html -->
			
			<dl id="smiley-box">
				<!-- IF S_SMILIES_ALLOWED and .smiley -->
					<strong>{L_SMILIES}</strong><br />
					<!-- BEGIN smiley -->
						<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
					<!-- END smiley -->
				<!-- ENDIF -->
				<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
					<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
				<!-- ENDIF -->
			</dl>
		<!-- 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>

twodayslate
Registered User
Posts: 210
Joined: Mon Jan 22, 2007 11:27 pm

Re: Evil Quick Reply

Post by twodayslate » Sun Aug 03, 2008 7:25 pm

Is there a mod for this mod for quick quoting?

How do you make it so when you submit you do not have to get this page.

Code: Select all

Information

This message has been posted successfully.

View your submitted message

Return to the forum last visited
I would like it to just refresh the page or just make the new post show up.


This has probably been answered before but thanks for the help!

GREAT MOD! THANKS!
twodayslate WPblog | PbGunTrader The Paintball Buy, Sell, Trade | DreamHost Quality Hosting

swbfguy
Registered User
Posts: 75
Joined: Tue Dec 11, 2007 6:26 am

Re: Evil Quick Reply

Post by swbfguy » Mon Aug 04, 2008 1:18 am

twodayslate wrote:Is there a mod for this mod for quick quoting?

How do you make it so when you submit you do not have to get this page.

Code: Select all

Information

This message has been posted successfully.

View your submitted message

Return to the forum last visited
I would like it to just refresh the page or just make the new post show up.


This has probably been answered before but thanks for the help!

GREAT MOD! THANKS!
try this for the quick redirect: http://www.phpbb.com/community/viewtopi ... 9&t=584852

twodayslate
Registered User
Posts: 210
Joined: Mon Jan 22, 2007 11:27 pm

Re: Evil Quick Reply

Post by twodayslate » Mon Aug 04, 2008 2:34 am

swbfguy wrote:
twodayslate wrote:Is there a mod for this mod for quick quoting?

How do you make it so when you submit you do not have to get this page.

Code: Select all

Information

This message has been posted successfully.

View your submitted message

Return to the forum last visited
I would like it to just refresh the page or just make the new post show up.


This has probably been answered before but thanks for the help!

GREAT MOD! THANKS!
try this for the quick redirect: http://www.phpbb.com/community/viewtopi ... 9&t=584852
How would you get that to work just for quick reply?
THANKS!
twodayslate WPblog | PbGunTrader The Paintball Buy, Sell, Trade | DreamHost Quality Hosting

User avatar
isloera
Registered User
Posts: 21
Joined: Thu Oct 14, 2004 10:44 pm

Re: Evil Quick Reply

Post by isloera » Tue Aug 05, 2008 3:58 am

Fridge wrote:
Drugs wrote:No solution although I'm not sure what the big deal is. The error doesn't seem to actually cause any problems.
To me it's no big deal because i don't use IE :D
But maybe it's very annoying to see the little yellow error in the corner of your left eye when you do use IE, the mod works without problems though.....

The error is only present in prosilver based styles and when you remove the functions.push from the posting_qr_body.html and replace this with that bit out of the subsilver based posting_qr_body.html file the error does not appear any more and the mod still works as it should.

I'm in no way limited by any knowledge of coding so maybe i did something terribly wrong but it has solved the problem anyway :mrgreen:
Just open your prosilver\template\posting_qr_body.html

and add this code

Find

Code: Select all

/**
 * Toggle the visibility of the qr box
 */
After. add

Code: Select all

onerror=handleErr;

function handleErr(msg,url,l)
{
return true;
}

It won't fix the error, but it will stop IE from showing it.

Hope it helps :)

swbfguy
Registered User
Posts: 75
Joined: Tue Dec 11, 2007 6:26 am

Re: Evil Quick Reply

Post by swbfguy » Tue Aug 05, 2008 5:56 am

twodayslate wrote: How would you get that to work just for quick reply?
THANKS!
quick reply is really just a fancy way of doing reply, which the instant redirect works on.

jahangir
Registered User
Posts: 20
Joined: Wed Jul 30, 2008 4:45 pm

Re: Evil Quick Reply

Post by jahangir » Tue Aug 05, 2008 6:16 am

Hi,

I have installed this MOD but I don't see any quick reply button in the posts.

I have followed the instructions, and have refreshed the imagesets, templates and theme. But no result.

Can you please tell me what could be the reason for it?

Do I have to upload any image to be used as a button for "Quick Reply"??

Also, I am not using prosilver or subsilver template. I am using another template. Will this MOD work on that template?

Waiting for your earliest reply.

Thanks

BTW, this is my forum http://www.smsbucket.com/forums

Fridge
Registered User
Posts: 307
Joined: Sat Nov 11, 2006 1:41 am
Location: Rotterdam, The Netherlands
Name: Martin
Contact:

Re: Evil Quick Reply

Post by Fridge » Tue Aug 05, 2008 9:40 am

isloera wrote:It won't fix the error, but it will stop IE from showing it.

Hope it helps :)
Thnx, will give it a try
jahangir wrote:I am not using prosilver or subsilver template. I am using another template. Will this MOD work on that template?
The template you are using looks likes a prosilver based style, so do the template edits for prosilver on it....

Locked

Return to “[3.0.x] MOD Database Releases”