vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Allow Usergroups to Post HTML (https://vborg.vbsupport.ru/showthread.php?t=96926)

kall 09-28-2005 07:27 PM

Quote:

Originally Posted by Vtec44
Maybe it's designed not to work that way, but HTML doesn't work in signature of the allowable group. Maybe v1.01 will change this? :D

Well no .. the signature isn't exactly 'posted', now is it? :)

Maybe...

utw-Mephisto 09-29-2005 03:09 AM

runs on vb 3.5 gold including preview and people not in that user group can even quote but gets only plaintext .. THIS is what I was waiting for :) THANKS

utw-Mephisto 09-29-2005 03:10 AM

Demo (no reg. required) : http://www.ut2007world.com/forum/showthread.php?t=511

Acers 09-29-2005 06:47 AM

umm gives me this error when i try to set permission for usergroup

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        `title` = 'Systems Lead',
        `description` = '',
        `usertitle` = 'Systems Lead',
        `opentag` = '<span style=\"color: orange; font-weight: bold; text-decoration: none;\">',
        `closetag` = '</span>',
        `passwordexpires` = '180',
        `passwordhistory` = '360',
        `ucash_paycheck` = '0.00',
        `forumpermissions` = '470810623',
        `attachlimit` = '0',
        `pmquota` = '1500',
        `pmpermissions` = '3',
        `pmsendmax` = '5',
        `calendarpermissions` = '63',
        `wolpermissions` = '31',
        `adminpermissions` = '3',
        `genericpermissions` = '205520831',
        `genericoptions` = '23',
        `profilepicmaxwidth` = '100',
        `profilepicmaxheight` = '100',
        `profilepicmaxsize` = '65535',
        `avatarmaxwidth` = '100',
        `avatarmaxheight` = '100',
        `avatarmaxsize` = '25000',
        `maxsiglines` = '0',
        `maxsigfontsize` = '0',
        `maxsigimgsize` = '0',
        `maxsigimgwidth` = '0',
        `maxsigimgheight` = '0',
        `maxsigimages` = '0',
        `custompermissions` = '0',
        `allowhtmlpermissions` = ''
WHERE usergroupid=6;

MySQL Error  : Unknown column 'allowhtmlpermissions' in 'field list'
Error Number : 1054
Date        : Thursday, September 29th 2005 @ 01:14:47 PM
Script      : http://www.techenclave.com/forums/admincp/usergroup.php
Referrer    : http://www.techenclave.com/forums/admincp/usergroup.php?do=edit&usergroupid=6
IP Address  : xxxxxxxxx
Username    : xxxxxxx
Classname    : vb_database


murrtex 09-29-2005 09:09 AM

my problem is this;

when i click update html permission on usergroup
it says;

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in \includes\class_core.php on line 627


and nothings happens.

what should i do? for fix that error

kall 09-29-2005 09:36 AM

Quote:

Originally Posted by Acers
umm gives me this error when i try to set permission for usergroup

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        `title` = 'Systems Lead',
        `description` = '',
        `usertitle` = 'Systems Lead',
        `opentag` = '<span style=\"color: orange; font-weight: bold; text-decoration: none;\">',
        `closetag` = '</span>',
        `passwordexpires` = '180',
        `passwordhistory` = '360',
        `ucash_paycheck` = '0.00',
        `forumpermissions` = '470810623',
        `attachlimit` = '0',
        `pmquota` = '1500',
        `pmpermissions` = '3',
        `pmsendmax` = '5',
        `calendarpermissions` = '63',
        `wolpermissions` = '31',
        `adminpermissions` = '3',
        `genericpermissions` = '205520831',
        `genericoptions` = '23',
        `profilepicmaxwidth` = '100',
        `profilepicmaxheight` = '100',
        `profilepicmaxsize` = '65535',
        `avatarmaxwidth` = '100',
        `avatarmaxheight` = '100',
        `avatarmaxsize` = '25000',
        `maxsiglines` = '0',
        `maxsigfontsize` = '0',
        `maxsigimgsize` = '0',
        `maxsigimgwidth` = '0',
        `maxsigimgheight` = '0',
        `maxsigimages` = '0',
        `custompermissions` = '0',
        `allowhtmlpermissions` = ''
