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
See the type of language
Controls ·  Search New posts · Mark unread

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

2012-08-05 23:32:07
Je vous partage un petite mode cool!!
///////////////////////~~
I shared a small way cool!

Open and search account-details.php

//Layout
Add before
//LANGUE V2.08
$lang_q = SQL_query_exec("SELECT `name` from `languages` WHERE `id` = " . $user['language']);
$lang_r = mysql_fetch_assoc($lang_q);
$lang_name = htmlspecialchars( $lang_r['name'] );

//LANGUE V2.06.07
$lang_r = mysql_query("SELECT * from languages") or die;
$lang_sa = array();

while ($lang_a = mysql_fetch_array($lang_r)){
$lang_id = $lang_a["id"];
$lang_name = $lang_a["name"];
$lang_sa[$lang_name] = $lang_id;
}

Search
<?php echo T_("THEME_NAME"); ?>: <?php echo $stylesheets?><br />

Add after
<?php echo T_("LANGUES"); ?>: <?php echo $lang_name?><br />

Add your English and french languages
$LANG["LANGUES"] = "Languages";


Corriger moi ci besoin! lolll
~~~~~~~~~~~~~~~~~~~~
Correct me they need! lolll

[size=18px]UPDATE 28-01-2013 V2.08[/size]
Capture.PNG
Capture.PNG

Unknown User
2012-08-06 17:52:05
Perfect, thanks :)
Unknown User
2013-01-28 15:52:26
i have a problem with this in 2.08

i have check in config the english language but in account details for all members i see the Greek

test.png
test.png
Unknown User
2013-01-28 19:14:55


$lang_q = SQL_query_exec("SELECT `name` from `languages` WHERE `id` = " . $CURUSER['language']);

$lang_r = mysql_fetch_assoc($lang_q);



$lang_name = htmlspecialchars( $lang_r['name'] );



should fix it
2013-01-29 00:24:46
thanks mostvotedplaya, same error?
Unknown User
2013-01-29 02:38:31
if using this in account-details should change

$lang_q = SQL_query_exec("SELECT `name` from `languages` WHERE `id` = " . $CURUSER['language']);
to


$lang_q = SQL_query_exec("SELECT `name` from `languages` WHERE `id` = " . $user['language']);


$CURUSER is well the person thats viewing it info and $user is the persons info you are viewing.
2013-01-29 03:31:01
"ArcticWolf, post: 88539":
if using this in account-details should change

$lang_q = SQL_query_exec("SELECT `name` from `languages` WHERE `id` = " . $CURUSER['language']);
to


$lang_q = SQL_query_exec("SELECT `name` from `languages` WHERE `id` = " . $user['language']);


$CURUSER is well the person thats viewing it info and $user is the persons info you are viewing.
yes! #1 thanks!!!
Unknown User
2013-01-29 04:02:03
now if you wanted it displayed in login_blocks or account.php use $CURUSER instead

like in blocks/login_block

after

	$privacylevel = T_($CURUSER["privacy"]);
add




$lang_q = SQL_query_exec("SELECT `name` from `languages` WHERE `id` = " . $CURUSER['language']);

$lang_r = mysql_fetch_assoc($lang_q);



$lang_name = htmlspecialchars( $lang_r['name'] );




then farther down

in this

	print ("<center><img width='80' height='80' src='$avatar' alt='' /></center><br />" . T_("DOWNLOADED") . ": $userdownloaded<br />" . T_("UPLOADED") . ": $useruploaded<br />".T_("CLASS").": ".T_($CURUSER["level"])."<br />" . T_("ACCOUNT_PRIVACY_LVL") . ": $privacylevel<br />". T_("RATIO") .": $userratio");




change to



      print ("<center><img width='80' height='80' src='$avatar' alt='' /></center>

     <br />" . T_("DOWNLOADED") . ": $userdownloaded

     <br />" . T_("UPLOADED") . ": $useruploaded

     <br />".T_("CLASS").": ".T_($CURUSER["level"])."

     <br />" . T_("ACCOUNT_PRIVACY_LVL") . ": $privacylevel

     <br />" . T_("LANGUES") . ": $lang_name

     <br />". T_("RATIO") .": $userratio");



I personally like the lines on there own line instead of 1 long ass line, makes it simpler to add things hehehe.

Php dont seem to care either way.  Just nicer to add
Unknown User
2013-01-29 04:03:32
thank you very much, its ok now
2013-02-02 04:51:48
Thank you!
2021-05-13 18:03:31
Hi guys, how do I move the language to choose from the settings in the account, as with the theme and so I can turn off block Theme/Language

Regards
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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728