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

Reply
 
Thread Tools
Allow Usergroups to Post HTML Details »»
Allow Usergroups to Post HTML
Version: 1.00, by kall kall is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 09-25-2005 Last Update: 11-27-2005 Installs: 510
Uses Plugins
Is in Beta Stage  
No support by the author.

Just like the name says, this ultra-simple little Product will allow you to specify Usergroups that may post in HTML and have that HTML be parsed...SOME PEOPLE ARE HAVING TABLE PROBLEMS - THIS IS UNSUPPORTED USEAGE OF THE MODIFICATION AND I AM UNABLE TO ASSIST!

***BE AWARE THAT INDISCRIMINATE USE OF THIS HACK IS RISKY - RESTRICT IT TO ONLY THOSE USERGROUPS YOU TRUST ABSOLUTELY***

The scary message above is to make sure you are aware that enabling HTML for any group opens you up to security issues. This is why it is not a feature of Stock vB, probably.

I decided I needed to have the ability to post in HTML because I just installed ZT's RSS Feeds hack, and the ones I got from Google looked all horrible.

Now updated to be controlled by a Setting in Usergroup Manager, it's phrased and even works in editpost.php (preview) in WYSIWYG and normal modes, AND the Forum Rules shows HTML is ON.

This will not work retroactively. That is, if a User posted something in HTML before they were given the ability, that post has to be edited by that member (or someone else with HTML ability) in order to be parsed. I am assuming this is due to post caching.

Many thanks to Kirby for prodding me to figure it out by myself and not just telling me what to do.

A "demo" is here..html is OFF in that Forum, but the post is made by an Admin, so the HTML is parsed.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
HeyMe

Comments
  #102  
Old 10-17-2005, 03:08 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1) Uninstall
2) Upload the bitfield XML to includes/xml
3) Install

This is necessary, otherwise the bitfield cache will not get rebuilt resulting in errors in usergroup manager
Reply With Quote
  #103  
Old 10-17-2005, 04:44 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks man, this should be a default feature really.
Reply With Quote
  #104  
Old 10-18-2005, 07:56 AM
Tulsa Tulsa is offline
 
Join Date: Jul 2005
Location: Broken Arrow, Oklahoma
Posts: 475
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, working great!
Reply With Quote
  #105  
Old 10-20-2005, 02:35 AM
Vtec44 Vtec44 is offline
 
Join Date: Jan 2005
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
Once again:
If you uninstall Hack the use custom Bitfields you must always delete the Bitfield XML before uninstalling it.
I deleted the bitfield_allowhtml.xml, then uninstalled the product, and got the error message below when creating a new user group:

Code:
Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO sbnvb_usergroup
(`title`, `description`, `usertitle`, `opentag`, `closetag`, `passwordexpires`, `passwordhistory`, `ispublicgroup`, `canoverride`, `forumpermissions`, `attachlimit`, `pmquota`, `pmpermissions`, `pmsendmax`, `calendarpermissions`, `wolpermissions`, `adminpermissions`, `genericpermissions`, `genericoptions`, `profilepicmaxwidth`, `profilepicmaxheight`, `profilepicmaxsize`, `avatarmaxwidth`, `avatarmaxheight`, `avatarmaxsize`, `allowhtmlpermissions`, `maxsiglines`, `maxsigfontsize`, `maxsigimgsize`, `maxsigimgwidth`, `maxsigimgheight`, `maxsigimages`, `sigforbiddencodes`, `custompermissions`)
VALUES
('test', '', '', '', '', '', '', '0', '0', '651271', '1000000', '0', '0', '5', '0', '1', '0', '2626563', '9', '100', '100', '25000', '50', '50', '20000', '0', '', '', '', '', '', '', '', '0');

MySQL Error  : Unknown column 'allowhtmlpermissions' in 'field list'
Error Number : 1054
Reply With Quote
  #106  
Old 10-20-2005, 11:26 AM
davidms davidms is offline
 
Join Date: Oct 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey everone, I'm brand new to this, and I'm not sure how to install this plugin is there several 'hooks' that I install on this plugin or do I only install 2, - 1 for each file? (there are only two files in the plugin)

I read the general forum instructions for plugins, but I'm still not sure what to do. I'm not sure how to install this plugin.

Dave :nervous:
Reply With Quote
  #107  
Old 10-20-2005, 02:36 PM
craigbrass craigbrass is offline
 
Join Date: Nov 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed the product. Thanks for it!!

But I've found a bug. I posted some announcements a while ago and formatted them in HTML. Then I installed this plugin, and suddenly my announcements were plain text. There was no HTML format.

I hope you can fix this problem soon.

Thanks!
Reply With Quote
  #108  
Old 10-21-2005, 04:14 AM
hydrostatic hydrostatic is offline
 
Join Date: Jun 2005
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When trying to uninstall as Andreas suggested, it gives me another SQL error

Code:
Database error in vBulletin 3.5.0:

Invalid SQL:
ALTER TABLE vb3_usergroup DROP allowhtmlpermissions;

MySQL Error  : Can't DROP 'allowhtmlpermissions'; check that column/key exists
Error Number : 1091
Date         : Friday, October 21st 2005 @ 12:10:26 AM
Script       : http://www.blootix.com/forums/admincp/plugin.php
Referrer     : http://www.blootix.com/forums/admincp/plugin.php?do=productdelete&productid=nzbgroupallowhtml&s=
IP Address   : --------------
Username     : Blootix
Classname    : vb_database
Reply With Quote
  #109  
Old 10-21-2005, 04:35 AM
hydrostatic hydrostatic is offline
 
Join Date: Jun 2005
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, I just deleted the uninstall code in the plugin and it worked... but did anything happen to my database because of this?
Reply With Quote
  #110  
Old 10-24-2005, 02:01 AM
actolearn actolearn is offline
 
Join Date: Dec 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
This will not work retroactively.
is there a way this can be tweaked so that it would work retroactively?
Reply With Quote
  #111  
Old 10-26-2005, 08:56 PM
NxTek NxTek is offline
 
Join Date: Jun 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I uploaded bitfield_allowhtml.xml and imported product-nzbgroupallowhtm3.5.0.xml, and tried a new post that contained html tags. It just doesn't work.

The Posting Rules also says HTML code is Off.

Is there any way to debug why this isn't working?
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 06:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05106 seconds
  • Memory Usage 2,316KB
  • 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_code
  • (2)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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