Computer Help Forum

Go Back   vBulletin and Computer Help Forum > vBulletin Support > vBulletin Hack and Modification Support

vBulletin Hack and Modification Support vBulletin hacks, plugins and template modification support for forum administrators.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-04-2010   #1
anirban_das
Junior Member
 
Join Date: Jun 2010
Posts: 1
Exclamation Custom error

Hello,
i am looking to create custom error messages just like the Duplicate Post error.
I want to know how can i do this. I found the duplicate post phrase in functions_newpost.php

Quote:
// with ajax quick reply we need to use the error system
if ($vbulletin->GPC['ajax'])
{
$dataman->error('duplicate_post');
$errors = $dataman->errors;
return;

}
else
{
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$prevpostthreadid&goto=newpost";
Can anyone help me locate the error hook location? Say i want to add another error code just like this so that when a member tries to post a given field he's disallowed. Please help me out.
anirban_das is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:42 AM.



vBulletin 3.8.7 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright vB and Computer Help Forum

EZ software products copyright Greg Lynch 2006-2013