-
Posts
185 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Sanasol
-
щито? Год-два назад еще может было все криво, ну так только начинали. Все отлично работает, никто не жалуется. Если какие-то ошибки и есть, то их немного.
-
H>any guide on how to make fluxcp Online (Port Forwaded Router)
Sanasol replied to Dejavu's question in Third Party Support
Router Web Interface: something like NAT/QoS Port Forwarding do it like 80 port -> your_local_ip:80 port -
Hello Unfortunately, can't do it as addon. So we have to work a little FIrstly need open FluxCP/lib/Flux.php Find this if ($lang=self::config('DefaultLanguage')) { $current = $addonName ? FLUX_ADDON_DIR."/$addonName/lang/$lang.php" : FLUX_LANG_DIR."/$lang.php"; } And add few lines after // [Sanasol] LangSwitcher $dictionary = array("en" => "en_us", "ru" => "ru_ru"); // keeping bad guys from use ../../../../ if(!empty($_COOKIE["language"]) && array_key_exists($_COOKIE["language"], $dictionary)) { $lang = $dictionary[$_COOKIE["language"]]; $current = $addonName ? FLUX_ADDON_DIR."/$addonName/lang/$lang.php" : FLUX_LANG_DIR."/$lang.php"; } // [Sanasol] LangSwitcher Here you should change $dictionary to your own lang list. For example: "lang_key" => "lang_file" and create translation file in FluxCP/lang/ named lang_file.php And now output switcher Open FluxCP/themes/your_theme/footer.php or other theme part where you want to place it. For default theme I added to footer.php some magic code before this line <?php if (Flux::config('ShowCopyright')): ?> add this <tr> <td colspan="3"></td> <td> <script> function setCookie(key, value) { var expires = new Date(); expires.setTime(expires.getTime() + expires.getTime()); // never expires document.cookie = key + '=' + value + ';expires=' + expires.toUTCString(); } function getCookie(key) { var keyValue = document.cookie.match('(^| ?' + key + '=([^;]*)(;|$)'); return keyValue ? keyValue[2] : null; } $(document).ready(function(){ $("a[data-lang]").click(function(e){ e.preventDefault(); if(getCookie('language') != $(this).data("lang")) { setCookie('language', $(this).data("lang")); reload(); } }); $("a[data-lang]").each(function(i){ if(getCookie('language') == $(this).data("lang")) { $(this).css("font-weight","700"); } }); }); </script> <p> <a href="#" data-lang="en">English</a>/<a href="#" data-lang="ru">Russian</a> </p> </td> <td></td> </tr> Very simple code. You see lang links where data-lang = lang_key Thats all! When you save it and visit your site you will see something like this Now you can switch language in your FluxCP. Demo available here: http://ro.sanasol.ws/demo/fluxcp/?module=woe Only this page have differences in langs Interesting fact: drawing logo (two flags with poring(from DeviantArt)) took more time than writing code
-
[CRITICAL UPDATE]Web Vending Database (Standalone and FluxCP Addon)
Sanasol replied to Sanasol's topic in Source Releases
https://github.com/S-anasol/sanasol/commit/799e74c37afde656b344f41a8f9c61deb9ab5434 The Vending Db still has bugs, +7 is shown as +6 and +6 as +5 and so on. I checked for coat and saints robes. https://github.com/S-anasol/sanasol/blob/master/merchant_db_flux/vending/modules/vending/index.php#L4 just change this) -
[CRITICAL UPDATE]Web Vending Database (Standalone and FluxCP Addon)
Sanasol replied to Sanasol's topic in Source Releases
https://github.com/S-anasol/sanasol/commit/799e74c37afde656b344f41a8f9c61deb9ab5434 -
[CRITICAL UPDATE]Web Vending Database (Standalone and FluxCP Addon)
Sanasol replied to Sanasol's topic in Source Releases
https://github.com/S-anasol/sanasol/commit/87ffdebb9660fa7ccf490395fa9757c6bbb444f5 try this fixes Nope now are all items "Unknown Items" https://github.com/S-anasol/sanasol/commit/eeba38d7bcd312e8b186157cfc592e7d1272f4db -
[CRITICAL UPDATE]Web Vending Database (Standalone and FluxCP Addon)
Sanasol replied to Sanasol's topic in Source Releases
https://github.com/S-anasol/sanasol/commit/87ffdebb9660fa7ccf490395fa9757c6bbb444f5 try this fixes -
https://github.com/S-anasol/rathena/commit/431fa98b913709486d9a97816260eaf8f90b0fc5
-
https://github.com/rathena/rathena/pull/12
-
add lines with ''+'' at begin, then remove '+' and compile
-
[CRITICAL UPDATE]Web Vending Database (Standalone and FluxCP Addon)
Sanasol replied to Sanasol's topic in Source Releases
For flux you should upload this folder https://github.com/S-anasol/sanasol/tree/master/merchant_db_flux to fluxcp/addons/ -
The first server is set up as usual 1. ip address 2 . mysql database 3 . ports The second server 1. That the same IP address at all . 2 . Other base Sql. ( to the login server is not required) 3 . Here the most interesting. Ports map and char server set different than the first server. A Login server port in all config files both on the first server. ie 6900 . Starting: 1. Run entirely the first server . 2 .A second server that's run only Map and Char server. As a result, we succeeded (at least for me ) 2 servers ( server selection appears after entering a username and password in the game http://ea-support.ws/index.php?/topic/103-1-login-2-servera/
-
need some edit for src(battle.c), to fix it, how edit depends on script
-
[CRITICAL UPDATE]Web Vending Database (Standalone and FluxCP Addon)
Sanasol replied to Sanasol's topic in Source Releases
upload it to your website -
config/application.php 'BaseURI' => '/fluxcp-ra/', // The base URI is the base web root on which your application lies.
-
getitem 969,rand(1,10);
-
[CRITICAL UPDATE]Web Vending Database (Standalone and FluxCP Addon)
Sanasol replied to Sanasol's topic in Source Releases
Серьезно? Совсем рук нету? <td>{$nick}{$vvs}<a href=\"http://www.poring.ru/items/{$row->nameid}.html\" target=\"_blank\">{$item}</a></td> -
not protected
-
[CRITICAL UPDATE]Web Vending Database (Standalone and FluxCP Addon)
Sanasol replied to Sanasol's topic in Source Releases
I think your php has short codes disabled change this line https://github.com/S-anasol/sanasol/blob/master/merchant_db_flux/vending/themes/default/vending/index.php#L103 to <span class='mapinfo' data-map='<?php echo $char->last_map?>' data-x='<?php echo $char->last_x?>' data-y='<?php echo $char->last_y?>'><?php echo htmlspecialchars($char->last_map)." ".htmlspecialchars($char->last_x).",".htmlspecialchars($char->last_y) ?></span> -
[CRITICAL UPDATE]Web Vending Database (Standalone and FluxCP Addon)
Sanasol replied to Sanasol's topic in Source Releases
Check browser console(F12 in Chrome) any errors? -
did try on local server, work fine. you change something in flux? custom theme?
-
Start rAthena server console without closing it. (PuTTY)
Sanasol replied to Raijin's question in Linux Support
use force! screen -
search by account id or login or...?