vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Per Usergroup HTML Posting Permission (https://vborg.vbsupport.ru/showthread.php?t=229035)

powerful_rogue 06-11-2010 09:15 PM

1 Attachment(s)
Hi Kall,

Ive got a quick question and wondered if you may be able to help.

Ive installed the mod and posted some HTML, however I get what is shown in the attachment.


This was the HTML I tried to post

PHP Code:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_99c32d91-e170-4d50-a216-a0756991f6c2"  WIDTH="336px" HEIGHT="280px"> <PARAM NAME="movie" VALUE="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=GetDisplayTemplate" id="Player_99c32d91-e170-4d50-a216-a0756991f6c2" quality="high" bgcolor="#ffffff" name="Player_99c32d91-e170-4d50-a216-a0756991f6c2" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="280px" width="336px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=NoScript">Amazon.co.uk Widgets</A></NOSCRIPT

Just wondered if you had any ideas at all.

Also, im using 3.8.5 :erm:

kall 06-11-2010 09:30 PM

From a quick glance, I see a :D in the very first line. I bet that's getting parsed before the HTML bit does.

Maybe try changing the execution order of the plugin to 1, but that probably wont help. Removing the :D smiley would, but would screw with your :D everywhere, probably. Sorry. :(

share4vn.com 06-12-2010 02:15 PM

Ex: Set Allow HTML for AdminGroup, in a post by an admin, a SuperMod or Moderator edit that post follow his style... It's really bad, very dangerous, right?

Could you prevent that? By protect that posts, may add keyword to filter them and restrict any action from other Usergroups or something...

Some my opinions

a7lameza.com 06-20-2010 07:48 PM

thank you

AURFSCAN 06-21-2010 06:42 AM

just for admin use this works great.. thx

AURFSCAN 06-21-2010 06:56 AM

Quote:

Originally Posted by powerful_rogue (Post 2052244)
Hi Kall,

Ive got a quick question and wondered if you may be able to help.

Ive installed the mod and posted some HTML, however I get what is shown in the attachment.


This was the HTML I tried to post

PHP Code:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_99c32d91-e170-4d50-a216-a0756991f6c2"  WIDTH="336px" HEIGHT="280px"> <PARAM NAME="movie" VALUE="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=GetDisplayTemplate" id="Player_99c32d91-e170-4d50-a216-a0756991f6c2" quality="high" bgcolor="#ffffff" name="Player_99c32d91-e170-4d50-a216-a0756991f6c2" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="280px" width="336px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=NoScript">Amazon.co.uk Widgets</A></NOSCRIPT

Just wondered if you had any ideas at all.

Also, im using 3.8.5 :erm:


you need to just use
Code:

<embed src="file.swf" height="280px" width="336px"></embed>
not all that code you've posted

Rebecca217 07-15-2010 06:29 PM

Works great, thank you so much! :)

tyvgreen 07-22-2010 01:38 AM

Kall,
I have made a modification to allow HTML input from the WYSIWYG editor as well and it works, though I have noticed a bug.

Code:

HOOK LOCATION:wysiwyg_parse_start
// Was this post made by an allowed Usergroup member?
global $vbulletin, $permissions;
if ($permissions['allowhtmlpermissions'] & $vbulletin->bf_ugp_allowhtmlpermissions['canposthtml'])
//if ($this->registry->userinfo['allowhtmlpermissions'] & $this->registry->bf_ugp_allowhtmlpermissions['canposthtml'])

                {
                    // This is an allowed post so parse HTML.
                    $allowhtml = '1';
                }
           
       
            else
            {
                // usergroup HTML disabled so use default forum permission.
                $allowhtml = '0';
            }

When a post is placed and one without rights to parse HTML is the first to view it directly (as in refresh the page and not just AJAXed in after editing), it places the code as typed, not parsed. Same the other way around. If one not allowed to post HTML posts HTML and an Admin is the first to view it, it is parsed. Is this a bug from the code I placed in there or a 'caching issue' from the previous posts (I couldn't follow the exact issue)?

If I can't get this to work, the owner of this forum wants to go back to allowing HTML from all, which I am highly against. Any help would be great.

tyvgreen 07-25-2010 08:40 AM

Quote:

Originally Posted by tyvgreen (Post 2072690)
Kall,
I have made a modification to allow HTML input from the WYSIWYG editor as well and it works, though I have noticed a bug.

When a post is placed and one without rights to parse HTML is the first to view it directly (as in refresh the page and not just AJAXed in after editing), it places the code as typed, not parsed. Same the other way around. If one not allowed to post HTML posts HTML and an Admin is the first to view it, it is parsed. Is this a bug from the code I placed in there or a 'caching issue' from the previous posts (I couldn't follow the exact issue)?

If I can't get this to work, the owner of this forum wants to go back to allowing HTML from all, which I am highly against. Any help would be great.

Kall,
It seems the plug-in that is turned off by default is what I needed, and just alone. I am getting expected results now. Thank you for this mod. It was an excellent starting block and I will be an immediate recommendation and solution to any mods or admins wanting to post HTML. Thank you again.
~Tyson

Terrona 07-28-2010 11:53 AM

works perfect in v 4.0.5

thanks


All times are GMT. The time now is 11:30 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.01359 seconds
  • Memory Usage 1,769KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete