MODs and templates discussion

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
mitsubishi
Registered User
Posts: 527
Joined: Fri Aug 31, 2001 6:25 am
Location: UK
Contact:

MODs and templates discussion

Post by mitsubishi »

In our latest attempts to perfect the mod template, the issue of templates has come up again. Template alterations are slightly different to code alterations in that the code is always the same, but the template is not. So we come to the issue of how to deal with them... In my opinion template changes should come last, after code changes and carry a note that they are for subSilver. Also for larger mods a table should be offered in the author notes (or elsewhere) explaining each new template var/directive so that it can be ported easier to other templates. My suggestion for the note would be:
##### - Template alterations - ####
# Directions are given for SubSilver, use as a guide for other templates #


Any thoughts from mod authors/users on these and related issues?

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 »

I have been using this...

Code: Select all

##
## --- NOTE: You will have to make this change to ALL themes you have        ---
## ---        installed.  I use "subSilver" as an example.                   ---
##
... BTW, I do plan on making EasyMod update ALL subSilver based templates that are installed.

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

Shannado
Registered User
Posts: 303
Joined: Mon Mar 25, 2002 6:54 pm
Location: Drenthe, The Netherlands
Contact:

What must be used for the OPEN-action

Post by Shannado »

Which of the two is the correct one:

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
#  

phpBB2/admin/admin_board.php 
OR

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
#  

admin/admin_board.php 
Greets,
Sven
Cane Corso Forum

User avatar
Brewjah
Registered User
Posts: 265
Joined: Sun Mar 10, 2002 5:37 pm
Location: I think im lost..
Contact:

Post by Brewjah »

2nd one :D
Filling in that ugly white noise with a bunch of black static..

Rocketeer
Registered User
Posts: 108
Joined: Thu Sep 06, 2001 11:43 pm
Location: Coventry, UK
Contact:

Post by Rocketeer »

How should we be doing database queries in the Mod instructions?

At the moment I am doing this:

Code: Select all

# 
#-----[ DATABASE UPDATE ]---------------------------------
# Note:  Replace phpBB_ with whatever forum prefix you use.

ALTER TABLE phpBB_ranks ADD rank_user TINYINT(1) DEFAULT '0';
ALTER TABLE phpBB_users ADD user_special_rank INT(11) DEFAULT '0';
However, I know some people provide a simple PHP script to do all the necessary database updates... and I kind of feel like my script ought to cope with missing fields and add them if necessary...

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 »

Rocketeer wrote: How should we be doing database queries in the Mod instructions?


This is a much larger issue actually. There is no standardizations for schema alterations and their really needs to be. A system for altering ALL the supported DB's needs to be agreed upon. Once this is done, I can incorporate it into EasyMod :D



Also, there is the issue of language updates. Currently in my scripts, I use...

Code: Select all

##
## --- NOTE: You will have to make this change to ALL languages that you    ---
## ---       plan to support on your board.  I use "English" as an example  ---
##
...and BTW, I hope to have EasyMod work for all languages installed, but there may be some issues with this :roll:

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB »

Nuttzy99 wrote: This is a much larger issue actually. There is no standardizations for schema alterations and their really needs to be. A system for altering ALL the supported DB's needs to be agreed upon. Once this is done, I can incorporate it into EasyMod



Nuttzy, please explain what you mean by this.


What is this larger issue?



Later.

User avatar
Brewjah
Registered User
Posts: 265
Joined: Sun Mar 10, 2002 5:37 pm
Location: I think im lost..
Contact:

Post by Brewjah »

if youre creating a whole new page then you would specify it in the MODs Template..

Code: Select all

############################################################## 
## Mod Title: name_goes_here 
## Mod Version: x.x.x 
## Author: your_name < your_email > your_url 
## Description: some_description_goes_here 
## 
## Installation Level: (easy/moderate/advanced) 
## Installation Time: x Minutes 
## Files To Edit: file_1, file_2, file_3, etc 
## Included Files: (n/a, or list of included/required files) 
############################################################## 

under the last portion (Included Files)
then in the Authors Note Section tell the user to upload that file to such n such folder


the new page should have the same style header as all the phpBB php files..

Code: Select all

/***************************************************************************
 *                                  faq.php
 *                            -------------------
 *   begin                : Sunday, Jul 8, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: faq.php,v 1.14 2002/03/31 00:06:33 psotfx Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/
Filling in that ugly white noise with a bunch of black static..

Darlantan
Registered User
Posts: 369
Joined: Wed Mar 13, 2002 1:37 pm

Post by Darlantan »

I'd like to comment Shannado and Brewjah.

If the 2nd way of writing the OPEN-block is correct, then why
has nobody fixxed this in the Official MOD template tutorial?

In the tutorial it says:

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 

/phpBB2/templates/subSilver/overall_body.tpl 
which infact is different from both of Shannado's options.
I used the above, cause that's what the tutorial said,
though personally I think the most correct syntax would
be:

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 

./templates/subSilver/overall_body.tpl 

User avatar
smithy_dll
Former Team Member
Posts: 7630
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith
Contact:

Post by smithy_dll »

assume your starting in the root phpbb dir whatever it maybe

for example
includes/bbcode.php
not
phpBB2/includes/bbcode.php

this is because people have different directories with phpBB installed to not just the recommended, phpBB2.

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 »

Davidls wrote: includes/bbcode.php


I agree with David on this and this is also the way EasyMod works.

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

JuniorZ
Registered User
Posts: 188
Joined: Wed Apr 24, 2002 10:11 pm
Location: http://localhost/
Contact:

Post by JuniorZ »

Too
SuportephpBB.org
Sorry by the Horrible English. ;)

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 »

Refer to the following thread for Mod discussion:
http://www.phpbb.com/phpBB/viewtopic.php?t=28002


Looks like this thread has run out of steam a long time ago. Unstickying and locking.

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

Post Reply

Return to “[2.0.x] MODs in Development”