Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Contact Us System
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #5
RE: Contact Us System
(07-11-2010 03:27 PM)ZiNgA BuRgA Wrote:  BTW, you could also possibly remove the approve/unapprove thread option from moderation options dropdown (if you haven't already) but it's not a big deal as only admins are viewing the threads.

Ah, yes, yes. I never thought removing the approve posts option there. I think it's important to prevent "missed" operation there. Thank you very much, Yumi Smile I have edited it.

(07-11-2010 08:18 PM)leefish Wrote:  Hi RateU - I tested and it looks awesome. I did notice the redirect text was standard:

Quote:Thank you, your thread has been posted.
The administrator has specified that all new threads require moderation. You will now be returned to the thread listing.

I don't know if that could be changed to something like thank you for contacting us we will get back to you... It would just be added awesomeness.

Hi... hi... hi... I knew it before creating this example, Lee Biggrin But I don't want to give a "bad" way for this in template level. If you try to submit a form again, you will view the custom message. But, yes, it is the "bad way" in template level in that forum id. That's why i didn't put that template modification in this example. I think it is better to do it in plugin level.

(07-11-2010 09:13 PM)ZiNgA BuRgA Wrote:  General gist of the plugin (contus.php) should be like:

PHP Code:
1
2
3
4
5
6
$plugins->add_hook('newthread_do_newthread_end', 'lang_override');
function lang_override() {
 if($GLOBALS['fid'] != 2) return; // replace "2" with the fid of the forum
 global $visible, $lang;
 if(!$visible) $lang->redirect_newthread = 'Thank you for contacting us.';
}


Hi... hi... hi... I think I did it wrong, Yumi. What I did to one of my friend's forum (I use this contact us form in that forum) is, bumping the guest to a "customized" error page after the thread has been created Biggrin Something like this:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
$plugins->add_hook('newthread_do_newthread_end', 'xtcu_bump');
function xtcu_bump()
{
	if($GLOBALS['fid'] == 16 && !$GLOBALS['visible'])
	{
		error('
			<div align="center">
				Your form submission has been submitted successfully.<br />
				We will respond it as soon as possible
			</div>
			', 'Form Submitted');
	}
}

Thanks again, Yumi Smile


07-12-2010 08:50 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Contact Us System - RateU - 07-11-2010, 12:55 PM
RE: Contact Us System - ZiNgA BuRgA - 07-11-2010, 03:27 PM
RE: Contact Us System - leefish - 07-11-2010, 08:18 PM
RE: Contact Us System - ZiNgA BuRgA - 07-11-2010, 09:13 PM
RE: Contact Us System - RateU - 07-12-2010 08:50 AM
RE: Contact Us System - ZiNgA BuRgA - 07-12-2010, 09:15 AM
RE: Contact Us System - Imran - 08-04-2010, 06:06 PM
RE: Contact Us System - leefish - 08-11-2010, 11:03 PM
RE: Contact Us System - RateU - 08-12-2010, 04:29 AM
RE: Contact Us System - leefish - 08-12-2010, 12:36 PM
RE: Contact Us System - RateU - 08-13-2010, 05:17 AM
RE: Contact Us System - Pirata Nervo - 08-14-2010, 09:14 AM
RE: Contact Us System - RateU - 08-15-2010, 03:28 AM
RE: Contact Us System - techu - 09-07-2010, 11:05 PM
RE: Contact Us System - RateU - 09-08-2010, 01:03 AM
RE: Contact Us System - techu - 09-08-2010, 01:08 AM
RE: Contact Us System - RateU - 09-08-2010, 01:22 AM
RE: Contact Us System - techu - 09-08-2010, 01:31 AM
RE: Contact Us System - RateU - 09-08-2010, 01:52 AM
RE: Contact Us System - techu - 09-08-2010, 02:00 AM
RE: Contact Us System - RateU - 09-08-2010, 02:28 AM
RE: Contact Us System - techu - 09-08-2010, 02:42 AM
RE: Contact Us System - ZiNgA BuRgA - 09-08-2010, 09:17 AM
RE: Contact Us System - techu - 09-08-2010, 12:15 PM
RE: Contact Us System - ZiNgA BuRgA - 09-08-2010, 12:35 PM
RE: Contact Us System - RateU - 09-16-2010, 02:12 AM
RE: Contact Us System - 1master1 - 10-25-2010, 01:54 PM
RE: Contact Us System - techu - 10-25-2010, 02:59 PM
RE: Contact Us System - leefish - 10-25-2010, 08:36 PM
RE: Contact Us System - 1master1 - 10-26-2010, 02:49 AM
RE: Contact Us System - leefish - 10-26-2010, 03:16 AM
RE: Contact Us System - 1master1 - 10-26-2010, 03:46 AM
RE: Contact Us System - leefish - 10-26-2010, 05:00 AM
RE: Contact Us System - 1master1 - 10-27-2010, 12:06 AM
RE: Contact Us System - techu - 10-27-2010, 02:39 AM
RE: Contact Us System - RateU - 11-09-2010, 04:53 AM
RE: Contact Us System - x-Treme - 11-13-2010, 03:49 AM
RE: Contact Us System - 1master1 - 11-13-2010, 05:26 AM
RE: Contact Us System - RateU - 11-14-2010, 07:35 AM
RE: Contact Us System - Vapor - 01-03-2011, 02:17 PM
RE: Contact Us System - Vapor - 01-04-2011, 02:38 AM
RE: Contact Us System - RateU - 01-04-2011, 02:45 AM
RE: Contact Us System - Vapor - 01-04-2011, 03:26 AM
RE: Contact Us System - RateU - 01-04-2011, 03:38 AM
RE: Contact Us System - Vapor - 01-04-2011, 04:23 AM
RE: Contact Us System - RateU - 01-04-2011, 04:28 AM
RE: Contact Us System - Vapor - 01-04-2011, 04:31 AM
RE: Contact Us System - RateU - 01-04-2011, 04:46 AM
RE: Contact Us System - Vapor - 01-04-2011, 04:56 AM
RE: Contact Us System - RateU - 01-04-2011, 05:01 AM
RE: Contact Us System - Vapor - 01-04-2011, 07:44 AM
RE: Contact Us System - RateU - 01-04-2011, 08:32 AM
RE: Contact Us System - Vapor - 01-04-2011, 10:52 AM
RE: Contact Us System - Vapor - 01-04-2011, 11:32 AM
RE: Contact Us System - RateU - 01-04-2011, 11:51 AM
RE: Contact Us System - Vapor - 01-04-2011, 04:09 PM
RE: Contact Us System - ZiNgA BuRgA - 01-04-2011, 05:43 PM
RE: Contact Us System - Vapor - 01-05-2011, 12:46 AM
RE: Contact Us System - RateU - 01-05-2011, 02:55 AM
RE: Contact Us System - Vapor - 01-05-2011, 03:07 AM
RE: Contact Us System - RateU - 01-05-2011, 03:31 AM
RE: Contact Us System - Vapor - 01-05-2011, 06:31 AM
RE: Contact Us System - ZiNgA BuRgA - 01-05-2011, 09:24 AM
RE: Contact Us System - Vapor - 01-05-2011, 09:58 AM
RE: Contact Us System - ZiNgA BuRgA - 01-05-2011, 10:16 AM
RE: Contact Us System - Vapor - 01-05-2011, 10:27 AM
RE: Contact Us System - Vapor - 01-06-2011, 05:39 AM
RE: Contact Us System - RateU - 01-06-2011, 06:09 AM
RE: Contact Us System - Vapor - 01-06-2011, 06:31 AM
RE: Contact Us System - RateU - 01-07-2011, 05:59 AM
RE: Contact Us System - ZiNgA BuRgA - 01-07-2011, 09:59 AM
RE: Contact Us System - RateU - 02-11-2011, 03:24 AM
RE: Contact Us System - RateU - 03-19-2011, 09:05 AM
RE: Contact Us System - RateU - 07-21-2011, 04:12 AM
RE: Contact Us System - Vapor - 01-06-2012, 03:12 AM
RE: Contact Us System - RateU - 01-06-2012, 05:51 AM
RE: Contact Us System - Vapor - 01-06-2012, 09:07 PM
RE: Contact Us System - nier3 - 08-16-2012, 01:03 AM
RE: Contact Us System - RateU - 08-16-2012, 01:47 AM
RE: Contact Us System - nier3 - 08-16-2012, 08:23 PM
RE: Contact Us System - RateU - 08-17-2012, 01:30 AM
RE: Contact Us System - nier3 - 08-18-2012, 11:01 PM
RE: Contact Us System - Vapor - 09-10-2012, 04:10 AM
RE: Contact Us System - RateU - 10-08-2012, 02:52 AM
RE: Contact Us System - Fring - 12-01-2013, 09:16 AM
RE: Contact Us System - RateU - 12-02-2013, 10:55 PM
RE: Contact Us System - hamidkag - 01-20-2014, 10:37 PM
RE: Contact Us System - Kylin - 12-29-2014, 03:32 AM
RE: Contact Us System - Marc A - 02-28-2015, 01:46 AM
RE: Contact Us System - ZiNgA BuRgA - 02-28-2015, 09:23 AM
RE: Contact Us System - Marc A - 03-02-2015, 02:15 PM
RE: Contact Us System - Vapor - 08-18-2015, 03:01 PM
RE: Contact Us System - Vapor - 08-19-2015, 04:40 AM
RE: Contact Us System - Vapor - 08-22-2015, 03:14 AM
RE: Contact Us System - ZiNgA BuRgA - 09-01-2015, 04:55 PM
RE: Contact Us System - xensor - 12-12-2015, 07:17 PM
RE: Contact Us System - RateU - 12-13-2015, 01:53 AM
RE: Contact Us System - xensor - 12-13-2015, 06:49 AM
RE: Contact Us System - RateU - 12-14-2015, 01:38 AM

 Standard Tools
Forum Jump: