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)

velma33 02-13-2010 02:48 PM

Thanks. Marked as installed.

I went to Usergroups==>Usergroup Manager.
Selected to edit the Administrator Usergroup.
Went through all the different permission sections. (Expected to see it in Post/Thread Permissions.)
Didn't see "HTML Permissions in anything except for blogs and signatures.

It feels like I missed a step.

I uploaded product-nzbgroupallowhtm using Plugins & Products System==>Manage Products==>Add Import Product.

Thanks for your help.

kall 02-13-2010 04:58 PM

Did you make sure to upload the bitfield xml file? That is what puts the permission in Usergroup Manager.

(You are looking for "Allow HTML Permissions" and "Should this usergroups HTML posts be parsed?") :)

velma33 02-13-2010 05:11 PM

Ha ha! Got it. :) That's exactly what I was missing. I didn't fully understand the installation instructions, but honestly, I wouldn't know how else to explain what needed to be done anyway. Glad I had this place to ask questions.

Velma

kall 02-13-2010 05:19 PM

Yay! Glad you got it. :)

I did notice your join date and post count, so guessed you might not be as familiar with the 'workings' of vB as a veteran.

This way, you learned what the difference is between a product .xml and a bitfield.xml. :)

isman 02-14-2010 08:43 PM

I just cannot get this thing to install. Every time I get "Invalid file specified".

Any suggestions? I have to have this.

kall 02-14-2010 09:47 PM

Are you trying to import the bitfield in Product Manager?

Try the Product file.

isman 02-14-2010 10:26 PM

I am. I'm trying to import bitfield_allowhtml.xml in the product manager. I've tried the system path, relative path, I even tried loading from my local hard drive.

isman 02-14-2010 11:03 PM

Doh, I got it. I was importing the wrong xml file. I was not importing the product-nzbgroupallowhtml.xml.

Thanks for the pointer.

kall 02-14-2010 11:47 PM

:)

bitfield - permissions added to Usergroup Manager
product - thing imported in Product Manager

ICannt.org 02-17-2010 08:21 AM

Quote:

Originally Posted by ICannt.org (Post 1965083)
Quick question, what would happen if a user (who didn't have permission to use HTML) quoted a post made by someone with permission that contained HTML?

Can the dev please clarify this for me, I don't want to install this mod until this is clarified.

zeroality 03-10-2010 05:00 PM

Quote:

Originally Posted by ICannt.org (Post 1984387)
Can the dev please clarify this for me, I don't want to install this mod until this is clarified.

Just tested - it does not parse html if you quote and aren't in the html-enabled usergroup. You also cannot edit HTML into someone else's post, it has to be originally posted by an html-enabled user.

Great mod, thanks.

kall 03-10-2010 05:22 PM

Quote:

Originally Posted by ICannt.org (Post 1984387)
Can the dev please clarify this for me, I don't want to install this mod until this is clarified.

Sorry, missed that. Clarified it back on page 2 though. :)

Thanks zeroality. :)

Grae 03-27-2010 04:37 AM

Has the cache problem been fixed?

karlm 04-05-2010 09:49 AM

Excellent - thank you

steveheinsch 04-07-2010 04:21 PM

I tried putting up a paypal button (a form). The button shows up but when you click on it I get a vb error message:
Quote:

You did not select any posts to which the action you picked can be applied.
Any way to get this hack to work with paypal code?

Thanks!

Edit: Don't think it matters, but Im using vb3.8.

fogjuice 04-23-2010 07:48 AM

This doesn't work with vb 4.0.3

Halfhidden 05-03-2010 04:55 PM

Would this work with welcome pm's

kall 05-03-2010 05:06 PM

I suppose it is possible, if they are considered to be posts.. not sure though.

Halfhidden 05-03-2010 05:12 PM

It's just that I fancy your welcome pm on VBSEO... wow that's very nice.
Better that the horrid welcome pm in VB

kall 05-03-2010 05:26 PM

Quote:

Originally Posted by fogjuice (Post 2025813)
This doesn't work with vb 4.0.3

Yes, it does: http://www.nzfishtalk.com/f9/welcome...talk-1/#post17

BadgerDog 05-03-2010 10:02 PM

Installed on v4.03 ....

Very nice... thank you ... :up:

We needed this for our forums ... :)

Regards,
Badger

biosclan 05-10-2010 10:02 PM

Thanks this worked like a champ!

Halfhidden 05-24-2010 09:07 PM

Perhaps I'm missing something. I uploaded the xml and then imported the product. I then set allow html for pm's in VB general setting (presuming that everybody would be blocked from using html with this new product) Then went to the the Usergroup manager and set Allow HTML Permissions "Should this usergroups HTML posts be parsed?" to yes for my group only.
Now I was able to send html pm's but so were the rest of the users. If I disable the html settings in private message nobody can send html messages regardless of the settings set for this plugin including my group.

