The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
|||
|
|||
Please start by ensuring that your footer template still contains the code needed to run Scheduled Tasks.
|
#3
|
||||
|
||||
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> |
#4
|
|||
|
|||
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 --> |
#5
|
|||
|
|||
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.
|
#6
|
|||
|
|||
Then you will need to post your current footer template.
|
#7
|
|||
|
|||
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> </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> |
#8
|
|||
|
|||
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.
|
#9
|
|||
|
|||
i think i put it around the
HTML Code:
<if condition="$show['dst_correction']">
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> </div></td> |
#10
|
||||
|
||||
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.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|