this mod allow user to post blink text using bbcode:
- Open templates/ca_aphrodite/overall_header.tpl
- Find:
- {UPI2DB_FIRST_USE}
- Before add:
- <script type="text/javascript">
- function blinkIt() {
- if (!document.all) return;
- else {
- for(i=0;i<document.all.tags('blink').length;i++){
- s=document.all.tags('blink')[i];
- s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
- }
- }
- }
- </script>
- Find:
- <body onload="PreloadFlag = true;">
- Replace with:
- <body onload="PreloadFlag = true; setInterval('blinkIt()',500)" />
- ============================================================================
- Open includes/bbcode.php
- Find:
- 'strike' => array(
- 'nested' => true,
- 'inurl' => true,
- 'allow_empty' => false,
- ),
- After add:
- 'blink' => array(
- 'nested' => true,
- 'inurl' => true,
- 'allow_empty' => false,
- ),
- Find: (one more time)
- 'strike' => array(
- 'nested' => true,
- 'inurl' => true,
- 'allow_empty' => false,
- ),
- After add:
- 'blink' => array(
- 'nested' => true,
- 'inurl' => true,
- 'allow_empty' => false,
- ),
- Find:
- $tag === 'strike' ||
- After add:
- $tag === 'blink' ||
- Find:
- "[strike]", "[/strike]",
- After add:
- "[blink]", "[/blink]",
- =========================================================================
- Open templates/ca_aphrodite/bbcode.tpl
- Find:
- <!-- BEGIN highlight_close --></span><!-- END highlight_close -->
- After add:
- <!-- BEGIN blink_open --><blink><!-- END blink_open -->
- <!-- BEGIN blink_close --></blink><!-- END blink_close -->
- Use this when post:
- [blink]text[/blink]