I am using a few custom javascript export features and was wondering how to regenerate them manually? They are regenerating every 12 hours now. I tried manually regenerating under admin -> misc -> crons and tried setting up a new crond in admin -> misc -> crons for every 3 hours but they didn't work.
Thank you! It worked perfectly. Another question: I would like to have 3 different javascript exports, one for the newest site added, one for the second newest site and one for the third newest site. I tried generating this via the toplist section and the result (for the second newest site) was
You said newest, so why did you select to sort by title instead of submission time? Newest means by submission time descending: links,time,5,descending,,,,0,0,0,0,0,0,,0 link s,time,5,descending,,2,,0,0,0,0,0,0,,0 links,time,5,descend ing,,3,,0,0,0,0,0,0,,0
Paul wrote: You said newest, so why did you select to sort by title instead of submission time? Newest means by submission time descending: links,time,5,descending,,,,0,0,0,0,0,0,,0 link s,time,5,descending,,2,,0,0,0,0,0,0,,0 links,time,5,descend ing,,3,,0,0,0,0,0,0,,0
This worked great for me, but for some reason, after I upgraded 2 days ago to 5.0.38, the 2nd newest site is no longer coming up. I use this export script for the 5 newest links added (you can see it here http://www.fan-sites.org/hosted-sites/ the 5 sites are the top thumbnails) but since the upgrade, the 1st, 3rd, 4th, 5th and 6th sites are coming up. Here is the code I am using, in order from 1 to 5:
I see five sites there looking normal... what should I see?
You may 1, 3, 4, 5, 6 are working, but you also say you're only using 5, which doesn't make any sense. And your link contradicts you because it shows it's 1, 2, 3, 4, 5 all working and there is no 6.
Paul wrote: I see five sites there looking normal... what should I see?
You may 1, 3, 4, 5, 6 are working, but you also say you're only using 5, which doesn't make any sense. And your link contradicts you because it shows it's 1, 2, 3, 4, 5 all working and there is no 6.
I know! The codes above are producing 1,3,4,5,6. I have no idea why because it worked before I upgraded. Now it skips 2! Any idea why?
But let's get back to my question: please tell me about line 6. Many times now you've mentioned a line 6 but never explained it. Every time I ask about line 6 you tell me about some other line.
But let's get back to my question: please tell me about line 6. Many times now you've mentioned a line 6 but never explained it. Every time I ask about line 6 you tell me about some other line.
There is no line six. There are only 5. Or do you mean something else?
So why do you keep talking about a line 6 if you don't intend to have one and don't see one?
gertiebeth wrote: since the upgrade, the 1st, 3rd, 4th, 5th and 6th site are coming up.
gertiebeth wrote: I know! The codes above are producing 1,3,4,5,6. I have no idea why because it worked before I upgraded. Now it skips 2! Any idea why?
Please say which line is the problem, and explain how it's a problem. If line 6 is involved, explain what it is. If line 5 is the problem, explain what about it is a problem since the javascript generated for it looks fine to me on your site.
Lines 2-5 are the problem. Instead of showing newest links numbers 2,3,4,5 they are showing newest links 3,4,5,6. Here are the 5 exports:
Shows newest site (correct): wrapone|links,time,1,descending Shows third newest site (should show second): wraptwo|links,time,1, descending,,2,,0,0,0,0,0,0,,0 Shows fourth newest site (should show third): wrapthree|links,time,1,descending,,3,,0,0,0,0,0,0,,0 Shows fifth newest site (should show fourth): wrapfour|links,time,1,descending,,4,,0,0,0,0,0,0,,0 Shows sixth newest site (should show fifth): wrapfive|links,time,1,descending,,5,,0,0,0,0,0,0,,0
I tried deleting them and adding them again from scratch with no luck. Is there another way to call these sites?
Change descending,,2 to descending,,1 and reduce all the other numbers by 1 as well. You only want to start one result down from the norm, not two. Default is 0.
Paul wrote: Change descending,,2 to descending,,1 and reduce all the other numbers by 1 as well. You only want to start one result down from the norm, not two. Default is 0.
That did the trick! Thank you for the assistance Paul.
0/5
1
2
3
4
5
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on CRON for javascript export
Member
Usergroup: Customer
Joined: Jan 19, 2009
Total Topics: 5
Total Comments: 15
I am using a few custom javascript export features and was wondering how to regenerate them manually? They are regenerating every 12 hours now. I tried manually regenerating under admin -> misc -> crons and tried setting up a new crond in admin -> misc -> crons for every 3 hours but they didn't work.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Resubmitting the javascript export page should work for manually updating.
You can't adjust the frequency with which they automatically run.
Member
Usergroup: Customer
Joined: Jan 19, 2009
Total Topics: 5
Total Comments: 15
Thank you! It worked perfectly. Another question: I would like to have 3 different javascript exports, one for the newest site added, one for the second newest site and one for the third newest site. I tried generating this via the toplist section and the result (for the second newest site) was
links,title,1,descending,,2,,0,0,0,0,0,0,,0
but when I plug these numbers into the javacsript export, the result is a random link, not the second newest link. http://fan-sites.org/hosted-sites/javascript/second.js
Can you please provide the correct code for this? Thank you!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You said newest, so why did you select to sort by title instead of submission time? Newest means by submission time descending:
links,time,5,descending,,,,0,0,0,0,0,0,,0
link s,time,5,descending,,2,,0,0,0,0,0,0,,0
links,time,5,descend ing,,3,,0,0,0,0,0,0,,0
Member
Usergroup: Customer
Joined: Jan 19, 2009
Total Topics: 5
Total Comments: 15
You said newest, so why did you select to sort by title instead of submission time? Newest means by submission time descending:
links,time,5,descending,,,,0,0,0,0,0,0,,0
link s,time,5,descending,,2,,0,0,0,0,0,0,,0
links,time,5,descend ing,,3,,0,0,0,0,0,0,,0
wrapone|links,time,1,descending
wraptwo|links,time,1, descending,,2,,0,0,0,0,0,0,,0
wrapthree|links,time,1,descen ding,,3,,0,0,0,0,0,0,,0
wrapfour|links,time,1,descending,,4,,0,0,0,0,0,0,,0
wrapf ive|links,time,1,descending,,5,,0,0,0,0,0,0,,0
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I see five sites there looking normal... what should I see?
You may 1, 3, 4, 5, 6 are working, but you also say you're only using 5, which doesn't make any sense. And your link contradicts you because it shows it's 1, 2, 3, 4, 5 all working and there is no 6.
Member
Usergroup: Customer
Joined: Jan 19, 2009
Total Topics: 5
Total Comments: 15
I see five sites there looking normal... what should I see?
You may 1, 3, 4, 5, 6 are working, but you also say you're only using 5, which doesn't make any sense. And your link contradicts you because it shows it's 1, 2, 3, 4, 5 all working and there is no 6.
I know! The codes above are producing 1,3,4,5,6. I have no idea why because it worked before I upgraded. Now it skips 2! Any idea why?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Tell me what the line for #6 is or why you're calling one of 1-5 as 6.
Member
Usergroup: Customer
Joined: Jan 19, 2009
Total Topics: 5
Total Comments: 15
Here is the exact template for line five:
And the exact javascript for line five:
Like I said, it is so strange because it worked perfectly until I upgraded. I'm stumped!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
And it's working perfectly now too, nothing changed: fan-sites.org/hosted-sites/...tes/javascript/wrapfive.js
But let's get back to my question: please tell me about line 6. Many times now you've mentioned a line 6 but never explained it. Every time I ask about line 6 you tell me about some other line.
Member
Usergroup: Customer
Joined: Jan 19, 2009
Total Topics: 5
Total Comments: 15
And it's working perfectly now too, nothing changed: fan-sites.org/hosted-sites/...tes/javascript/wrapfive.js
But let's get back to my question: please tell me about line 6. Many times now you've mentioned a line 6 but never explained it. Every time I ask about line 6 you tell me about some other line.
There is no line six. There are only 5. Or do you mean something else?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
So why do you keep talking about a line 6 if you don't intend to have one and don't see one?
since the upgrade, the 1st, 3rd, 4th, 5th and 6th site are coming up.
I know! The codes above are producing 1,3,4,5,6. I have no idea why because it worked before I upgraded. Now it skips 2! Any idea why?
Please say which line is the problem, and explain how it's a problem. If line 6 is involved, explain what it is. If line 5 is the problem, explain what about it is a problem since the javascript generated for it looks fine to me on your site.
Member
Usergroup: Customer
Joined: Jan 19, 2009
Total Topics: 5
Total Comments: 15
Lines 2-5 are the problem. Instead of showing newest links numbers 2,3,4,5 they are showing newest links 3,4,5,6. Here are the 5 exports:
Shows newest site (correct): wrapone|links,time,1,descending
Shows third newest site (should show second): wraptwo|links,time,1, descending,,2,,0,0,0,0,0,0,,0
Shows fourth newest site (should show third): wrapthree|links,time,1,descending,,3,,0,0,0,0,0,0,,0
Shows fifth newest site (should show fourth): wrapfour|links,time,1,descending,,4,,0,0,0,0,0,0,,0
Shows sixth newest site (should show fifth): wrapfive|links,time,1,descending,,5,,0,0,0,0,0,0,,0
I tried deleting them and adding them again from scratch with no luck. Is there another way to call these sites?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Change descending,,2 to descending,,1 and reduce all the other numbers by 1 as well. You only want to start one result down from the norm, not two. Default is 0.
Member
Usergroup: Customer
Joined: Jan 19, 2009
Total Topics: 5
Total Comments: 15
Change descending,,2 to descending,,1 and reduce all the other numbers by 1 as well. You only want to start one result down from the norm, not two. Default is 0.