[2.0.10] Common Replies (Canned Messages)

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
8
80%
Very Good
1
10%
Good
1
10%
Fair
0
No votes
Poor
0
No votes
 
Total votes: 10

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28120
Joined: Sat Aug 16, 2003 7:36 am

[2.0.10] Common Replies (Canned Messages)

Post by Extensions Robot »

MOD Name: Common Replies (Canned Messages)
Author: Sune Trudslev
MOD Description: Adds predefined messages to groups.

MOD Version: 1.0.3

Download File: common-replies-1.0.3em.zip
mods overview page: View
File Size: 11758 Bytes

Security Score:
Last edited by Extensions Robot on Mon Apr 30, 2007 12:28 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric »

MOD Validated/Released

Notes:
Allows user's within a group to create canned messages which they can use to reply with common moderating messages. You can also set it up to move or lock the topic after using a canned message.

Sune Trudslev
Registered User
Posts: 24
Joined: Wed May 14, 2003 11:10 am
Location: Denmark
Contact:

Post by Sune Trudslev »

Thank you. My first officially released MOD.

I'd like to thank the MOD team for their patience in releasing this MOD. Lots of little issues. :-)

I hope people will enjoy this one.

Here is a description with screenshots: http://www.tanis.dk/blog/archives/6-Com ... 1.0.0.html

Demo site:
http://phpbb.tanis.dk
Username: demo
Password: demo
Last edited by Sune Trudslev on Sat Nov 20, 2004 6:30 am, edited 2 times in total.

Aiencran
Registered User
Posts: 169
Joined: Fri Oct 01, 2004 10:10 am
Location: Italy
Contact:

Post by Aiencran »

Could you give us any demo or screenshots??
Aiencran

reddog
Registered User
Posts: 32
Joined: Wed Jul 21, 2004 3:51 pm
Location: France ^^
Contact:

Post by reddog »

Great MOD :)

It's cool that it's validated ;)

Sune Trudslev
Registered User
Posts: 24
Joined: Wed May 14, 2003 11:10 am
Location: Denmark
Contact:

Post by Sune Trudslev »

I've updated my post above with the details.

Sune Trudslev
Registered User
Posts: 24
Joined: Wed May 14, 2003 11:10 am
Location: Denmark
Contact:

Post by Sune Trudslev »

reddog wrote: Great MOD :)

Thanks. I'm glad you like it.

User avatar
onigumo
Registered User
Posts: 1755
Joined: Fri Oct 31, 2003 2:32 am
Contact:

Post by onigumo »

Though I have no need for it, I believe it's a great MOD. Good job. I installed it myself just for the heck of it and to help improve my skills in MOD installations. Well, I've uploaded my backups and rid of the added files, but I don't know how to revoke the SQL queries I added for this MOD. I was wondering if you could tell me how to revoke these:
CREATE TABLE phpbb_canned (
canned_id mediumint(8) unsigned NOT NULL auto_increment,
group_id mediumint(8) unsigned NOT NULL default '0',
canned_title varchar(100) NOT NULL default '',
canned_message text NOT NULL,
canned_enable_bbcode tinyint(1) NOT NULL default '0',
canned_move_after_post tinyint(1) NOT NULL default '0',
canned_lock_after_post tinyint(1) NOT NULL default '0',
sortorder smallint(4) NOT NULL default '0',
PRIMARY KEY (canned_id),
KEY group_id (group_id)
) TYPE=MyISAM;

CREATE TABLE phpbb_custom_canned (
custom_canned_id mediumint(8) unsigned NOT NULL auto_increment,
group_id mediumint(8) NOT NULL default '0',
user_id mediumint(8) NOT NULL default '0',
custom_canned_title varchar(100) NOT NULL default '',
custom_canned_message text NOT NULL,
sortorder smallint(4) NOT NULL default '0',
PRIMARY KEY (custom_canned_id),
KEY user_id (user_id),
KEY group_id (group_id)
) TYPE=MyISAM;

ALTER TABLE phpbb_groups ADD canned_footer_plain TEXT NOT NULL ,
ADD canned_footer_bbcode TEXT NOT NULL ,
ADD canned_custom_count mediumint(8) unsigned NOT NULL default '0';


I know it doesn't hurt to keep them there, but I want to rid of them because they're not needed.
I write articles on community building
@ The Infinity Program.

Sune Trudslev
Registered User
Posts: 24
Joined: Wed May 14, 2003 11:10 am
Location: Denmark
Contact:

Post by Sune Trudslev »

Code: Select all

DROP TABLE phpbb_canned;
DROP TABLE phpbb_custom_canned;
ALTER  TABLE phpbb_groups DROP canned_footer_plain,
DROP canned_footer_bbcode,
DROP canned_custom_count;

User avatar
onigumo
Registered User
Posts: 1755
Joined: Fri Oct 31, 2003 2:32 am
Contact:

Post by onigumo »

Thank you, Sune.
I write articles on community building
@ The Infinity Program.

MTGTNT
Registered User
Posts: 2
Joined: Sat Nov 27, 2004 7:59 pm

Post by MTGTNT »

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
	global $userdata, $user_ip;
#
#-----[ AFTER, ADD ]------------------------------------------
#
	// Canned MOD Begin
	global $move_after_post,$lock_after_post, $SID;
	// Canned MOD End
There are 3 instances of:

Code: Select all

global $userdata, $user_ip;
Which one is this refering to?
function submit_post
function delete_post
or
function user_notification

Thanks for a great MOD.

User avatar
onigumo
Registered User
Posts: 1755
Joined: Fri Oct 31, 2003 2:32 am
Contact:

Post by onigumo »

Whichever the search comes up with first going down.
I write articles on community building
@ The Infinity Program.

MTGTNT
Registered User
Posts: 2
Joined: Sat Nov 27, 2004 7:59 pm

Post by MTGTNT »

Thanks. I had a feeling it was that, just wanted to make sure.

User avatar
B.W. Behling
Registered User
Posts: 74
Joined: Tue Dec 02, 2003 5:41 am
Location: Lenore, ID USA

Post by B.W. Behling »

This sounds like a mod I need, but I'm having a slight problem with it...

It works fine, except the canned text never actually gets added to the message.

You can enter your canned text in ACP, the messages show up in the dropdown box when posting, the screen reloads when you select one, and then you're back at a blank message entry window and the dropdown box is back to the default "Choose Canned Message"

Any ideas?

If it matters, EasyMod had a critical error trying to install this one, probably due to the Multi-Vote mod I have running, so I installed it manually. I've checked all my code and it seems right, but I must have goofed someplace, else it would be working. :)

EDIT: Additional info... The problem only happens if you use this function for a new topic. It does work if you use it to reply in a thread. Indeed, being able to just click the dropbox and have a reply window open up is a nice feature. I just wish it would work for starting topics, as on my system Mods & Admins post birthday greetings for members every day. This would make that task a lot simpler, allowing them to use canned text in the message and then personalize it.

Sune Trudslev
Registered User
Posts: 24
Joined: Wed May 14, 2003 11:10 am
Location: Denmark
Contact:

Post by Sune Trudslev »

I will look into it. I have a new version under way that has a couple of new features.

Post Reply

Return to “[2.0.x] MOD Database Cleanup”