Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Require Post Icon Details »»
Require Post Icon
Version: 1.00, by Adrian. Adrian. is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.1 Rating:
Released: 10-11-2006 Last Update: Never Installs: 38
Uses Plugins
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-13-2006, 08:19 AM
Adrian.'s Avatar
Adrian. Adrian. is offline
 
Join Date: Oct 2005
Location: South Yorkshire
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 10-13-2006, 10:59 AM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm on 3.6.2 if that makes any difference.
Reply With Quote
  #14  
Old 10-17-2006, 10:18 PM
jyajay jyajay is offline
 
Join Date: Sep 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 10-18-2006, 07:15 PM
Clayton Clayton is offline
 
Join Date: Nov 2004
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would really be interested in per forums icons if possible
Reply With Quote
  #16  
Old 10-18-2006, 10:50 PM
Narcootic Narcootic is offline
 
Join Date: Jun 2006
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 10-19-2006, 10:07 PM
hal05 hal05 is offline
 
Join Date: Aug 2005
Location: Mid-Michigan
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same here.:bandit:

Quote:
Originally Posted by Clayton
would really be interested in per forums icons if possible
Reply With Quote
  #18  
Old 10-30-2006, 02:55 AM
category category is offline
 
Join Date: Jul 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt look good

https://vborg.vbsupport.ru/member.php?u=115873
Reply With Quote
  #19  
Old 10-30-2006, 11:29 PM
hal05 hal05 is offline
 
Join Date: Aug 2005
Location: Mid-Michigan
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Clayton
would really be interested in per forums icons if possible
Same here.
Reply With Quote
  #20  
Old 10-31-2006, 02:28 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #21  
Old 11-01-2006, 09:09 PM
category category is offline
 
Join Date: Jul 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what edits i should do in the plug in
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:47 AM.


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.04885 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete