MyBB Community Forums

Full Version: Default Post Icon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to make it so if a person doesn't choose a post icon, it auto defaults to a certain one?

Thanks
Can you edit the post template to remove the none option and have an icon selected by default? I don't that method is possible, I think it's easier to edit showthread/postbit and forumdisplay templates to show an icon if there is none, but I don't have the time to figure out exactly how to do it.
You have to do file modifications...I found one that worked for 1.2 only.

Maybe someone wants to do a follow up? Wink
Also, how can I set the default thread viewing mode, threaded is weird, I'd just prefer Linear, but it keeps resetting everytime i go back out.
Any ideas?

Edit, nevermind figured that out.

Any ideas on the post icons?
For MyBB 1.4, search for this instead:
	// Set the thread data that came from the input to the $thread array.
	$new_thread = array(

The rest should still be the same.
Didn't work Sad
The code edit is only for new threads (which is what the link supplied above does).
If you want posts, find this in newreply.php:
	// Set the post data that came from the input to the $post array.
	$post = array(
Replace in the same fashion.
Yeah, I tried it on a new thread, when I created it, it defaulted to no icon.
Sorry, just tried it.

Gah, all the changes :/

Use this replacement instead - works here:
if($mybb->input['icon'] == "-1")
        {
        $mybb->input['icon'] = 3;
        } 
Great!
That worked beautifully!

Thanks so much ZiNgA BuRgA!