vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   replacement variables replace text in message box on preview? (https://vborg.vbsupport.ru/showthread.php?t=146502)

coRtALoS 05-05-2007 12:50 AM

replacement variables replace text in message box on preview?
 
I hope this is in the right section...if not, please move it.

Ok this might sound a bit weird, but I'm trying to set up two user selectable styles..

one with censored words (using replacement variables)

and one uncensored (no variables).

I'm doing this so people can choose if they want censoring or not.

This essentially works.

If a user types up a message in the quick reply with a *blocked* word...it will be censored with the variables on the censored skin, so it all works. This is good. You can view the word uncensored on one skin, and censored on the other...which is what I want.

However, there is a slight issue.

If you preview your post on the skin with the replacement variables, it actually changes the word to astricks (which is the replacement variable). So if you preview, the blocked word actually changes to **** in the message box. You can then either re-edit and change the word back without previewing, or post as astricks. But if you actually post it as astricks, the word is really astricks and cannot be uncensored on the uncensored skin.

So what I'm asking is..is there a work around for this? If I'm using the skin with the replacement variables, can I preview and NOT have the word actually change in the message box..so if I post the word, it will actually be the word? Because otherwise, people are actually posting astricks, and the words they intended on posting cannot be viewed on the uncensored skin.

I had a hard time explaining my issue, so sorry if it's confusing.

Anyone?! Help appreciated..or if you know a better method of doing what I want to do please tell me.


All times are GMT. The time now is 07:16 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.01052 seconds
  • Memory Usage 1,705KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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