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
  #302  
Old 01-05-2007, 06:15 PM
evilfairygirl evilfairygirl is offline
 
Join Date: May 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i am on 3.6.0 and it's not working for me either
Reply With Quote
  #303  
Old 01-06-2007, 11:42 AM
ttlgDaveh's Avatar
ttlgDaveh ttlgDaveh is offline
 
Join Date: Dec 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's working for me in 3.6.4, but I had to edit the product and tell it that it was compatible with 3.5 and greater.
Reply With Quote
  #304  
Old 01-06-2007, 03:41 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone share this who has it working for 3.6.4 please
Reply With Quote
  #305  
Old 01-09-2007, 12:31 AM
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed it on 3.6.4.
Seems to be working fine.
But I'm only using is as intended. like the RSS feeds comming in the require HTML to look right.
Reply With Quote
  #306  
Old 01-14-2007, 02:30 AM
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did find one issue.

I tried to post HTML in a code tag for someone.
The HTML was formatted.
Anyway of making this so the HTML doesn't work in the Code tags?
Reply With Quote
  #307  
Old 01-14-2007, 03:37 AM
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 ComputerVitals View Post
I did find one issue.

I tried to post HTML in a code tag for someone.
The HTML was formatted.
Anyway of making this so the HTML doesn't work in the Code tags?
I think we discovered this was due to vB.. it parses stuff in tags when html is enabled for a forum.

At a guess, it could possibly be excluded from those tags, but I am somewhat buried in a pile of horrible stuff at the moment, so can't commit to looking into it for some time.

Anyone who does have the time, feel free to collaborate.
Reply With Quote
  #308  
Old 01-21-2007, 01:19 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this on 3.6.4 and it seems to work fine for me, with one exception: one user is having issues with a bit of javascript he previously had in his signature. The thing is, that could be as much an issue with my upgrade from 3.0.6 to 3.6.4 as anything to do with this mod.
Reply With Quote
  #309  
Old 01-22-2007, 06:36 AM
NolF's Avatar
NolF NolF is offline
 
Join Date: Nov 2006
Location: You don't wanna know
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xil Ze View Post
what do you mean exactly?
Not sure how or why it happened.

I have a secction full of posts done with HTML, well pressented etc...
I gave my Mods (About 4 usergroups) HTML permisions.
During the 2 days I was setting up the forum (changed from PNphpBB to vbulletin) everything seemed fine with this hack.
Then I gave access to some other trusted users to test things out.
WHen a unlogged user would visit a HTML post, that user would not see the posts with html structure instead would see all the <table><tr> tags...
But that would be only for that user,that post would be screwed permanently. So unless a user with HTML permisions edited de post, it would have the tags... Users in usergroups with HTML permisions would not screwup posts, they only could fix them till another person visits that posts and screwes it again, and again...

so finally had to uninstall the hack activate HTML in the desired forums and re-edit all the screwed up posts
Reply With Quote
  #310  
Old 01-27-2007, 05:44 PM
malenfant malenfant is offline
 
Join Date: Jan 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hallo,
does this hack work for vb 3.6.4?
Reply With Quote
  #311  
Old 01-27-2007, 11:51 PM
da420 da420 is offline
 
Join Date: Nov 2005
Posts: 1,232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by malenfant View Post
Hallo,
does this hack work for vb 3.6.4?
Yes.
Reply With Quote
  #312  
Old 01-29-2007, 10:28 AM
crishel crishel is offline
 
Join Date: Sep 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, if anyone has figured this next question of mine out, then please share.

I installed all the code correctly. I edited the usergroups, and allowed only the "Admins" to have their HTML parsed (by setting it from the Usergroup Manager).

I then made a dedicated Video section: http://www.christianlinks.com/forumdisplay.php?f=74

I then made a post as an Admin and placed this code in there which resulted in an embedded Windows Media Player that should link to a video:

Quote:

<p align="center">
<OBJECT ID="MediaPlayer" WIDTH="640" HEIGHT="360" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="/video/storage/WatchAndPray.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="/video/storage/WatchAndPray.wmv" NAME="MediaPlayer"
WIDTH="640" HEIGHT="360" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
</p>
That thread with the now created embedded windows media player is located here: http://www.christianlinks.com/showthread.php?t=1243

It will not play at all, when you press the play button. The videos are there, and are located off of the root: /public_html/video/storage

I updated my counters, and rebuilt my post cache. Nothing at all. Does anyone know why this is, or has anyone here figured it out. I would not be surprised if others are using the windows media player embedded with this script.

Any help would be greatly appreciated.
Reply With Quote
  #313  
Old 01-29-2007, 01:19 PM
crishel crishel is offline
 
Join Date: Sep 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?
Reply With Quote
  #314  
Old 02-07-2007, 03:41 AM
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've noticed that clicking "Edit" from the vBadvanced News Module somehow bypasses the problems everyone is having with this hack and the HTML disappearing when trying to Edit with WYSIWYG in vB 3.6. If I go to the actual News forum however and click "Edit" the HTML still disappears

So, for all the people making excuses and saying that it is vBulletin's fault are wrong, wrong, wrong. If it were vBulletin's fault it would happen every single time you try to edit the post, but I've somehow found a way of "bypassing" it.

So devs/coders, please, please, PLEASE figure out how it works just fine when clicking "Edit" from the News module, but not the thread. If you figure it out then you might get it to actually work with 3.6.4.

I realize I can disable WYSIWYG, but I'm not going to sacrifice that.

Edit: Oh, and ironically, AnyMedia doesn't work in the News Module, but this HTML hack does, so I have to use two different mods to post videos in threads.
Reply With Quote
  #315  
Old 02-16-2007, 04:58 PM
Caiman Caiman is offline
 
Join Date: Apr 2004
Location: Manchester UK
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very useful, thanks Kall.
Reply With Quote
  #316  
Old 02-28-2007, 04:51 AM
bullboykennels bullboykennels is offline
 
Join Date: May 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I decided to give this a try since I to post html for swf files among other things since I have a music community but do not allow other's to post html.

I've found it does work on vb 3.6.4 and with my test account I am still able to use the [ html]www.url.com[ /html] for members with out allowing them the access to being able to post html within the posts.

Great mod if I do happen to find any issues with it then I will post that as well but for now,. it seems to be working as stated.
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:57 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.05688 seconds
  • Memory Usage 2,368KB
  • Queries Executed 30 (?)
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
  • (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
  • (16)post_thanks_box
  • (1)post_thanks_box_bit
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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