The Arcive of vBulletin Modifications Site. |
|
Require a post icon on new thread creation (or on every post) Details »»
|
|||||||||||||||||||||||||||
|
Require a post icon on new thread creation (or on every post)
Developer Last Online: Jul 2005
Create a new phrase in the category "Front-End Error Messages" titled "noicon", with the text "You must choose a post icon before posting a new thread."
Open includes/functions_newpost.php Find: Code:
// check for subject/message
if (($post['message'] == '' AND $vboptions['postminchars'] > 0) OR ($type == 'thread' AND empty($post['title'])))
{
eval('$errors[] = "' . fetch_phrase('nosubject', PHRASETYPEID_ERROR) . '";');
}
Code:
// check for post icon
if ($type == 'thread' AND $post['iconid'] == 0)
{
eval('$errors[] = "' . fetch_phrase('noicon', PHRASETYPEID_ERROR) . '";');
}
Code:
// check for post icon
if ($post['iconid'] == 0)
{
eval('$errors[] = "' . fetch_phrase('noicon', PHRASETYPEID_ERROR) . '";');
}
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
You can see a demo at http://www.postfarm.net/ and, as always, please click install
|
|
#3
|
|||
|
|||
|
Thx very much
|
|
#4
|
|||
|
|||
|
Great hack. It does however break the "report post" hack where the report is posted as a new thread in a forum of your choice. I fixed it by changing it to this:
Code:
// check for post icon
if (THIS_SCRIPT != 'report') {
if ($type == 'thread' AND $post['iconid'] == 0)
{
eval('$errors[] = "' . fetch_phrase('noicon', PHRASETYPEID_ERROR) . '";');
}
}
|
|
#5
|
||||
|
||||
|
awesome!
this is cool, because I get so tired of seeing just the default icon used, esp when I have a ton just sitting there ![]() [high]* turbidblue click install happily [/high]
|
|
#6
|
|||
|
|||
|
Is there anyway to set this up so that it won't require an icon for forums with icons turned off?
|
|
#7
|
|||
|
|||
|
Figured it out, this should work
![]() PHP Code:
|
|
#8
|
|||
|
|||
|
Anyone updating this for vb 3.5?
|
|
#9
|
|||
|
|||
|
How would I get rid of the no icon option? Have this installed, but it's confusing as the message when not having a icon checked is
Could not find phrase 'noicon'. would that require a phraze change? |
|
#10
|
|||
|
|||
|
will this mod work in Version 3.7.2?
|
![]() |
|
|