Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 10-30-2004, 09:24 PM
Connie
Guest
 
Posts: n/a
Separation of text and script

Hello!

I am just experimenting with this script and I really find it quite flawless and positive

But as I am german, I am a little unhappy about the embedded text in the index.php, which makes it necessary to modify the script instead of using a language-file

I translated the language-file, but I had to modify the script as well

will there be a more strict separation in the future?

all the best, Connie
( I cannot show my template now, because it is too ugly for the moment)
Reply With Quote
  #2  
Old 11-01-2004, 07:12 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Connie, I'm trying to get the script output as little as possible.

In what areas (except for admin) do the script output text?
I thought I took care of most of the items, if not all.

This applies to version 1.2 btw.

// punK
__________________
icq: 66760929
Reply With Quote
  #3  
Old 11-01-2004, 07:01 PM
Connie
Guest
 
Posts: n/a
Text separation

Hi!

I just scrolled through index.php (version 1.2) and I have 3 major points to show:

1) text entered in the script directly, not via variable from language file

Line 333:
onChange='self.location.href=this.options[this.selectedIndex].value;'><option value=''>$lang_browse_select_category</option><option value='?x=browse&category='>All</option>";

: the word "All"

Line 390:
$tpl = ereg_replace("<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&amp ;amp;showimage=$image_id','Comments','width=480,he ight=540');\">Comments</a>",$tpl);

: the word "Comments"


2) fix dateformat, not via configuration

Line 44:
$datetime = date("Y-m-d H:i:s");

: date format

Line 227:
<br />$comment_name @ $comment_datetime

: should be variable, who likes so long dateformats in the textoutput?

Line 411:
$datetime = date("Y-m-d H:i:s");

: should be a variable date format again

3) fix integrated language file

Line 14:
require("language/lang-english.php");

: should be a variable from administration

greetings,

Connie
Reply With Quote
  #4  
Old 11-02-2004, 07:14 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Thanks for the pointers. I'll look it up for next version.

// punK
__________________
icq: 66760929
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:07 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs