-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
realdigger
committed
Aug 24, 2016
0 parents
commit ab209b8
Showing
6 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
*.russian.php encoding=cp1251 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea/ | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# SMF TotalTimeLoggedIn_in_posts mod | ||
* **Author:** digger http://mysmf.ru | ||
* **License:** The MIT License (MIT) | ||
* **Compatible with:** SMF 1.0 | ||
|
||
## Description | ||
Show total time logged in for every user. | ||
|
||
## Описание | ||
Выводит в сообщениях над аватарами количество дней проведенных пользователями на форуме. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
The MIT License (MIT) // Copyright (c) 2007-2016 digger http://mysmf.ru | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification"> | ||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
This is an example modification file for SMF packages. | ||
ATTENTION: If you are trying to install this manually, you should try | ||
the package manager. If it will not work for you, please take a look | ||
at the following for information on this format: | ||
http://mods.simplemachines.org/docs/manual-install.php | ||
================================================================================ | ||
Modification files can be used to modify files so that they do what | ||
your package needs them to do to work properly. | ||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | ||
|
||
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/"> | ||
|
||
<id>digger:TotalTimeLoggedIn in posts</id> | ||
<version>1.0</version> | ||
|
||
<file name="$sourcedir/Load.php"> | ||
|
||
<operation> | ||
<search position="after"><![CDATA[ | ||
} | ||
elseif ($set == 'profile')]]></search> | ||
|
||
<add><![CDATA[ | ||
$select_columns .= ", mem.totalTimeLoggedIn ";]]></add> | ||
</operation> | ||
|
||
<operation> | ||
<search position="after"><![CDATA[ | ||
} | ||
elseif ($set == 'minimal')]]></search> | ||
|
||
<add><![CDATA[ | ||
$select_columns .= ", mem.totalTimeLoggedIn ";]]></add> | ||
</operation> | ||
|
||
<operation> | ||
<search position="before"><![CDATA[ 'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),]]></search> | ||
|
||
<add><![CDATA[ | ||
'total_time_logged_in' => $profile['totalTimeLoggedIn'],]]></add> | ||
</operation> | ||
|
||
</file> | ||
|
||
<file name="$themedir/Display.template.php"> | ||
|
||
<operation> | ||
<search position="before"><![CDATA[', $txt[26], ': ', $message['member']['posts'], '<br />]]></search> | ||
|
||
<add><![CDATA[ | ||
', $txt['online2'] , ': ' , floor($message['member']['total_time_logged_in']/86400) , ' ' , $txt[579] , '<br />]]></add> | ||
</operation> | ||
|
||
</file> | ||
|
||
|
||
</modification> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info"> | ||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
This is a simplified package manifest for SMF packages. | ||
ATTENTION: If you are trying to install this manually, you should try | ||
the package manager. If it will not work for you, please take a look | ||
at the following for information on this format: | ||
http://mods.simplemachines.org/docs/manual-install.php | ||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | ||
|
||
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/"> | ||
<id>digger:TotalTimeLoggedIn in posts</id> | ||
<name>TotalTimeLoggedIn_in_posts</name> | ||
<version>1.0</version> | ||
<type>modification</type> | ||
|
||
<install for="1.1.0 - 1.1.99"> | ||
<readme type="inline">TotalTimeLoggedIn in posts (by Digger).</readme> | ||
<modification>modification.xml</modification> | ||
</install> | ||
|
||
<uninstall for="1.1.0 - 1.1.99"> | ||
<readme type="inline">This will remove TotalTimeLoggedIn_in_posts Mod</readme> | ||
<modification reverse="true">modification.xml</modification> | ||
</uninstall> | ||
</package-info> |