If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Question About Top Downloads  XML
Forum Index » Support Forum
Author Message
Anonymous



Well, I went threw looking to see if this was asked already, and I didn't see it, so here I am... sorry if someone has asked this already... BUT..... I need a little assistance please....

I have installed the Top Downloads onto my server, program is working GREAT btw!! But I do have 1 issue.... I am able to get into the admin, see the download count and everything seems to be working well until I try to place the counter on the page where the download is so that others can see the count.

I placed the java script as said in the HTML document and made sure my modes where changed accordingly (following the readme file instructions) on the FTP. But the count isn't showing up on the page at all.... I went directly to the URL that this count is coming from and it's a blank page...

Any help would be welcomed.

Thanks in advance,

Laura
Owner of www.WWASims.com
SAS
Beginner

Joined: 14/01/2002 16:25:33
Messages: 9
Offline

yes i have the exact same problem, no solution yet.

Donald Marshall
IGI 2 Covert Strike Fan Site
DeltaForceCommand
Flashpoint Site
[Email] [WWW]
Anonymous



Yes, I've got the same prob and haven't found a solution yet. I tried both JS ans SSI - none works. The script itself is great and I like it so much - maybe this sad bug (if it is) will be fixed in the future version of Top Downloads?

White_Coffee
http://www.bluecatsgraphics.com/
Anonymous



Hey I have the same problem. No moatter what I try nothing works! I worte support about it but no response, so sho knows.

Good luck!

webmaster@jj-facepalace.com

www.jj-facepalace.com
Webmaster
Site Admin
[Avatar]

Joined: 10/01/2002 23:32:17
Messages: 82
Offline

Here are some demo pages for testing purpose

Javascript:
http://www.proxy2.de/demo/t_demo.html

SSI:
http://www.proxy2.de/demo/t_ssi_demo.shtml

SSI Source:
http://www.proxy2.de/demo/t_ssi_demo.html
[Email] [WWW]
Anonymous



Well, your SSI demo page doesn't show anything
Your js demo seems to work just fine, unlike mine. I can't get it to show the proper table for either the js or SSI functions. This is for showing the top downloads table.
For you others, if using SSI the page must have either a .shtm or .shtml suffix.
Anonymous



Okay, I had a look see in stat_js.pl. Here's the solution:
Change
$basedat = "track.txt";
to
$basedat = "log.txt";

You only use stat_js.pl in .htm or .html docs !!
Like this: <script language="JavaScript" src="http://www.seigmen.org/cgi-bin/downloads/stat_js.pl?top=15"></script>

The SSI way shoul work just fine as it is, as long as you use the status.pl file to get the info from, like this: <!--#include virtual="/cgi-bin/downloads/status.pl?top=15" -->
, and as long as you've got a page ending with .shtm or .shtml[/b]
malmklang
Newbie
[Avatar]

Joined: 02/04/2002 04:39:58
Messages: 1
Location: Norway
Offline

Just a little "hack" for displaying top download table listings as hyperlinks.

SSI
In status.pl search for
print " <tr>\n <td><font $font_size>$descript_array{$file_id}</font></td>\n <td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td>\n </tr>\n";
}
else {
print " <tr>\n <td><font $font_size>$file_id</font></td>\n <td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td>\n </tr>\n";

Replace it with
print " <tr>\n <td><font $font_size><a href=\"path/to/download.pl?file=$file_id\">$descript_array{$file_id}</a></font></td>\n <td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td>\n </tr>\n";
}
else {
print " <tr>\n <td><font $font_size><a href=\"path/to/download.pl?file=$file_id\">$file_id</a></font></td>\n <td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td>\n </tr>\n";

-------------------------------------

JavaScript
In stat_js.pl search for
print "document.write('<tr><td><font $font_size>$descript_array{$file_id}</font></td><td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td></tr>');\n";
}
else {
print "document.write('<tr><td><font $font_size>$file_id</font></td><td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td></tr>');\n";

Replace with
print "document.write('<tr><td><font $font_size><a href=\"path/to/download.pl?file=$file_id\">$descript_array{$file_id}</a></font></td><td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td></tr>');\n";
}
else {
print "document.write('<tr><td><font $font_size><a href=\"path/to/download.pl?file=$file_id\">$file_id</a></font></td><td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td></tr>');\n";

Replace path/to/ with the relative or full path to your download.pl file
In my case the link looks like this: <a href=\"cgi-bin/downloads/download.pl?file=$file_id\">

Now your Top Download table listings should be hyperlinks for both JS and SSI inclusion.

Oh, you might wanna make backups of your files _before_ applying this hack, just in case something goes wrong

Leave you're engines running while we stop to steal the sky..
[WWW]
Anonymous



Thanks for the little 'hack'
Anonymous



----<<<<<<<<Q1>>>>>>>>----

sorry, but it's not working and i don't know why.
error - [an error occurred while processing this directive]
http://everydaysoft.bip.ru/
mailto:seb_ua@ukr.net

this my changing:
print " <tr>\n <td><font $font_size><a href=\"http://everydaysoft.bip.ru/cgi-bin/download.pl?file=$file_id\">$descript_array{$file_id}</a></font></td>\n <td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td>\n </tr>\n";
}
else {
print " <tr>\n <td><font $font_size><a href=\"http://everydaysoft.bip.ru/cgi-bin/download.pl?file=$file_id\">$file_id</a></font></td>\n <td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td>\n </tr>\n";
}



