Back to vBulletin 3.0 Add-Ons

Require a post icon on new thread creation (or on every post)
Mod Version: 1.00, by sblum

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 9
Released: 21 Sep 2004 Last Update: Never Downloads: 0
Not Supported  

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) . '";');
	}
Add Below:
Code:
	// check for post icon
	if ($type == 'thread' AND $post['iconid'] == 0)
	{
		eval('$errors[] = "' . fetch_phrase('noicon', PHRASETYPEID_ERROR) . '";');
	}
That's it. If you want to make it required on all posts instead of just new thread creation, change the phrase accordingly and add the following code instead:

Code:
	// check for post icon
	if ($post['iconid'] == 0)
	{
		eval('$errors[] = "' . fetch_phrase('noicon', PHRASETYPEID_ERROR) . '";');
	}

Download

No files for download.

Similar Mods

Mini Mods Require Post Icon vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024