[MOD] Last Visit 3....
 
Notifications
Clear all

[MOD] Last Visit 3.0

61 Posts
22 Users
0 Reactions
28.6 K Views
(@sorrow)
Posts: 1
New Member
 

Just wondering if anyone has any further ideas on the problem with the display date? I'm still not sure what to tinker with to make it come correct, and apparently all of my users last logins were way back in 1970 πŸ˜›


 
Posted : 15/09/2007 10:20 pm
(@azurite)
Posts: 209
Reputable Member
 

Is this officially working with 3.3 yet? If so, what are the variables that needed changing? Is it the things like isAdmin?
Also, where does it display? Only on profiles, or on the Members list, or perhaps in the Action Log, or the Members admin panel? Being able to see all members from one place, rather than searching via profile would be especially handy for this, and/or perhaps a way to only display members who meet X criteria (like "Have not signed on within the past year").

Lastly, did any/everyone figure out the "wrong date" associated with login error, for those that had dates from 1960-70?


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 29/09/2007 2:39 am
(@marauder-by-midnight)
Posts: 56
Trusted Member
 

No one is answering in the thread of the eFic 2.x version of this mod, so hopefully it's okay if I ask here. What and where do I put the ALTER TABLE if I am not using phpmyadmin (it's not working for me for some reason)? This is what I currently have in my Update-tables-step6.sql:

ALTER TABLE `fanfiction_authors`
ADD `Yahoo` VARCHAR( 40 ) DEFAULT '0' NOT NULL ,
ADD `ICQ` VARCHAR( 40 ) DEFAULT '0' NOT NULL ,
ADD `MSN` VARCHAR( 40 ) DEFAULT '0' NOT NULL ,
ADD `betareader` CHAR( 1 ) DEFAULT '0' NOT NULL ,
ADD `ageconsent` CHAR( 1 ) DEFAULT '0' NOT NULL ,
ADD `alertson` CHAR( 1 ) DEFAULT '0' NOT NULL,
ADD `lastlog` DATETIME NOT NULL ,
CHANGE `newreviews` `newreviews` CHAR( 1 ) DEFAULT '0' NOT NULL ,
CHANGE `admincreated` `admincreated` CHAR( 1 ) DEFAULT '0' NOT NULL ,
ADD `lastlog` DATETIME NOT NULL ;
ALTER TABLE `fanfiction_characters` ADD `bio` TEXT NOT NULL, ADD `image` VARCHAR( 200 ) NOT NULL;
ALTER TABLE `fanfiction_categories` CHANGE `locked` `locked` CHAR( 1 ) DEFAULT '0' NOT NULL;
ALTER TABLE `fanfiction_ratings` CHANGE `ratingwarning` `ratingwarning` CHAR( 1 ) DEFAULT '0' NOT NULL;
ALTER TABLE `fanfiction_reviews` CHANGE `sid` `chapid` INT( 11 ) DEFAULT '0' NOT NULL ,
CHANGE `psid` `sid` INT( 11 ) DEFAULT '0' NOT NULL, ADD `respond` CHAR( 1 ) DEFAULT '0' NOT NULL ,
ADD `seriesid` INT( 11 ) DEFAULT '0' NOT NULL;

I didn't put it in twice; this just shows the position I've put that code two separate times.

I then followed the instructions for the eFic 2.x thread.


 
Posted : 30/01/2008 11:10 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Pretty much the same people who read the 2.x boards read the 3.x boards too.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 30/01/2008 8:31 pm
(@tammy)
Posts: 2577
Member Moderator
 

The second one is definitely wrong.  You probably want to remove that completely.  I'm not sure what you're doing with it though. If you're updating a 2.0 archive to a 3.3 archive and the 2.0 already has this mod there is no need to add this.


 
Posted : 31/01/2008 1:10 pm
(@marauder-by-midnight)
Posts: 56
Trusted Member
 

Nope, I'm not updating (yet). What I'm trying to do is add a field in fanfiction_authors as specified in this and the 2.0 mod thread. And I was merely showing the two places I put the line; I didn't put both at the same time.

Here's my code:

