PDA

View Full Version : Mini Mods - Require Post Icon


Adrian.
12 Oct 2006, 10:31
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 (http://www.vbulletin.org/forum/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] &nbsp; &nbsp;</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] &nbsp; &nbsp;</label></td>
</if>

Done. :)

Simple.

If you installed this, please click install. :)

Thanks.

Adrian

Allan
12 Oct 2006, 10:46
Very nice, i like it, big thank ;)

Click Install ^^

EvilHawk
12 Oct 2006, 10:47
Suggestion: A per forum setting will copliment this product ... ;)

clicks install ..

Adrian.
12 Oct 2006, 10:52
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
12 Oct 2006, 11:26
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
12 Oct 2006, 19:54
same here i would install it now buy only need a couple of forums

bashy
12 Oct 2006, 20:57
Hi

I would certainly install this if it was on a per forum basis, will click install hoping for an update :)

hal05
12 Oct 2006, 23:45
Working on 3.6.0! Thank you@ Just what I wanted.

hal05
12 Oct 2006, 23:46
Thank yoU@

optrex
13 Oct 2006, 08:36
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.
13 Oct 2006, 09:19
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
13 Oct 2006, 11:59
I'm on 3.6.2 if that makes any difference.

jyajay
17 Oct 2006, 23:18
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
18 Oct 2006, 20:15
would really be interested in per forums icons if possible

Narcootic
18 Oct 2006, 23:50
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
19 Oct 2006, 23:07
Same here.:bandit:

would really be interested in per forums icons if possible

category
30 Oct 2006, 03:55
doesnt look good

http://www.vbulletin.org/forum/member.php?u=115873

hal05
31 Oct 2006, 00:29
would really be interested in per forums icons if possible

Same here. :D

feldon23
31 Oct 2006, 15:28
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
01 Nov 2006, 22:09
what edits i should do in the plug in

jyajay
08 Dec 2006, 12:22
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 (http://www.vbulletin.org/forum/showthread.php?t=129844) mod is using.

I attached an example of the mod, notice the text is not lost.

cunder
01 Jan 2007, 19:37
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 Jan 2007, 19:38
Help
would really be interested in per forums icons if possible

coderphp
04 Jan 2007, 11:22
good thank you

bongwater
04 Jan 2007, 18:24
thanks for the hack. How can I change the text of the message to something more customized, for my forum users?

Silverstangs
16 Feb 2007, 14:51
I like the idea of this hack, but some users may find it annoying.

Xoligy
21 Feb 2007, 20:33
Suggestion: A per forum setting will copliment this product ... ;)

clicks install ..

Here you go (http://www.vbulletin.org/forum/showthread.php?t=140073).

EvilArcana
21 Jul 2007, 15:31
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
21 Jul 2007, 16:59
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.

Veer
14 Oct 2009, 22:30
Installed on 3.8
I did not edit template but it works :D

MortysTW
19 Jan 2010, 16:17
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
26 Jan 2010, 22:32
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
10 Jun 2011, 18:53
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: http://www.vbulletin.org/forum/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: