Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2007, 01:17 PM
burlesque's Avatar
burlesque burlesque is offline
 
Join Date: May 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Scheduled Tasks Not Working

My scheduled tasks have all stopped running automatically. They all still work if they are triggered manually by the 'run now' command though.

I've just checked the cron jobs on my server and I can't find anything relating to vbulletin. Is it possible that I've deleted the cron job by mistake which is causing this problem?

If so, could somebody please give me instructions on how to easily restore this.

Thanks in advance.
Reply With Quote
  #2  
Old 08-18-2007, 01:22 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please start by ensuring that your footer template still contains the code needed to run Scheduled Tasks.
Reply With Quote
  #3  
Old 08-18-2007, 02:19 PM
burlesque's Avatar
burlesque burlesque is offline
 
Join Date: May 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My footer code is as follows:

Code:
<script type="text/javascript">
<!--
	var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
	var utcOffset = new Date().getTimezoneOffset() / 60;
	if (Math.abs(tzOffset + utcOffset) == 1)
	{	// Dst offset is 1 so its changed
		document.forms.dstform.submit();
	}
//-->
</script>
<!-- / auto DST correction code -->

</if>
<script type="text/javascript">
<!--
	// Main vBulletin Javascript Initialization
	vBulletin_init();
//-->
</script>
Reply With Quote
  #4  
Old 08-18-2007, 05:14 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should at least contain:
HTML Code:
 <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
 $cronimage
 <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
PS Unless you have purchased the Branding Free option, you are also missing the copyright.
Reply With Quote
  #5  
Old 08-25-2008, 09:15 AM
puroeuro puroeuro is offline
 
Join Date: Jan 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
It should at least contain:
HTML Code:
 <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
 $cronimage
 <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
when i put this code into the footer template around where it used to be by looking at the history of the template it caused my forum page to go blank white. only the main page was able to be accessed and the acp, which luckily i was able to get to the acp to edit the template again and delete it out of there. i'm assuming there is a specific place that it needs to be placed for it to work correctly? we have a custom footer template which is much more coding then what's posted above. if need be i can post it.
Reply With Quote
  #6  
Old 08-25-2008, 09:33 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then you will need to post your current footer template.
Reply With Quote
  #7  
Old 08-25-2008, 12:52 PM
puroeuro puroeuro is offline
 
Join Date: Jan 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HTML Code:
<br >
<div align="center">
<if condition="$show['quickchooser']">
        <select name="styleid" onchange="switch_id(this, 'style')">
                <optgroup label="$vbphrase[quick_style_chooser]">
                    $quickchooserbits
                </optgroup>
            </select>
        </if>
    <if condition="$show['languagechooser']">
            <select name="langid" onchange="switch_id(this, 'lang')">
                <optgroup label="$vbphrase[quick_language_chooser]">
                    $languagechooserbits
                </optgroup>
            </select>
             </if>
                   </div>
<br >
$spacer_close
<!-- /content area table -->
 
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php" method="post" name="dstform">
    <input type="hidden" name="s" value="$session[sessionhash]" />
    <input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
    var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
    var utcOffset = new Date().getTimezoneOffset() / 60;
    if (Math.abs(tzOffset + utcOffset) == 1)
    {    // Dst offset is 1 so its changed
        document.forms.dstform.submit();
    }
//-->
</script>
<!-- / auto DST correction code -->
</if>
<script type="text/javascript">
<!--
    // Main vBulletin Javascript Initialization
    vBulletin_init();
//-->
</script>
 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="19" background="$stylevar[imgdir_misc]/footer_time_tablebg.gif"><table width="80" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td><img src="$stylevar[imgdir_misc]/footer_time_left.gif" alt="" width="32" height="19"></td>
          <td nowrap background="$stylevar[imgdir_misc]/footer_time_bg.gif" style="height: 19px;"><strong><font color="#FFFFFF" size="1" face="Tahoma">$vbphrase[all_times_are_gmt_x_time_now_is_y]</font></strong></td>
          <td><img src="$stylevar[imgdir_misc]/footer_time_right.gif" alt="" width="32" height="19"></td>
        </tr>
      </table></td>
  </tr>
</table>
 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="42" align="left"><img src="$stylevar[imgdir_misc]/footer_designedby_left.gif" alt="" width="42" height="29"></td>
    <td background="$stylevar[imgdir_misc]/footer_designedby_bg.gif" style="width: 100%;"><div align="center"><a href="http://www.vbskinworks.com" target="_blank"><img src="$stylevar[imgdir_misc]/footer_vbskinworks.gif" alt="Style By: vBSkinworks" width="234" height="29" border="0"></a></div></td>
    <td width="42" align="right"><img src="$stylevar[imgdir_misc]/footer_designedby_right.gif" alt="" width="42" height="29"></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="8" background="$stylevar[imgdir_misc]/footer_bottom_teal.gif" class="headlinks"><div align="left"><img src="$stylevar[imgdir_misc]/footer_bottom_teal.gif" width="8" height="41"> 
 
        <td class="headlinks" background="$stylevar[imgdir_misc]/footer_bottom_teal.gif"><a href="http://www.vbulletin.com" target="_blank">$vbphrase[powered_by_vbulletin]</a> </td>
    <td background="$stylevar[imgdir_misc]/footer_bottom_teal.gif" class="headlinks"><div align="right">
 
 
    <strong>
                <if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
                <a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
                <if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]" style="color: #CA0000;">$vbphrase[admin]</a> -</if>
                <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]" style="color: #39DD39;">$vbphrase[mod]</a> -</if>
                <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
                <if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
                <a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
            </strong>
 
    &nbsp;&nbsp;</div></td>
  </tr>
</table>
</td>
    <td width="0" style="width:0;overflow:hidden;" valign="top" background="$stylevar[imgdir_misc]/border_right_bg.gif"></td>
  </tr>
</table>
Reply With Quote
  #8  
Old 08-26-2008, 04:31 AM
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All the $cronimage is a img tag when there is a schedule task that needs to happen. It best to put it near or the end of the footer template.
Reply With Quote
  #9  
Old 08-26-2008, 11:31 AM
puroeuro puroeuro is offline
 
Join Date: Jan 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think i put it around the
HTML Code:
<if condition="$show['dst_correction']">
part. so about where should i put it within the code that's listed?

after this?
HTML Code:
<strong>
                <if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
                <a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
                <if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]" style="color: #CA0000;">$vbphrase[admin]</a> -</if>
                <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]" style="color: #39DD39;">$vbphrase[mod]</a> -</if>
                <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
                <if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
                <a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
            </strong>
 
    &nbsp;&nbsp;</div></td>
Reply With Quote
  #10  
Old 08-26-2008, 02:11 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you go to edit your template and hit View History, you may then compare your current template to the default vbulletin template. The screen that comes up will show you where you should be putting the $cronimage code.
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 04:48 AM.


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.04319 seconds
  • Memory Usage 2,285KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (5)bbcode_html
  • (1)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
  • (1)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_postinfo_query
  • fetch_postinfo
  • 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