Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: M-DVD on June 05, 2009, 04:46:18 AM

Title: Your Last Visit
Post by: M-DVD on June 05, 2009, 04:46:18 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1854)




MOD Your Last Visit v1.1
=================






  • Author:
M-DVD (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
  • Version:
1.1
  • Release:
24th May 2009
  • Languages:

 
  • Compatible With:
SMF 1.1.1 - 1.1.9
SMF 2 RC1-1




(http://www.simplemachines.org/community/index.php?action=post;topic=315507.0)
Comment this Mod (http://www.simplemachines.org/community/index.php?action=post;topic=315507.0)
(http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
My MODs (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
(http://custom.simplemachines.org/mods/index.php?mod=1854)
Images (http://custom.simplemachines.org/mods/index.php?mod=1854)
(https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421)Help support my MODs (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421)


  • ChangeLog (#post_changelog)
(#post_changelog)

Features:


Note 1: The date/time 'Last Visited' is different to 'Last Active'.
Note 2: At the moment install the MOD, the 'Last Visited' don't exists, and isn't shows. After the next visit or logout, the 'Last Visited' will be shows.

Thanks to Blinker (http://www.simplemachines.org/community/index.php?action=profile;u=115073) for idea.

==========================

Languages (normal & utf-8)


$txt['your_last_visit'] = 'You last visited:';
$txt['last_visit'] = 'Last Visit';

I welcome new translations here (http://www.simplemachines.org/community/index.php?action=post;topic=315507.0)

==========================

Características:


Nota 1: La 'Última Visita' es diferente a 'Última vez Activo'.
Nota 2: Al momento de instalar el MOD no habrá ninguna 'Última Visita' registrada, por lo que no se mostrará. Luego de la próxima visita o cierre de sesión, la 'Última Visita' se mostrará.

Fin.

==========================

ChangeLog:



QuoteVersion 1.0 (http://www.simplemachines.org/community/index.php?topic=315507.msg2094592#msg2094592) - 24th May 2009
   o Initial release.
   o Will be displayed the date/time the last visited in the Profile Header.
   o Compatible with SMF 1.1.X & SMF 2RC-X
Version 1.1 (http://www.simplemachines.org/community/index.php?topic=315507.msg2134914#msg2134914) - 29th June 2009
   ! Fix bug, last visit date incorrect after login - Thanks Blinker by report
   + Also the last visit is displayed in the profile - Thanks Jessikard by idea
   o In the profile, the 'last visit' date will be hidden if the member has hidden his online status.
   * Extra: also the 'last active' date will be hidden if the member has hidden his online status.
   + English, English_British, Spanish_Es, Spanish_Latin and Greek in the package
   ? Unistall and ReInstall - Isn't neccesary re-edit yours custom templates files

QuoteLeyend
   o Feature
   * Change
   + Added
   - Eliminated
   ! Bug Fixed
   ? How to Update
Title: Re: Your Last Visit
Post by: M-DVD on June 05, 2009, 01:13:27 PM
Had less than 9 downloads, and the package was re-uploaded to fix a spelling mistake (thanks fille87 (http://www.simplemachines.org/community/index.php?action=profile;u=208957) for reporting).
Title: Re: Your Last Visit
Post by: Eclipse16V on June 05, 2009, 05:09:44 PM
Here in German

// MOD Your Last Visit
$txt['your_last_visit'] = 'Letzter Besuch:';
Title: Re: Your Last Visit
Post by: M-DVD on June 05, 2009, 09:29:31 PM
Quote from: Eclipse16V on June 05, 2009, 05:09:44 PM
Here in German

// MOD Your Last Visit
$txt['your_last_visit'] = 'Letzter Besuch:';


Thanks, have been uploaded :)
Title: Re: Your Last Visit
Post by: speedyuk7 on June 05, 2009, 10:27:31 PM
I installed your mod, its nice but I changed the text to "Your last visit:" instead of "You last visited:", I think it's more correct like that.
Thanks for your mod
Here in polish tho :p

//   MOD Your Last Visit
$txt['your_last_visit'] = 'Ostatnia wizyta:';
Title: Re: Your Last Visit
Post by: Blinker on June 06, 2009, 02:45:10 AM
Hi M-DVD

I realised I have a support question in the original mod request thread so I thought I better keep that stuff in this thread.

I'm not sure if this is how you intended the mod to work but when you log in it shows your last visit as the exact time of your login. It should show (rather, what I was originally wanting) was the logout time of the last visit.

For example:

Login at 12:10pm, browse for 20 mins and logout at 12:30pm. Log back in again at 4:30pm.

Currently it will show - You last visited: Today at 16:30:00

Instead, I would like it to show - You last visited: Today at 12:30:00

Does that make sense? I use this feature on VBulletin forums to work backwards and see which posts I should be reading in certain topics I'm following (that are new since my last visit). Using the unread posts feature is useless on a board that might have 10,000 new posts since my last visit.
Title: Re: Your Last Visit
Post by: Dante` on June 06, 2009, 05:36:58 AM
Here is turkish

//   MOD Your Last Visit
$txt['your_last_visit'] = 'Son Ziyaretin:';

and nice mod
thx
Title: Re: Your Last Visit
Post by: islam2hamy on June 06, 2009, 05:48:23 AM
nice mode

Arabic translation (utf-8) :

$txt['your_last_visit'] = 'آخر زيارة لك كانت فى :';

please before put the translation in the file be sure that the file encode is UTF-8
Title: Re: Your Last Visit
Post by: Sudhakar Arjunan on June 06, 2009, 11:24:58 AM
Good Mod.

Thank you M-DVD
Title: Re: Your Last Visit
Post by: Jessikard on June 07, 2009, 07:39:11 PM
i think it would be great - but is it possible to show this in each profile
because then the mods and admins can see how many time is between the visit now and the visit before

Title: Re: Your Last Visit
Post by: M-DVD on June 07, 2009, 08:02:26 PM
Quote from: speedyuk7 on June 05, 2009, 10:27:31 PM
I installed your mod, its nice but I changed the text to "Your last visit:" instead of "You last visited:", I think it's more correct like that.
Thanks for your mod

Thanks for your comments, and yes, have been fixed :)

--

Quote from: speedyuk7 on June 05, 2009, 10:27:31 PM
Here in polish tho :p

//   MOD Your Last Visit
$txt['your_last_visit'] = 'Ostatnia wizyta:';


Quote from: dantebyy on June 06, 2009, 05:36:58 AM
Here is turkish

//   MOD Your Last Visit
$txt['your_last_visit'] = 'Son Ziyaretin:';

and nice mod
thx

Quote from: islam2hamy on June 06, 2009, 05:48:23 AM
nice mode

Arabic translation (utf-8) :

$txt['your_last_visit'] = 'آخر زيارة لك كانت فى :';

please before put the translation in the file be sure that the file encode is UTF-8

Thanks for translate, have been uploaded :)

--

Quote from: Blinker on June 06, 2009, 02:45:10 AM
Login at 12:10pm, browse for 20 mins and logout at 12:30pm. Log back in again at 4:30pm.

Currently it will show - You last visited: Today at 16:30:00

Instead, I would like it to show - You last visited: Today at 12:30:00

I will check it ::)

--

Quote from: A.SK on June 06, 2009, 11:24:58 AM
Good Mod.

Thank you M-DVD

Thanks for your comment :)

--

Quote from: Jessikard on June 07, 2009, 07:39:11 PM
i think it would be great - but is it possible to show this in each profile
because then the mods and admins can see how many time is between the visit now and the visit before

I can try add this feature. Thanks. :)
Title: Re: Your Last Visit
Post by: Jessikard on June 08, 2009, 02:23:05 AM
if you could, you´ll be my hero , because that is a perfect mod for our forum  :-*
Title: Re: Your Last Visit
Post by: villasg on June 09, 2009, 05:07:13 PM
Good mod

greek
//   MOD Your Last Visit
$txt['your_last_visit'] = 'Η τελευταία σας επίσκεψη:';
Title: Re: Your Last Visit
Post by: M-DVD on June 09, 2009, 10:41:32 PM
Quote from: villasg on June 09, 2009, 05:07:13 PM
Good mod

greek
//   MOD Your Last Visit
$txt['your_last_visit'] = 'Η τελευταία σας επίσκεψη:';


Thanks for translate, in the next update i will add this translation. :)

--

Quote from: Jessikard on June 08, 2009, 02:23:05 AM
if you could, you´ll be my hero , because that is a perfect mod for our forum  :-*

Ok, I need a new text.

$txt['last_visit'] = 'Last Visit:';

I will include in the new package (It will have this new feature and an fix bug) all translations (Will be released when I have this new text.)
Title: Re: Your Last Visit
Post by: Jessikard on June 10, 2009, 03:44:55 AM
 O:) i think it would be one of the most helpful mods for our team

i expect your update and if it run to our 1.1.9 smf i´ll rate 5 stars for you
Title: Re: Your Last Visit
Post by: fille87 on June 10, 2009, 05:19:09 AM
Translated to swedish:


//   MOD Your Last Visit
$txt['your_last_visit'] = 'Ditt senaste besök:';
Title: Re: Your Last Visit
Post by: Blinker on June 28, 2009, 08:56:48 PM
Quote from: M-DVD on June 07, 2009, 08:02:26 PM
Quote from: Blinker on June 06, 2009, 02:45:10 AM
Login at 12:10pm, browse for 20 mins and logout at 12:30pm. Log back in again at 4:30pm.

Currently it will show - You last visited: Today at 16:30:00

Instead, I would like it to show - You last visited: Today at 12:30:00

I will check it ::)

Hi M-DVD

Any news on this? It still shows current login time as last visit.

Have you (or anyone else) been able to replicate this?
Title: Re: Your Last Visit
Post by: villasg on June 29, 2009, 08:24:22 AM
greek-utf8
$txt['last_visit'] = 'Tελευταία επίσκεψη:';

Title: Re: Your Last Visit
Post by: milenmk on June 29, 2009, 11:26:20 AM
On Bulgarian - $txt['Вашето_последно_посещение'] = 'Вашето последно посещение:';
Title: Re: Your Last Visit
Post by: M-DVD on June 29, 2009, 02:59:11 PM
Update Your Last Visit v1.1:
=========================


New features:

How do I upgrade?

=======================================

Características Nuevas:

¿Como actualizar?
Title: Re: Your Last Visit
Post by: Chaos Dragon on June 29, 2009, 04:49:07 PM
I Uploaded your new version of "Your last visit" I originally uploaded 1.0 and was going to leave a reply here stating that it did not have last visit on the page instead it showed when you logged in.
Anyway I uninstalled 1.0 and installed 1.1 and did the manual install for Load.php because it failed the modification test and went to add the code manually then saved and it did not show at all, but when I reinstall the older version it is fine.
I uploaded my Load.php just in case.....The only one that was giving me a problem was this:
Findmem.openid_uri, mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login,

Add After mem.last_visit,

That's what i like about SMF2.0RC1-1 it pretty much tells which one is failing instead of the whole file as it does in SMF1.1.9.

Anywho if you could take a look I would appreciate it. Thank You
I do also Have a few other mods installed.

Title: Re: Your Last Visit
Post by: M-DVD on June 29, 2009, 04:59:58 PM
Quote from: Chef-Polo on June 29, 2009, 04:49:07 PM
I Uploaded your new version of "Your last visit" I originally uploaded 1.0 and was going to leave a reply here stating that it did not have last visit on the page instead it showed when you logged in.
Anyway I uninstalled 1.0 and installed 1.1 and did the manual install for Load.php because it failed the modification test and went to add the code manually then saved and it did not show at all, but when I reinstall the older version it is fine.
I uploaded my Load.php just in case.....The only one that was giving me a problem was this:
Findmem.openid_uri, mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login,

Add After mem.last_visit,

That's what i like about SMF2.0RC1-1 it pretty much tells which one is failing instead of the whole file as it does in SMF1.1.9.

Anywho if you could take a look I would appreciate it. Thank You
I do also Have a few other mods installed.



This line is for SMF 2RC

You should see the install_1.xml ;)
Title: Re: Your Last Visit
Post by: Chaos Dragon on June 29, 2009, 05:10:58 PM
Yes I know it is for both SMF1.1.9 and 2.0RC1-1......
It is stated in "Compatible with"
As I said when I make the manual install and add the one piece of code it does not show in the header area where the info should be and also does not display on the profile.

It gets a Test Failed in Load.php.
1.  Execute Modification  ./Sources/Load.php  Test failed
1. Add After ./Sources/Load.php Test successful
2. Add After ./Sources/Load.php Test successful
3. Add After ./Sources/Load.php Test successful
4. Add After ./Sources/Load.php Test failed
5. Add After ./Sources/Load.php Test successful


That is the only one that fails. The rest installs fine. I go ahead and install and then manually add that one piece of code and save and nothing happens.

Title: Re: Your Last Visit
Post by: villasg on July 01, 2009, 10:44:12 AM
Hi .
I remove the previous version and try to install the new .
I take error in ./Themes/default/Profile.template.php .
Examine the install_1.xml and found (?) the error .

The action is : in istall_1.xml in
[CDATA[
            </tr><tr>
               <td><b>', $txt['lastLoggedIn'], ': </b></td>
               <td>', $context['member']['last_login'], '</td>
            </tr>';]]

What is your opinion ?
take and my Profile.template.php

I modify the  install_1.xml and try to install but take again the same error
smf Version 1.1.9 .

can you help me ?
Title: Re: Your Last Visit
Post by: Blinker on July 02, 2009, 04:59:16 AM
Awesome work M-DVD, the update fixed the bug! Fantastic stuff, thank you very much. :)

One question: I have the Time Logged In mod, which means the code for the profile template doesn't fit as it should. It may actually be another mod causing it but I'm not sure.

I've attached my profile.template.php file. Would you mind taking a look at it when you get a chance? I think the section I need has been commented out by a mod.
Title: Re: Your Last Visit
Post by: M-DVD on July 05, 2009, 12:19:42 AM
Quote from: Chaos Dragon on June 29, 2009, 05:10:58 PM
Yes I know it is for both SMF1.1.9 and 2.0RC1-1......
It is stated in "Compatible with"
As I said when I make the manual install and add the one piece of code it does not show in the header area where the info should be and also does not display on the profile.

It gets a Test Failed in Load.php.
1.  Execute Modification  ./Sources/Load.php  Test failed
1. Add After ./Sources/Load.php Test successful
2. Add After ./Sources/Load.php Test successful
3. Add After ./Sources/Load.php Test successful
4. Add After ./Sources/Load.php Test failed
5. Add After ./Sources/Load.php Test successful


That is the only one that fails. The rest installs fine. I go ahead and install and then manually add that one piece of code and save and nothing happens.

Ok, but you didn't find this code:

mem.openid_uri, mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login,

Because, is for SMF 2RC.

You should look the install_1.xml

<file name="$sourcedir/Load.php">
<operation>
<search position="before"><![CDATA[
mem.birthdate, mem.memberIP, mem.memberIP2, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin,]]></search>
<add><![CDATA[ mem.last_visit,]]></add>
</operation>

<operation>
<search position="before"><![CDATA[
mem.birthdate, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin,]]></search>
<add><![CDATA[ mem.last_visit,]]></add>
</operation>

<operation>
<search position="before"><![CDATA[
'last_login_timestamp' => empty($profile['lastLogin']) ? 0 : forum_time(0, $profile['lastLogin']),]]></search>
<add><![CDATA[
'last_visit' => $profile['isOnline'] > 0 ? $profile['last_visit'] : max($profile['last_visit'], $profile['lastLogin']),
'show_online' => !empty($profile['showOnline']) || allowedTo('moderate_forum'),]]></add>
</operation>
</file>


--

Quote from: villasg on July 01, 2009, 10:44:12 AM
Hi .
I remove the previous version and try to install the new .
I take error in ./Themes/default/Profile.template.php .
Examine the install_1.xml and found (?) the error .

The action is : in istall_1.xml in
[CDATA[
            </tr><tr>
               <td><b>', $txt['lastLoggedIn'], ': </b></td>
               <td>', $context['member']['last_login'], '</td>
            </tr>';]]

What is your opinion ?
take and my Profile.template.php

I modify the  install_1.xml and try to install but take again the same error
smf Version 1.1.9 .

can you help me ?


Look the attachment(1)

(*)

--

Quote from: Blinker on July 02, 2009, 04:59:16 AM
Awesome work M-DVD, the update fixed the bug! Fantastic stuff, thank you very much. :)

One question: I have the Time Logged In mod, which means the code for the profile template doesn't fit as it should. It may actually be another mod causing it but I'm not sure.

I've attached my profile.template.php file. Would you mind taking a look at it when you get a chance? I think the section I need has been commented out by a mod.

Look the attachment(2)

(*)

--

(*) What other MOD you have installed? The Time Logged-In?
Title: Re: Your Last Visit
Post by: Blinker on July 05, 2009, 01:26:52 AM
Thanks M-DVD, that worked perfectly, last visit now shows in profiles! :) You're a legend.
Title: Re: Your Last Visit
Post by: MATTEK on July 05, 2009, 01:52:55 AM
Works perfect. Thank you.
Title: Re: Your Last Visit
Post by: villasg on July 05, 2009, 05:29:12 AM
Quote from: M-DVD on July 05, 2009, 12:19:42 AM
(*) What other MOD you have installed? The Time Logged-In?

1.     Add IP2Location to Track IP      1.1      
2.    No Temp Directory Removal    1.0    
3.    TinyPortal    0.983    
4.    Ad Managment    2.3    
5.    YouTube BBCode    2.5.1    
6.    vMoveTopic Notify by PM    1.0    
7.    Go Up & Go Down    1.2    
8.    Images On Board    1.1    
9.    Audible PM    1.5    
10.    RemovePM    1.1.4    
11.    Recycle Bin Cleaner    1.1    
12.    MessagePreviewOnHover    1.7    
13.    Quick PM    1.0    
14.    Header Rotator    1.1.0    
15.    Are You Human? Anti-Bot Registration Check    1.3    
16.    SMF 1.0.14 / 1.1.6 Update    1.0    
17.    Registered Images    2.3    
18.    Welcome Back    1.0    
19.    Manage Members Membergroups    1.0.0    
20.    Welcome Topic Mod    2.0.2    
21.     Custom Copyright      1.1
22.    Posting_Announcement    1.1.4    
23.    Search Time Limitation    1.0    
24.    Restrict Email Providers on Registration    1.2    
25.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0    
26.    Time Logged-In    3.3    
27.    Welcome Back    1.0    
28.    New Style Message Icon    1.1    
29.    Registration redirection    0.1    
30.    Off-Topic_BBC_Tag    1.0    
31.    Thank-O-Matic    1.2.4    
32.    Auto Merge Double Post    1.2
33.    Stop Forum Spam    0.5    
34.    Easy Edit Meta Data    1.0    
35.    Thank-O-Matic Greek Translation    1.2.2    
36.    OS & Browser Detection    1.4    
37.    Skype Integration    1.0    
38.    Simple ImageShack    2.0.3    
39.    SMF 1.0.16 / 1.1.8 Update    1.0
40.    SMF 1.0.15 / 1.1.7 Update    1.0    
41.    Activity_Bar    1.0.1
Title: Re: Your Last Visit
Post by: villasg on July 05, 2009, 06:00:01 AM
Have errors
http://www.thai.gr/....../index.php?action=profile;u=741
8: Undefined index: online_for
Αρχείο: /home/,,,,,,,,,,/Themes/default/languages/Who.greek-utf8.php (summary sub template - eval?)
Γραμμή: 188


http://www.thai.gr/,,,,,,/index.php?action=profile;u=741
8: Undefined index: first_login
Αρχείο: /home/,,,,,,,,,,,,,,,,,,/Themes/default/languages/Who.greek-utf8.php (summary sub template - eval?)
Γραμμή: 182

Title: Re: Your Last Visit
Post by: M-DVD on July 05, 2009, 02:57:38 PM
Try now

--

Quote from: MATTEK on July 05, 2009, 01:52:55 AM
Works perfect. Thank you.

Quote from: Blinker on July 05, 2009, 01:26:52 AM
Thanks M-DVD, that worked perfectly, last visit now shows in profiles! :) You're a legend.

Thanks for yoor cumment :)

PS: Blinker, If (sometime) happens the same problem villasg's, tell me.


Title: Re: Your Last Visit
Post by: lucas-ruroken on July 05, 2009, 03:14:16 PM
Nice ^^
Thanks!
Title: Re: Your Last Visit
Post by: villasg on July 05, 2009, 04:29:10 PM
Quote from: M-DVD on July 05, 2009, 02:57:38 PM
Try now


Ok i install again with new "Profile.template.php" provided from you .
I watch for errors
Thanks

Again
ttp://www.thai.gr/forum/index.php?action=profile
8: Undefined index: online_for
Αρχείο: /home/thai.gr/www/forum/Themes/default/languages/Who.greek-utf8.php (summary sub template - eval?)
Γραμμή: 188


8: Undefined index: first_login
Αρχείο: /home/thai.gr/www/forum/Themes/default/languages/Who.greek-utf8.php (summary sub template - eval?)
Γραμμή: 182
Title: Re: Your Last Visit
Post by: Blinker on July 05, 2009, 07:40:05 PM
Quote from: M-DVD on July 05, 2009, 02:57:38 PMPS: Blinker, If (sometime) happens the same problem villasg's, tell me.

Hi mate, I just checked my error log and sure enough, there are a few error messages. Always two for each member. The same ones as villasg's.

[8: Undefined index: first_login] <td>', $context['first_login'], '</td>

and

[8: Undefined index: online_for] <td>', $context['online_for'], '</td>

The lines of code from the profile are in the middle of the Time Logged In mod's code.

Here is the whole relevant section:

echo '
            <tr>
               <td><b>', $txt['lastLoggedIn'], ': </b></td>
                                        <td>', $context['member']['last_login'], '</td>
                                </tr>';

if (allowedTo('profile_logged_in'))
echo '
<tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>';

if (($context['member']['show_online'] || $context['user']['is_owner']) && $context['member']['last_visit'])
echo '
<tr>
<td><b>', $txt['last_visit'], ': </b></td>
<td>', timeformat($context['member']['last_visit']), '</td>
</tr>';

if (!allowedTo('profile_logged_in') || $context['member']['show_online'] || $context['user']['is_owner'])
echo '
<tr>
<td><b>', $txt['tli_logged_in'], ': </b></td>
<td>', $context['first_login'], '</td>
</tr><tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr><tr>
<td><b>', $txt['tli_online_for'], ': </b></td>
<td>', $context['online_for'], '</td>
</tr>';

if (allowedTo('profile_logged_in'))
echo '
<tr>
<td><b>', $txt['tli_posts_made'], ':</b></td>
<td>', $context['posts_made'], '</td>
</tr><tr>
<td><b>', $txt['tli_posts_before'], ':</b></td>
<td>', $context['posts_before'], '</td>
</tr><tr>
<td><b>', $txt['tli_total_posts'], ': </b></td>
<td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td>
</tr><tr>
<td><b>', $txt['tli_total_logged_in'], ':</b></td>
<td>', $context['total_logged_in'], '</td>
</tr><tr>
<td><b>', $txt['tli_theme'], ':</b></td>
<td>', $context['theme_name'], '</td>
</tr>';
Title: Re: Your Last Visit
Post by: Chaos Dragon on July 05, 2009, 07:50:41 PM
Sorry for the late reply but all issues have been resolved.....
Thanks for a great mod....
Title: Re: Your Last Visit
Post by: M-DVD on October 03, 2009, 12:09:07 AM
Quote from: villasg on July 05, 2009, 04:29:10 PM
Ok i install again with new "Profile.template.php" provided from you .
I watch for errors
Thanks

Again
ttp://www.thai.gr/forum/index.php?action=profile
8: Undefined index: online_for
Αρχείο: /home/thai.gr/www/forum/Themes/default/languages/Who.greek-utf8.php (summary sub template - eval?)
Γραμμή: 188


8: Undefined index: first_login
Αρχείο: /home/thai.gr/www/forum/Themes/default/languages/Who.greek-utf8.php (summary sub template - eval?)
Γραμμή: 182


Quote from: Blinker on July 05, 2009, 07:40:05 PM
Quote from: M-DVD on July 05, 2009, 02:57:38 PMPS: Blinker, If (sometime) happens the same problem villasg's, tell me.

Hi mate, I just checked my error log and sure enough, there are a few error messages. Always two for each member. The same ones as villasg's.

[8: Undefined index: first_login] <td>', $context['first_login'], '</td>

and

[8: Undefined index: online_for] <td>', $context['online_for'], '</td>

The lines of code from the profile are in the middle of the Time Logged In mod's code.

Here is the whole relevant section:


Sorry for delay.

Have you uninstalled the MOD Time Logged-In?

These variables must exist if still you have installed it.

--

Quote from: Chaos Dragon on July 05, 2009, 07:50:41 PM
Sorry for the late reply but all issues have been resolved.....
Thanks for a great mod....


You're welcome. I'm glad that works well. :)
Title: Re: Your Last Visit
Post by: villasg on October 03, 2009, 02:31:22 AM
Quote from: M-DVD on October 03, 2009, 12:09:07 AM

Sorry for delay.

Have you uninstalled the MOD Time Logged-In?

These variables must exist if still you have installed it.


I have glean up and remove the mod !
Title: Re: Your Last Visit
Post by: meehan09 on October 03, 2009, 08:06:16 AM
Since i installed this hack iam getting erros in admin error logs for GUEST Only?

------------------------------------------------------------------------------
http://www.exoticforums.co.uk//index.php?action=dlattach;attach=357;type=avatar
Undefined variable: id_member
File: /home/reptiles/public_html/Sources/Load.php
Line: 1648

-----------------------------------------------------------------------------

http://www.exoticforums.co.uk//index.php?action=dlattach;attach=357;type=avatar 
Undefined index: last_login
File: /home/reptiles/public_html/Sources/Load.php
Line: 1647


Ive also attachted my Load.php below, I hope somone can fix this for me has iam not sure why iam getting thease errors.



Thanks in advance,
Paul
Title: Re: Your Last Visit
Post by: meehan09 on October 05, 2009, 08:22:05 AM
Anyone please?, has this is filling my logs up pritty quick and always needing to remove all logs  :(
Title: Re: Your Last Visit
Post by: M-DVD on October 05, 2009, 10:07:22 AM
Quote from: villasg on October 03, 2009, 02:31:22 AM
Quote from: M-DVD on October 03, 2009, 12:09:07 AM

Sorry for delay.

Have you uninstalled the MOD Time Logged-In?

These variables must exist if still you have installed it.


I have glean up and remove the mod !

If you have the MOD Time Logged-In, then you should use this Profile.template.php

http://www.simplemachines.org/community/index.php?topic=315507.msg2144164#msg2144164

Otherwise, the MOD installed without problems

Anyway, the next version will be compatible with the MOD Time Logged-In, if you have installed (or not) the MOD Time Logged-In you will can install this MOD without problems.

--

Quote from: meehan09 on October 05, 2009, 08:22:05 AM
Anyone please?, has this is filling my logs up pritty quick and always needing to remove all logs  :(

Have you installed manually? Try use this attachment

--

Yesterday I thought I saw a message with another issue.

I don't know if it was on this issue, or is already solved.
Title: Re: Your Last Visit
Post by: meehan09 on October 06, 2009, 06:53:55 AM
That load.php seems to have fixed the problem ?

Im not sure why?, Ive attachted my old Load.php below to see if you can see what was wrong, has your load.php you gavin me may not have my mods installed into it?

If you could edit the load.php attachted below to the same has yours has it seemed to fix it and stop the errors from guests.


Kindest Regards,
Paul
Title: Re: Your Last Visit
Post by: meehan09 on October 06, 2009, 06:57:47 AM
One more little problem, When i view a members profile where it says Date Registered !!, This is no longer there?, And just shows the date and no text?

Example here : http://www.exoticforums.co.uk//index.php?action=profile;u=1


Ive attachted my profile.template below, has everythign else seems to run/work fine now without errors just this profile issue.


Thanks,
Paul

Title: Re: Your Last Visit
Post by: Eclipse16V on October 09, 2009, 05:18:27 AM
German Lang Update
$txt['your_last_visit'] = 'Dein letzter Besuch:';
$txt['last_visit'] = 'Letzter Besuch';
Title: Re: Your Last Visit
Post by: Eclipse16V on November 24, 2009, 07:54:15 AM
Please update it for SMF 2.0 RC2

Thx
Title: Re: Your Last Visit
Post by: kicky on February 10, 2010, 07:42:41 PM
Hi,

I installed this mod in my SMF 1.1.11
And it looks not work 100%

In profile it looks not complete, please see the attached pic
Title: Re: Your Last Visit
Post by: Eclipse16V on March 15, 2010, 01:31:40 AM
Nice Mod

Please update it for SMF 2.0 RC3  ;)

Thx
Title: Re: Your Last Visit
Post by: peter656 on April 04, 2010, 10:03:26 AM
slovakia language : $txt['your_last_visit'] = 'Vaša posledná návšteva:';
$txt['last_visit'] = 'Posledná návšteva';
Title: Re: Your Last Visit
Post by: Apllicmz on October 27, 2010, 11:17:21 PM
Portuguese Linguage
when update dont forget

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//    MOD Your Last Visit
$txt['your_last_visit'] = 'Sua &uacute;ltima visita:';
$txt['last_visit'] = '&Uacute;ltima Visita';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//    MOD Your Last Visit
$txt['your_last_visit'] = 'Sua &uacute;ltima visita:';
$txt['last_visit'] = '&Uacute;ltima Visita';]]></add>
        </operation>
    </file>
Title: Re: Your Last Visit
Post by: Apllicmz on June 06, 2015, 03:55:25 AM
when try to install SMF 2.0.10
I see that error