How do i chmod the javascript folder? I can't seem to find it at ftp. i was trying to use the javascript to generate feeds for my site. Here is my config file for the feed:-
<!-- BEGIN TOPLIST 5 --> <CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG> {NUMBER}) <a href="thread/{LINKID}" target="_blank">{LINKTITLE}</a><br> <!-- END TOPLIST 5 -->
And i name the file as javafeed.js but when i view it, i cant seem to load the feed? Do i need to chmod the files first? And if so, where do the files go? Couldnt find the folder of javascript. I am using aceftp. Tried downloading cuteftp and also couldnt find it
I tried creating the folder but it says it has already existed. I remember last time when i typed in -br in wsftp and some hidden folders will show up or something. Is this the same thing?
oK, I somehow managed to make it into the javascript folder.
i input the line <!-- BEGIN TOPLIST 5 --><CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG>{NUMBER}) <a href="thread/{LINKID}" target="_blank">{LINKTITLE}</a><br><!-- END TOPLIST 5 -->
at the Automatically generate javascript (.js) files every day for a toplists with these config lines (separate with the 'enter' key): field
and name as freecontents.js at the second field.
All i get now is document.write(''); when i try to view it at mysite.com/wsnlinks/javascript/freecontents.js
so iw as thinking maybe the enter key makes a difference, so i decided to seperate the line and insert the config line as:- <!-- BEGIN TOPLIST 5 --> <CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG>{NUMBER}) <a href="thread/{LINKID}" target="_blank">{LINKTITLE}</a><br> <!-- END TOPLIST 5 -->
and now the javascript folder contains nothing. but the field now lists the toplist with the following:- <!-- BEGIN TOPLIST 5 --> 1) <a href="thread/2124" target="_blank">Link1</a><br> <!-- BEGIN TOPLIST 5 --> 2) <a href="thread/2123" target="_blank">Link2</a><br> <!-- BEGIN TOPLIST 5 --> and so on to link 20
But still i cant view it or call it to freecontents.js
Do i have the correct values for the fields there? DO i insert the toplist config at the first field and the freecontents.js at the second field?
I have already chmoded the javascript folder to 777 and the freecontents.js to 666 permission.
Comments on Javascript generation problem
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
Hi,
How do i chmod the javascript folder? I can't seem to find it at ftp. i was trying to use the javascript to generate feeds for my site. Here is my config file for the feed:-
<!-- BEGIN TOPLIST 5 -->
<CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG>
{NUMBER}) <a href="thread/{LINKID}" target="_blank">{LINKTITLE}</a><br>
<!-- END TOPLIST 5 -->
And i name the file as javafeed.js but when i view it, i cant seem to load the feed? Do i need to chmod the files first? And if so, where do the files go? Couldnt find the folder of javascript. I am using aceftp. Tried downloading cuteftp and also couldnt find it
I tried creating the folder but it says it has already existed. I remember last time when i typed in -br in wsftp and some hidden folders will show up or something. Is this the same thing?
Please help.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
How do i chmod the javascript folder? I can't seem to find it at ftp.
Well, if you don't have one then you'd need to create one. But it's in all recent versions.
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
I tried but the aceftp says that folder already existed or error.
Any recommendation for ftp software that will show the javascript folder?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Erm, that really doesn't make any sense. Perhaps you've somehow got it chmoded to be invisible, though that should be impossible.
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
oK, I somehow managed to make it into the javascript folder.
i input the line
<!-- BEGIN TOPLIST 5 --><CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG>{NUMBER}) <a href="thread/{LINKID}" target="_blank">{LINKTITLE}</a><br><!-- END TOPLIST 5 -->
at the
Automatically generate javascript (.js) files every day for a toplists with these config lines (separate with the 'enter' key):
field
and name as freecontents.js at the second field.
All i get now is document.write(''); when i try to view it at mysite.com/wsnlinks/javascript/freecontents.js
so iw as thinking maybe the enter key makes a difference, so i decided to seperate the line and insert the config line as:-
<!-- BEGIN TOPLIST 5 -->
<CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG>{NUMBER}) <a href="thread/{LINKID}" target="_blank">{LINKTITLE}</a><br>
<!-- END TOPLIST 5 -->
and now the javascript folder contains nothing. but the field now lists the toplist with the following:-
<!-- BEGIN TOPLIST 5 -->
1) <a href="thread/2124" target="_blank">Link1</a><br>
<!-- BEGIN TOPLIST 5 -->
2) <a href="thread/2123" target="_blank">Link2</a><br>
<!-- BEGIN TOPLIST 5 -->
and so on to link 20
But still i cant view it or call it to freecontents.js
Do i have the correct values for the fields there? DO i insert the toplist config at the first field and the freecontents.js at the second field?
I have already chmoded the javascript folder to 777 and the freecontents.js to 666 permission.
Please Help!
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
Ok, i got it working. Seems like i need to exclude the Begin toplist thing. SO the correct code for that field is:-
<CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG>