<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Help with Last Visit Mod - Graveyard				            </title>
            <link>https://efiction.org/community/graveyard/help-with-last-visit-mod/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Thu, 19 Nov 2026 03:15:26 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Re: Help with Last Visit Mod</title>
                        <link>https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-18589</link>
                        <pubDate>Fri, 04 Mar 2011 02:46:20 +0000</pubDate>
                        <description><![CDATA[Okay thanks!!!]]></description>
                        <content:encoded><![CDATA[Okay thanks!!!]]></content:encoded>
						                            <category domain="https://efiction.org/community/graveyard/">Graveyard</category>                        <dc:creator>SomethingBlue42</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-18589</guid>
                    </item>
				                    <item>
                        <title>Re: Help with Last Visit Mod</title>
                        <link>https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-18588</link>
                        <pubDate>Fri, 04 Mar 2011 02:13:34 +0000</pubDate>
                        <description><![CDATA[The mod was written for 3.2 so it&#039;s going to have a lot of issues. For version 3.3, a bunch of variables were changed to constants, ie $tableprefix to TABLEPREFIX. This topic has detail...]]></description>
                        <content:encoded><![CDATA[The mod was written for 3.2 so it&#039;s going to have a lot of issues. For version 3.3, a bunch of variables were changed to constants, ie $tableprefix to TABLEPREFIX. This topic has details: https://efiction.org/forums/index.php?topic=5247.0. So you&#039;ll want to comb through for those, at the very least. There have also been some database changes.]]></content:encoded>
						                            <category domain="https://efiction.org/community/graveyard/">Graveyard</category>                        <dc:creator>Lyndsie</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-18588</guid>
                    </item>
				                    <item>
                        <title>Re: Help with Last Visit Mod</title>
                        <link>https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-18587</link>
                        <pubDate>Fri, 04 Mar 2011 02:04:40 +0000</pubDate>
                        <description><![CDATA[profile.php&lt;?php// ----------------------------------------------------------------------// eFiction 3.2// Copyright (c) 2007 by Tammy Keefer// Valid HTML 4.01 Transitional// Based on eFi...]]></description>
                        <content:encoded><![CDATA[<b>profile.php</b><br><br><pre>&lt;?php<br>// ----------------------------------------------------------------------<br>// eFiction 3.2<br>// Copyright (c) 2007 by Tammy Keefer<br>// Valid HTML 4.01 Transitional<br>// Based on eFiction 1.1<br>// Copyright (C) 2003 by Rebecca Smallwood.<br>// http://efiction.sourceforge.net/<br>// ----------------------------------------------------------------------<br>// LICENSE<br>//<br>// This program is free software; you can redistribute it and/or<br>// modify it under the terms of the GNU General Public License (GPL)<br>// as published by the Free Software Foundation; either version 2<br>// of the License, or (at your option) any later version.<br>//<br>// This program is distributed in the hope that it will be useful,<br>// but WITHOUT ANY WARRANTY; without even the implied warranty of<br>// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br>// GNU General Public License for more details.<br>//<br>// To read the license please visit http://www.gnu.org/copyleft/gpl.html<br>// ----------------------------------------------------------------------<br><br>if(!defined(&quot;_CHARSET&quot;)) exit( );<br><br>// Build the user&#039;s profile information<br>$tpl-&gt;newBlock(&quot;profile&quot;);<br>$result2 = dbquery(&quot;SELECT *, UNIX_TIMESTAMP(date) as date, UNIX_TIMESTAMP(lastlog) as lastlog FROM &quot;._AUTHORTABLE.&quot; LEFT JOIN &quot;.TABLEPREFIX.&quot;fanfiction_authorprefs as ap ON ap.uid = &quot;._UIDFIELD.&quot; WHERE &quot;._UIDFIELD.&quot; = &#039;$uid&#039; LIMIT 1&quot;);<br>$userinfo = dbassoc($result2);<br>$nameinfo = &quot;&quot;;<br>if($userinfo)<br>$nameinfo .= &quot; [&lt;a href="&quot;viewuser.php?action=contact&amp;amp;uid=&quot;.$userinfo.&quot;&quot;&gt;&quot;._CONTACT.&quot;&lt;/a&gt;]&quot;;<br>if(!empty($favorites) &amp;&amp; isMEMBER &amp;&amp; $userinfo != USERUID) {<br>$fav = dbquery(&quot;SELECT * FROM &quot;.TABLEPREFIX.&quot;fanfiction_favorites WHERE uid = &#039;&quot;.USERUID.&quot;&#039; AND type = &#039;AU&#039; AND item = &#039;&quot;.$userinfo.&quot;&#039;&quot;);<br>if(dbnumrows($fav) == 0) $nameinfo .= &quot; [&lt;a href="&quot;user.php?action=favau&amp;amp;uid=&quot;.USERUID.&quot;&amp;amp;add=&quot;.$userinfo.&quot;&quot;&gt;&quot;._ADDAUTHOR2FAVES.&quot;&lt;/a&gt;]&quot;;<br>}<br>$tpl-&gt;assign(&quot;userpenname&quot;, $userinfo.&quot; &quot;.$nameinfo);<br>if (date(&quot;$dateformat&quot;, $userinfo) == date(&quot;$dateformat&quot;, mktime(0, 0, 0, 0, 0, 0000))) &nbsp; $tpl-&gt;assign(&quot;lastlog&quot;, &quot;&quot;._UNAVAILABLE.&quot;&quot;); &nbsp; <br>else $tpl-&gt;assign(&quot;lastlog&quot;, date(&quot;$dateformat&quot;, $userinfo)); <br>$tpl-&gt;assign(&quot;membersince&quot;, date(&quot;$dateformat&quot;, $userinfo));<br>if($userinfo)<br>$tpl-&gt;assign(&quot;realname&quot;, $userinfo);<br>if($userinfo) {<br>$bio = nl2br($userinfo);<br>$tpl-&gt;assign(&quot;bio&quot;, stripslashes($bio));<br>}<br>if($userinfo)<br>$tpl-&gt;assign(&quot;image&quot;, &quot;&lt;img src="&quot;&quot;.$userinfo.&quot;&quot;&gt;&quot;);<br>$tpl-&gt;assign(&quot;userlevel&quot;, isset($userinfo) &amp;&amp; $userinfo &gt; 0 &amp;&amp; $userinfo &lt; 4 ? _ADMINISTRATOR.(isADMIN ? &quot; - &quot;.$userinfo : &quot;&quot;) : _MEMBER);<br>/* Dynamic authorinfo fields */<br>$result2 = dbquery(&quot;SELECT * FROM &quot;.TABLEPREFIX.&quot;fanfiction_authorinfo WHERE uid = &#039;$uid&#039;&quot;);<br>$dynamicfields = &quot;&quot;;<br>while($field = dbassoc($result2)) {<br>if($field == &quot;&quot;) continue;<br>$fieldinfo = dbassoc(dbquery(&quot;SELECT * FROM &quot;.TABLEPREFIX.&quot;fanfiction_authorfields WHERE field_id = &#039;&quot;.$field.&quot;&#039; LIMIT 1&quot;));<br>if($fieldinfo) {<br>$thisfield = &quot;&quot;;<br>if($fieldinfo == 0) continue;<br>if($fieldinfo == 1) { $thisfield = format_link($field);<br>}<br>if($fieldinfo == 4) {<br>$thisfield = preg_replace(&quot;@{info}@&quot;, $field, $fieldinfo);<br>$thisfield = format_link($thisfield);<br>}<br>if($fieldinfo == 2 || $fieldinfo == 6) {<br>$thisfield = stripslashes($field);<br>}<br>if($fieldinfo == 3) {<br>$thisfield = $field;<br>}<br>else eval($fieldinfo);<br>$tpl-&gt;assign($fieldinfo, $thisfield);<br>$dynamicfields .= &quot;&lt;div class=&#039;authorfields&#039;&gt;&lt;span class=&#039;label&#039;&gt;&quot;.$fieldinfo.&quot;:&lt;/span&gt; &quot;.$thisfield.&quot;&lt;/div&gt;&quot;;<br>}<br>}<br>$codequery = dbquery(&quot;SELECT * FROM &quot;.TABLEPREFIX.&quot;fanfiction_codeblocks WHERE code_type = &#039;userprofile&#039;&quot;);<br>while($code = dbassoc($codequery)) {<br>eval($code);<br>}<br>if(!empty($dynamicfields)) $tpl-&gt;assign(&quot;authorfields&quot;, $dynamicfields);<br>/* End dynamic fields */<br>$tpl-&gt;assign(&quot;reportthis&quot;, &quot;&quot;);<br>$adminopts = &quot;&quot;;<br>if(isADMIN &amp;&amp; uLEVEL &lt; 3) {<br>$adminopts .= &quot;&lt;div class=&quot;adminoptions&quot;&gt;&lt;span class=&#039;label&#039;&gt;&quot;._ADMINOPTIONS.&quot;:&lt;/span&gt; &quot;.(isset($userinfo) &amp;&amp; $userinfo ? &quot; &quot; : &quot; &quot;).&quot; &quot;;<br>$adminopts .= &quot; [&lt;a href="&quot;admin.php?action=members&amp;amp;&quot;.($userinfo &lt; 0 ? &quot;unlock=&quot;.$userinfo.&quot;&quot; class=&quot;vuadmin&quot;&gt;&quot;._UNLOCKMEM : &quot;lock=&quot;.$userinfo.&quot;&quot; class=&quot;vuadmin&quot;&gt;&quot;._LOCKMEM).&quot;&lt;/a&gt;]&quot;;<br>$adminopts .= &quot; [&lt;a href="&quot;admin.php?action=admins&amp;amp;&quot;.(isset($userinfo) &amp;&amp; $userinfo &gt; 0 ? &quot;revoke=$uid&quot; class=&quot;vuadmin&quot;&gt;&quot;._REVOKEADMIN.&quot;&lt;/a&gt;] &lt;/div&gt;&quot;;<br>$tpl-&gt;assign(&quot;adminoptions&quot;, $adminopts);<br>}<br>$tpl-&gt;gotoBlock(&quot;_ROOT&quot;);<br>?&gt;</pre><br><br>]]></content:encoded>
						                            <category domain="https://efiction.org/community/graveyard/">Graveyard</category>                        <dc:creator>SomethingBlue42</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-18587</guid>
                    </item>
				                    <item>
                        <title>Re: Help with Last Visit Mod</title>
                        <link>https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-18586</link>
                        <pubDate>Fri, 04 Mar 2011 02:02:56 +0000</pubDate>
                        <description><![CDATA[Awesome! That solved the problem with crashing the site but the modification itself isn&#039;t working. I&#039;ve added the code from the other pages I modded (had to split up the posts beca...]]></description>
                        <content:encoded><![CDATA[Awesome! That solved the problem with crashing the site but the modification itself isn&#039;t working. I&#039;ve added the code from the other pages I modded (had to split up the posts because of max message length) if you don&#039;t mind taking a look. Thanks so much for your help I really appreciate it!<br><br><b>login.php</b><br><br><pre>&lt;?php<br>// ----------------------------------------------------------------------<br>// eFiction 3.2<br>// Copyright (c) 2007 by Tammy Keefer<br>// Valid HTML 4.01 Transitional<br>// Based on eFiction 1.1<br>// Copyright (C) 2003 by Rebecca Smallwood.<br>// http://efiction.sourceforge.net/<br>// ----------------------------------------------------------------------<br>// LICENSE<br>//<br>// This program is free software; you can redistribute it and/or<br>// modify it under the terms of the GNU General Public License (GPL)<br>// as published by the Free Software Foundation; either version 2<br>// of the License, or (at your option) any later version.<br>//<br>// This program is distributed in the hope that it will be useful,<br>// but WITHOUT ANY WARRANTY; without even the implied warranty of<br>// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&nbsp; See the<br>// GNU General Public License for more details.<br>//<br>// To read the license please visit http://www.gnu.org/copyleft/gpl.html<br>// ----------------------------------------------------------------------<br><br>if(isset($_POST) &amp;&amp; preg_match(&quot;!^{3,30}$!i&quot;, $_POST)) {<br>if(!defined(&quot;_LOGINCHECK&quot;)) exit( );<br>define(&quot;_BASEDIR&quot;, &quot;&quot;);<br>include_once(&quot;config.php&quot;);<br>$settings = dbquery(&quot;SELECT tableprefix, maintenance, sitekey, debug FROM &quot;.$settingsprefix.&quot;fanfiction_settings WHERE sitekey = &#039;&quot;.$sitekey.&quot;&#039;&quot;);<br>list($tableprefix, $maintenance, $sitekey, $debug) = dbrow($settings);<br>$tempdebug = $debug;<br>$debug = 0;<br>define(&quot;TABLEPREFIX&quot;, $tableprefix);<br>define(&quot;SITEKEY&quot;, $sitekey);<br>include_once(&quot;includes/queries.php&quot;);<br>$result = dbquery(&quot;SELECT *, &quot;._UIDFIELD.&quot; as uid FROM &quot;._AUTHORTABLE.&quot; LEFT JOIN &quot;.$tableprefix.&quot;fanfiction_authorprefs AS ap ON ap.uid = &quot;._UIDFIELD.&quot; WHERE &quot;._PENNAMEFIELD.&quot; = &#039;&quot;.$_POST.&quot;&#039;&quot;);<br>$passwd = dbassoc($result);<br>if(!dbnumrows($result)) {<br>require_once(&quot;header.php&quot;);<br>//make a new TemplatePower object<br>if(file_exists(&quot;$skindir/default.tpl&quot;)) $tpl = new TemplatePower( &quot;$skindir/default.tpl&quot; );<br>else $tpl = new TemplatePower(&quot;default_tpls/default.tpl&quot;);<br>include_once(&quot;includes/pagesetup.php&quot;);<br>$output = write_error(_NOSUCHACCOUNT);<br>$tpl-&gt;assign(&quot;output&quot;, $output);<br>$tpl-&gt;printToScreen( );<br>dbclose( );<br>exit( );<br>}<br>if($maintenance &amp;&amp; $passwd &lt; 0) {<br>header(&quot;Location: maintenance.php&quot;);<br>exit( );<br>}<br>$encryptedpassword = md5($_POST);<br>if($passwd == -1) {<br>require_once(&quot;header.php&quot;);<br>//make a new TemplatePower object<br>if(file_exists(&quot;$skindir/default.tpl&quot;)) $tpl = new TemplatePower( &quot;$skindir/default.tpl&quot; );<br>else $tpl = new TemplatePower(&quot;default_tpls/default.tpl&quot;);<br>include_once(&quot;includes/pagesetup.php&quot;);<br>$output = write_error(_ACCOUNTLOCKED);<br>$tpl-&gt;assign(&quot;output&quot;, $output);<br>$tpl-&gt;printToScreen( );<br>dbclose( );<br>exit( );<br>}<br>if($passwd == $encryptedpassword) {<br>if(isset($_POST)) {<br>setcookie($sitekey.&quot;_useruid&quot;,$passwd, time()+60*60*24*30, &quot;/&quot;);<br>setcookie($sitekey.&quot;_salt&quot;, md5($passwd+$encryptedpassword),&nbsp; time()+60*60*24*30, &quot;/&quot;);<br>}<br>if(!isset($_SESSION)) session_start( );<br>$_SESSION = $passwd;<br>$_SESSION = md5($passwd+$encryptedpassword);<br>// Last visit mod<br>$update_lastlog = dbquery(&quot;UPDATE &quot;.$tableprefix.&quot;fanfiction_authors SET lastlog = now() WHERE uid = &#039;$passwd&#039; LIMIT 1&quot;);<br>// end Last visit mod<br>$logincode = dbquery(&quot;SELECT * FROM &quot;.TABLEPREFIX.&quot;fanfiction_codeblocks WHERE code_type = &#039;login&#039;&quot;);<br>while($code = dbassoc($logincode)) {<br>eval($code);<br>}<br>}<br><br>else { <br>require_once(&quot;header.php&quot;);<br>//make a new TemplatePower object<br>if(file_exists(&quot;$skindir/default.tpl&quot;)) $tpl = new TemplatePower( &quot;$skindir/default.tpl&quot; );<br>else $tpl = new TemplatePower(&quot;default_tpls/default.tpl&quot;);<br>include_once(&quot;includes/pagesetup.php&quot;);<br>$output .= &quot;&lt;div id=&quot;pagetitle&quot;&gt;&quot;._MEMBERLOGIN.&quot;&lt;/div&gt;&quot;;<br>$output .= &quot;&lt;div style=&#039;text-align: center;&#039;&gt;&quot;._WRONGPASSWORD.&quot;&lt;/div&gt;&quot;;<br>$tpl-&gt;assign(&quot;output&quot;, $output);<br>$tpl-&gt;printToScreen( );<br>dbclose( );<br>exit( );<br>}<br>$debug = $tempdebug;<br>}<br>else if(!isMEMBER) {<br>$output .= &quot;&lt;div id=&quot;pagetitle&quot;&gt;&quot;._MEMBERLOGIN.&quot;&lt;/div&gt;&quot;;<br>$output .= &quot;&lt;div style=&quot;width: 250px; margin: 0 auto; text-align: center;&quot;&gt;&lt;form method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot; action=&quot;user.php?action=login&quot;.(isset($_GET) &amp;&amp; isNumber($_GET) ? &quot;&amp;amp;sid=&quot;.$_GET : &quot;&quot;).&quot;&quot;&gt;<br>&lt;div class=&quot;label&quot; style=&quot;float: left;&nbsp; width: 30%; text-align: right;&quot;&gt;&lt;label for=&quot;penname&quot;&gt;&quot;._PENNAME.&quot;:&lt;/label&gt;&lt;/div&gt;&lt;INPUT type=&quot;text&quot; class=&quot;textbox&quot; name=&quot;penname&quot; id=&quot;penname&quot;&gt;&lt;br /&gt;<br>&lt;div class=&quot;label&quot; style=&quot;float: left; width: 30%; text-align: right;&quot;&gt;&lt;label for=&quot;pswd&quot;&gt;&quot;._PASSWORD.&quot;:&lt;/label&gt;&lt;/div&gt;&lt;INPUT type=&quot;password&quot; class=&quot;textbox&quot; id=&quot;pswd&quot; name=&quot;password&quot;&gt;&lt;br /&gt;<br>&lt;INPUT type=&quot;checkbox&quot; class=&quot;checkbox&quot; name=&quot;cookiecheck&quot; id=&quot;cookiecheck&quot; value=&quot;1&quot;&gt;&lt;label for=&quot;cookiecheck&quot;&gt;&quot;._REMEMBERME.&quot;&lt;/label&gt;&lt;br /&gt;<br>&lt;INPUT type=&quot;submit&quot; class=&quot;button&quot; name=&quot;submit&quot; value=&quot;&quot;._SUBMIT.&quot;&quot;&gt;<br>&lt;/form&gt;&lt;/div&gt;&quot;;<br>$linkquery = dbquery(&quot;SELECT * from &quot;.TABLEPREFIX.&quot;fanfiction_pagelinks WHERE link_name = &#039;login&#039; OR link_name = &#039;lostpassword&#039;&quot;);<br>while($link = dbassoc($linkquery)) {<br>if($link &amp;&amp; !isMEMBER) continue;<br>if($link == 2 &amp;&amp; !isADMIN) continue;<br>$pagelinks[$link] = array(&quot;id&quot; =&gt; $link, &quot;text&quot; =&gt; $link, &quot;url&quot; =&gt; _BASEDIR.$link, &quot;link&quot; =&gt; &quot;&lt;a href="&quot;&quot;.$link.&quot;&quot; title=&quot;&quot;.$link.&quot;&quot;&quot;.($link ? &quot; target=&quot;_blank&quot;&quot; : &quot;&quot;).($current == $link ? &quot; id=&quot;current&quot;&quot; : &quot;&quot;).&quot;&gt;&quot;.$link.&quot;&lt;/a&gt;&quot;);<br>}<br>$output .= &quot;&lt;div style=&#039;text-align: center;&#039;&gt;&quot;.$pagelinks.&quot; | &quot;.$pagelinks.&quot;&lt;/div&gt;&quot;;<br>}<br>?&gt;</pre><br><br><b>user.php</b><br><br><pre>&lt;?php<br>// ----------------------------------------------------------------------<br>// Copyright (c) 2007 by Tammy Keefer<br>// Based on eFiction 1.1<br>// Copyright (C) 2003 by Rebecca Smallwood.<br>// http://efiction.sourceforge.net/<br>// ----------------------------------------------------------------------<br>// LICENSE<br>//<br>// This program is free software; you can redistribute it and/or<br>// modify it under the terms of the GNU General Public License (GPL)<br>// as published by the Free Software Foundation; either version 2<br>// of the License, or (at your option) any later version.<br>//<br>// This program is distributed in the hope that it will be useful,<br>// but WITHOUT ANY WARRANTY; without even the implied warranty of<br>// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&nbsp; See the<br>// GNU General Public License for more details.<br>//<br>// To read the license please visit http://www.gnu.org/copyleft/gpl.html<br>// ----------------------------------------------------------------------<br>if(isset($_GET)) $current = $_GET;<br>else $current = &quot;login&quot;;<br><br>if($current == &quot;logout&quot; ) {<br>define(&quot;_LOGOUTCHECK&quot;, true);<br>include(&quot;user/logout.php&quot;);<br>}<br><br>if(!empty($_POST) &amp;&amp; $current == &quot;login&quot;) {<br>session_start();<br>define(&quot;_LOGINCHECK&quot;, true);<br>include(&quot;user/login.php&quot;);<br>}<br><br>require_once(&quot;header.php&quot;);<br>//make a new TemplatePower object<br>if(file_exists(&quot;$skindir/default.tpl&quot;)) $tpl = new TemplatePower( &quot;$skindir/default.tpl&quot; );<br>else $tpl = new TemplatePower(&quot;default_tpls/default.tpl&quot;);<br>if(file_exists(&quot;$skindir/listings.tpl&quot;)) $tpl-&gt;assignInclude( &quot;listings&quot;, &quot;./$skindir/listings.tpl&quot; );<br>else $tpl-&gt;assignInclude( &quot;listings&quot;, &quot;./default_tpls/listings.tpl&quot; );<br>include(&quot;includes/pagesetup.php&quot;);<br><br>if($action) $current = $action;<br>else $current = &quot;user&quot;;<br>// end main function <br>if((empty($action) || $action == &quot;login&quot;) &amp;&amp; isMEMBER) {<br>$output .= &quot;&lt;div id=&quot;pagetitle&quot;&gt;&quot;._USERACCOUNT.&quot;&lt;/div&gt;<br>&lt;div class=&quot;tblborder&quot; id=&quot;useropts&quot; style=&quot;padding: 5px; width: 50%; margin: 1em 25%;&quot;&gt;&quot;;<br>$panelquery = dbquery(&quot;SELECT * FROM &quot;.TABLEPREFIX.&quot;fanfiction_panels WHERE panel_hidden != &#039;1&#039; AND panel_level = &#039;1&#039; AND (panel_type = &#039;U&#039; &quot;.(!$submissionsoff || isADMIN ? &quot; OR panel_type = &#039;S&#039;&quot; : &quot;&quot;).($favorites ? &quot; OR panel_type = &#039;F&#039;&quot; : &quot;&quot;).&quot;) ORDER BY panel_type, panel_order, panel_title ASC&quot;);<br>if(!dbnumrows($panelquery)) $output .= _FATALERROR;<br>while($panel = dbassoc($panelquery)) {<br>if(!$panel) $output .=&nbsp; &quot;&lt;a href="&quot;user.php?action=&quot;.$panel.&quot;&quot;&gt;&quot;.$panel.&quot;&lt;/a&gt;&lt;br /&gt;n&quot;;<br>else $output .= &quot;&lt;a href="&quot;&quot;.$panel.&quot;&quot;&gt;&quot;.$panel.&quot;&lt;/a&gt;&lt;br /&gt;n&quot;;<br>}<br>$output .= &quot;&lt;/div&gt;n&quot;;<br>}<br>else if(!empty($action)) {<br>$panelquery = dbquery(&quot;SELECT * FROM &quot;.TABLEPREFIX.&quot;fanfiction_panels WHERE panel_name = &#039;$action&#039; AND (panel_type=&#039;U&#039; &quot;.(!$submissionsoff || isADMIN ? &quot; OR panel_type = &#039;S&#039;&quot; : &quot;&quot;).($favorites ? &quot; OR panel_type = &#039;F&#039;&quot; : &quot;&quot;).&quot;) LIMIT 1&quot;);<br>if(dbnumrows($panelquery)) {<br>$panel = dbassoc($panelquery);<br>if($panel &gt; 0 &amp;&amp; !isMEMBER) accessDenied( );<br>if($panel &amp;&amp; file_exists(_BASEDIR.$panel)) require_once(_BASEDIR.$panel);<br>else if(file_exists(&quot;user/{$action}.php&quot;)) require_once(&quot;user/{$action}.php&quot;);<br>else $output = write_error(_ERROR);<br>}<br>else $output .= write_error(_ERROR);<br>}<br>else $output = write_error(_NOTAUTHORIZED);<br>$tpl-&gt;assign( &quot;output&quot;, $output );<br>$tpl-&gt;printToScreen();<br>dbclose( );<br>?&gt;</pre>]]></content:encoded>
						                            <category domain="https://efiction.org/community/graveyard/">Graveyard</category>                        <dc:creator>SomethingBlue42</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-18586</guid>
                    </item>
				                    <item>
                        <title>Re: Help with Last Visit Mod</title>
                        <link>https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-18585</link>
                        <pubDate>Fri, 04 Mar 2011 01:38:18 +0000</pubDate>
                        <description><![CDATA[It&#039;s old school code, probably from before that change in 3.3. I&#039;m guessing your site has a prefix.change$update_lastlog = dbquery(&quot;UPDATE &quot;.$tableprefix.&quot;fanfiction...]]></description>
                        <content:encoded><![CDATA[It&#039;s old school code, probably from before that change in 3.3. I&#039;m guessing your site has a prefix.<br><br>change<br><br><pre><br>$update_lastlog = dbquery(&quot;UPDATE &quot;.$tableprefix.&quot;fanfiction_authors SET lastlog = now() WHERE uid = &#039;$useruid&#039; LIMIT 1&quot;);<br></pre><br><br>to<br><pre><br>$update_lastlog = dbquery(&quot;UPDATE &quot;.TABLEPREFIX.&quot;fanfiction_authors SET lastlog = now() WHERE uid = &#039;$useruid&#039; LIMIT 1&quot;);<br></pre>]]></content:encoded>
						                            <category domain="https://efiction.org/community/graveyard/">Graveyard</category>                        <dc:creator>Lyndsie</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-18585</guid>
                    </item>
				                    <item>
                        <title>Help with Last Visit Mod</title>
                        <link>https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-3071</link>
                        <pubDate>Fri, 04 Mar 2011 00:06:34 +0000</pubDate>
                        <description><![CDATA[I tried adding the Last Visit mod following the instructions in this topic &amp;gtand when I was done adding everything I ended up getting:A fatal MSQL error was encountered.Query: UPDATE fanfic...]]></description>
                        <content:encoded><![CDATA[I tried adding the Last Visit mod following the instructions in this topic &gt;<a class="go2wpf-bbcode" rel="nofollow" target="_blank" href="https://efiction.org/forums/index.php?topic=4781.0">https://efiction.org/forums/index.php?topic=4781.0</a> and when I was done adding everything I ended up getting:<br><br><blockquote><b>A fatal MSQL error was encountered.</b><br>Query: UPDATE fanfiction_authors SET lastlog = now() WHERE uid=&quot;LIMIT 1<br>Error: (1146) Table &#039;nsync908_archive.fanfiction_authors&#039; doesn&#039;t exist</blockquote><br><br>I figured out the error showed up when I uploaded the get_sessions_vars.php file (I&#039;ve included that code below) but I can&#039;t for the life of me figure out what I&#039;ve done wrong. Any help would be greatly appreciated.<br><br><pre>&lt;?php<br>// Mod: Last Visit 3.0 ----------------------------------<br>// ----------------------------------------------------------------------<br>// eFiction 3.2<br>// Copyright (c) 2007 by Tammy Keefer<br>// Valid HTML 4.01 Transitional<br>// Based on eFiction 1.1<br>// Copyright (C) 2003 by Rebecca Smallwood.<br>// http://efiction.sourceforge.net/<br>// ----------------------------------------------------------------------<br>// LICENSE<br>//<br>// This program is free software; you can redistribute it and/or<br>// modify it under the terms of the GNU General Public License (GPL)<br>// as published by the Free Software Foundation; either version 2<br>// of the License, or (at your option) any later version.<br>//<br>// This program is distributed in the hope that it will be useful,<br>// but WITHOUT ANY WARRANTY; without even the implied warranty of<br>// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&nbsp; See the<br>// GNU General Public License for more details.<br>//<br>// To read the license please visit http://www.gnu.org/copyleft/gpl.html<br>// ----------------------------------------------------------------------<br><br>if(!defined(&quot;_CHARSET&quot;)) exit( );<br>// Get session variables from cookie data if not logged in.<br>// To bridge to another program replace (or add to) this information with the bridge to your other script.&nbsp; See examples in the includes/bridges/ folder.<br>if (!empty($_COOKIE)) {<br>$userdata = dbassoc(dbquery(&quot;SELECT ap.*, &quot;._UIDFIELD.&quot; as uid, &quot;._PENNAMEFIELD.&quot; as penname, &quot;._EMAILFIELD.&quot; as email, &quot;._PASSWORDFIELD.&quot; as password FROM &quot;._AUTHORTABLE.&quot; LEFT JOIN &quot;.TABLEPREFIX.&quot;fanfiction_authorprefs as ap ON ap.uid = &quot;._UIDFIELD.&quot; WHERE &quot;._UIDFIELD.&quot; = &#039;&quot;.$_COOKIE.&quot;&#039;&quot;));<br>if($userdata &amp;&amp; $userdata != -1 &amp;&amp; $_COOKIE == md5($userdata+$userdata)) {<br>define(&quot;USERUID&quot;, $userdata);<br>define(&quot;USERPENNAME&quot;, $userdata);<br>// Last visit mod<br>$update_lastlog = dbquery(&quot;UPDATE &quot;.$tableprefix.&quot;fanfiction_authors SET lastlog = now() WHERE uid = &#039;$useruid&#039; LIMIT 1&quot;);<br>// end Last visit mod<br>if(!isset($_SESSION) &amp;&amp; !empty($userdata)) $siteskin = $userdata;<br>else if(isset($_SESSION)) $siteskin = $_SESSION;<br>else $siteskin = $defaultskin;<br>define(&quot;uLEVEL&quot;, $userdata);<br>define(&quot;isADMIN&quot;, uLEVEL &gt; 0 ? true : false);<br>define(&quot;isMEMBER&quot;, true);<br>if(EMPTY($_SESSION)) $ageconsent = $userdata;<br>else $ageconsent = $_SESSION;<br>}<br>}<br>if(!empty($_SESSION) &amp;&amp; !defined(&quot;USERUID&quot;)) {<br>$userdata = dbassoc(dbquery(&quot;SELECT ap.*, &quot;._UIDFIELD.&quot; as uid, &quot;._PENNAMEFIELD.&quot; as penname, &quot;._EMAILFIELD.&quot; as email, &quot;._PASSWORDFIELD.&quot; as password FROM &quot;._AUTHORTABLE.&quot; LEFT JOIN &quot;.TABLEPREFIX.&quot;fanfiction_authorprefs as ap ON ap.uid = &quot;._UIDFIELD.&quot; WHERE &quot;._UIDFIELD.&quot; = &#039;&quot;.$_SESSION.&quot;&#039;&quot;));<br>if($userdata &amp;&amp; $userdata != -1 &amp;&amp; $_SESSION == md5($userdata+$userdata)) {<br>define(&quot;USERUID&quot;, $userdata);<br>define(&quot;USERPENNAME&quot;, $userdata);<br>if(!isset($_SESSION) &amp;&amp; !empty($userdata)) $siteskin = $userdata;<br>else if(isset($_SESSION)) $siteskin = $_SESSION;<br>else $siteskin = $defaultskin;<br>define(&quot;uLEVEL&quot;, $userdata);<br>define(&quot;isADMIN&quot;, uLEVEL &gt; 0 ? true : false);<br>define(&quot;isMEMBER&quot;, true);<br>if(!isset($_SESSION)) $ageconsent = $userdata;<br>else $ageconsent = $_SESSION;<br>}<br>}<br>if(!defined(&quot;USERUID&quot;)) define(&quot;USERUID&quot;, 0);<br>if(!defined(&quot;USERPENNAME&quot;)) define(&quot;USERPENNAME&quot;, false);<br>if(!defined(&quot;uLEVEL&quot;)) define(&quot;uLEVEL&quot;, 0);<br>if(!defined(&quot;isMEMBER&quot;)) define(&quot;isMEMBER&quot;, false);<br>if(!defined(&quot;isADMIN&quot;)) define(&quot;isADMIN&quot;, false);<br>if(empty($siteskin)) $siteskin = $defaultskin;<br><br>?&gt;</pre>]]></content:encoded>
						                            <category domain="https://efiction.org/community/graveyard/">Graveyard</category>                        <dc:creator>SomethingBlue42</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/graveyard/help-with-last-visit-mod/#post-3071</guid>
                    </item>
							        </channel>
        </rss>
		