vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Making "Work Safe" Style (https://vborg.vbsupport.ru/showthread.php?t=92647)

.Tim 11-22-2005 09:41 PM

Quote:

Originally Posted by Stangsta
how did you do it?

I don't remember, I'll have to look into it. I gave up on this project for now but I should still have the changes I made somewhere.

merk 11-22-2005 10:35 PM

1 Attachment(s)
Done :)

Not sure if this will work in 3.5.0, only tested on 3.5.1

Upload the attached plugin and modify it (change STYLEID = 67 to STYLEID = <styleid> of your worksafe style).

Stangsta 11-22-2005 11:34 PM

Quote:

Originally Posted by merk
Done :)

Not sure if this will work in 3.5.0, only tested on 3.5.1

Upload the attached plugin and modify it (change STYLEID = 67 to STYLEID = <styleid> of your worksafe style).

working on 3.5.1 here

How would you remove the avatars on that specific style? Remove it from the postbit?

.Tim 11-23-2005 12:13 AM

Quote:

Originally Posted by Stangsta
How would you remove the avatars on that specific style? Remove it from the postbit?

That's what I did.

ZGeek 11-23-2005 09:36 PM

Quote:

Originally Posted by merk
Done :)

Not sure if this will work in 3.5.0, only tested on 3.5.1

Upload the attached plugin and modify it (change STYLEID = 67 to STYLEID = <styleid> of your worksafe style).

Awesome stuff. I have custom bb image code [newsimg] is it possible to modify this to include items like this?

merk 11-23-2005 10:18 PM

It is (afaik) possible to do what you want, except its complex. The way I see you being able to do it is using the bbcode_create hook to modify the $this->tag_list array to modify the replacement html of the bbcode as the bbcode parser starts up.

It would look something like below, but note that i did it based on the tag example [newsimg]url[/newsimg] not [newsimg=url]text[/newsimg]. To do the second one, change no_option to option. I havent tested this and it could break the bbcode parser (with either setting).

PHP Code:

if(STYLEID == XX)
{
$this->tag_list['no_option']['newsimg']['html'] = '<a href="{param}" target="_new">{param}</a>';



moonclamp 11-24-2005 12:10 AM

I would be interested in something like this that could also turn on the swear filter.

I don't filter anything on my site but there have been problems with people getting locked out when their work software detects profanities.

merk 11-24-2005 12:43 AM

in global_start

PHP Code:

if(STYLEID == XX)
{
$vbulletin->options['enablecensor'] = 1;
$vbulletin->options['censorwords'] = "WHATEVER WOULD GO INTO THE CENSOR WORDS INPUT IN THE ADMINCP";
$vbulletin->options['censorchar'] = '*'#only necessary if you dont already have it set, could always set it in admincp and take this line out



ZGeek 12-01-2005 09:02 PM

thanks merk, I will give that a shot.

robgeo 05-08-2006 10:07 AM

Quote:

Originally Posted by Dean C
Well make a child style of the current one you have. And just edit out the avatars and signatures from the postbit/userprofile templates :)


Thanks!!!!


All times are GMT. The time now is 09:18 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.01746 seconds
  • Memory Usage 1,737KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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