kall 05-25-2010 05:45 AM

Quote:

Originally Posted by Halfhidden (Post 2042867)
Perhaps I'm missing something.

Posts != PMs.

Halfhidden 05-25-2010 06:03 AM

Quote:

Originally Posted by kall (Post 2043029)
Posts != PMs.

Sorry Kall you lost me. Are you saying that pm's don't work only posts do?

cellarius 05-25-2010 08:18 AM

Quote:

Originally Posted by Halfhidden (Post 2043035)
Sorry Kall you lost me. Are you saying that pm's don't work only posts do?

From the mod description:
Quote:

Just like the name says, this ultra-simple little Product will allow you to specify Usergroups that may make forum posts in HTML and have that HTML be parsed
Red color added by me.

Halfhidden 05-25-2010 08:34 AM

Quote:

Originally Posted by cellarius (Post 2043054)
Just like the name says, this ultra-simple little Product will allow you to specify Usergroups that may make forum posts in HTML and have that HTML be parsed.

Thanks cellarius..... that answers the question I asked Kall in post 57

Mr Morningstarr 06-08-2010 07:04 PM

Quote:

Originally Posted by rajubd (Post 1942607)
when try to enable it error
Code:

Database error in vBulletin 4.0.0:

Invalid SQL:
UPDATE vbusergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        `title` = 'Administrators',
        `description` = '',
        `usertitle` = 'Administrator',
        `opentag` = '<span style=\"font-weight: bold;\" style=\"color:green;\">',
        `closetag` = '</span>',
        `passwordexpires` = '180',
        `passwordhistory` = '360',
        `ms_megaupload_upload_permissions` = '0',
        `ms_photobucket_upload_permissions` = '0',
        `allowhtmlpermissions` = '1',
        `ms_force_style_permissions` = '0',
        `force_style_id` = '',
        `forumpermissions` = '16777215',
        `genericpermissions` = '2147483583',
        `attachlimit` = '0',
        `pmquota` = '100',
        `pmpermissions` = '7',
        `pmsendmax` = '0',
        `pmthrottlequantity` = '0',
        `calendarpermissions` = '63',
        `wolpermissions` = '31',
        `adminpermissions` = '3',
        `genericpermissions2` = '1',
        `genericoptions` = '55',
        `profilepicmaxwidth` = '120',
        `profilepicmaxheight` = '120',
        `profilepicmaxsize` = '65535',
        `avatarmaxwidth` = '160',
        `avatarmaxheight` = '100',
        `avatarmaxsize` = '200000',
        `signaturepermissions` = '237567',
        `sigpicmaxwidth` = '500',
        `sigpicmaxheight` = '100',
        `sigpicmaxsize` = '10000',
        `sigmaxrawchars` = '0',
        `sigmaxchars` = '0',
        `sigmaxlines` = '0',
        `sigmaxsizebbcode` = '7',
        `sigmaximages` = '0',
        `albumpermissions` = '255',
        `albumpicmaxwidth` = '600',
        `albumpicmaxheight` = '600',
        `albummaxpics` = '100',
        `albummaxsize` = '0',
        `usercsspermissions` = '63',
        `visitormessagepermissions` = '63',
        `socialgrouppermissions` = '262143',
        `maximumsocialgroups` = '5',
        `groupiconmaxsize` = '65535',
        `ms_imageshack_upload_permissions` = '0'
WHERE usergroupid=6;

MySQL Error  : Unknown column 'ms_megaupload_upload_permissions' in 'field list'
Error Number  : 1054
Request Date  : Wednesday, December 30th 2009 @ 07:40:44 PM
Error Date    : Wednesday, December 30th 2009 @ 07:40:45 PM
Script        : http://www.symbiantalk.net/admincp/usergroup.php?do=update
Referrer      : http://www.symbiantalk.net/admincp/usergroup.php?do=edit&usergroupid=6
IP Address    : 119.30.36.20
Username      : Raju
Classname    : vB_Database
MySQL Version : 4.1.20


I'm getting exactly the same error when I try to use this plug in, any idea how to solve this?

Mr Morningstarr 06-08-2010 07:19 PM

OK, I read what Kall said and checked the xml folder and ther was an xml file for a product I wasn't using anymore still in there, one for restricting urls. I deleted that, re-uploaded the xml file and imported the product and it works fine now.

Cheers Kall, great mod, I couldn't be without it. ;)

kall 06-08-2010 08:18 PM

Quote:

Originally Posted by Halfhidden (Post 2043060)
Thanks cellarius..... that answers the question I asked Kall in post 57

Sorry I missed the followup question. That answer cel quoted - its the very first thing in this thread, at the very top of the modification.

Pleas forgive me for feeling that I had already made the fact abundantly clear, by posting it as the first sentence of the mod.

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 08:22 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.01289 seconds
  • Memory Usage 1,859KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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