Keeping them from kicking our asses for talking about it like they aren't going to kick our asses for talking about it is the hard part.
Ikyoto wrote:FYI Lance, I've implimented this over on FWIS. Thanks.
Any other goodies? ;)
Keeping them from kicking our asses for talking about it like they aren't going to kick our asses for talking about it is the hard part.
Ikyoto wrote:Ok, that mouse over one - where?
################################################################
## MOD Title: Improved Spoiler MOD
## MOD Author: Lance n/a n/a n/a
## MOD Description: Adds a [spoiler] BBcode which reveals hidden text or images OnMouseOver.
##
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: includes/bbcode.php,
## templates/subSilver/bbcode.tpl,
## templates/subSilver/posting_body.tpl
## language/lang_english/lang_main.php
## language/lang_english/lang_bbcode.php
## Included Files: (n/a)
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
##
## Author Notes: Tested with phpBB v2.0.15. Works with IE and Mozilla. Probably others.
## + Requires the latest version of Multi BBCode MOD (1.4.0c)
## + This MOD is based on the excellent work of: Gigs < phpmod@scrynet.com > (Scott Dietrich) http://www.scrynet.com
##
##############################################################
##
## MOD History:
##
## 2005-09-10 - Version 1.0.1
## - Now compatible with Bottom Aligned Signature
##
## 2005-05-31 - Version 1.0.0 By Lance
## - Code compliant with latest version of Multi BBCode MOD (1.4.0c)
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
# IMPORTANT: you MUST first have already installed the Multi BBCode MOD v1.4.0c
#
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]---------------------------------
#
# NOTE: the actual lines may be longer if you have installed other BBCode MODs
#
$EMBB_widths = array(''
$EMBB_values = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_widths = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'55'
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'Spoiler'
#
#-----[ FIND ]------------------------------------------
#
// [b] and [/b] for bolding text
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text);
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [spoiler] and [/spoiler] for spoiler-text
$text = str_replace("[spoiler:$uid]", $bbcode_tpl['spoiler_open'], $text);
$text = str_replace("[/spoiler:$uid]", $bbcode_tpl['spoiler_close'], $text);
#
#-----[ FIND ]------------------------------------------
#
// [b] and [/b] for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [spoiler] and [/spoiler] for setting spoiler-text
$text = preg_replace("#\[spoiler\](.*?)\[/spoiler\]#si", "[spoiler:$uid]\\1[/spoiler:$uid]", $text);
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN spoiler_open -->
<span class="genmed"><b>Spoiler:</b></span> <span class="gensmall">(Mouse-Over to Reveal)</span><br />
<!--[if IE]><div style="height:1%"><![endif]-->
<table border="0" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td>
<div style="position: relative; height: 100%;">
<table border="0" cellpadding="0" cellspacing="0" style="border: black 1px solid;">
<tr>
<td class="postbody" style="padding: 5px;">
<!-- END spoiler_open -->
<!-- BEGIN spoiler_close -->
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" onMouseOver="this.style.background='none';" onMouseOut="this.style.background='black';"
style="position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; background-color: black;">
<tr>
<td class="postbody" align="center" style="color: white;" onMouseOver="this.innerHTML='';" onMouseOut="this.innerHTML='(Mouse-Over to Reveal)';">(Mouse-Over to Reveal)</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<!--[if IE]></div><![endif]-->
<!-- END spoiler_close -->
#
#-----[ OPEN ]------------------------------------------
# You need to do this for all of your installed template styles
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]---------------------------------
#
# NOTE: the actual line to find is MUCH longer, containing all the bbcode tags
#
bbtags = new Array(
#
#-----[ IN-LINE FIND ]---------------------------------
#
'[url]','[/url]'
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'[spoiler]','[/spoiler]'
#
#-----[ OPEN ]------------------------------------------
# NOTE: You need to do this for all installed languages
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
# NOTE: Full line in English is:
# $lang['Code'] = 'Code'; // comes before bbcode code output.
#
$lang['Code'] =
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Spoiler'] = 'Mouseover to reveal text';
#
#-----[ FIND ]------------------------------------------
# NOTE: Full line in English is:
# $lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
#
$lang['bbcode_f_help'] =
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['bbcode_help']['spoiler'] = 'Spoiler BBcode: [spoiler]this is the spoiler text[/spoiler] (alt+%s)';
#
#-----[ OPEN ]------------------------------------------
# NOTE: You need to do this for all installed languages
#
language/lang_english/lang_bbcode.php
#
#-----[ FIND ]------------------------------------------
#
$faq[] = array("--","Text Formatting");
#
#-----[ AFTER, ADD ]------------------------------------------
#
$faq[] = array("MouseOver Spoiler", "The [spoiler] [/spoiler] BBCode hides text in a black on black window until a user moves their mouse over the spoiler.");
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Ikyoto wrote:And I would like to be able to add emots to Forum names.
Ikyoto wrote:IF you give me leads to those I promise not to talk to you if we meet in public.
(Best thing I can do for people according to my wife)
Keeping them from kicking our asses for talking about it like they aren't going to kick our asses for talking about it is the hard part.
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]---------------------------------
#
# NOTE: the actual lines may be longer if you have installed other BBCode MODs
#
$EMBB_widths = array(''
$EMBB_values = array(''
Keeping them from kicking our asses for talking about it like they aren't going to kick our asses for talking about it is the hard part.
Keeping them from kicking our asses for talking about it like they aren't going to kick our asses for talking about it is the hard part.
Ikyoto wrote:Don't know WHAT you're talking about (walks away looking at the clouds and whistling).
Keeping them from kicking our asses for talking about it like they aren't going to kick our asses for talking about it is the hard part.
Keeping them from kicking our asses for talking about it like they aren't going to kick our asses for talking about it is the hard part.
Ikyoto wrote:
- Code: Select all
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]---------------------------------
#
# NOTE: the actual lines may be longer if you have installed other BBCode MODs
#
$EMBB_widths = array(''
$EMBB_values = array(''
No such line in my bbcode.php file. I'm using 2.0.20. Any suggesitons?
Lance wrote:Here: (Make sure you install the Multi BBCode mod first, if you don't already have it. I recommend EasyMOD.)
Keeping them from kicking our asses for talking about it like they aren't going to kick our asses for talking about it is the hard part.
Lance wrote:At least? Is there an upper limit?
message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?
Keeping them from kicking our asses for talking about it like they aren't going to kick our asses for talking about it is the hard part.
Users browsing this forum: No registered users and 4 guests