Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #72  
Old 10-07-2005, 03:07 AM
Red Fox UK Red Fox UK is offline
 
Join Date: Oct 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall
Guys:

Try this for the bbcode_parse plugin (provided by the master Kirby):
PHP Code:
 global $post;
$perms =& $post['permissions'];
if (!
$perms)
{
    
$perms fetch_permissions(0$post['userid'], $post); 
}
// Was this post made by an allowed Usergroup member?
if ($perms['allowhtmlpermissions'] & $this->registry->bf_ugp_allowhtmlpermissions['canposthtml'])
{
    
// This is an allowed post so parse HTML.
    
$dohtml '1';

If you could try that and report back to me that it is all good (works perfectly on NZB as far as I can tell), I will update the .zip when I get home from work.
Works here
Reply With Quote
  #73  
Old 10-07-2005, 04:56 AM
Red Fox UK Red Fox UK is offline
 
Join Date: Oct 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Red Fox UK
Works here
Actually - it causes a problem! It causes HTML within CODE tags to run rather than displayed.
Reply With Quote
  #74  
Old 10-07-2005, 06:16 PM
DarrenS DarrenS is offline
 
Join Date: Apr 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having this same exact problem: HTML posts are correctly parsed for admins, but not for everyone else.

Is there an update ready yet?

Thanks!
Reply With Quote
  #75  
Old 10-07-2005, 10:10 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@DarrenS
Do you use this Code? https://vborg.vbsupport.ru/showpost....8&postcount=66
If so: Did you clear the postcache?
Reply With Quote
  #76  
Old 10-07-2005, 10:35 PM
Red Fox UK Red Fox UK is offline
 
Join Date: Oct 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
@DarrenS
Do you use this Code? https://vborg.vbsupport.ru/showpost....8&postcount=66
If so: Did you clear the postcache?
I did - but it doesnt work properly, doesnt encode the HTML content inbetween [CODE] tags.
Reply With Quote
  #77  
Old 10-07-2005, 10:44 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Red Fox UK
I did - but it doesnt work properly, doesnt encode the HTML content inbetween [CODE] tags.
What does that mean?
HTML within [quote] Tags is rendered instead of being displayed as HTML Code?
AFAIK that's the way vBulletin works, test it with this Hack being disabled and a Forum that does allow HTML.
Reply With Quote
  #78  
Old 10-08-2005, 03:01 AM
DarrenS DarrenS is offline
 
Join Date: Apr 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

KirbyDE:

I didn't implement that code snippet, no. Just 3.50 and this thread's plug-in (1.0 RC1).

I would implement it if there were directions on how to do so. I don't use the [ CODE] tag on my forum. (What it sounds like Red Fox is describing is that HTML code in the [ CODE] [/CODE] tag is being parsed rather than displaying the code itself, while the [ CODE] tag is intended to allow users to show code.)
Reply With Quote
  #79  
Old 10-08-2005, 04:20 AM
weaver weaver is offline
 
Join Date: Mar 2004
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall
Guys:

Try this for the bbcode_parse plugin (provided by the master Kirby):
PHP Code:
global $post;
$perms =& $post['permissions'];
if (!
$perms)
{
$perms fetch_permissions(0$post['userid'], $post); 
}
// Was this post made by an allowed Usergroup member?
if ($perms['allowhtmlpermissions'] & $this->registry->bf_ugp_allowhtmlpermissions['canposthtml'])
{
// This is an allowed post so parse HTML.
$dohtml '1';

If you could try that and report back to me that it is all good (works perfectly on NZB as far as I can tell), I will update the .zip when I get home from work.
Still having the same problem. I have to edit in advanced mode before the html will parse.
Reply With Quote
  #80  
Old 10-08-2005, 04:56 AM
Red Fox UK Red Fox UK is offline
 
Join Date: Oct 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DarrenS
KirbyDE:

I didn't implement that code snippet, no. Just 3.50 and this thread's plug-in (1.0 RC1).

I would implement it if there were directions on how to do so. I don't use the [ CODE] tag on my forum. (What it sounds like Red Fox is describing is that HTML code in the [ CODE] [/CODE] tag is being parsed rather than displaying the code itself, while the [ CODE] tag is intended to allow users to show code.)
This is what I meant
Reply With Quote
  #81  
Old 10-08-2005, 02:53 PM
Vtec44 Vtec44 is offline
 
Join Date: Jan 2005
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also for some reason, it is allow HTML in signature of user groups that are not suppose to have HTML. One person on my board has an IMG tag in his signature, and it is showing when I enable this plug in. I disabled it and it is not showing anymore. I tried to uninstall it, but got a database error when creating a new user group. It seems like the uninstall didn't completely remove everything.
Reply With Quote
Reply

Thread Tools

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 01:41 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.09918 seconds
  • Memory Usage 2,323KB
  • 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_php
  • (6)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