The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
only just got in from work, gonna have to have alook at it tomorrow, thanks for the help so far!!
|
#12
|
|||
|
|||
kh99, yo! just tried this, but unfortunately its not working, just wondering is it possible to copy this cron file, rename it, edit a part of the code, just to run rssposter?? or is it not fesible.
or.. could i have sum setting's messed up, and it could be work? |
#13
|
|||
|
|||
Quote:
Code:
($hook = vBulletinHook::fetch_hook('cron_start')) ? eval($hook) : false; exec_cron(17); $db->close(); Sorry, I have no way to test this so I'm just kind of guessing right now. |
#14
|
|||
|
|||
Hiya, still no joy. I wonder if someone else on here could give try it out too, to see whether its me or the script.
Hmm, if i can't get it done, how could I get someone to write me a script or get futher help, even if i have to pay regards lukescotty |
#15
|
|||
|
|||
Yes, if someone else has an idea please jump in.
I decided just to test it without an actual cron entry. I think I've changed this enough so I can post it, so here's the entire script I used: Code:
<?php error_reporting(E_ALL & ~E_NOTICE); ignore_user_abort(1); @set_time_limit(0); define('SKIP_SESSIONCREATE', 1); define('NOCOOKIES', 1); define('THIS_SCRIPT', 'cron'); $phrasegroups = array(); $globaltemplates = array(); $actiontemplates = array(); $specialtemplates = array('crondata'); require_once('./global.php'); require_once(DIR . '/includes/functions_cron.php'); ($hook = vBulletinHook::fetch_hook('cron_start')) ? eval($hook) : false; exec_cron(17); ?> I added an rss feed, removed the cronimage from my footer to make sure it couldn't run any other way, and I ran the above script via the broswer. It worked and posted the threads from the feed. I did notice that when I used cnn as the feed it posted the news stories once, then I couldn't get it to work again even after I removed the feed from the feed manager and reenetered it. It seemed like the feed was empty for some reason. I switched to another feed and that problem went away, but I thought I'd mention it because maybe some feeds work differently and it could be part of your problem. Thing is, this is obviously not being run as a cron job, and it's also being run through the web server as a CGI request and not via command line. So I suppose it's possible that one of those things is causing your problem. But you could test that by running the above script in a web browser. |
#16
|
|||
|
|||
its becoming a bit of a headache this isnt it? I've saved the code above as a .php uploaded it to my server, created a cron job linking to that file.. but still no luck I've spoken to my host and they say everything is fine on the server side. I'm just thinking what I could do, i really want these feeds to auto post, otherwise i'm going to be constantly selecting "run now" every hour which i don't think i could do.
How about me giving you access to everything, on my vbulletin and my cpanel to see if you can see anything wrong? Really appreiciate the time you've given me! |
#17
|
|||
|
|||
Did you try just pointing your browser at it and seeing what happens?
|
#18
|
|||
|
|||
:: i've tried opening http://www.talknightlife.co.uk/runrssposter1.php in my browser, comes to a blank screen, am i doing this bit right
I've also wacked in more rss feeds, one from fox news, one from itv, one from sky news, to make sure its not twitter. I must be doing something wrong here!! wheres the knife |
#19
|
|||
|
|||
Quote:
|
#20
|
|||
|
|||
looking at the time you posted, all my twitter feeds updated at 21.35 which is a minute after u posted, soooo, by you clicking that php link has made it work ? do you mind clicking it again?
--------------- Added [DATE]1335213911[/DATE] at [TIME]1335213911[/TIME] --------------- the cron is set to everyminute on CPanel, where as the times in VB Schedule task manager are set at different times of the hour 00, 04, 15, 31, 36, 58 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|