Version: 1.0.1, by JJR512
Developer Last Online: Jun 2006
Version: 3.5.4
Rating:
Released: 04-20-2006
Last Update: Never
Installs: 15
Uses Plugins
No support by the author.
Here's a simple little hack that allows you, the Admin, to select a particular post icon that will be pre-selected when a member goes to post a new thread or new reply.
This is a bit different from the built-in option, "Show Default Post Icon" in the "Thread Display Options (showthread)" section, which only shows the icon you set if a message doesn't have an icon saved with it. I decided I would rather have a particular icon pre-selected when a member starts a new post, rather than displaying one later if no icon was selected.
This is a simple install: Download the XML file and add it as a product. No template edits, no uploads. That's it!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Yes you can. I'll show you how. Unfortunately I don't have a lot of time to figure out a more elegant solution, so you're going to have to manually add another plugin and edit the plugin to suit your needs. I'll show you how.
First, in your Admin CP, Plugin System section, go to Add New Plugin. Set the Product to Default Post Icon. Set the hook location to newthread_forum_start. Enter the title as "Default Post Icon (per forum)".
This is the code for the plugin:
On the first line, change the 0 to the forumid of the forum you want to have a different default post icon. Two lines down, change the 1 to the post icon id you want to be the default for that forum.
If you want another forum to have a different default post icon, then change the next 0 and the next 1 appropriately, the same as you just did.
If you want more forums to have different default post icons, you must COPY the FOUR lines that start with "else if" and past that clump of code above the line that's just "else". Make the appropriate changes to each 0 and 1 (forumid and post icon id).
I hope that makes sense.
(And if you only wanted ONE forum to have a different default post icon, don't worry about the second 0 and 1, leave them as they are; since no forum has a forumid of 0, nothing will happen.)
Yes you can. I'll show you how. Unfortunately I don't have a lot of time to figure out a more elegant solution, so you're going to have to manually add another plugin and edit the plugin to suit your needs. I'll show you how.
First, in your Admin CP, Plugin System section, go to Add New Plugin. Set the Product to Default Post Icon. Set the hook location to newthread_forum_start. Enter the title as "Default Post Icon (per forum)".
This is the code for the plugin:
On the first line, change the 0 to the forumid of the forum you want to have a different default post icon. Two lines down, change the 1 to the post icon id you want to be the default for that forum.
If you want another forum to have a different default post icon, then change the next 0 and the next 1 appropriately, the same as you just did.
If you want more forums to have different default post icons, you must COPY the FOUR lines that start with "else if" and past that clump of code above the line that's just "else". Make the appropriate changes to each 0 and 1 (forumid and post icon id).
I hope that makes sense.
(And if you only wanted ONE forum to have a different default post icon, don't worry about the second 0 and 1, leave them as they are; since no forum has a forumid of 0, nothing will happen.)
Yeah, I know...That would be the "more elegant solution" I mentioned I don't have time to figure out how to do. By all means if it's something easy or you know how to do it off the top of your head and could just write it up, please show me, and earn a spot on the Contributor list.