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)

Spyke 02-03-2005 04:36 AM

Quote:

Originally Posted by Tekton
I'm not sure how vB would handle javascript inside of posts/sigs, but I know that it works for plain html~ :D

Ok, thanks anyway :)

Tekton 02-03-2005 07:55 AM

Quote:

Originally Posted by Spyke
Ok, thanks anyway :)

I've tried a bit of javascript, but it doesn't seem to work? Oh well~

If anyone ever gets some working, let me know :)

Carnage 02-07-2005 11:59 AM

I acctually have my own personal sig replaced by the output of a php function. i have fun by adding things like the readers username into my sig, it got alot of members really paranoid until they figured it out :p because its a php file, i can pull any data i want from the vbdb and display it there, things i've thought about doing are having different sigs in different forums i already show different sigs to different users... i've done random images as well... Some great fun can be had with it :p

DeMiNe0 02-08-2005 12:00 AM

Carnage-, how did you manage to do that? I could have alot of fun with that. "$bbuserinfo['username'] has been banned!"

chriswible 02-08-2005 01:19 PM

Quote:

Originally Posted by Tekton
Just change the 6 to the usergroup that you want to allow if you want it to work for someone else.

Or for multiple I think it's:
PHP Code:

if($userinfo[usergroupid]==in_array(678)||$post[usergroupid]==in_array(678)) 


Please correct me if that's wrong. :)

That didn't work for me... in_array doesn't work that way in my experience.

Here's how I did it:
PHP Code:

$html_groups = array(6,19);
 
if(
in_array($userinfo[usergroupid],$html_groups)||in_array($post[usergroupid],$html_groups)){ 

Anyway, Great hack, thanks. *thinks of all the evil things he's going to do now*

Tekton 02-08-2005 10:48 PM

Ah, you're right. I just realized this the other day too; I'll go change that. Thanks~ ^__^;

oil 02-09-2005 11:35 PM

just that did it right now

I replace
Quote:

// ********************* REMOVE HTML CODES ***************************
if(!$dohtml)
with this one
Quote:

$html_groups = array(6,5);
if(in_array($userinfo[usergroupid],$html_groups)||in_array($post[usergroupid],$html_groups)){

// ********************* REMOVE HTML CODES ****************
if(!$dohtml && $tx2x==0)
and the ending, open bracket "{" is also right ??

neocorteqz 02-10-2005 06:44 AM

Quote:

Originally Posted by oil
just that did it right now

I replace


with this one


and the ending, open bracket "{" is also right ??

Quote code in code brackets, it prevents non licensed users from viewing it.

and the bracket is supposed to be a } unless he has more code and doesn't need to close it yet.

If you're getting an error, try a } instead of a {

oil 02-10-2005 12:43 PM

now I closed the last bracket } and still get this error
only on the multiple usersgroup, the singel usergrous just work fine

Parse error: parse error in
/usr/www/odb14/domain.com/htdocs/forum/includes/functions_bbcodeparse.php on line 347

Fatal error: Call to undefined function: parse_bbcode2() in
/usr/www/odb14/domain.com/htdocs/forum/includes/functions_bbcodeparse.php on line 299

Tekton 02-10-2005 01:01 PM

There should be no {}'s on that line.

Find:
PHP Code:

// ********************* REMOVE HTML CODES *************************** 
if(!$dohtml

Change to:
PHP Code:

$group_check= array(6,19); 
if(
in_array($userinfo[usergroupid],$group_check)||in_array($post[usergroupid],$group_check)) 



All times are GMT. The time now is 06:58 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.01051 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)bbcode_php_printable
  • (6)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