Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
auto detect browser in account-details v
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2013-01-09 21:51:53
Can anyone make all in one post  ?
2013-01-10 00:36:30
Thank You MicroMonkey  ;)


Unknown User
2013-01-10 20:37:12
"Satanic, post: 88043":
Can anyone make all in one post  ?

yes please, just for us the non coders :)
Unknown User
2013-01-10 20:40:39
please make 1 for the lazy people!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Unknown User
2013-01-10 21:02:04
Please make 1 to get a support forum organized and clean, for the mods dont have to work much, as by definition moderators are just here to be grumpy  :D  .

i love you

[url="https://www.torrenttrader.org/user/33545-arcticwolf/"]ArcticWolf[/url]

you are my favourite mod in all the foruns iam in :wub:
2013-01-11 17:15:51
The one in my post on the first page works fine if you would like to try that.

https://www.torrenttrader.org/topic/16976-auto-detect-browser-in-account-details-v208/#entry86853
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2013-09-09 22:02:41
on sait meme plus se qu'il faut faire ,désolé de dire ça mais c'est un gros bordelpffffffffffffffffffffffffffffffffff

where put the code in function.php
2013-09-09 23:21:01
:lol:  :lol:

"phoenix75, post: 92121":

on sait meme plus se qu'il faut faire ,désolé de dire ça mais c'est un gros bordelpffffffffffffffffffffffffffffffffff

where put the code in function.php
Plus d'info si tu veux de l'aide et svp par respect parler anglais quand c'est anglais, ou sous les deux langues au pire.  -_-
2013-09-10 00:12:42
[size=18px]UPDATE [/size][size=18px]~ V2.08[/size][size=18px]  [11-09-2012] [/size]

SQL Table /  Table SQL

ALTER TABLE `users` ADD `browser` varchar(20) NOT NULL  DEFAULT 'Navigateur Inconnu';
ALTER TABLE `users` ADD `os` varchar(30) NOT NULL DEFAULT 'Plate-forme Inconnu';
ALTER TABLE `users` CHANGE `browser` `browser` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '9';

CREATE TABLE IF NOT EXISTS `browsers` (
 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `name` varchar(50) COLLATE utf8_bin DEFAULT NULL,
 `browserpic` varchar(50) COLLATE utf8_bin DEFAULT NULL,
 PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=10 ;

INSERT INTO `browsers` (`id`, `name`, `browserpic`) VALUES
(1, 'FireFox', 'firefox.png'),
(2, 'Safari', 'safari.png'),
(3, 'Opera', 'opera.png'),
(4, 'Maxthon', 'maxthon.png'),
(5, 'Konqueror', 'konqueror.png'),
(6, 'Internet Explorer', 'internet_explorer.png'),
(7, 'Google Chrome', 'google_chrome.png'),
(8, 'Netscape', 'netscape.png'),
(9, 'Platforme OS inconnu', 'platforme_os_inconnu.png');
Search fonction.php / Chercher dans fonction.php

SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $row["id"]);
Replaced by / Remplacé par

// OS detection
$user_agent = $_SERVER['HTTP_USER_AGENT'];    
$os = "Plateforme OS inconnu";
$os_array = array(
'/windows nt 6.2/i' => 'Windows 8',
'/windows nt 6.1/i' => 'Windows 7',
'/windows nt 6.0/i' => 'Windows Vista',
'/windows nt 5.2/i' => 'Windows Server 2003/XP x64',
'/windows nt 5.1/i' => 'Windows XP',
'/windows xp/i' => 'Windows XP',
'/windows nt 5.0/i' => 'Windows 2000',
'/windows me/i' => 'Windows ME',
'/win98/i' => 'Windows 98',
'/win95/i' => 'Windows 95',
'/win16/i' => 'Windows 3.11',
'/macintosh|mac os x/i' => 'Mac OS X',
'/mac_powerpc/i' => 'Mac OS 9',
'/linux/i' => 'Linux',
'/ubuntu/i' => 'Ubuntu',
'/iphone/i' => 'iPhone',
'/ipod/i' => 'iPod',
'/ipad/i' => 'iPad',
'/android/i' => 'Android',
'/blackberry/i' => 'BlackBerry',
'/webos/i' => 'Mobile'
);
foreach ($os_array as $regex => $value) {
if (preg_match($regex, $user_agent)) {
$os = $value;
}
}
// $Browser    
$where = where ($_SERVER["SCRIPT_FILENAME"], $row["id"], 0);
if(preg_match("/Opera/u", getenv("HTTP_USER_AGENT"))) $browser = "3";
else if(preg_match("/Chrome/u", getenv("HTTP_USER_AGENT"))) $browser = "7";
else if(preg_match("/Safari/u", getenv("HTTP_USER_AGENT"))) $browser = "2";
else if(preg_match("/Maxthon/u", getenv("HTTP_USER_AGENT"))) $browser = "4";
else if(preg_match("/Konqueror/u", getenv("HTTP_USER_AGENT"))) $browser = "5";
else if(preg_match("/Firefox/u", getenv("HTTP_USER_AGENT"))) $browser = "1";
else if(preg_match("/MSIE/u", getenv("HTTP_USER_AGENT"))) $browser = "6";
else if((preg_match("/Nav/u", getenv("HTTP_USER_AGENT"))) || (preg_match("/Gold/u", getenv("HTTP_USER_AGENT"))) || (preg_match("/X11/u", getenv("HTTP_USER_AGENT"))) || (preg_match("/Mozilla/u", getenv("HTTP_USER_AGENT"))) || (preg_match("/Netscape/u", getenv("HTTP_USER_AGENT"))) ) $browser = "8";
else $browser = "9";
SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", os=".sqlesc($os).", browser=".sqlesc($browser).", page=".sqlesc($where)." WHERE id=" . $row["id"]);
Find account-details.php / Chercher dans account-details.php

