Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 04-21-2012, 01:04 AM
lukescotty lukescotty is offline
 
Join Date: Jul 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

only just got in from work, gonna have to have alook at it tomorrow, thanks for the help so far!!
Reply With Quote
  #12  
Old 04-22-2012, 09:11 PM
lukescotty lukescotty is offline
 
Join Date: Jul 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #13  
Old 04-22-2012, 09:17 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lukescotty View Post
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.
That's what I was trying to do - well, sort of. I guess it still needed a parameter. You could use this code (follow same instructions above)

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.
Reply With Quote
  #14  
Old 04-23-2012, 01:14 PM
lukescotty lukescotty is offline
 
Join Date: Jul 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 04-23-2012, 02:25 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 04-23-2012, 04:25 PM
lukescotty lukescotty is offline
 
Join Date: Jul 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #17  
Old 04-23-2012, 04:28 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you try just pointing your browser at it and seeing what happens?
Reply With Quote
  #18  
Old 04-23-2012, 06:30 PM
lukescotty lukescotty is offline
 
Join Date: Jul 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:: 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
Reply With Quote
  #19  
Old 04-23-2012, 07:34 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lukescotty View Post
:: 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
Yeah, it should just be blank. But you're saying you didn't see any posts. Hmm... And when you go to the scheduled task manager you have it set to run every minute and the Next time is recent (or in the past even, I think you said)?
Reply With Quote
  #20  
Old 04-23-2012, 07:43 PM
lukescotty lukescotty is offline
 
Join Date: Jul 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07088 seconds
  • Memory Usage 2,249KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete