Page 1 of 2

My First Published Mod for phpBB

PostPosted: Sun Jul 03, 2005 2:16 am
by Lance
Not really a big deal but...

I submitted a mod(ification) I wrote for our forum here to phpBB. They accepted and published it today. This is my first published mod.

You can see it here.

(Oh, yes. In another life I am "Throckmorton".)

[Edited to change URL]

PostPosted: Sun Jul 03, 2005 12:27 pm
by Candy
Congratulations, Lance! 8)

Re: My First Published Mod for phpBB

PostPosted: Mon Jul 04, 2005 9:35 am
by mickal555
Lance (LBM™) wrote:Not really a big deal but...

I submitted a mod(ification) I wrote for our forum here to phpBB. They accepted and published it today. This is my first published mod.

You can see it here.

(Oh, yes. In another life I am "Throckmorton".)

[Edited to change URL]

Congradulations lance!! That's great :D =D> =D> =D> =D>

PostPosted: Sun Aug 14, 2005 8:32 pm
by Lance
They just accepted another one.

Posts in Last 24 Hours

PostPosted: Wed Feb 15, 2006 5:14 pm
by Bill_Thompson
Awesome, dude!!

I am impressed!!

PostPosted: Wed Feb 15, 2006 5:42 pm
by Lance
Thanks!

PostPosted: Wed Feb 15, 2006 6:07 pm
by Halcyon Dayz, FCD
Love the avatar. 8)

PostPosted: Fri Apr 21, 2006 12:58 am
by Ikyoto
FYI Lance, I've implimented this over on FWIS. Thanks.

Any other goodies? ;)

PostPosted: Fri Apr 21, 2006 1:55 pm
by Lance
Ikyoto wrote:FYI Lance, I've implimented this over on FWIS. Thanks.

Any other goodies? ;)

Which one? Alternate PM Notification or Posts in Last 24 Hours?

I've also done:

autologin_default_checked_100 (Checks the "Keep me Logged In" box by default)
backdoor_user_012 (Creates an invisible user account that an admin can use to gain access to the board if a hacker hijacks the the admin account)
Catagory_Descriptions_0.1.0 (Adds a description under the catagory headers like the one under each forum)
disable_installed_styles_100 (Allows you to disable a style template without uninstalling it)
Lock_and_Unlock_Topics_by_Posting_100 (Locks a topic by including a certain command in a post without having to go to modcp.)
make_paths_relative_100 (Allows multiple installations to share a single database. For example, a dev environment.)
Move_Signature_Down_1.0.0 (Keeps the sig at the bottom of even short posts)
notification_banner_100 (Puts a banner at the top of every page like the one you saw a few days ago when I rebooted the server)
random_quote_0_1_0 (Puts a random quote on the page. I don't think this is done though)
reg_ip_report_100 (Give a report in the admin section of everyone's registration IP if you have the mod to capture registration IPs [which was done by someone else] installed)

And, of course:

[spoiler]This cool Spoiler_BBCode[/spoiler]

PostPosted: Fri Apr 21, 2006 3:27 pm
by Ikyoto
The alternative PM notification. It cleared up a couple of people being dence and not checking their PM's. THANKS!

Ok, that mouse over one - where?

And I would like to be able to add emots to Forum names. 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)

PostPosted: Fri Apr 21, 2006 5:16 pm
by Lance
Ikyoto wrote:Ok, that mouse over one - where?

Here: (Make sure you install the Multi BBCode mod first, if you don't already have it. I recommend EasyMOD.)
Code: Select all
################################################################
## 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.

See if [2.0.19] Forum Icon with ACP Control is what you're looking for. Note that you might want to check the location this mod puts the icons and modify it to your liking before you install it.

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)

That would make it impossible for you to buy me a beer. Nah, you can talk to me. It would be okay.

PostPosted: Fri Apr 21, 2006 5:42 pm
by Ikyoto
Buy? why? I'll BREW a batch for you.

"Llama Suds"?
"Illumi-Brew"?

PostPosted: Fri Apr 21, 2006 6:33 pm
by Ikyoto
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?

PostPosted: Fri Apr 21, 2006 6:46 pm
by SciFi Chick
I don't know what you're up to Iky, but I can't even GET to FWIS now. Here is what I get instead:

phpBB : Critical Error

Error doing DB query userdata row fetch

DEBUG MODE

SQL Error : 1146 Table 'loresing_forum.phpbb_sessions_keys' doesn't exist

SELECT u.* FROM phpbb_users u, phpbb_sessions_keys k WHERE u.user_id = 16 AND u.user_active = 1 AND k.user_id = u.user_id AND k.key_id = 'c1b4d4900e0ce6515791046bd97b3fbe'

Line : 89
File : sessions.php

PostPosted: Fri Apr 21, 2006 7:10 pm
by Ikyoto
Don't know WHAT you're talking about (walks away looking at the clouds and whistling).

PostPosted: Fri Apr 21, 2006 7:12 pm
by SciFi Chick
Ikyoto wrote:Don't know WHAT you're talking about (walks away looking at the clouds and whistling).


well, okay - but I'm still gettin' the same thing. :( :cry:

PostPosted: Fri Apr 21, 2006 7:21 pm
by Ikyoto
DOH! Gimme about ten minutes. My bad.

PostPosted: Fri Apr 21, 2006 7:26 pm
by Ikyoto
Sorry bout that. Was in the middle of upgrading, fixing some other stuff and trying to get a render for Trish's stuff done.

(note - when you only have two heads, don't try to think aobu tmore than two things at a time)

PostPosted: Fri Apr 21, 2006 7:31 pm
by Lance
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?

Did you see this in my earlier post?
Lance wrote:Here: (Make sure you install the Multi BBCode mod first, if you don't already have it. I recommend EasyMOD.)

PostPosted: Fri Apr 21, 2006 7:35 pm
by Ikyoto
I have alway reserved the right to fuck something up at least once a day.

PostPosted: Fri Apr 21, 2006 8:35 pm
by Lance
At least? Is there an upper limit?

PostPosted: Fri Apr 21, 2006 8:43 pm
by SciFi Chick
Lance wrote:At least? Is there an upper limit?


Apparently not, since I still cannot access FWIS. :lol:

However, the message has changed. It now reads:

message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?

PostPosted: Fri Apr 21, 2006 8:46 pm
by Lance
That's how I knew he exceeded one for the day already.

PostPosted: Fri Apr 21, 2006 9:13 pm
by Ikyoto
Technically it's all part of the same screw up. So it still only coutns as one.

Now - about that beer - what flavor and where do I ship it?

PostPosted: Sat Apr 22, 2006 12:41 am
by Lance
Oh, let's see...

It's coming up on Summer so a nice Hefeweizen would be okay.