vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   BBCode with colorchange depending on style? (https://vborg.vbsupport.ru/showthread.php?t=79283)

Vierie 04-03-2005 07:02 PM

BBCode with colorchange depending on style?
 
Hi,

I've got two different styles for my users to choose from. One of them is dark, the other one light. My moderators are using something like *Mod* ... *Mod* to show that they are moderating not writing as normal users at that moment. The problem is, that, depending on the style, the text is very difficult to read. Is there a possibility to create a bbcode which changes the color of the text depending on the style?

Thanks,

Vierie

Marco van Herwaarden 04-04-2005 07:39 AM

I think you could achieve this with the conditional bb code hack as listed in my signature.

Vierie 04-04-2005 09:43 AM

Quote:

Originally Posted by MarcoH64
I think you could achieve this with the conditional bb code hack as listed in my signature.

Problem is, I don't think, I know enough php to code that myself. How would I check, which style is selected?

Marco van Herwaarden 04-04-2005 09:45 AM

The style you can find in $bbuserinfo['styleid']

Vierie 04-04-2005 12:25 PM

Quote:

Originally Posted by MarcoH64
The style you can find in $bbuserinfo['styleid']

Would it be possible to change the normale [color]-code to display a different color, too?

Zachery 04-04-2005 01:28 PM

Quote:

Originally Posted by Vierie
Would it be possible to change the normale [color]-code to display a different color, too?

bbcode with a replacement setup in the style manager.


All times are GMT. The time now is 08: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.01114 seconds
  • Memory Usage 1,719KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete