so. im over at usfbf1942.com (/forums)
i tried to insert a block of coding into my index.php for the forums
it didnt work, so i went back and deleted it and uploaded the version without the coding block. but NOW its still dead! all the pages work except for the index page:
www.usfbf1942.com/forums/index.php
try, for example,
http://www.usfbf1942.com/forums/forumdisplay.php
i dont know what to do. my only guess is that i accidentally deleted some of the forums' coding when i deleted the block i inserted.
i know exACTLY where the block was and there the problem must be, so maybe someone could take a look at my coding and see if i'm missing something? itd be so appreciated.
as for the suggestion, is there a way to auto back up those files, not just databases?
again sorry i posted this here, but the only troubleshooting links say to go to member forums, and the clan leader who bought the forums is away.
this is the error. the coding i inserted was right where my <!--***ERROR PRESENT HERE***--!> marker is near the bottom. (you may be wondering why i was putting the coding there at all...i was checkin somethin. im no good at vb obviously):
Code:
$callink = '<a href="calendar.php?' .
$vbulletin->session->vars['sessionurl'] . "do=getinfo&day=$day\">" .
$vbphrase['holiday_title_' . $eventinfo['varname']] . "</a>";
}
else
{
$callink = '<a href="calendar.php?' .
$vbulletin->session->vars['sessionurl'] .
"do=getinfo&day=$day&e=$eventinfo[eventid]&c=$eventinfo[calendarid]\">$eventinfo[tit
le]</a>";
}
}
else
{ // Group by Date
$eventdate = vbdate($vbulletin->options['dateformat'], $index,
false, true, false);
$day = vbdate('Y-n-j', $index, false, true, false);
foreach($value AS $key => $eventid)
{
$eventinfo = $eventstore["$eventid"];
if ($eventinfo['holidayid'])
{
$daysevents .= $comma . '<a href="calendar.php?'
. $vbulletin->session->vars['sessionurl'] . "do=getinfo&day=$day\">" .
$vbphrase['holiday_title_' . $eventinfo['varname']] . "</a>";
}
else
{
$daysevents .= $comma . '<a href="calendar.php?'
. $vbulletin->session->vars['sessionurl'] . "do=getinfo& type="hidden" name="hl"
value="en"></input>
</td></tr></table>v
</form>
<!--****ERROR PRESENT HERE****--!>
($hook = vBulletinHook::fetch_hook('forumhome_event')) ? eval($hook) :
false;
eval('$upcomingevents .= "' . fetch_template('forumhome_event') . '";');
}
// memory saving
unset($events, $eventstore);
}
$show['upcomingevents'] = iif ($upcomingevents, true, false);
$show['todaysevents'] = iif ($vbulletin->options['showevents'] == 1, true, false);
}
else
{
$show['upcomingevents'] = false;
}
// ### LOGGED IN USERS #################################################
ps* the coding block i was trying to add was a google adsense block. we put it on our home page and were gonna try putting it into the forums, of which being very new to VB i had no idea how to do. the only reason i inserted it in that random area was by accident, i was dealing with two index.php files (forum one and my homepage one) and mixed things up.
so sean, i donno if you have a copy of our index.php saved to your comp from wen u worked on it, and you cud just look for missing coding? otherwise i gotta wait for tdog (who has disapeared) to get his VB email/pw and set a ticket
*embarased face*