rejetto forum
May 25, 2012, 04:58:54 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Testing build #192  (Read 5468 times)
0 Members and 3 Guests are viewing this topic.
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« on: July 17, 2008, 06:46:37 PM »

Hey templaters!
2 big news in this build, and the best thing is that they required me just few minutes to make. Holy sweat.

Your templates are now easier to install.
Tell users to just drag&drop the tpl file over HFS window.
No need to tell what to answer to the Install this template? on your screen.

More, a new {.mime.} macro to decide what's the kind of content you are going to deliver.
Do you have a [css] section?
Just put {.mime|text/css.} somewhere in it, and people with wrong mime settings won't complain with you anymore.
Are you going to deliver some RSS content?
Don't forget to put {.mime|application/rss+xml.} and the world will be a better place.

And now let's pray against the bugs.  Lips Sealed

download @ www.dovedove.it/hfs/hfs192.exe

what's new
+ template installation through drag&drop
+ new template macro: mime
- "Edit" broken in build #191 (didn't work with spaces in the editor path)
- "Browse it" wasn't working with links http://www.rejetto.com/forum/index.php?topic=6010.msg1035702#msg1035702
- "hints for newcomers" has been extended to more hints   
Logged
ydwxb
Regular poster
**
Offline Offline

China China

Posts: 21


View Profile
« Reply #1 on: July 17, 2008, 11:03:19 PM »

hfs2.3B192汉化版

* hfs2.3b192随波汉化版.zip (578.71 KB - downloaded 262 times.)
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #2 on: July 18, 2008, 01:09:55 AM »

WooW !, Cheesy fun and useful these new features !
Good job!

Quote
And now let's pray against the bugs. 

If prayer against bugs is ineffective ... Some grigris Wink


* Grigri.JPG (23.52 KB, 300x400 - viewed 402 times.)
« Last Edit: July 18, 2008, 02:37:54 AM by SilentPliz » Logged
maverick
Insane poster
*****
Offline Offline

Posts: 1056


Computer Solutions


View Profile
« Reply #3 on: July 18, 2008, 02:18:23 AM »

Good job rejetto!  I see no problems.  Smiley
Logged

maverick
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #4 on: July 21, 2008, 08:23:04 AM »

FUNCTION LOADCFG()

OLD:
Quote
ini:=loadFile(cfgPath+CFG_FILE);
if ini > '' then
  begin
  saveMode:=SM_FILE;
  moveLegacyTpl(loadFile(cfgPath+TPL_FILE));  //Do not work if hfs.tpl is destroyed before the launch of hfs
  exit;
  end;
NEW:
Quote
ini:=loadFile(cfgPath+CFG_FILE);
if ini > '' then
  begin
  if fileExists(cfgPath+TPL_FILE) then tpl:=loadFile(cfgPath+TPL_FILE) // load the hfs.tpl if exist
  else begin                   // else load the internal template
        tpl:=defaulttpl;
        tplFilename:='';  //force to create and save to TPL_FILE
        end;

  saveMode:=SM_FILE;
  moveLegacyTpl(tpl); // save the current tpl
  exit;
  end;
At home, I work with a more pushed version, but here it is the minimum necessities.
just for information:
Quote
function loadCfg(var ini,tpl:string):boolean;
  // until 2.2 the template could be kept in the registry, so we need to move it now.
  // returns true if the registry source can be deleted
  function moveLegacyTpl(tpl:string):boolean; //189
  begin
  result:=FALSE;
  if tpl = '' then exit;
  if tplfilename='' then tplfilename:= cfgPath+TPL_FILE;
  try
  saveFile(cfgPath+TPL_FILE, tpl);  //create always hfs.tpl for editor
  //**result:= // until the version is stable, we should not delete the registry anyway
  except result:=false; end;
  end; // moveLegacyTpl
begin
result:=TRUE;
ipsEverConnected.text:=loadfile(IPS_FILE);
ini:=loadFile(cfgPath+CFG_FILE);
if ini > '' then
  begin
  if fileExists(cfgPath+TPL_FILE) then tpl:=loadFile(cfgPath+TPL_FILE) // load the hfs.tpl
  else if fileExists(tplfilename) then tpl:=loadFile(tplfilename)   // else load the tpl filename file
  else                    // else load the internal template
   begin
   tpl:=defaulttpl;
   tplFilename:='';  //force to create  TPL_FILE
   end;
  saveMode:=SM_FILE;
  moveLegacyTpl(tpl); //189
  exit;
  end;
« Last Edit: July 21, 2008, 08:58:12 AM by mars » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #5 on: July 21, 2008, 08:51:20 AM »

if ini > '' then
   the file exists for sure, because we just loaded it!

Wink
Logged
rejetto forum
« Reply #5 on: July 21, 2008, 08:51:20 AM »

Do you like this software? Consider even $2
 Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #6 on: July 21, 2008, 09:20:31 AM »

 Wink

1) load CFG_FILE , that ok if  hfs.ini exist

2) if ini>'' is true, if 1) is true, and tplfilename='hfs.tpl'

3) load from TPL_FILE   false if hfs.tpl does'nt exist 
then moveLegacyTpl(loadFile(cfgPath+TPL_FILE)); equivalent to moveLegacyTpl('');

4) call function

Quote
function moveLegacyTpl(tpl:string):boolean;
 ...
 if (tplFilename > '') or (tpl = '') then exit;

somewhere tplfilename (in hfs.ini) can  have as value  '.....\hfs.tpl' but this file has no existence, here is the problem, even if this is compensated by

Quote
if fileExists(tplFilename) then
    if getMtime(tplFilename) > tplLast then
      begin
      tplLast:=getMtime(tplFilename);
      setTplText(loadFile(tplFilename));
      end
    else
  else
    if tplLast <> 0 then
      begin
      tplLast:=0; // we have no modified-time in this case, but this will stop the refresh
      setTplText(defaultTpl);
      end;

I think that it is better necessary to avoid that a grain of sand checks the machine, with a parameter which would not be defined just in time. Wink
Logged
mmf2
Regular poster
**
Offline Offline

China China

Posts: 29


View Profile Email
« Reply #7 on: July 21, 2008, 09:56:20 AM »

login bug chinesc name look:

宫 =  [��ѧ��]

 Huh?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #8 on: July 21, 2008, 03:05:39 PM »

sorry mars, i was in a hurry and missed the point.
now i had a deeper look at your suggestion, and still don't see the problem with the current code. try rephrasing.
Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #9 on: July 22, 2008, 04:52:05 PM »

For those that don't peruse the Template board often, RAWR-Template, ToG, and Terayon have been updated using this beta of HFS.

Follow this to get to the RAWR-Designs board:
http://www.rejetto.com/forum/index.php?board=34.0
« Last Edit: July 22, 2008, 04:54:10 PM by That_Stevens_Guy » Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 23, 2012, 08:59:53 AM
anything