WHERE usergroupid=6;

MySQL Error  : Unknown column 'allowhtmlpermissions' in 'field list'
Error Number : 1054
Date        : Thursday, September 29th 2005 @ 01:14:47 PM
Script      : http://www.techenclave.com/forums/admincp/usergroup.php
Referrer    : http://www.techenclave.com/forums/admincp/usergroup.php?do=edit&usergroupid=6
IP Address  : xxxxxxxxx
Username    : xxxxxxx
Classname    : vb_database


@acers That is indeed odd. The install code of the Product *should* be executed when you install it.

@murrtex: That shouldn't cause the Product to not work..look in your Product Management. Does 'HTML' appear anywhere there? What about Plugin Manager?

Mepher 09-29-2005 11:51 AM

I just installed on 3.5 gold and got the same error as Acers.

Mepher 09-29-2005 11:57 AM

Quote:

Originally Posted by kall
@acers That is indeed odd. The install code of the Product *should* be executed when you install it.

@murrtex: That shouldn't cause the Product to not work..look in your Product Management. Does 'HTML' appear anywhere there? What about Plugin Manager?

Yes it does appear in both in the Product manager and the plugin manager. Gives this error when I try and turn it on for any usergroup:

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635

dastar 09-29-2005 12:03 PM

Make sure you delete his original plugin then upload the new one. I was getting the same error until I deleted the old one. I am running it on 3.5 gold with no problems.

Mepher 09-29-2005 12:04 PM

I never installed the old one, I waited till Gold was released to make sure it worked for people. I downloaded the latest one this morning and installed that.

Mepher 09-29-2005 12:08 PM

Odd. I uninstalled the product and then reinstalled the same one and it works now. :ninja:

dastar 09-29-2005 12:10 PM

Quote:

Originally Posted by Mepher
Odd. I uninstalled the product and then reinstalled the same one and it works now. :ninja:

Strange..... at least it works. I was getting the same errors as you were before I did what I mentioned above.

Kirk Y 09-29-2005 06:50 PM

How can I get the HTML to display on vBA CMPS?

kall 09-29-2005 08:27 PM

Quote:

Originally Posted by Mepher
I never installed the old one, I waited till Gold was released to make sure it worked for people. I downloaded the latest one this morning and installed that.

*sighs*

I just installed a Gold testbed. I uploaded the bitfield from this hack into my /includes/xml directory. I imported the product. I set the permissions. I tested it.

It works. No errors at all.

I apologise if it does not for you.

@acidburn - Hmm.. I didn't realise it wouldnt work there. Have you asked Brian about it? One would have assumed that vBaCMPS would look at the $dohtml value...

Kirk Y 09-29-2005 09:31 PM

Brian? I tried adding dohtml into the Globalized Output Vars, to no avail.

utw-Mephisto 09-29-2005 09:44 PM

Quote:

Originally Posted by utw-Mephisto

I don't get any error - really weird .. even had updated from RC3 to gold and it is working like a charm :ermm:

kall 09-29-2005 09:55 PM

Quote:

Originally Posted by acidburn0520
Brian? I tried adding dohtml into the Globalized Output Vars, to no avail.

Brian - The creator of vbadvanced.

Might be worth asking over at www.vbadvanced.com :)

Kirk Y 09-30-2005 12:50 AM

Okay, I asked... not sure how much help they'll be, but atleast I tried.

csidlernet 10-05-2005 03:06 AM

coolies.
/me install

Red Fox UK 10-05-2005 09:29 PM

I seem to have a problem, whiklst my usergroup can view and post HTML content - other usergroups are just shown the raw HTML, its not parsed for the viewers :ermm:

