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
  #282  
Old 10-31-2006, 02:47 PM
RFViet RFViet is offline
 
Join Date: Jan 2006
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It didn't work with secondary group !!
I create another group which allowed members post html code. Then selected members from registered users, who are allowed to post html code by adding the secondary group above. => That doesn't work .
The question is : how do I allow some members to post html code with this hack ????
Reply With Quote
  #283  
Old 11-14-2006, 01:36 PM
RFViet RFViet is offline
 
Join Date: Jan 2006
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I doesn't work with Preview page !!! Any idea ???
Reply With Quote
  #284  
Old 11-24-2006, 11:38 AM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RFViet View Post
I doesn't work with Preview page !!! Any idea ???
Go to "Plugin manager". You should see there 4 hooks: (assuming that you don't have any other plugins installed)
  1. bbcode_parse_start
  2. bbcode_parse_start
  3. editpost_update_start
  4. forumrules

There should be 2 "bbcode_parse_start" hooks. On my system, one of them was disabled by default. After enabling it, the "Preview" page started to work properly.

I tested on VB 3.6.2.



Regards,
Razvan
Reply With Quote
  #285  
Old 11-25-2006, 04:56 PM
Despairing's Avatar
Despairing Despairing is offline
 
Join Date: Oct 2006
Location: Germany
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After the installation there are codes which I have posted in HTML boxes ([html]<!-- HTML code -->[/html]) like this:

Quote:
HTML Code:
<img src=\"http://www.domain.tld/picture.png\" style=\"border-width: 0px;\" alt=\"\" />
And the original code which I have posted:
Quote:
HTML Code:
<img src="http://www.domain.tld/bildname.png" style="border-width: 0px;" alt="" />
Need help, please!

Reply With Quote
  #286  
Old 11-26-2006, 11:12 AM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Despairing View Post
After the installation there are codes which I have posted in HTML boxes ([html]<!-- HTML code -->[/html]) like this:
I am not sure what your problem is, but read the following about the [HTML] BB tag:

Quote:
The [html] tag allows you to perform syntax highlighting for HTML code.
You should use the [HTML] tag only to display HTML in a nice format, but you should not use it for HTML that needs to be interpreted as such.
Reply With Quote
  #287  
Old 11-28-2006, 08:25 AM
zooki zooki is offline
 
Join Date: May 2006
Location: uk
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it doesnt work !! I am on 3.6.2 and i just wanted it for myself as the admin.

I have checked the option in the control panel, and it does say HTML ON in the bottom of the screen....... But, when i try posting html, it doesnt work.

HTML works if i change the forum properties. But, not with this hack
Reply With Quote
  #288  
Old 11-28-2006, 06:05 PM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zooki View Post
it doesnt work !! I am on 3.6.2 and i just wanted it for myself as the admin.

I have checked the option in the control panel, and it does say HTML ON in the bottom of the screen....... But, when i try posting html, it doesnt work.

HTML works if i change the forum properties. But, not with this hack
What HTML you tried but it is not working ? I only tried to post some <a> tags with different targets, something like:

HTML Code:
<a href="http://somepage.name" target="_top"> Page </a>
and that it is working.
Reply With Quote
  #289  
Old 12-03-2006, 03:23 PM
NolF's Avatar
NolF NolF is offline
 
Join Date: Nov 2006
Location: You don't wanna know
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tested on 3.6.4 and it works

I have a problem, don't know if its as a result of using this hack or vbulletin itself. What happens is, After posting tables iamges etc... if I try to Advance edit it, or select the alternative view (the one which shows you the post code) all table codes are gone so after saving the editing, The pots loses all its structure

Example:
Before
HTML Code:
<table border=3 width=100% bordercolor=#1066FF bgcolor=#FFFFFF cellspacing=0 cellpadding=0><tr><td width=100% colspan=3><table border=1 width=100% cellspacing=0 cellpadding=0 bgcolor=#1066FF><tr><td width=48%><p align=center>[color=#FFF9ED][size=20][b]NolF[/b][/size][/color]</td><td width=4%><table border=3 width=100% bgcolor=#E7F9FB><tr><td width=100%><img border=0 src=http://www.elrincondelmanga.com/dracco_ftp/fotos_internet/estrellas/mascotas/sonido.jpg width=35 height=35></td></tr></table></td><td width=48%><p align=center></td></tr></table></td></tr><tr><td width=33% align=center valign=middle><img border=0 src=http://img474.imageshack.us/img474/7596/images2yx.jpg width=30 height=27></td><td width=33% align=center>Subiendo</td><td width=34% align=center><img border=0 src=http://img474.imageshack.us/img474/3707/21ln.jpg width=30 height=27></td></tr><tr><td width=33%><table width=90% align=center><tr><td><font color=#9f1f1f>	   
  - (S) Death note (emitiendo) + peli 	   
  - (S) Evangelion Subtitulado (AnS) + Peliculas 	   
  - (S) Full Metal Panic: The second Raid 	   
  - (S) GTO Live (12/[1]/12) + pelis 	   
  - (S) Hajime no Ippo 	   
  - (S) Hikaru no Go (a medias xD) 	   
  - (S) Kimi ga nozomu eien 	   
  - (S) Sadamitsu el destructor 	   
  - (S) Speed Grapher 	   
  - (S) The law of ueki AnP 	   
  - (S) Ulises 31 	   
  - (O) Video Girl Ai<P>	   
</td></tr></table></font></td>	   
<td width=33%><table width=90% align=center><tr><td><font color=#108000>	   
  - (S) Getbackers (49) [postear/plantilla] 	   
  - (S) Hikaru no go [postear/plantilla] <P>	   
</td></tr></table></font></td>	   
<td width=33%><table width=90% align=center><tr><td><font color=#1000ff>	   
  - (S) Grenadier (13) 	   
  - (S) Lamune ~Glass Bin ni Utsuru Umi (13) 	   
  - (O) Ogre Slayer (4) (reconsiderando) 	   
  - (S) OutlawStar (26) [Dual] <P>	   
</td></tr></table></font></td>	   
</tr></table>	 
After editing
HTML Code:
[CENTER][COLOR=#fff9ed][SIZE=20][B]NolF[/B][/SIZE][/COLOR][/CENTER]
[IMG]http://www.elrincondelmanga.com/dracco_ftp/fotos_internet/estrellas/mascotas/sonido.jpg[/IMG][CENTER][/CENTER]
[IMG]http://img474.imageshack.us/img474/7596/images2yx.jpg[/IMG]Subiendo[IMG]http://img474.imageshack.us/img474/3707/21ln.jpg[/IMG][COLOR=#9f1f1f]       
  - (S) Death note (emitiendo) + peli        
  - (S) Evangelion Subtitulado (AnS) + Peliculas        
  - (S) Full Metal Panic: The second Raid        
  - (S) GTO Live (12/[1]/12) + pelis        
  - (S) Hajime no Ippo        
  - (S) Hikaru no Go (a medias xD)        
  - (S) Kimi ga nozomu eien        
  - (S) Sadamitsu el destructor        
  - (S) Speed Grapher        
  - (S) The law of ueki AnP        
  - (S) Ulises 31        
  - (O) Video Girl Ai[/COLOR][COLOR=#9f1f1f]       
[/COLOR]
       [COLOR=#108000]       
  - (S) Getbackers (49) [postear/plantilla]        
  - (S) Hikaru no go [postear/plantilla] [/COLOR][COLOR=#108000]       
[/COLOR]
       [COLOR=#1000ff]       
  - (S) Grenadier (13)        
  - (S) Lamune ~Glass Bin ni Utsuru Umi (13)        
  - (O) Ogre Slayer (4) (reconsiderando)        
  - (S) OutlawStar (26) [Dual] [/COLOR][COLOR=#1000ff]       
[/COLOR]

I hope the problem is explained propely, I desperetly need a fix... I don't want it to go to deaf ears, it is just too good to leave this small detail left out

Thanks to kall for the hack and Kirby for the hints
Reply With Quote
  #290  
Old 12-03-2006, 06:53 PM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NolF View Post
Tested on 3.6.4 and it works

I hope the problem is explained propely, I desperetly need a fix... I don't want it to go to deaf ears, it is just too good to leave this small detail left out

Thanks to kall for the hack and Kirby for the hints
Only use the basic editor if you want to keep the original HTML.
Reply With Quote
  #291  
Old 12-04-2006, 03:08 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 mihai11 View Post
Only use the basic editor if you want to keep the original HTML.
Just tried that, same error happens. Initially the table shows up (fancy looking), but when I press the 'switch editor mode' then All tables are gone. If the button es pressed again, the fancy looking table, has just lots all the structure and is not fancy anymore...
Thanks for trying anyways, it's greatly appreciated.

Any other ideas?
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:48 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.07736 seconds
  • Memory Usage 2,340KB
  • 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
  • (5)bbcode_html
  • (8)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