[MODDB] eXtreme Styles mod 2.0.1

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.
Locked
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

[MODDB] eXtreme Styles mod 2.0.1

Post by Arty » Tue Mar 16, 2004 1:16 pm

This mod is fast replacement of phpBB template system and styles management.

For version 1.0 of this mod click here.

MOD Features:
- Fast templates compilation algorythm
- Fast templates execution (even if not cached)
- Cache system that doesn't use database
- Auto-check errors in templates while compiling
- Almost all features of this mod can be configured in acp
- PHP code in templates. PHP code should start with
<?php or <!-- PHP --> and end with ?> or <!-- ENDPHP -->
Short tags are not allowed. See manual for examples of code.
- Unlimited <!-- BEGIN blah --><!-- END blah --> switches in one line.
- Include other tpl files with <!-- INCLUDE file.tpl -->
- You can configure separate .tpl files for usual template.php
and eXtreme Styles template.php. It can be configured in xs.cfg
- Variable {LANG} that corresponds to current language. Can be
used to create truly multi-lingual templates (you can use this
in urls: "images/lang_{LANG}/icon_blah.gif").
- Variable {PHP} that corresponds to file extension with session
data. Can be used to avoid modding when you need to add some
url (like "somescript.{PHP}" or "script.{PHP}test=1")
Variable contains "?" or "&" at the end so you could easily
add arguments to url.
- Variable {TEMPLATE} that corresponds to current template
directory (like "templates/subSilver/"). Can be used to avoid
filenames case confusion and to fix phpBB path error when
confirm_body.tpl and message_body.tpl are used in acp.
- In admin control panel you can switch all users from one style
to another and easily change default style.

New Features since 1.0:
- Faster template compilation
- Mod has its own interface independant from current style
- Mod completely replaces phpBB styles management
- Cache management
- Import/Export styles
- Clone templates and styles
- Better install/uninstall for styles
- Templates editor. Can also edit text files and .htaccess
- Tokens IF, ELSEIF, ELSE, ENDIF, DEFINE, UNDEFINE

Download: [download] (version 2.0.1)

Demo: http://demo.phpbbstyles.com
Only styles management can be seen on demo because other features are not visible. Click on "go to admin control panel demo" on bottom. On demo forum most features are disabled and you can browse mod, but can't edit anything.

Translations:
Chinese (traditional, taiwan): [download] (thanks to BlueSky_Ray)
Danish: [download] (thanks to Coralreef / Blok)
Dutch: [download] (thanks to knol)
German: [download] (thanks to stefan2k1)
Italian: [download] (thanks to Antonio Mercurio)
Spanish: [download] (thanks to ThE KuKa)
Most translations are also included in directory "contrib".

Warning: When upgrading from 1.19 or older version you MUST delete all files admin/admin_xs_*.php

Compatibility:
- Compatible with almost all mods. Additionally it has built-in features for following mods:
- Built-in support for subtemplates mod (in template.php)
- Built-in support for usergroups mod (in template.php, code is optimized)
- Built-in support for admin templates mod (you can set admin-only styles in default style menu)
- Built-in support for all mods that add extra fields to phpbb_themes table.
- Fix for cash mod is included in directory "contrib" (thanks to vze3k59w)

Notes:
- Mod is released under GPL
- Thanks to vze3k59w for contribution

Mod is submitted to mod database and awaiting validation


Last edited by Arty on Sat Aug 28, 2004 7:05 pm, edited 38 times in total.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

BlueSky_Ray
Registered User
Posts: 84
Joined: Fri Nov 14, 2003 4:59 am
Location: Hong Kong
Contact:

Post by BlueSky_Ray » Tue Mar 16, 2004 2:53 pm

I waiting it so long time~
Waiting for 2.0 :lol:

(I have made for traditional chinese in xs_lang :P ,just waiting your 2.0)

nickv
Registered User
Posts: 16
Joined: Tue Feb 10, 2004 9:13 pm

Post by nickv » Tue Mar 16, 2004 3:03 pm

what does the version 1.0 do?... cause i never heard of it and sounds cool, plz teel me what the mod do... :roll:

BlueSky_Ray
Registered User
Posts: 84
Joined: Fri Nov 14, 2003 4:59 am
Location: Hong Kong
Contact:

Post by BlueSky_Ray » Tue Mar 16, 2004 3:17 pm

It have some problem
I have cover all the 1.0.1 files to 1.1.0
but... in the view topic have this error

Code: Select all

phpBB : Critical Error 

Could not obtain template name

DEBUG MODE

