View Full Version : function print_delete_confirmation
Lionel
Tue 29th Jan '08, 12:23pm
In that function must the $itemname be 'forum' or 'user' or 'post'?
What does the 'etc' stands for?
I tried putting 'recipe' with a cpglobal phrase that will not work. The dialog box at center is blank.
It works only when I put 'forum' (with 'forum' in phrasegroups array)
Problem is the dialog says:
are you sure you want to delete the forum named "My Cake"?
Wayne Luke
Tue 29th Jan '08, 12:48pm
For help with custom coding questions, you need to post at www.vBulletin.org (http://www.vBulletin.org). I suggest using this forum:
http://www.vbulletin.org/forum/forumdisplay.php?f=111
Lionel
Tue 29th Jan '08, 12:51pm
This what not so much a help request, but rather a bug report. I posted here because I wanted confirmation first.
Lionel
Wed 30th Jan '08, 3:44am
So no answer? This is not a request for help or how to, but rather a clarification on a functionality.
here is the question again
In that function must the $itemname be 'forum' or 'user' or 'post'?
Wayne Luke
Wed 30th Jan '08, 11:38am
It handles default objects. If the case is not met then it runs the plugin on the admin_delete_confirmation hook.
You can see this function in adminfunctions.php for future reference.
Lionel
Mon 4th Feb '08, 12:29pm
OK thank you. I did see the function in the file, I used the hook, it ran successfully, except that the phrase will not run unless you use 'forum' for itemname. I thought I'd let you guys know.
Anyway, I did my own delete confirmation.
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.