kall 10-06-2005 07:38 AM

Quote:

Originally Posted by Red Fox UK
I seem to have a problem, whiklst my usergroup can view and post HTML content - other usergroups are just shown the raw HTML, its not parsed for the viewers :ermm:

Well that just sucks, doesn't it?

A bit of testing reveals that the post seems to need to be edited before it will parse the HTML. :(

I will see what I can do to remedy this.

Red Fox UK 10-06-2005 07:39 AM

Quote:

Originally Posted by kall
I will see what I can do to remedy this.

Cheers :)

dastar 10-06-2005 11:16 AM

Quote:

Originally Posted by kall
Well that just sucks, doesn't it?

A bit of testing reveals that the post seems to need to be edited before it will parse the HTML. :(

I will see what I can do to remedy this.

I noticed that on my forums today and was on my way here to report it. Someone asked me what was up with all the HTML, then I noticed it. :ermm:

Still, a nice mod with the exception of having to edit everything to get the code to display :ninja:

EDIT: Strangely enough, this doesn't always happen. I just made a new post with HTML in it that parsed and displayed correctly the first time without editing it.

garrynewman 10-06-2005 01:56 PM

When updating the usergroup profile it says..

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in \includes\class_core.php on line 635


and the value isn't changed to Yes

garrynewman 10-06-2005 02:05 PM

Ok, I uninstalled it and installed it again and now it works!

kall 10-06-2005 07:48 PM

Quote:

Originally Posted by dastar
I noticed that on my forums today and was on my way here to report it. Someone asked me what was up with all the HTML, then I noticed it. :ermm:

Still, a nice mod with the exception of having to edit everything to get the code to display :ninja:

EDIT: Strangely enough, this doesn't always happen. I just made a new post with HTML in it that parsed and displayed correctly the first time without editing it.

Guys:

Try this for the bbcode_parse plugin (provided by the master Kirby):
PHP Code:

 global $post;
$perms =& $post['permissions'];
if (!
$perms)
{
    
$perms fetch_permissions(0$post['userid'], $post); 
}
// Was this post made by an allowed Usergroup member?
if ($perms['allowhtmlpermissions'] & $this->registry->bf_ugp_allowhtmlpermissions['canposthtml'])
{
    
// This is an allowed post so parse HTML.
    
$dohtml '1';


If you could try that and report back to me that it is all good (works perfectly on NZB as far as I can tell), I will update the .zip when I get home from work.

digitalhome 10-06-2005 08:00 PM

Sorry, I'm a little thick so can I just confirm a few things since I only want the admin to be allowed to post html.

I installed and it seems to work but in the bitfield-allowhtml.xml file should I change install="5,6,7" to install="6" so that its restricted to admins.

kall 10-06-2005 08:12 PM

Quote:

Originally Posted by digitalhome
Sorry, I'm a little thick so can I just confirm a few things since I only want the admin to be allowed to post html.

I installed and it seems to work but in the bitfield-allowhtml.xml file should I change install="5,6,7" to install="6" so that its restricted to admins.

No, you would need to go into the Usergroup manager and set the permissions for the usergroups. :)

dastar 10-07-2005 12:39 AM

Actually, since I shut off the template compressor plugin, i've had no problems with the HTML being parsed and viewable by all.......

jesus likes pie 10-07-2005 12:52 AM

Can you make a specific user be allowed to use html?

If so, how?

EDIT: hey, I have an idea, could I make a secondary usergroup that has it enabled, put the desired user as secondary usergroup for it, but have him display as his primary one?

Will that work? If not.....what

Red Fox UK 10-07-2005 03:07 AM

Quote:

Originally Posted by kall
Guys:

Try this for the bbcode_parse plugin (provided by the master Kirby):
PHP Code:

 global $post;
$perms =& $post['permissions'];
if (!
$perms)
{
    
$perms fetch_permissions(0$post['userid'], $post); 
}
// Was this post made by an allowed Usergroup member?
if ($perms['allowhtmlpermissions'] & $this->registry->bf_ugp_allowhtmlpermissions['canposthtml'])
{
    
// This is an allowed post so parse HTML.
    
$dohtml '1';


If you could try that and report back to me that it is all good (works perfectly on NZB as far as I can tell), I will update the .zip when I get home from work.

Works here :)

Red Fox UK 10-07-2005 04:56 AM

Quote:

Originally Posted by Red Fox UK
Works here :)

