Version: 1.00, by burnz
Developer Last Online: Jun 2005
Version: 2.2.x
Rating:
Released: 08-28-2002
Last Update: Never
Installs: 25
No support by the author.
Custom Post Prefixes
This hack is a modified version of apfeifer Custom Post Prefixes. This modified hack have an ability to assign different forum with a different post prefixes.. also have an ability to change the post prefixes while editing the post..
UPDATES:
Version 1.3
- Update the stupid error that i made.. sory guys..
- Fully working code for forcing user to select the post prefix before posting.
Version 1.2
- Display an error page if user did not select any option from the post prefix list. (suggested by squawell)
Version 1.1
-Enable/disable the Post Prefix function from Forum Permissions under User Group or Forums & Moderators menu (suggested by HellSatan)
Feedback will be appreciated....
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
// check for subject and message
if (trim($subject)=="" or trim($message)=="") {
eval("standarderror(\"".gettemplate("error_nosubject")."\");");
exit;
}
Add below:
PHP Code:
if (trim($posttype2)=="") {
$custompostname = $foruminfo[custompostname];
eval("standarderror(\"".gettemplate("error_posttype")."\");");
exit;
}
// check for message
if ($message=="") {
eval("standarderror(\"".gettemplate("error_nosubject")."\");");
exit;
}
Add Below:
PHP Code:
if (trim($posttype2)=="") {
$custompostname = $foruminfo[custompostname];
eval("standarderror(\"".gettemplate("error_posttype")."\");");
exit;
}
---------------------------------//----------------------------------------
Below is the update for version 1.1 but i forgot to include it with version 1.1. please check the code..
sory for the mess..
Find: (version 1.1)
PHP Code:
if (!empty($foruminfo[custompostname])) {
$prefixes = explode(" ", $foruminfo[customposttypes]);
I have an error where everything works, but when my users try to submit new threads in forums where its not being used, they get the error message? anyone have any clues, im stummped.. I even rehacked it all and still got the same problem.
Are you using the updated version or the first version in the first post? I am using the version from the first post and I just tried posting in a forum that doesn't have the prefix enabled in it and it did the new thread just fine.
Quote:
Originally posted by snyx I have an error where everything works, but when my users try to submit new threads in forums where its not being used, they get the error message? anyone have any clues, im stummped.. I even rehacked it all and still got the same problem.
sory guys... it have an error in the version 1.2 code... a stupid error...
please use the code in version 1.1... do not use the version 1.2 because there is an error on the coding.. will debug the code as soon as possible... sory for the inconvenience...