View Full Version : Mini Mods - Require Post Icon
Adrian.
10-11-2006, 10:00 PM
Require Post Icon
Made by Adrian at Dreamit.co.uk
Tested on 3.6.1
Hey,
This mod' requires the user to select a post icon when making a new thread.
As requested here (https://vborg.vbsupport.ru/showthread.php?t=128860).
Installation
Import product-requireicon.xml
Template Edit:
Go to the style manager, select the template you wish to edit.
Open Postbit Templates ? posticons
Find:
<td width="12%" nowrap="nowrap"><label for="rb_iconid_0"><input type="radio" name="iconid" value="0" id="rb_iconid_0" tabindex="1" onclick="swap_posticon(null)" $iconchecked />$vbphrase[no_icon] </label></td>
Replace With:
<if condition="$vboptions['requireicon_enable'] == 1">
<td width="12%" nowrap="nowrap"><input type="hidden" name="iconid" value="0" id="rb_iconid_0" tabindex="1" onclick="swap_posticon(null)" $iconchecked /></td>
<else />
<td width="12%" nowrap="nowrap"><label for="rb_iconid_0"><input type="radio" name="iconid" value="0" id="rb_iconid_0" tabindex="1" onclick="swap_posticon(null)" $iconchecked />$vbphrase[no_icon] </label></td>
</if>
Done. :)
Simple.
If you installed this, please click install. :)
Thanks.
Adrian
Allan
10-12-2006, 09:46 AM
Very nice, i like it, big thank ;)
Click Install ^^
EvilHawk
10-12-2006, 09:47 AM
Suggestion: A per forum setting will copliment this product ... ;)
clicks install ..
Adrian.
10-12-2006, 09:52 AM
Suggestion: A per forum setting will copliment this product ... ;)
clicks install ..
Hmm...never thought of doing that.
It would probably be pritty easy too.
I may do it depending on amount of installs. :)
redlabour
10-12-2006, 10:26 AM
Suggestion: A per forum setting will copliment this product ... ;)
clicks install ..
Agree ! :)
I may do it depending on amount of installs. :)
Thats a bad idea - because i do not install it (and i think some others want to that) because i need it only for one Forum (Portalnews). ;)
category
10-12-2006, 06:54 PM
same here i would install it now buy only need a couple of forums
bashy
10-12-2006, 07:57 PM
Hi
I would certainly install this if it was on a per forum basis, will click install hoping for an update :)
hal05
10-12-2006, 10:45 PM
Working on 3.6.0! Thank you@ Just what I wanted.
hal05
10-12-2006, 10:46 PM
Thank yoU@
optrex
10-13-2006, 07:36 AM
Fantastic idea, just one big problem - user types 300 word post, forgets to include the icon, gets you must use an icon message, goes back and ........300 words have disappeared. :(
Needs fixing pls ;)
Adrian.
10-13-2006, 08:19 AM
Fantastic idea, just one big problem - user types 300 word post, forgets to include the icon, gets you must use an icon message, goes back and ........300 words have disappeared. :(
Needs fixing pls ;)
Oh, i kept clicking back, trying things, making sure this didn't happen.
I will have a look, possibly use a Javascript popup alert instead of a vBulletin Error.
Adrian
optrex
10-13-2006, 10:59 AM
I'm on 3.6.2 if that makes any difference.
jyajay
10-17-2006, 10:18 PM
Oh, i kept clicking back, trying things, making sure this didn't happen.
I will have a look, possibly use a Javascript popup alert instead of a vBulletin Error.
Adrian
I'd appreciate this very much. I think the possibility that you have to write everything again if you get this error can be pretty frustrating. :p
Clayton
10-18-2006, 07:15 PM
would really be interested in per forums icons if possible
Narcootic
10-18-2006, 10:50 PM
Any chance this hack can be converted to 3.5 with a few changes? I would love to run it but don't run 3.6 I am afraid. Please advice.
Thanks.
hal05
10-19-2006, 10:07 PM
Same here.:bandit:
would really be interested in per forums icons if possible
category
10-30-2006, 02:55 AM
doesnt look good
https://vborg.vbsupport.ru/member.php?u=115873
hal05
10-30-2006, 11:29 PM
would really be interested in per forums icons if possible
Same here. :D
feldon23
10-31-2006, 02:28 PM
Folks, per-forum is not rocket science.
Change the IF statement to:
<if condition="$vboptions['requireicon_enable'] == 1 && in_array($forumid, array(12,14,17))">
and this will only apply to forums 12, 14, 17.
category
11-01-2006, 09:09 PM
what edits i should do in the plug in
jyajay
12-08-2006, 11:22 AM
There is a big problem with this because if somebody didn't chose a posticon and he gets back to the thread the whole text he entered is gone which can make some people pretty angry. Wouldnt it be easier if there is something like this (https://vborg.vbsupport.ru/showthread.php?t=129844) mod is using.
I attached an example of the mod, notice the text is not lost.
cunder
01-01-2007, 06:37 PM
Folks, per-forum is not rocket science.
Change the IF statement to:
<if condition="$vboptions['requireicon_enable'] == 1 && in_array($forumid, array(12,14,17))">
and this will only apply to forums 12, 14, 17.
this does not work at me :hurt:
cunder
01-01-2007, 06:38 PM
Help
would really be interested in per forums icons if possible
coderphp
01-04-2007, 10:22 AM
good thank you
bongwater
01-04-2007, 05:24 PM
thanks for the hack. How can I change the text of the message to something more customized, for my forum users?
Silverstangs
02-16-2007, 01:51 PM
I like the idea of this hack, but some users may find it annoying.
Xoligy
02-21-2007, 07:33 PM
Suggestion: A per forum setting will copliment this product ... ;)
clicks install ..
Here you go (https://vborg.vbsupport.ru/showthread.php?t=140073).
EvilArcana
07-21-2007, 02:31 PM
Installed, and thank you!
Is there a way to default it to the first posticon in your list? I want to require they select a posticon, but I don't want to make them go back and select one if I can default it to the first one.
EvilArcana
07-21-2007, 03:59 PM
Another thing I noticed is that it ignores quick reply. There should be an option for default post icon for quickreply or to show the posticon bit for quick reply editor.
Installed on 3.8
I did not edit template but it works :D
MortysTW
01-19-2010, 03:17 PM
You get this working with the latest vb 4.0 by any chance? Was curious before I installed it. Been using it for years. It's awesome.
Danny Diamond
01-26-2010, 09:32 PM
installed but I don't like how it doesn't ask you for the posticon while you are still on the page you typed all your work in. I would hate for someone to lose all their work because of this small feature. I am uninstalling now.
kpmedia
06-10-2011, 05:53 PM
installed but I don't like how it doesn't ask you for the posticon while you are still on the page you typed all your work in. I would hate for someone to lose all their work because of this small feature. I am uninstalling now.
I was worried about that, too.
This works well on 3.8.x: https://vborg.vbsupport.ru/showthread.php?t=140073
Installed it, just what I needed.
No icon picked? No problem, returns to page with content intact. (Tested with Chrome, Firefox.)
Just adding my experience for anybody that may find it useful. :up:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.