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 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


All times are GMT. The time now is 01:51 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.01440 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_php_printable
  • (5)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