<?php echo T_("CLIENT"); ?>: <?php echo htmlspecialchars($user["client"])?><br />
Add before / Ajouter avant

<?php echo T_("OS"); ?>: <?php echo htmlspecialchars($user["os"])."&nbsp;&nbsp;<img src='".$site_config['SITEURL']."/images/oss/".$user["os"].".png' width='30' height='30' alt='".$user["os"]."' title='Syst&#232;me d&#146;exploitation d&#233;tect&#233; : ".$user["os"]."'>&nbsp;";?><br />
<?php echo T_("BROWSER"); ?>: <?php echo $browser?><br />
Add this to /anguages/english.php / Ajoutez à /languages/english.php

$LANG["BROWSER"] = "Browser";
$LANG["OS"] = "Platform";


Add this to /anguages/french.php / Ajoutez à /languages/french.php

$LANG["BROWSER"] = "Navigateur";
$LANG["OS"] = "Plateforme";


Pour finir ajouter les dossiers oss et browser dans votre dossier image et ajouter dans dossier image Unknown.png
~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
Finally add the oss files and browser in your image file and add image folder Unknown.png











[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6963"]browsers+oss+Unknown.rar[/url]
#11.PNG.png
#11.PNG.png
22.PNG
22.PNG
#33.PNG
#33.PNG
#44.PNG
#44.PNG
#55.PNG
#55.PNG
browsers+oss+Unknown.rar
Download

2013-09-11 20:23:02
Thank you Tiloup this works perfectly

V2.08  ;)
Unknown User
2013-09-12 06:29:25
thank you Tiloup, sorry for my topic but  <_<

merci Tiloup pour la correction total

heureusement que tes là pour remettre de l'ordre  :)
2013-09-12 15:02:50
"phoenix75, post: 92162":

thank you Tiloup, sorry for my topic but  <_<

merci Tiloup pour la correction total

heureusement que tes là pour remettre de l'ordre  :)

Thank you, but its merits for psykoterro, micromonkey, ArcticWolf, flamech they're the king loll  B)

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;

Merci, mais les mérites son pour psykoterro, MicroMonkey, ArcticWolf, flamech c'est eux les king loll  B)
2015-01-08 17:21:56
This has to be added to the functions.php in order to properly detect windows 8.1, then, if you like, you add the attached image to your images/oss folder, and for IE 11 detection, you need to change this line. I also added an updated IE 11 image

else if(preg_match("/MSIE/u", getenv("HTTP_USER_AGENT"))) $browser = "6";

to this

else if(preg_match("/rv:11.0/u", getenv("HTTP_USER_AGENT"))) $browser = "6";

below is what you add to detect windows 8.1

'/windows nt 6.3/i' => 'Windows 81',



Windows 81.png
Windows 81.png
internet_explorer.png
internet_explorer.png

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2015-01-08 19:23:27
"MicroMonkey, post: 93734":


This has to be added to the functions.php in order to properly detect windows 8.1, then, if you like, you add the attached image to your images/oss folder, and for IE 11 detection, you need to change this line. I also added an updated IE 11 image

else if(preg_match("/MSIE/u", getenv("HTTP_USER_AGENT"))) $browser = "6";

to this

else if(preg_match("/rv:11.0/u", getenv("HTTP_USER_AGENT"))) $browser = "6";

below is what you add to detect windows 8.1

'/windows nt 6.3/i' => 'Windows 81',

Big  thanks  :D
2015-04-02 21:28:59
add windows 10 detection. Add to functions.php in the same place as you added the others

'/windows nt 10.0/i' => 'Windows 10',

add the below image to your images/oss folder

Windows 10.png
Windows 10.png

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728