Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Off Topic Discussions > Webmasters Area

Notices

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 09-29-2012, 06:47 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 109,479
Tequila is on a distinguished road
Exclamation Mysidia Project - A new Look

Final New Home - MysidiaAdvanced.tk

:3
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]

Last edited by Tequila; 11-26-2013 at 03:23 PM.
  #2  
Old 09-30-2012, 01:29 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 486,851
Hall of Famer is on a distinguished road
Default

Oh it looks really nice Nyxi, thanks for doing this. ^^
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #3  
Old 09-30-2012, 10:39 AM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 109,479
Tequila is on a distinguished road
Default

Thanks! I've also posted a couple of threads with information like this one with some questions I'd like answered and a second with stuff I'd like to be able to do with the proposed new template system.

All feedback is welcome!
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
  #4  
Old 09-30-2012, 10:18 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 486,851
Hall of Famer is on a distinguished road
Default

Oh that's so cool, new template system? Actually I am considering using Smarty for Mys v1.3.3 and onward, so it may be a good starting point?
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #5  
Old 09-30-2012, 11:00 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 109,479
Tequila is on a distinguished road
Default

Quote:
Originally Posted by Hall of Famer View Post
Oh that's so cool, new template system? Actually I am considering using Smarty for Mys v1.3.3 and onward, so it may be a good starting point?
It's smarty that I'm working on. ;3 I'd love to be able to split parts of the page up depending on where we can plug the .tpl files. ;3
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
  #6  
Old 10-01-2012, 12:31 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 486,851
Hall of Famer is on a distinguished road
Default

I see. Hows your experience with Smarty so far? Converting old template system into Smarty template system should be easy, although you may encounter some issues using smarty's Smarty::assign() method if you aint quite familiar with OOP.

Theoretically three .tpl files should be sufficient for this script, one for the main theme, one for ACP theme, and another for the install wizard theme. Of course custom themes may define their own .tpl files, so the number may vary if we include old themes such as Green and Elements in official package.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #7  
Old 10-01-2012, 10:30 AM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 109,479
Tequila is on a distinguished road
Default

I figured we could set a main .tpl with different sections defined by sub .tpls. I'll take a look at other systems with a similar setup first though.

Although, this seems promising: http://www.smarty.net/inheritance

Quote:
layout.tpl
PHP Code:
<html>
<
head>
  <
title>{block name=title}Default Page Title{/block}</title>
</
head>
<
body>
{
block name=body}{/block}
</
body>
</
html
mypage.tpl
PHP Code:
{extends file="layout.tpl"}
{
block name=title}My Page Title{/block}
{
block name=body}My HTML Page Body goes here{/block
output of mypage.tpl
PHP Code:
<html>
<
head>
  <
title>My Page Title</title>
</
head>
<
body>
My HTML Page Body goes here
</body>
</
html
Quote:
Instead of managing our page layout in several files (header.tpl, footer.tpl, etc.), we now manage it in one cohesive template (layout.tpl), and define the changeable blocks of content with {block ...} tags. Now you can simply extend the layout.tpl (which basically copies it) and then customize any of the defined block elements. You can have any number of child templates chained together, thus the concept of inheritance.
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]

Last edited by Tequila; 10-01-2012 at 11:02 AM.
  #8  
Old 10-01-2012, 12:07 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 486,851
Hall of Famer is on a distinguished road
Default

I see, this sounds like a good idea to me. This way all custom templates can extend a main .tpl file and define their own header and body with less code.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #9  
Old 10-02-2012, 06:53 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 109,479
Tequila is on a distinguished road
Default

Yep. ;3

I'll keep researching it. ;3 After all my bug brought home an "I wasn't all that good at school" slip today. It's a boring night for her. Maths, and Words, and things like that.
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
  #10  
Old 10-02-2012, 07:15 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 109,479
Tequila is on a distinguished road
Default

Anyone Want to Join?
I'm looking for helpers and aspiring coders to join up. I'll even provide hosting for your mods that need external files.

You can give feedback on projects that I'm working on as well. I won't post all of them here now. ;3
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]

Last edited by Tequila; 10-02-2012 at 07:29 PM.
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Cobalt EzzyAlpha Adoptables Buzz 4 11-11-2013 08:40 PM
Project Nyoka Rebsingh Webmasters Area 0 02-17-2012 01:02 AM
My Little Pony FiM Project...? Shex Staff Central 10 11-11-2011 09:15 PM
Looking for modder to help with project. Flametail Newcomer Center 2 10-17-2011 12:48 PM
The Calinmu Project Linkin-Dreamer Adoptables Buzz 9 09-29-2011 04:47 PM


All times are GMT -5. The time now is 03:48 PM.

Currently Active Users: 953 (0 members and 953 guests)
Threads: 4,081, Posts: 32,029, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636