My First Published Mod for phpBB

Things you should know about what's going on. New features and procedures will be announced here.

My First Published Mod for phpBB

Postby Lance » Sun Jul 03, 2005 2:16 am

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]
Last edited by Lance on Sun Jul 03, 2005 1:05 pm, edited 1 time in total.
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91394
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Candy » Sun Jul 03, 2005 12:27 pm

Congratulations, Lance! 8)
I follow those who I will someday lead. - Candy
Candy
Puppet Master
Puppet Master
 
Posts: 3675
Joined: Fri May 13, 2005 9:24 pm
Location: Chicago, IL

Re: My First Published Mod for phpBB

Postby mickal555 » Mon Jul 04, 2005 9:35 am

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>
mickal555
Government Shill
Government Shill
 
Posts: 118
Joined: Mon Jun 20, 2005 11:59 am
Location: Brisbane, QLD, AUS, Earth,solar system,Orion arm,milxy way,local group, Virgo supercluster, Universe

Postby Lance » Sun Aug 14, 2005 8:32 pm

They just accepted another one.

Posts in Last 24 Hours
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91394
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Bill_Thompson » Wed Feb 15, 2006 5:14 pm

Awesome, dude!!

I am impressed!!
If you are looking for information about William M. "Bill" Thompson, please see here: Notice to people seeking info on Members or Former Members.
User avatar
Bill_Thompson
Puppet Master
Puppet Master
 
Posts: 2766
Joined: Thu Jun 02, 2005 2:58 pm

Postby Lance » Wed Feb 15, 2006 5:42 pm

Thanks!
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91394
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Halcyon Dayz, FCD » Wed Feb 15, 2006 6:07 pm

Love the avatar. 8)
Hatred is a cancer upon the world.
It rots the mind and blackens the heart.
User avatar
Halcyon Dayz, FCD
Enlightened One
Enlightened One
Snarling Rabid Green-Communist Big-Government Tree-Hugger Euroweasel
 
Posts: 32238
Joined: Sun Jun 26, 2005 1:36 pm
Location: Nederland - Sol III

Postby Ikyoto » Fri Apr 21, 2006 12:58 am

FYI Lance, I've implimented this over on FWIS. Thanks.

Any other goodies? ;)
just a 10-4 guy in a 9-5 world
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.


Ninja Squirrel says... Nothing. Your nuts are already gone.
User avatar
Ikyoto
Disinformation Agent
Disinformation Agent
 
Posts: 329
Joined: Mon Oct 03, 2005 11:51 am

Postby Lance » Fri Apr 21, 2006 1:55 pm

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]
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91394
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Ikyoto » Fri Apr 21, 2006 3:27 pm

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)
just a 10-4 guy in a 9-5 world
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.


Ninja Squirrel says... Nothing. Your nuts are already gone.
User avatar
Ikyoto
Disinformation Agent
Disinformation Agent
 
Posts: 329
Joined: Mon Oct 03, 2005 11:51 am

Postby Lance » Fri Apr 21, 2006 5:16 pm

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.
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91394
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Ikyoto » Fri Apr 21, 2006 5:42 pm

Buy? why? I'll BREW a batch for you.

"Llama Suds"?
"Illumi-Brew"?
just a 10-4 guy in a 9-5 world
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.


Ninja Squirrel says... Nothing. Your nuts are already gone.
User avatar
Ikyoto
Disinformation Agent
Disinformation Agent
 
Posts: 329
Joined: Mon Oct 03, 2005 11:51 am

Postby Ikyoto » Fri Apr 21, 2006 6:33 pm

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?
just a 10-4 guy in a 9-5 world
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.


Ninja Squirrel says... Nothing. Your nuts are already gone.
User avatar
Ikyoto
Disinformation Agent
Disinformation Agent
 
Posts: 329
Joined: Mon Oct 03, 2005 11:51 am

Postby SciFi Chick » Fri Apr 21, 2006 6:46 pm

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
User avatar
SciFi Chick
Disinformation Agent
Disinformation Agent
 
Posts: 353
Joined: Sun Jun 19, 2005 7:12 pm
Location: In the Land of Oz

Postby Ikyoto » Fri Apr 21, 2006 7:10 pm

Don't know WHAT you're talking about (walks away looking at the clouds and whistling).
just a 10-4 guy in a 9-5 world
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.


Ninja Squirrel says... Nothing. Your nuts are already gone.
User avatar
Ikyoto
Disinformation Agent
Disinformation Agent
 
Posts: 329
Joined: Mon Oct 03, 2005 11:51 am

Postby SciFi Chick » Fri Apr 21, 2006 7:12 pm

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:
User avatar
SciFi Chick
Disinformation Agent
Disinformation Agent
 
Posts: 353
Joined: Sun Jun 19, 2005 7:12 pm
Location: In the Land of Oz

Postby Ikyoto » Fri Apr 21, 2006 7:21 pm

DOH! Gimme about ten minutes. My bad.
just a 10-4 guy in a 9-5 world
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.


Ninja Squirrel says... Nothing. Your nuts are already gone.
User avatar
Ikyoto
Disinformation Agent
Disinformation Agent
 
Posts: 329
Joined: Mon Oct 03, 2005 11:51 am

Postby Ikyoto » Fri Apr 21, 2006 7:26 pm

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)
just a 10-4 guy in a 9-5 world
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.


Ninja Squirrel says... Nothing. Your nuts are already gone.
User avatar
Ikyoto
Disinformation Agent
Disinformation Agent
 
Posts: 329
Joined: Mon Oct 03, 2005 11:51 am

Postby Lance » Fri Apr 21, 2006 7:31 pm

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.)
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91394
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Ikyoto » Fri Apr 21, 2006 7:35 pm

I have alway reserved the right to fuck something up at least once a day.
just a 10-4 guy in a 9-5 world
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.


Ninja Squirrel says... Nothing. Your nuts are already gone.
User avatar
Ikyoto
Disinformation Agent
Disinformation Agent
 
Posts: 329
Joined: Mon Oct 03, 2005 11:51 am

Postby Lance » Fri Apr 21, 2006 8:35 pm

At least? Is there an upper limit?
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91394
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby SciFi Chick » Fri Apr 21, 2006 8:43 pm

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?
User avatar
SciFi Chick
Disinformation Agent
Disinformation Agent
 
Posts: 353
Joined: Sun Jun 19, 2005 7:12 pm
Location: In the Land of Oz

Postby Lance » Fri Apr 21, 2006 8:46 pm

That's how I knew he exceeded one for the day already.
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91394
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Ikyoto » Fri Apr 21, 2006 9:13 pm

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?
just a 10-4 guy in a 9-5 world
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.


Ninja Squirrel says... Nothing. Your nuts are already gone.
User avatar
Ikyoto
Disinformation Agent
Disinformation Agent
 
Posts: 329
Joined: Mon Oct 03, 2005 11:51 am

Postby Lance » Sat Apr 22, 2006 12:41 am

Oh, let's see...

It's coming up on Summer so a nice Hefeweizen would be okay.
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91394
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Next

Return to Announcements

Who is online

Users browsing this forum: No registered users and 2 guests

cron