WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Javascript generation problem

Version:
printPrint


Javascript generation problem
morton82
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Posts: 102
Posted 06/14/05 - 03:12 PM:
quote post
#1
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="http://www.webmastersite.net/forums/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.

Edited by morton82 on 06/14/05 - 03:17 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/16/05 - 07:19 PM:
quote post
#2
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.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
morton82
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Posts: 102
Posted 06/16/05 - 07:55 PM:
quote post
#3
I tried but the aceftp says that folder already existed or error. sad

Any recommendation for ftp software that will show the javascript folder?

Edited by morton82 on 06/16/05 - 08:01 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/17/05 - 01:34 PM:
quote post
#4
Erm, that really doesn't make any sense. Perhaps you've somehow got it chmoded to be invisible, though that should be impossible.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
morton82
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Posts: 102
Posted 06/17/05 - 10:49 PM:
quote post
#5
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="http://www.webmastersite.net/forums/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="http://www.webmastersite.net/forums/thread/{LINKID}" target="_blank">{LINKTITLE}</a><br>
<!-- END TOPLIST 5 -->

and now the javascript folder contains nothing. shaking head but the field now lists the toplist with the following:-
<!-- BEGIN TOPLIST 5 -->
1) <a href="http://www.webmastersite.net/forums/thread/2124" target="_blank">Link1</a><br>
<!-- BEGIN TOPLIST 5 -->
2) <a href="http://www.webmastersite.net/forums/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!

Edited by morton82 on 06/17/05 - 10:59 PM
morton82
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Posts: 102
Posted 06/17/05 - 11:07 PM:
quote post
#6
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> grin
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.