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
  #172  
Old 02-08-2006, 03:08 PM
Puntoboy Puntoboy is offline
 
Join Date: Sep 2005
Location: Northampton UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doc Great
Try to put

<table width="100%" border="0"><tr><td><div align="center">

in front and

</div></td></tr></table>

@ the end, should work now ...
cheers, that works but then paypal gives an error.
Reply With Quote
  #173  
Old 02-21-2006, 02:05 PM
Gizmo999 Gizmo999 is offline
 
Join Date: Dec 2005
Location: In my own virtual world
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack and I've got it installed correctly surprising myself as I did it

I'm trying to use the following php code to show what I'm listening to in Itunes in my signature but it won't display, can this hack handle PHP?? If so what am I doing wrong

PHP Code:
<?php include('http://www.myserver.com/itunes.php'); ?>
Reply With Quote
  #174  
Old 02-21-2006, 03:13 PM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm taking a wild guess here but since its called allow html and not allow php, I'm guessing no.
Reply With Quote
  #175  
Old 02-21-2006, 04:29 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EasyTarget
I'm taking a wild guess here but since its called allow html and not allow php, I'm guessing no.
Plus, there's probably a vB setting that stops this.. the old 'Allow Dynamic Content in Signatures' setting.
Reply With Quote
  #176  
Old 02-21-2006, 07:28 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eagle Creek
I have a problem (I guess a bug).

I disabled HTML in signatures. And I have the administrator and supermoderator usergroup permission to post HTML.
So far no problems. At the forums (threads) and in the signatures HTML is parsed. But; when somebody receives a PB from a admin/smod the HTML in the signature isn't parsed and you can see the raw HTML code.

Can you fix this?
repost
Reply With Quote
  #177  
Old 02-26-2006, 10:39 PM
CSS59 CSS59 is offline
 
Join Date: Oct 2004
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow! This is the best hack ever !!!!!!!!!!!!!!!!

Thank you x10000000000000000000000000
Reply With Quote
  #178  
Old 03-05-2006, 11:06 AM
majoreyeswater majoreyeswater is offline
 
Join Date: Jan 2006
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having problems with this hack. I have Administrators enabled to have HTML parsed, but it doesn't work. I still have to enable HTML in the forum in order to have the HTML display as anything other than text.

In plug-in manager the feature is shown as in the preview. Is this correct.

Can anyone help wuold be much appreciated..
Reply With Quote
  #179  
Old 03-05-2006, 04:38 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eagle Creek
repost
Oh, sorry..

Umm, perhaps one of the plugins needs to be added to one of the pm_ hooks?
Reply With Quote
  #180  
Old 03-06-2006, 12:03 AM
Pickalo Pickalo is offline
 
Join Date: Dec 2002
Location: Victoria
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem here:

I've tried uninstalling and re-installing, but I've had the same usergroup problem each time:

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 666

I tried to uninstall yet again but it will not uninstall - I have even tried using the advanced product manager to uninstall. It also seems to give me a database error when I try to uninstall the product or edit the usergroups now.

Code:
Database error in vBulletin 3.5.3:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
	`title` = 'Administrators',
	`description` = '',
	`usertitle` = 'Administrator',
	`opentag` = '<font color=\"#0000FF\"><b>',
	`closetag` = '</b></font>',
	`passwordexpires` = '180',
	`passwordhistory` = '360',
	`forumpermissions` = '1048575',
	`attachlimit` = '0',
	`pmquota` = '350',
	`pmpermissions` = '3',
	`pmsendmax` = '5',
	`calendarpermissions` = '63',
	`wolpermissions` = '31',
	`adminpermissions` = '3',
	`genericpermissions` = '205520831',
	`genericoptions` = '31',
	`profilepicmaxwidth` = '320',
	`profilepicmaxheight` = '240',
	`profilepicmaxsize` = '102400',
	`avatarmaxwidth` = '160',
	`avatarmaxheight` = '160',
	`avatarmaxsize` = '102400',
	`vbspacecomments` = '31',
	`anymediapermissions` = '1',
	`allowhtmlpermissions` = ''
WHERE usergroupid=6;

MySQL Error  : Unknown column 'allowhtmlpermissions' in 'field list'
Error Number : 1054
Date         : Sunday, March 5th 2006 @ 08:01:10 PM
Script       : ***/usergroup.php
Referrer     : ***/usergroup.php?do=edit&usergroupid=6
IP Address   : 
Username     : 
Classname    : vb_database
Please help.


edit:

Here is the database error when I try to uninstall:

Code:
Database error in vBulletin 3.5.3:

Invalid SQL:
ALTER TABLE usergroup DROP allowhtmlpermissions;

MySQL Error  : Can't DROP 'allowhtmlpermissions'. Check that column/key exists
Error Number : 1091
Date         : Sunday, March 5th 2006 @ 08:03:42 PM
Script       : ***/plugin.php
Referrer     : ***/plugin.php?do=productdelete&productid=nzbgroupallowhtml&s=
IP Address   : 
Username     : 
Classname    : vb_database
edit again:

I managed to uninstall it again, I just had to go into the advanced edit, and click delete for the install / uninstall code and then proceed with further removal. I tried installing it again, but just like last time I get the Warning:
mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 666
Reply With Quote
  #181  
Old 03-07-2006, 05:04 AM
senkin senkin is offline
 
Join Date: Dec 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, but one downside so far. When I edit my signature the preview dont show the HTML parsed. Nor does it when I am about to post. But after I do it shows just fine.
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 02:13 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.11955 seconds
  • Memory Usage 2,324KB
  • 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
  • (1)bbcode_php
  • (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
  • (4)pagenav_pagelink
  • (2)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