vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   remove formatting and smilies in a set skin (https://vborg.vbsupport.ru/showthread.php?t=38333)

veedee 05-06-2002 07:58 PM

remove formatting and smilies in a set skin
 
Hi gang,

I have a skin on my site that is fairly plain in white and grey so that my users can use it whilst surfing my board in work hours.

The thing is, formatting and smilies give the game away.

Is there anyway I can hack this skin, or hack an option into the USERCP so that each user can switch off text formatting / smilie or both.

All replies greatly appreciated,

veedee

veedee 05-07-2002 10:18 PM

Am I not making this clear?
Is it too boring for people to want to do?
Is it too hard for people to do?

Please give me feedback :)

veedee

veedee 05-09-2002 11:36 AM

you can tell me to fcuk off if this is asking too much :D

E 05-09-2002 11:40 AM

u mean a style?

veedee 05-09-2002 11:51 AM

sorry yeah. I think when they first came out theiy were called skins. Skins, styles, thats the one.

Hey I'm so with it, I just upgraded to Win95 :D

Admin 05-09-2002 01:10 PM

Try this... in functions.php replace:
Code:

  //smilies
  if($dosmilies) {

With:
Code:

  //smilies
  global $styleid;
  if($dosmilies and $styleid != XX) {

(XX = the style ID)

veedee 05-09-2002 04:37 PM

Chen,

First thing, stop being so bloody clever.
Second thing, thanks a bunch for the smilies fix :)
Thirdly, does this remove formatting like [*size=1] etc?

Admin 05-09-2002 05:31 PM

Uhh, what's [*size=1] ?!?!! :dead:

veedee 05-09-2002 05:42 PM

Quote:

Originally posted by FireFly
Uhh, what's [*size=1] ?!?!! :dead:
LOL

I used the * so it didn't convert it!

What I wanted to know was, what can I do to stop text formatting in a set style?

You helped me do the smilies (which is ace) now I want to prevent the SIZE / COLOR vB codes from displaying.

Cheers,

Admin 05-09-2002 05:50 PM

I just stopped being so bloody clever. ;)

Anyway, after you apply the code above, replace this:
Code:

  //smilies
  global $styleid;
  if($dosmilies and $styleid != XX) {

With this:
Code:

  global $styleid;
  if ($styleid == XX) {
    $dobbcode = 0;
    $dosmilies = 0;
  }

  //smilies
  if($dosmilies) {



All times are GMT. The time now is 07:14 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.02186 seconds
  • Memory Usage 1,725KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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