vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Allow usergroups ( Admins ) to use HTML for posts , sigs (https://vborg.vbsupport.ru/showthread.php?t=75590)

xug 03-23-2005 11:02 AM

Can somebody upgrade this to vB 3.0.7?

Marco van Herwaarden 03-23-2005 11:24 AM

Quote:

Originally Posted by xug
Can somebody upgrade this to vB 3.0.7?

IS it not working then?

lazytown 03-28-2005 07:34 PM

This doesn't seem to work for previewing the message, but when I post it, it does work. Any suggestions for getting the preview to work?

-V

zetetic 04-17-2005 01:06 PM

It took me about four hours to figure out that this will only work for primary usergroup memberships, and another four hours to not figure out how to make it check secondary usergroup memberships too. :(

zetetic 04-17-2005 02:01 PM

Quote:

Originally Posted by tmhall
It took me about four hours to figure out that this will only work for primary usergroup memberships, and another four hours to not figure out how to make it check secondary usergroup memberships too. :(

Solution provided by Link14716 in this thread:

Change:
PHP Code:

 $html_allowed=array(6); // add more by seperating each by commas in the ()'s: (6,8,19)
// ********************* REMOVE HTML CODES ***************************
if(!$dohtml && !in_array($userinfo[usergroupid],$html_allowed)&& !in_array($post[usergroupid],$html_allowed)) 

to:
PHP Code:

 $html_allowed=array(6); // add more by seperating each by commas in the ()'s: (6,8,19)
// ********************* REMOVE HTML CODES ***************************
foreach ($html_allowed as $ug) {
    if (
is_member_of($userinfo$ug)) {
        
$userinfo_sane true;
    }
    if (
is_member_of($post$ug)) {
        
$post_sane true;
    }
}
if(!
$dohtml && !$usergroup_sane && !$post_sane


q8manar 04-18-2005 04:06 AM

thanks
:)

EricaJoy 04-25-2005 02:45 PM

this didnt work for me. everytime i attempted to do a new thread, i got a blank page. rolled back for now. :(

**Nevermind, sorted it. Serves me right for trying to edit files with notepad. Doh!

HeloHi 04-29-2005 01:40 PM

Works perfectly, thanks :)

Acers 05-01-2005 03:13 PM

got the code working... after some tinkering around..
but its still not working in the previews. have tried a lot of things but can't make it work with preview posts.. any ideas?

ged 05-02-2005 07:11 AM

A very useful modification.


All times are GMT. The time now is 09:40 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.01280 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)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
  • (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