Help with directory listing

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
SatanCow
-


Joined: 26 Aug 2003
Posts: 2

PostPosted: Sat May 20, 2006 3:33 am    Post subject: Help with directory listing Reply with quote

First off I think the ability to change the look of the generic directory listing in abyss is a really kewl feature. Unfortunatly I'm a little lost in trying to do what it is that I would like to do.

I want to leave the directory as it is, no major changes, just change the font and color of links/text/background.

The code I'm trying to use is this"

Code:
<style type="text/css">
<!--
body,td,th {
   font-family: Arial Black;
   font-size: 12px;
   color: #FFFFFF;
}
body {
   background-color: #000000;
}
a:link {
   color: #FF0000;
   text-decoration: none;
}
a:visited {
   text-decoration: none;
   color: #FF0000;
}
a:hover {
   text-decoration: none;
   color: #999999;
}
a:active {
   text-decoration: none;
   color: #999999;
}
-->
</style>


Unfortunatly all this does is display a black page when i place it in the head section in the directory listing configuration. Could someone provide me with the generic code and an idea of how to both merge it with that style code and where in the configuration on that page to place each section?

Thank you in advance for any help.
Andy
Back to top View user's profile Send private message
abyssisthebest
-


Joined: 30 Jun 2005
Posts: 319
Location: Boston, UK

PostPosted: Sat May 20, 2006 11:51 am    Post subject: Reply with quote

That just does th style sheet, abyss needs to know how to make a Directory listing if you are using 'From Script' or 'From file' you need to make the rest of the script fille. Look in the users guide for more information
_________________
My online Portfolio
Back to top View user's profile Send private message Send e-mail MSN Messenger
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Mon May 22, 2006 8:50 am    Post subject: Reply with quote

I suggest that you prefix that header code with
Code:
<HTML>
<HEAD>


Next, be sure if you want a black background, else modify these lines
Code:
body {
   background-color: #000000;
}

to something like
Code:
body {
   background-color: #888888;
}


Then suffix that header with
Code:
</HEAD>
     <BODY>
       <TABLE BORDER=0>
         <TR>
           <TD>Name</TD>
           <TD>Size</TD>
           <TD>Date</TD>
        <TD>MIME Type</TD>
         </TR>


Then, copy the sample Body Line and Footer from Abyss' help files. Hint: you can get them from http://localhost:9999/doc/dirlist.html
_________________

http://home.loloyd.com/ is online if the logo graphic at left is showing.
Back to top View user's profile Send private message Visit poster's website
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Wed Jun 07, 2006 3:32 am    Post subject: Custom Directory Listing Reply with quote

Hi there Satancow. interesting name...

Assuming you're using Abyss X1, the setup page is located at http://127.0.0.1:9999/hosts/host@0/edit/dirlist.

Andy at abyssunderground.co.uk has a really nice script for directory listings.
Here it is, integrated with your CSS code.

Type:
Code:
From Template

MIME type:
Code:
text/html; charset=UTF-8

Header:
Code:
<HTML>
<HEAD>
<TITLE>Directory Listing of <!-- #echo var="URL" encoding="reverse-url" --></TITLE>
<style type="text/css">
<!--
body,td,th {
   font-family: Arial Black;
   font-size: 12px;
   color: #FFFFFF;
}
body {
   background-color: #000000;
}
a:link {
   color: #FF0000;
   text-decoration: none;
}
a:visited {
   text-decoration: none;
   color: #FF0000;
}
a:hover {
   text-decoration: none;
   color: #999999;
}
a:active {
   text-decoration: none;
   color: #999999;
}
-->
</style>
</HEAD>
<BODY bgcolor="#000080" text="#FFFFFF">
<P>
<font size="5" face="tahoma">
<b> List of files in: <!-- #echo var="URL" --><br>
Number of files/folders: <!-- #echo var="DIRLIST_FILES_COUNT" --></b>
</font>
</p>
<p>
<font size="4" face="tahoma">
PLEASE RIGHT CLICK AND <b><u><font color="yellow">'SAVE TARGET AS'</font></u></b> TO SAVE FILES.<BR>
CLICKING THEM WILL OPEN, NOT SAVE!
</font></p>
<DIV ID="message">
<font color="yellow" size="4" face="tahoma"><b>
Loading List... This might take a few seconds.
</b></font>
</DIV>
<p>
<SCRIPT>
function off(){
document.all.message.innerHTML = "<font color='lime' size='4' face='tahoma'>List Loaded</font>";
}
</SCRIPT>
</P>
<TABLE BORDER=1 cellpadding=0 cellspacing=0 width=850>
  <TR>
    <TD width="750"><b>Name</TD>
    <TD width="100"><b>Size</TD>
  </TR>

Body Line:
Code:
<TR>
    <TD><A HREF="<!-- #echo var="DIRLIST_FILE_URL" -->" title="Please right click and 'Save Target As' to download this item."><!-- #echo var="DIRLIST_FILE_NAME" --></A></font></TD>
    <TD><!-- #echo var="DIRLIST_FILE_SIZE" --></font></TD>
  </TR>

Footer:
Code:
</TABLE>
<P>
<img src="/blank.gif" OnLoad="off()"><font color="aqua" size="4" face="tahoma"><b>End Of Listing</FONT>
</P>
</BODY>
</HTML>


Please note that you will need to place a file, blank.gif, in your server's root directory for this script.

If this script helps you, please post!
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group