Line : 234
File : c:\appserv\www\oboard\includes\template.php 
In admin panel also lose some features...... (why?)

User avatar
Sammy Sandbag
Registered User
Posts: 184
Joined: Fri May 23, 2003 2:07 am
Location: Savannah, GA
Contact:

Post by Sammy Sandbag » Tue Mar 16, 2004 3:51 pm

nickv wrote: what does the version 1.0 do?... cause i never heard of it and sounds cool, plz teel me what the mod do... :roll:


http://www.phpbb.com/phpBB/viewtopic.php?t=125251
-Sammy

Daijoubu
Registered User
Posts: 64
Joined: Wed Aug 21, 2002 4:31 pm
Location: Montreal QC Canada
Contact:

Post by Daijoubu » Tue Mar 16, 2004 3:53 pm

Found a bug (not really ;))
The readme prefix the files to copy with xs_mod/ but you don't have it in the zip :p
Image

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty » Tue Mar 16, 2004 3:58 pm

nickv: this is link to version 1.0 that describes what this mod does

BlueSky_Ray: can you please tell me your forum configuration? i mean phpBB version, style name, mod settings. about admin control panel - i removed some settings and later it will be replaced by different configuration, but for now on it is fixed.

Daijoubu: thanks. i'll fix it.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty » Tue Mar 16, 2004 4:18 pm

BlueSky_Ray: can you do the following.

Open includes/template.php, find this:

Code: Select all

message_die(CRITICAL_ERROR, 'Could not obtain template name', '', __LINE__, __FILE__);
and replace with this:

Code: Select all

			$msg = 'Could not obtain template name.<br /><br />Debug info:<br />';
			$msg .= 'root = ' . $this->root . '<br />';
			$msg .= 'tpldir = ' . $this->tpldir . '<br />';
			$msg .= 'tpl = ' . $this->tpl . '<br />';
			message_die(CRITICAL_ERROR, $msg, '', __LINE__, __FILE__);
then open forum and it will show you same error, but this time error will contain debug info. Please tell me that debug info.

...and please don't forget forum configuration :wink:
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric » Tue Mar 16, 2004 10:10 pm

Are you going to add or have added this assign_block_var_from_handle?
Eric

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty » Tue Mar 16, 2004 10:41 pm

no, i didn't add any new functions to template class
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

BlueSky_Ray
Registered User
Posts: 84
Joined: Fri Nov 14, 2003 4:59 am
Location: Hong Kong
Contact:

Post by BlueSky_Ray » Wed Mar 17, 2004 1:54 am

Code: Select all

phpBB : Critical Error 

Could not obtain template name.

Debug info:
root = .
tpldir = ./templates/
tpl = 


DEBUG MODE

Line : 238
File : c:\appserv\www\oboard\includes\template.php
Still Error....

If i remove the debug

Code: Select all

		if(empty($this->tpl))
		{
			$msg = 'Could not obtain template name.<br /><br />Debug info:<br />'; 
			$msg .= 'root = ' . $this->root . '<br />'; 
			$msg .= 'tpldir = ' . $this->tpldir . '<br />'; 
			$msg .= 'tpl = ' . $this->tpl . '<br />'; 
			message_die(CRITICAL_ERROR, $msg, '', __LINE__, __FILE__);
		}
It display

Code: Select all

Template->make_filename(): Error - template file not found: cash_viewtopic.tpl
Not support Cash Mod???

Than i add some error msg in debug

Code: Select all

			echo "$dir <br />";
$dir still only is "."

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty » Wed Mar 17, 2004 9:46 am

thanks for info. i'll fix it
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

User avatar
Rookie7
Registered User
Posts: 189
Joined: Mon Mar 10, 2003 3:32 pm
Contact:

Post by Rookie7 » Wed Mar 17, 2004 5:46 pm

Woot! Can't wait for 2.0. :D

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty » Thu Mar 18, 2004 1:20 pm

Updated to 1.11

Download: http://files.phpbbstyles.com/ca/xs_mod.111.zip

Changes:
- mod now caches all tpl files, including those that use non-standard directory structure
(this means mod should cache files with phpnuke and all mods that use weird tpl directories).
- rebuilt mod settings page
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

masterdavid
Registered User
Posts: 222
Joined: Tue Jul 08, 2003 1:26 pm

Post by masterdavid » Thu Mar 18, 2004 4:40 pm

Something good is still getting better. I'll be running tests with this new version and if it seems stable enough, I will include it in the next release of IntegraMOD. Again, I hope it is ok CyberAlien. :D

Locked

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