vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Require Post Icon (https://vborg.vbsupport.ru/showthread.php?t=128899)

Adrian. 10-11-2006 10:00 PM

Require Post Icon
 
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.

Installation
Import product-requireicon.xml

Template Edit:
Go to the style manager, select the template you wish to edit.

Open Postbit Templates ? posticons

Find:
HTML Code:

<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:
HTML Code:

<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 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

Quote:

Originally Posted by EvilHawk
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

Quote:

Originally Posted by EvilHawk
Suggestion: A per forum setting will copliment this product ... ;)

clicks install ..

Agree ! :)

Quote:

Originally Posted by Adrian.
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

Quote:

Originally Posted by optrex
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

Quote:

Originally Posted by Adrian.
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:

Quote:

Originally Posted by Clayton
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

Quote:

Originally Posted by Clayton
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 mod is using.

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

cunder 01-01-2007 06:37 PM

Quote:

Originally Posted by feldon23 (Post 1108149)
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

Quote:

Originally Posted by EvilHawk (Post 1095268)
Suggestion: A per forum setting will copliment this product ... ;)

clicks install ..

Here you go.

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.

Veer 10-14-2009 09:30 PM

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

Quote:

Originally Posted by Danny Diamond (Post 1967464)
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:


All times are GMT. The time now is 05:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01247 seconds
  • Memory Usage 1,788KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete