Webmastersite.net
Register Log In

CRON for javascript export

Comments on CRON for javascript export

gertiebeth
Member

Usergroup: Customer
Joined: Jan 18, 2009

Total Topics: 5
Total Comments: 15
Posted Feb 23, 2009 - 12:15 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 24, 2009 - 12:20 AM:

Resubmitting the javascript export page should work for manually updating.

You can't adjust the frequency with which they automatically run.
gertiebeth
Member

Usergroup: Customer
Joined: Jan 18, 2009

Total Topics: 5
Total Comments: 15
Posted Feb 24, 2009 - 12:16 PM:

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!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 25, 2009 - 5:43 PM:

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
gertiebeth
Member

Usergroup: Customer
Joined: Jan 18, 2009

Total Topics: 5
Total Comments: 15
Posted Mar 17, 2009 - 12:27 PM:

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:

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
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 18, 2009 - 1:42 PM:

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.
gertiebeth
Member

Usergroup: Customer
Joined: Jan 18, 2009

Total Topics: 5
Total Comments: 15
Posted Mar 18, 2009 - 1:50 PM:

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?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 19, 2009 - 2:42 PM:

Tell me what the line for #6 is or why you're calling one of 1-5 as 6.
gertiebeth
Member

Usergroup: Customer
Joined: Jan 18, 2009

Total Topics: 5
Total Comments: 15
Posted Mar 19, 2009 - 3:37 PM:

Here is the exact template for line five:
<!-- BEGIN TOPLIST 1 -->
<CONFIG>links,time,1,descending,,5,,0,0,0,0,0,0,,0</CONFIG>
<a href="{TRACKLINKURL}" {EXTERNALLINKS} target="_blank"><img src="http://www.shrinktheweb.com/xino.php?embed=1&stwu=8d5de&STWAccessKeyId=23a9ef03202257b&Size=&stwUrl={TRACKLINKURL}" border="0"><br><div class="new-site-title">{LINKTITLE}</div></a>
<!-- END TOPLIST 1 -->


And the exact javascript for line five:
wrapfive|links,time,1,descending,,5,,0,0,0,0,0,0,,0


Like I said, it is so strange because it worked perfectly until I upgraded. I'm stumped!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Mar 20, 2009 - 5:39 PM:

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.
gertiebeth
Member

Usergroup: Customer
Joined: Jan 18, 2009

Total Topics: 5
Total Comments: 15
#11 - Quote - Permalink
Posted Mar 20, 2009 - 6:18 PM:

Paul wrote:
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?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#12 - Quote - Permalink
Posted Mar 21, 2009 - 8:52 PM:

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.
gertiebeth
Member

Usergroup: Customer
Joined: Jan 18, 2009

Total Topics: 5
Total Comments: 15
#13 - Quote - Permalink
Posted Mar 21, 2009 - 10:02 PM:

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?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#14 - Quote - Permalink
Posted Mar 24, 2009 - 9:48 AM:

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.
gertiebeth
Member

Usergroup: Customer
Joined: Jan 18, 2009

Total Topics: 5
Total Comments: 15
#15 - Quote - Permalink
Posted Mar 24, 2009 - 2:31 PM:

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.
Search thread for
Download thread as
  • 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.