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.

Reply
 
Thread Tools Display Modes
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
Old 06-04-2010   #2
Greg
Administrator
 
Greg's Avatar
 
Join Date: Feb 2003
Location: Florida
Posts: 5,194
You're going to have to look at where your fields are processed and find a suitable hook. What page are your fields posted to?
__________________
Computers and Accessories Computer Manuals Riderinfo Connect for Bikers
Ad Revenue - Sell link space on your website and profit.
Greg is online now   Reply With Quote
Old 10-24-2011   #3
Ashli
Junior Member
 
Join Date: Oct 2011
Posts: 4
I would like to know how to do this also. Did you ever figure it out? I am a little confused by the previous response, can you elaborate please?
Ashli is offline   Reply With Quote
Reply

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 01:24 PM.



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

EZ software products copyright Greg Lynch 2006-2013