Actually - it causes a problem! It causes HTML within CODE tags to run rather than displayed.

DarrenS 10-07-2005 06:16 PM

I am having this same exact problem: HTML posts are correctly parsed for admins, but not for everyone else.

Is there an update ready yet?

Thanks!

Andreas 10-07-2005 10:10 PM

@DarrenS
Do you use this Code? https://vborg.vbsupport.ru/showpost....8&postcount=66
If so: Did you clear the postcache?

Red Fox UK 10-07-2005 10:35 PM

Quote:

Originally Posted by KirbyDE
@DarrenS
Do you use this Code? https://vborg.vbsupport.ru/showpost....8&postcount=66
If so: Did you clear the postcache?

I did - but it doesnt work properly, doesnt encode the HTML content inbetween [CODE] tags.

Andreas 10-07-2005 10:44 PM

Quote:

Originally Posted by Red Fox UK
I did - but it doesnt work properly, doesnt encode the HTML content inbetween [CODE] tags.

What does that mean?
HTML within [quote] Tags is rendered instead of being displayed as HTML Code?
AFAIK that's the way vBulletin works, test it with this Hack being disabled and a Forum that does allow HTML.

DarrenS 10-08-2005 03:01 AM

KirbyDE:

I didn't implement that code snippet, no. Just 3.50 and this thread's plug-in (1.0 RC1).

I would implement it if there were directions on how to do so. I don't use the [ CODE] tag on my forum. (What it sounds like Red Fox is describing is that HTML code in the [ CODE] [/CODE] tag is being parsed rather than displaying the code itself, while the [ CODE] tag is intended to allow users to show code.)

weaver 10-08-2005 04:20 AM

Quote:

Originally Posted by kall
Guys:

Try this for the bbcode_parse plugin (provided by the master Kirby):
PHP Code:

global $post;
$perms =& $post['permissions'];
if (!
$perms)
{
$perms fetch_permissions(0$post['userid'], $post); 
}
// Was this post made by an allowed Usergroup member?
if ($perms['allowhtmlpermissions'] & $this->registry->bf_ugp_allowhtmlpermissions['canposthtml'])
{
// This is an allowed post so parse HTML.
$dohtml '1';


If you could try that and report back to me that it is all good (works perfectly on NZB as far as I can tell), I will update the .zip when I get home from work.

Still having the same problem. I have to edit in advanced mode before the html will parse.

Red Fox UK 10-08-2005 04:56 AM

Quote:

Originally Posted by DarrenS
KirbyDE:

I didn't implement that code snippet, no. Just 3.50 and this thread's plug-in (1.0 RC1).

I would implement it if there were directions on how to do so. I don't use the [ CODE] tag on my forum. (What it sounds like Red Fox is describing is that HTML code in the [ CODE] [/CODE] tag is being parsed rather than displaying the code itself, while the [ CODE] tag is intended to allow users to show code.)

This is what I meant :)

Vtec44 10-08-2005 02:53 PM

Also for some reason, it is allow HTML in signature of user groups that are not suppose to have HTML. One person on my board has an IMG tag in his signature, and it is showing when I enable this plug in. I disabled it and it is not showing anymore. I tried to uninstall it, but got a database error when creating a new user group. It seems like the uninstall didn't completely remove everything.


All times are GMT. The time now is 04:20 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.01831 seconds
  • Memory Usage 1,858KB
  • 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
  • (3)bbcode_php_printable
  • (18)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