----<<<<<<<<Q2>>>>>>>>----

Possible display on page TOP-link (for example this pertains to photographies - pamela.jpg - TOP-foto) and the last link-photo (for exmple, alice.jpg).
Beforehand grateful.
Anonymous



----<<<<<<<<Q1>>>>>>>>----

sorry, but it's not working and i don't know why.
error - [an error occurred while processing this directive]
http://everydaysoft.bip.ru/
mailto:seb_ua@ukr.net

this my changing:
print " <tr>\n <td><font $font_size><a href=\"http://everydaysoft.bip.ru/cgi-bin/download.pl?file=$file_id\">$descript_array{$file_id}</a></font></td>\n <td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td>\n </tr>\n";
}
else {
print " <tr>\n <td><font $font_size><a href=\"http://everydaysoft.bip.ru/cgi-bin/download.pl?file=$file_id\">$file_id</a></font></td>\n <td><font $font_size><img src=\"$base_gif/$img\" width=$img_width height=10> $name_array{$file_id}</font></td>\n </tr>\n";
}



----<<<<<<<<Q2>>>>>>>>----

Possible display on page TOP-link (for example this pertains to photographies - pamela.jpg - TOP-foto) and the last link-photo (for exmple, alice.jpg).
Beforehand grateful.
jahwz
Beginner

Joined: 23/11/2002 09:04:40
Messages: 9
Offline

An additional idea on the possibilities of this feature (hyperlinked top 10 list), maybe another field in the database of files that stores the address of an information page, vs. a direct download link?

Also, I have edited the download.pl file and renamed it so that I can use the /download.pl?detail= call to show download details only for each file. My problem is, how can I make the link in the stat_js.pl file open in a new window? I have a popup script called in the html page already and use javascript:openWindow... to open other links in new window, but I receive script errors when i place that in front of the links in stat_js.pl

I am probably missing some character that needs to be commented out or something, so any help would be appreciated
jahwz
Beginner

Joined: 23/11/2002 09:04:40
Messages: 9
Offline

OK, I finally found the magic combination that allowed me to call my pop-up script from the top xx table.

now I am on to making the details table more useful. I would like to be able to have the filename in the details table link directly to the download for that file, not too much to ask is it? I know, I must be annoying the $^%# out of most of you, it just seems like it should be easy and I can't figure it out.

I was able to link the filename in the table header using the following link:

<a href=\"http://path/to/download.pl?file=$FORM{'detail'}\">$FORM{'detail'}</a>

That worked like a charm, but I really want to do away with that entire header and just insert the meat of the table into my page with a link to the download, is that possible? I see the list of @vars that calls all the information, so I am not real sure if this is even possible, any ideas, thoughts, anything?

BTW, anyone who wants to link to the file details versus the direct download, just use a link simalar to this in the stat_js.pl, similar to those listed in this post above:

<a href=\"http://path/to/cgi-bin/download_detail.pl?detail=$file_id\">$descript_array{$file_id}</a>

at least it works for me... i think it is a pretty cool feature!

I actually duplicated my download.pl file as download_detail.pl to avoid loosing the table layout I see in the administrative section with all the dropdowns etc., and created one that shows the minimum details about that one file.
Anonymous



Well I couldn't get any of that to work, I'll be looking around some more, but as of now I can't get the download to display on the pages as I would like them to. If anyone comes up with an idea that works, and would like to help me get this up, please feel free to contact me about it!

Thanks again for trying to help!

Laura aka WWASims
Owner of WWASims.com
Email: Laura@WWASims.com
WWAsims
Newbie

Joined: 23/01/2003 18:36:33
Messages: 4
Location: Alabama, USA
Offline

A Year later I am still having issues Anyone willing to help me figure this out? Please?

Laura
ICQ: 52610628
Yahoo! & AIM: WWASims
http://www.WWASims.com
[Email] [WWW] [Yahoo!] aim icon [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum