vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Need some help with coding (https://vborg.vbsupport.ru/showthread.php?t=84809)

turdboy 09-30-2002 09:43 PM

Need some help with coding
 
Well I kinda need help making a special tag. You see I'm trying to make a tag for spoilers so when you type [spoil][/spoil] is displays something lie this:

****Spoiler****
------------------------------------

The text or spoil goes here 7 lines down

****End Spoiler****
------------------------------------

That's what I'd like if it's possible Im sure it's difficult to set up so your help would be greatly appreciated.

Austin Dea 09-30-2002 09:59 PM

1 Attachment(s)
Code:

<br>
<B>****Spoiler****</B><br>
------------------------------------<br>
<br><br><br><br><br><br><br>
{param}
<br><br><br><br>
<B>****End Spoiler****</B><br>
------------------------------------

If you want it that simple... I do it like this, where the user has to highlight the text to see it (idea from the old EthosHQ). I could give you the code if you want.

Camellia 09-30-2002 10:01 PM

Heres my go at it

Code Tag:

spoil

Code Replacement:

<b>****Spoiler****<br>
-----------------------------------</b><br><br><br><br><br><br><br><br>
{param}<br><br><br><br><br><br><br>
<b>****End Spoiler****<br>
-----------------------------------</b>

Code Example:

[spoil]Well this here is a spoiler[/spoil]

Code Explanation:

This tag creates your spoiler inbetween specified tags and lots of spaces.




Hope it works



heh, i posted just after him, oh well, ya i like the highlight idea for this type of thing more.

Austin Dea 09-30-2002 10:03 PM

Hehe, same thing (I realize we posted at about the same time ;)).

turdboy 10-01-2002 12:08 AM

Quote:

If you want it that simple... I do it like this, where the user has to highlight the text to see it (idea from the old EthosHQ). I could give you the code if you want.
Yea give me that code to please.

Edit that doesn't work the one you gave me.

Austin Dea 10-01-2002 07:26 PM

uh..It did when I tested on my forums...

Anyway, my code is:

<center><table border="0" align="center" width="500" cellpadding="3" cellspacing="1">
<tr><td><font size="1" color=#ff0000><b>Spoiler, highlight to read:</b></font></td></tr>
<tr><td style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: 000000; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #000000;">{param}</td></tr></table></center>

turdboy 10-01-2002 10:29 PM

I got both to work. I had yes checked for the option thingy. Thanks again.


All times are GMT. The time now is 03:02 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.02397 seconds
  • Memory Usage 1,724KB
  • 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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