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
User Posts

Go to Profile

very nice BigMax, thank you :)
I agree with tiloup. It does work with tiloup oss folder and a few of the edits from flameche. Thanks tiloup and flameche and ArcticWolf  :)

in account-details.php, you can just use this. I removed and changed a few parts of flameche edit. 30 x 30 looks best I feel



<?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'>&nbsp;";?><br />

I didn't do any edits for account.php, since the only person that sees that file is yourself





If you already ran the SQL from FLAMECHE post earlier, run this SQL to add a DEFAULT value to that column




ALTER TABLE `users` CHANGE `os` `os` VARCHAR( 30 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Unknown'



then add the attached PNG to your images/oss folder, or feel free to find another image of your own liking, just make sure you name it exactly Unknown.png, if you use the DEFAULT value I posted above in the SQL

@Tiloup

my guess is. Because the orginal query didnt set a default browser, so just manually change it to 9 using phpmyadmin or something



ALTER TABLE `users` CHANGE `browser` `browser` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '9'

works nice. Thanks for sharing :)
"UFFENO1, post: 87174":
In admincp.php

remove



$res = SQL_Query_exec("SELECT `id`, `username`, `page`, `last_access` FROM `users` WHERE `enabled` = 'yes' AND `status` = 'confirmed' AND `page` != '' ORDER BY `last_access` DESC LIMIT 100");

insert this




$res = SQL_Query_exec("SELECT `id`, `username`, `ip`, `page`, `last_access` FROM `users` WHERE `enabled` = 'yes' AND `status` = 'confirmed' AND `page` != '' ORDER BY `last_access` DESC LIMIT 100");






insert this





<td class="table_col2" align="center"><?php echo ($row["ip"]); ?></td>






below this





<td class="table_col1" align="center"><a href="account-details.php?id=<?php echo $row["id"]; ?>"><b><?php echo $row["username"]; ?></b></a></td>





you forgot this in admincp.php

after





Thanks for sharing :)



<th class="table_head">Username</th>




add





<th class="table_head">IP</th>

Thanks for sharing :)
Im using the code from the first post in this thread. Im trying to figure out why everyone had problems with it or said it dont work!? It seems to work fine, unless I am missing something. Is there something NOT correct about that code in the first post?
"zamunda, post: 87055":
Tnx for this..Great mod..I have one question..? Is this possible to implement in login_block, so every user if want to login, must move the slide, and then to login to site..Tnx in advance  :)
I thought about that also, but it would be really big in the block. You would have to make it really small to fit into the block, otherwise it would be rediculous. I personally dont see any reason for it to be in the login-block. Thats just my opinion tho :)
There are appx 9 places you can use the class_color code

here is my forums.php. I didnt change anything other than the class colors. Its otherwise the same as the svn. Backup your copy first please

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6270"]forums.php[/url]
thanks
worked fine. 2.08
I tried it, and it works. My original post was updated***
thanks ArcticWolf for the help. I may try it. I just didnt want to screw up all my files for no reason. I know its silly to add an image, but I get bored, and thought it would be fun to try lol
does anyone think something like this would work? Im trying to figure this out, but im limited in my skills as a coder in php. Im trying to think of a way to display an image along with the browser type. Before I wreak havok on my database and files, I thought I would ask some pro's  :)  I was borrowing code from other places and trying to make sense of it all.

run the SQL from the first post,



ALTER TABLE `users` ADD `browser` varchar(50) NOT NULL;
then run this SQL




CREATE TABLE IF NOT EXISTS `browsers` (

`id` int(10) unsigned NOT NULL AUTO_INCREMENT,

`name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,

`browserpic` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,

PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9;



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, 'Unknown', 'unknown.png');



ALTER TABLE `users` CHANGE `browser` `browser` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '9'








in account-details.php put





//$browsers

$browser_id = (int) $user[browser];

if ($browser_id > 0) {

$res = SQL_Query_exec("SELECT name,browserpic FROM browsers WHERE id=$browser_id LIMIT 1");

if (mysql_num_rows($res) == 1) {

$arr = mysql_fetch_assoc($res);

$browser = "$arr[name] <img src=images/browser/$arr[browserpic] height=30 width=30 border=0>";

} else {

$browser = "<img src=images/browser/unknown.png height=30 width=30 border=0>";

}

}








find





<?php echo T_("TITLE"); ?>: <i><?php echo format_comment($user["title"])?></i><br />




and then below put





<?php echo T_("BROWSER"); ?>: <?php echo $browser?><br />






then in backend/functions.php put





//Browser detection

$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).", browser=".sqlesc($browser).", page=".sqlesc($where)." WHERE id=" . $row["id"]);






in languages/english.php, put



//browser identifier

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


then put the attached images in your images/browser folder

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6241"]browser.rar[/url]

"darknova, post: 86819":
can it be done so I upload to another server (like RapidShare, or some free hosting servers i own ) and add a link to them

will it play...?
yea, I just tested an flv from a external server that I have, and it played just fine

also, here is a better image for the ACP in .png format

moving on from tt208 — 2012-11-20 22:27:53 in General Chat
I have always said thanks for mods I use. I know what you guys do helping us out with code. I always appreciate it :)
nice, works great. thanks for sharing :)
I like that, thanks for the share :)
thanks, seems to work great. Appreciate the share  :)  But the language part isnt needed since you added it directly to the block. Otherwise, you would add it like this in your login_block.php



<center><a href="account.php"><?php echo T_("ACCOUNT"); ?></a> <br />

<?php if($CURUSER["level"]=="Super Moderator") {print("<a href=supermodcp.php>".T_("MODO_CP")."</a>");}?>

<?php if($CURUSER["level"]=="Moderator") {print("<a href=modcp.php>".T_("MOD_CP")."</a>");}?>

<?php if ($CURUSER["control_panel"]=="yes") {print("<a href="admincp.php">".T_("STAFFCP")."</a>");}?>

</center>






and then put this in your languages/english.php





//mod and super mod control panel

$LANG["MOD_CP"] = "Mod CP";

$LANG["MODO_CP"] = "Super Mod CP";

just realized you can remove this code from the "delete" function of shoutedit.php,



 $message = $_POST['message'];

  if ($message == "")

   show_error_msg("Error", "Message cannot be empty!",1);

 $message = sqlesc($message);

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