ALTER TABLE `fanfiction_authors`
ADD `Yahoo` VARCHAR( 40 ) DEFAULT '0' NOT NULL ,
ADD `ICQ` VARCHAR( 40 ) DEFAULT '0' NOT NULL ,
ADD `MSN` VARCHAR( 40 ) DEFAULT '0' NOT NULL ,
ADD `betareader` CHAR( 1 ) DEFAULT '0' NOT NULL ,
ADD `ageconsent` CHAR( 1 ) DEFAULT '0' NOT NULL ,
ADD `alertson` CHAR( 1 ) DEFAULT '0' NOT NULL,
ADD `lastlog` DATETIME NOT NULL ;
CHANGE `newreviews` `newreviews` CHAR( 1 ) DEFAULT '0' NOT NULL ,
CHANGE `admincreated` `admincreated` CHAR( 1 ) DEFAULT '0' NOT NULL ,
ALTER TABLE `fanfiction_characters` ADD `bio` TEXT NOT NULL, ADD `image` VARCHAR( 200 ) NOT NULL;
ALTER TABLE `fanfiction_categories` CHANGE `locked` `locked` CHAR( 1 ) DEFAULT '0' NOT NULL;
ALTER TABLE `fanfiction_ratings` CHANGE `ratingwarning` `ratingwarning` CHAR( 1 ) DEFAULT '0' NOT NULL;
ALTER TABLE `fanfiction_reviews` CHANGE `sid` `chapid` INT( 11 ) DEFAULT '0' NOT NULL ,
CHANGE `psid` `sid` INT( 11 ) DEFAULT '0' NOT NULL, ADD `respond` CHAR( 1 ) DEFAULT '0' NOT NULL ,
ADD `seriesid` INT( 11 ) DEFAULT '0' NOT NULL;


 
Posted : 01/02/2008 9:49 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Not related to the previous posts at hand, but this mod begins the 31st December 1969 activity after upgrading to PHP 5.2.5


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 09/02/2008 3:09 pm
(@Seiji)
Posts: 0
 

Yo o

Well, I updated my MOD for eFiction 3.X and it's working fine here. What I did:

On profile.php, added to $result2 :  DATE_FORMAT(lastlog, '%d/%m/%Y -  %H:%i')

This will display the date like: "27/02/2008 - 22:15"  (dd/mm/yyyy - 24 hour format)
If you want to change it, take a look at mysql reference manual:
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_date-format

Those lines will check if user updated lastlog, if so, it will show last time user was online. If not, displays "Unavailable"

if  (ereg("00/00/0000", $userinfo['lastlog'])) {
  $tpl->assign("lastlog", "Unavailable");
}
else {
    $tpl->assign("lastlog", $userinfo['lastlog']); 
}

Hope it helps.


 
Posted : 25/02/2008 4:22 pm
(@jacynthe)
Posts: 242
Estimable Member
 

Thanks Seiji. That worked wonders!


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 09/03/2008 8:24 pm
(@amancham)
Posts: 40
Eminent Member
 

Wow. I love this mod. I've just installed it on my eFiction site... so far everything works fine πŸ˜‰
Thank you very much for this great mod.

Would be interesting to have the last login showing up in the members list in the admin area. Would that be possible somehow?


Old
URL: http://fiction.intayale.de
Version: 3.3.1
Modules: Challenges, Story Tracker, Mulit-lang. eFiction
PHP:  4.4.8
MySQL: 5.0.51a

New
URL: http://intayale.de/deFiction
Version: 3.5
Modules: Last Login
PHP:  5.2.9
MySQL: 5.0.77

 
Posted : 26/03/2008 3:48 pm
(@marauder-by-midnight)
Posts: 56
Trusted Member
 

Hmm I got this to work when I changed $tableprefix to .TABLEPREFIX.


 
Posted : 31/03/2008 7:57 pm
(@Seiji)
Posts: 0
 

Nice Marauder πŸ˜€

Amancham, we can do it, it's easy. I have to go to university right now, but I'll try to help you when I come back.


 
Posted : 02/04/2008 6:29 pm
(@amancham)
Posts: 40
Eminent Member
 

Thanks, Seiji. Would be lovely!


Old
URL: http://fiction.intayale.de
Version: 3.3.1
Modules: Challenges, Story Tracker, Mulit-lang. eFiction
PHP:  4.4.8
MySQL: 5.0.51a

New
URL: http://intayale.de/deFiction
Version: 3.5
Modules: Last Login
PHP:  5.2.9
MySQL: 5.0.77

 
Posted : 27/04/2008 4:16 am
(@itanshi)
Posts: 381
Reputable Member
 

I am installing this to efiction 3.5 and I'm seeing this getting a version update. Seiji provided the code, but I'm not entirely sure how to input it into the profile.php page Thanks


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 24/03/2009 6:11 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

^ Which part?

If it's the part where it defines the variable, you could theoretically put that anywhere. For example, some place after a similar bit of coding? ($tpl->assign ...)


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 24/03/2009 7:18 pm
Page 2 / 5
Share: