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
  #442  
Old 02-10-2009, 08:51 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any whitespace between </td> and <td> or </tr> and <tr> becomes break tags which are not valid outside of the cells and rows of a table, so they are displayed ABOVE the table.

You must remove all whitespace in your table if you want to reduce the gap above the table.
Reply With Quote
  #443  
Old 02-10-2009, 10:20 PM
DJ29Joesph DJ29Joesph is offline
 
Join Date: Jan 2009
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kirk Y View Post
Ha ha Boof!

What do I need to change so I can input a single Username in addition to a single Usergroup?

Edit:
PHP Code:
if (in_array($post['usergroupid'], array(6))) OR if (in_array($post['username'], array(vBlogger)))
                { 
That close?
Anyone get an update on this and if so where do I edit this..I dont see anything like this in the .xml file
Reply With Quote
  #444  
Old 02-11-2009, 10:16 PM
mystikmedia mystikmedia is offline
 
Join Date: Feb 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Should code such as this work with this product? If so, it doesn't seem to be working when I preview the post...

Code:
<embed src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" bgcolor="#000000" width="540" height="405" name="chat" FlashVars="id=51155593&gn=HammerfallForums" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" /><br><small><a target="_BLANK" href="http://xat.com/web_gear/chat/embed.php?id=51155593&GroupName=HammerfallForums">Get HammerfallForums chat group</a> | <a target="_BLANK" href="http://xat.com/HammerfallForums"> Goto HammerfallForums website</a></small><br><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyMzQzOTUyNTI1ODQmcHQ9MTIzNDM5NTI3MjE*NiZwPTUzMTUxJmQ9Jmc9MSZ*PSZvPTMxODMwYTM*MTQ3YTRhYWQ4ZjU1OWYzMzhjZWU*NTIz.gif" />
Reply With Quote
  #445  
Old 02-13-2009, 03:01 AM
jl255 jl255 is offline
 
Join Date: May 2007
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by feldon23 View Post
Any whitespace between </td> and <td> or </tr> and <tr> becomes break tags which are not valid outside of the cells and rows of a table, so they are displayed ABOVE the table.

You must remove all whitespace in your table if you want to reduce the gap above the table.
tks! worked like a charm :up:
Reply With Quote
  #446  
Old 02-27-2009, 10:19 PM
foxfirediego foxfirediego is offline
 
Join Date: Aug 2005
Location: Brazil
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you switch the editor mode, you will lose all the tags -.-
Reply With Quote
  #447  
Old 03-16-2009, 03:33 AM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So I installed this on 3.7.4 and it works great there's just one problem - after a while, when I go back to check an old thread that I added some html in it - it just shows the html code.... i have to edit it and save it and boom it works...

Anyone have any idea why it would do that?
Reply With Quote
  #448  
Old 05-15-2009, 10:06 PM
fatal1980 fatal1980 is offline
 
Join Date: Jul 2006
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nando99 View Post
So I installed this on 3.7.4 and it works great there's just one problem - after a while, when I go back to check an old thread that I added some html in it - it just shows the html code.... i have to edit it and save it and boom it works...

Anyone have any idea why it would do that?
I get the same issue. I'm will to drop some money to get this working.
Reply With Quote
  #449  
Old 05-16-2009, 02:19 AM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fatal1980 View Post
I get the same issue. I'm will to drop some money to get this working.
I'm with you on this...
Reply With Quote
  #450  
Old 05-16-2009, 07:52 AM
decryption decryption is offline
 
Join Date: Dec 2006
Location: Melbourne, Australia
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work in vBulletin 3.8.2?
Reply With Quote
  #451  
Old 05-16-2009, 03:47 PM
ddmobley ddmobley is offline
 
Join Date: May 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nando99 View Post
So I installed this on 3.7.4 and it works great there's just one problem - after a while, when I go back to check an old thread that I added some html in it - it just shows the html code.... i have to edit it and save it and boom it works...

Anyone have any idea why it would do that?
This is because of the post parsed cache. When a user with HTML posting access posts an HTML message, his access level produces a valid HTML-viewable page, and a copy is stored in the vb_post_parsed database table.

When the post parsed cache time limit is reached, the post is deleted from the cache. The next time someone views the page, the code that builds the page is pulled straight from the vb_post database table, and if it happens to be a user who does not have HTML posting capability, it will display a page full of junk code.

I have posted about this error repeatedly in this thread, but the author refuses to comment on the issue, or return emails or PM's about it. You can read some of my posts in this thread about how I solved the issue for myself. Since I only allow HTML for the administrative user group and only on sticky messages, I was able to find a workable solution. There is a number of places where the post parsed cache is purged in the software, so even if you implement my solution, you may still have problems somewhere else.

It's a real pain to have to go in, edit and resave all the HTML posts periodically, but you aren't going to get any assistance on this from anyone here. You can also open the posts in question in the vb_post_parsed database table and set their dateline date to some time way in the future, like 9999999999.

This could be an awesome mod with this one issue fixed.
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 08:23 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.08671 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (5)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