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.
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

It's not working for me. I did everything that was told.
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Evil Quick Reply

Post by leviatan21 »

rfforum wrote:It's not working for me. I did everything that was told.
After changes you need to clear the cache, did you do it ?
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

yes i did, I do it everytime I change something.
And I followed everything right
Note: I am new to adding mods. and coding.
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Evil Quick Reply

Post by leviatan21 »

rfforum wrote:yes i did, I do it everytime I change something.
And I followed everything right
Note: I am new to adding mods. and coding.
Which part didn't work ? Because as a guest haven't access to the quick reply. Can you see it ?
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

leviatan21 wrote:
rfforum wrote:yes i did, I do it everytime I change something.
And I followed everything right
Note: I am new to adding mods. and coding.
Which part didn't work ? Because as a guest haven't access to the quick reply. Can you see it ?

You can see the quick reply by login in this account
it doesn't have admin permissions, its just a normal user
Last edited by rfforum on Sat Nov 22, 2008 5:36 pm, edited 1 time in total.
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

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'			=> true,	// Shall the box be hidden on pageload?
		'resize'			=> true,	// Display the buttons to resize the textarea?
	);

	// 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;
	}

	// 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="" />',
		));
	}

	// 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);
   // HTML, BBCode, Smilies, Images and Flash status
   $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_reply', $forum_id)) ? true : false;
	// 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_BBCODE_IMG'         => $img_status,
      'S_LINKS_ALLOWED'      => $url_status,
      'S_BBCODE_FLASH'      => $flash_status,
      'S_BBCODE_QUOTE'      => $quote_status,
	));
}

?>
heres the code
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
jmaraujo
Registered User
Posts: 240
Joined: Fri Jun 01, 2007 9:48 pm
Location: Rivera - Uruguay
Name: Juan

Re: Evil Quick Reply

Post by jmaraujo »

Muchas gracias, leviatan21! :D

(Thank you, leviatan21! :D )
ali_korkor
Registered User
Posts: 7
Joined: Sat Jun 21, 2008 7:44 pm

Re: Evil Quick Reply

Post by ali_korkor »

I got it to work at last
the Ironic thing I missed is modding the style prosilver :D

any way I found out that when u close a topic it's still there and when some one use it to post on that closed topic it actually get posted ,so any fixes for that ?
bloodw
Registered User
Posts: 16
Joined: Wed Nov 19, 2008 9:00 pm

Re: Evil Quick Reply

Post by bloodw »

Anyone using this with 3.0.3?
The BBcodes worked in 3.0.2 but they don't show up after I recently updated to 3.0.3 via the autoupdate patch.
User avatar
MotoXtreme.info
Registered User
Posts: 28
Joined: Sun Nov 09, 2008 8:11 am

Re: Evil Quick Reply

Post by MotoXtreme.info »

ok, this is very last i ask,

Any of you have it run on phpBB 3.0.3 Black Pearl Theme ? And please share it with by PM me the edited files. TQ.

Since 3.0.2 till 3.0.3 i never able get it working or at least showing . . .

i considered myself n00b . . .
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

MotoXtreme.info wrote:ok, this is very last i ask,

Any of you have it run on phpBB 3.0.3 Black Pearl Theme ? And please share it with by PM me the edited files. TQ.

Since 3.0.2 till 3.0.3 i never able get it working or at least showing . . .

i considered myself n00b . . .
I do email me on radiohot@radiohot.radio-forums.net
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
Jaymie1989
Registered User
Posts: 1991
Joined: Thu Aug 02, 2007 5:21 pm
Name: Jaymie

Re: Evil Quick Reply

Post by Jaymie1989 »

Any ideas?
Attachments
Reply.JPG
Reply.JPG (10.83 KiB) Viewed 550 times
Dear creators of Sesame Street,
Kids are still fat. Can I come back now?
Sincerely, Cookie Monster.

View my MODs - Need phpBB help with MODs and Styles? Take a look at my phpBB3 services
User avatar
MotoXtreme.info
Registered User
Posts: 28
Joined: Sun Nov 09, 2008 8:11 am

Re: Evil Quick Reply

Post by MotoXtreme.info »

rfforum wrote:
MotoXtreme.info wrote:ok, this is very last i ask,

Any of you have it run on phpBB 3.0.3 Black Pearl Theme ? And please share it with by PM me the edited files. TQ.

Since 3.0.2 till 3.0.3 i never able get it working or at least showing . . .

i considered myself n00b . . .
I do email me on radiohot@radiohot.radio-forums.net
Thanks mate, finally got it working on 3.0.3 Black Pearl but no BB & Smilies displayed !! :(
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Evil Quick Reply

Post by leviatan21 »

MotoXtreme.info wrote:Thanks mate, finally got it working on 3.0.3 Black Pearl but no BB & Smilies displayed !! :(
Read the document in evil_quick_reply_1_0_1/contrib/addons/smilies_bbcodes/install.xml
bbcodes 1
bbcodes 2
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

Hey mate, I tried that countless of times. didn't work.... :(
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
Locked

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