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-26-2005 08:23 PM

Quote:

Originally Posted by MarcoH64
Did you rebuild the bitfields?

Yeah... and to NOT be such a crappy bug reporter - "It does accept the change through Usergroup Manager (and show there nicely) but the post itself is not parsed as HTML. The php I posted above replaces the existing $post[usergroupid] based check."

:)

Andreas 09-26-2005 08:30 PM

$vbulletin is not within the Scope of a vB_BBCode_Parser object :)
Hint: $this->registry

$permissions also might not be in the scope, not sure.

kall 09-26-2005 08:53 PM

Quote:

Originally Posted by KirbyDE
$vbulletin is not within the Scope of a vB_BBCode_Parser object :)
Hint: $this->registry

$permissions also might not be in the scope, not sure.

*sighs*

So its not possible to do this through bitfields and permissions then? :(

Andreas 09-26-2005 08:57 PM

Sure. You just have to access it correctly ;)

Eg. global $permissions or $this->registry->userinfo['permissions'] and $this->registry->bf_ugp

utw-Mephisto 09-26-2005 09:10 PM

WOW - If I get the confirmation that this is working as it should, I love yea...

*wait wait*

Kirk Y 09-26-2005 09:17 PM

Quote:

Originally Posted by acidburn0520
PHP Code:

if (in_array($post['usergroupid'], array(6))) OR if (in_array($post['username'], array(vBlogger)))
                { 


What do I need to do to also allow usernames to be listed? Is the above close?

kall 09-26-2005 09:22 PM

PHP Code:

// Was this post made by an allowed Usergroup member?
global $permissions;

if ((
$this->registry->userinfo['allowhtmlpermissions'] & $this->registry->bf_ugp_allowhtmlpermissions['canposthtml']))

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

*bangs head on desk*
Am I close?

Vtec44 09-26-2005 10:35 PM

It's working for me, but the preview doesn't work though

dastar 09-27-2005 10:01 AM

The original plugin worked. The new one gives this error when I try to set HTML to yes for a usergroup:

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

kall 09-27-2005 10:06 AM

Quote:

Originally Posted by dastar
The original plugin worked. The new one gives this error when I try to set HTML to yes for a usergroup:

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

Thats odd .. did you uninstall the original?

And.. does it work anyway? Thats a Warning, not an Error. :)


All times are GMT. The time now is 01:04 PM.

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.01439 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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