rejetto forum
May 24, 2012, 02:02:30 PM *
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] 2
  Print  
Author Topic: %folder-name%  (Read 6295 times)
0 Members and 1 Guest are viewing this topic.
Alons0
Tireless poster
****
Offline Offline

Bulgaria Bulgaria

Posts: 197



View Profile WWW Email
« on: January 08, 2007, 02:18:48 PM »

rejetto when i paste %folder-name% in title, it displays the folder(ex. Music). But when I open root directory it displays "/". Rejetto please remove "/' from the root. I wanna %folder-name% to work only in folder(without "/" in root directory)
« Last Edit: January 08, 2007, 03:00:08 PM by Alons0 » Logged

rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #1 on: January 08, 2007, 06:56:50 PM »

rejetto when i paste %folder-name% in title, it displays the folder(ex. Music). But when I open root directory it displays "/". Rejetto please remove "/' from the root. I wanna %folder-name% to work only in folder(without "/" in root directory)

unsure this would be a valid behaviour... what if would resolve to (root) ?
Logged
Flynsarmy
Experienced poster
***
Offline Offline

Afghanistan Afghanistan

Posts: 92


DENIED!


View Profile WWW
« Reply #2 on: January 08, 2007, 07:20:44 PM »

Having (root) written there would probably be pretty ugly. Maybe Home instead?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #3 on: January 09, 2007, 05:41:12 AM »

yes, (home), sorry, i was actually thinking that as you can see in the to-do-list Smiley
Logged
Alons0
Tireless poster
****
Offline Offline

Bulgaria Bulgaria

Posts: 197



View Profile WWW Email
« Reply #4 on: January 13, 2007, 05:57:21 AM »

yes, (home), sorry, i was actually thinking that as you can see in the to-do-list Smiley
Not to be (Home), and Home! Please tell me when it will works Shocked
Logged

rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #5 on: January 13, 2007, 06:12:44 AM »

yes, (home), sorry, i was actually thinking that as you can see in the to-do-list Smiley
Not to be (Home), and Home!

i don't understand your last reply Huh?
Logged
rejetto forum
« Reply #5 on: January 13, 2007, 06:12:44 AM »

Do you like this software? Consider even $2
 Logged
Alons0
Tireless poster
****
Offline Offline

Bulgaria Bulgaria

Posts: 197



View Profile WWW Email
« Reply #6 on: January 13, 2007, 11:01:22 AM »

I mean not to be in brackets Roll Eyes
Logged

Giant Eagle
Insane poster
*****
Offline Offline

Netherlands Netherlands

Posts: 533


>=3 RAWR!

no.body056@gmail.com
View Profile WWW
« Reply #7 on: January 13, 2007, 11:03:17 AM »

You can do this with javascript Smiley

Code:
<script language="javascript">
var home='%folder%';
if (home=='/')
    {
document.write ('<title>FileServer :: Home</title>')
    }
else
    {
document.write ('<title>FileServer :: %folder%</title>')
    }
</script>

Just replace this with the current <title> - </title> tags inside the <head> section
Logged

Rest in peace 500mhz server, you served me well...
New 1500mhz server DOA'ed on me >_>
New 2400mhz server up and running again Grin

rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #8 on: January 13, 2007, 11:13:09 AM »

There must be a way to understand this "home" thing is a special place, and not the name of the folder. That's why the brackets.
With no brackets, i think it is better to be an empty string.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #9 on: January 13, 2007, 11:16:11 AM »

Code:
<script language="javascript">
var home='%folder%';
if (home=='/')
    {
document.write ('<title>FileServer :: Home</title>')
    }
else
    {
document.write ('<title>FileServer :: %folder%</title>')
    }
</script>

or simpler
Code:
document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');
Logged
Giant Eagle
Insane poster
*****
Offline Offline

Netherlands Netherlands

Posts: 533


>=3 RAWR!

no.body056@gmail.com
View Profile WWW
« Reply #10 on: January 13, 2007, 11:19:42 AM »

or simpler
Code:
document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');

riiiight...

From now on  Roll Eyes, just listen to Rejetto
Logged

Rest in peace 500mhz server, you served me well...
New 1500mhz server DOA'ed on me >_>
New 2400mhz server up and running again Grin

Alons0
Tireless poster
****
Offline Offline

Bulgaria Bulgaria

Posts: 197



View Profile WWW Email
« Reply #11 on: January 13, 2007, 11:20:46 AM »

There must be a way to understand this "home" thing is a special place, and not the name of the folder. That's why the brackets.
With no brackets, i think it is better to be an empty string.
..::%folder-name%::.. , in title section, will display ..::Home::.. in root and i dont't want to be in brackets Cry
Logged

Alons0
Tireless poster
****
Offline Offline

Bulgaria Bulgaria

Posts: 197



View Profile WWW Email
« Reply #12 on: January 13, 2007, 11:32:04 AM »

or simpler
Code:
document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');
where to paste it?
Logged

Giant Eagle
Insane poster
*****
Offline Offline

Netherlands Netherlands

Posts: 533


>=3 RAWR!

no.body056@gmail.com
View Profile WWW
« Reply #13 on: January 13, 2007, 11:33:24 AM »

Code:
<script language="javascript">
document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');
</script>

replace the current <title> code inside your template with the code shown above. Smiley
« Last Edit: January 13, 2007, 11:35:50 AM by Giant Eagle » Logged

Rest in peace 500mhz server, you served me well...
New 1500mhz server DOA'ed on me >_>
New 2400mhz server up and running again Grin

Alons0
Tireless poster
****
Offline Offline

Bulgaria Bulgaria

Posts: 197



View Profile WWW Email
« Reply #14 on: January 23, 2007, 03:24:29 AM »

Rejetto please do this: %folder-name% in title in root directory to display Home without brackets. Pleaseeeeeeeeeee
P.S. I don't want to use java script for title
Logged

Pages: [1] 2
  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, 03:53:07 PM