-
Posts
2,392 -
Joined
-
Last visited
-
Days Won
62
Content Type
Profiles
Forums
Events
Everything posted by Sim
-
Logos always make things better
-
I have not been able to use nested loops in GL. I'm not sure if the template system supports it
-
Scrapping is now considered a site having API. I'm loving it
-
//im directory themes/alph/js <? require "config.php"; require "class/error"; require "init.php"; global $user; die(json_encode($user->char)); ?> That file is in the themes/alph/jsl directory. Everytime I call the file it gives me a 500 error. Even if I load the file directly. I also try loading it from root folder Simm.php <? include "themes/alph/js/getStats.php"; >? The file is supposed to be called from an ajax call jq('#php__container').click(function(e){ if (jq(e.target).is('a')) { var url = e.target.href; //allows tabs to work if(url.includes("?")) { e.preventDefault(); url = url + '&loadMain=no'; jq("#php__container").load(url); update_stats(); } } function update_stats(){ alert("tester"); //it calls this jq.ajax({ url: "themes/alph/js/update.php", type: "POST", dataType: "JSON", success: function (jsonStr) { alert("tes11122r"); alert("tesr"); //alert (jsonStr); /* jq.("#charLVL").text(jsonStr.UC_lvl); jq("#charEXP").text(jsonStr.UC_exp); jq("#charAP").text(jsonStr.UC_ActionPoints + '/' + jsonStr.UC_maxActionPoints); */ jq("#stat_money").text(jsonStr.UC_cash); jq("#stat_silver").text(jsonStr.UC_silver); jq("#charAP").text(jsonStr.UC_gold); // jq("#stat_silver").text(jsonStr.UC_silver); } }); } It calls the function update_stats() as I mentioned the error 500 is avoiding any results. http://sim.makeweb.games/alph/themes/alph/js/ Both update.php and getStats.php same file. So when I click I know url isn't wrong Resolved some. Moved my php file to Root directory. Nice temporary fix :)
-
Can anyone created me this? So it can used for GL. The design onLy. I'd like to be able to copy and paste the choice code. So either it be one choice or ten choices TO CLICK. The code is of no use if not responsive either. Here's my mockup I drew on my ereaser board so someone can get a easier understanding of what I want/need. I don't plan on paying anyone not can I even afford to at the moment so hoping someone can do it for free and post code below. I'm sure someone else might be able to use it as well.
-
What's the get request to fetch all hair?
-
Man, thank you Issue fixed, money updates as crimes are committed. Will do the rest of stats dynamic update tomorrow after actions as I got work tomorrow.
-
Fixed crimes, theft and explore (savage,scavage) pages. Few issues once adding my modified crimes, modified theft and adding action hook to explore pages. Be nice if a few people could give some test run on those pages. 🙂 Edit: just broke it all that fast. If someone could login tell me what the JavaScript error is. This is bad party of using a cellphone to code. I can't find a Jl browser that supports JavaScript debugging 🙂
-
Perfect example of what people should do when asking for designs
-
Who are you speaking to?
-
You are confusing me now. I see no API to interact with that link you posted
-
Not exactly what I was referring about. Even if an API was created, there have to be a script to incorporate it. Cause the API would most likely just pull the image data.
-
How can you add that to your site @Djkanna there's no API for that.
-
I forgot that hook existed. I rather use the hook then the code I posted. 🙂
-
I'm thinking about making a knock off for GL. I love his cron. Simple way to give someone a daily login credit. My code is over 150lines to determine if person login already once a day, and credit them. Simple one liner to credit someone a login bonus. Amazing. 🙂
-
I ain't updated all weekend. But here's a major but minor update. I truly finished the create character. I seen a few people tried to register, but most likely they could not for nothing due to all the errors from not having a character. UPDATE: Once you register, you are unable to do anything until you create a character. I still need to update the GUI after the charger is created. But in the meantime, after you create your character. Refresh the page. I decided to post URL. Main post updated with URL as well. Email verification required. http://sim.makeweb.games/alph/ Navigating to quickly will read the all page inside the content area. If this happens, just refresh page. NOT ALL LINKS are working yet either. Mugging feature is also incomplete if you attempt to test that page. I just made a few fixes to lottery. I forgot to include purchased tickets 🙂
-
Yes some screenshots would need great
-
I am trying to avoid creating a new IF statement and use a one time go-to statement. Which it just ignores. <?php $start = microtime(); session_start(); if(count($_POST) > 0 && empty($_GET['action'])) { foreach($_SESSION['lastPage'] as $key => $val) { $_GET[$key] = $val; } print(var_dump($_GET));// . "<br><br><br><br>" . var_dump($_SESSION['lastPage']));//. "....") ;//var_dump($_POST)); } else{ $_SESSION['lastPage'] = $_GET;//$_SERVER["QUERY_STRING"]; } if (file_exists("install/")) { header("Location: install/"); exit; } require 'class/hooks.php'; include 'dbconn.php'; require "class/ItemHelperFunctions.php"; $helper = new ItemHelperFunctions(); require 'class/settings.php'; require 'class/template.php'; require 'class/templateRender.php'; require 'class/page.php'; require 'class/image.php'; require 'class/user.php'; require 'class/gang.php'; require 'class/property.php'; $settings = new settings(); $page->loadModuleMetaData(); if (!isset($_GET['page'])) { $_GET['page'] = $page->landingPage; //$_GET['page'] = "news"; } $pageToLoad = $_GET['page']; $exclude = array( "banned", "login", "logout", "forgotpassword", ); if (!empty($_SESSION['userID'])) { $user = new user($_SESSION['userID']); $user->updateTimer('laston', time()); $user->checkRank(); debug($user->info->US_charID); if($user->info->U_userLevel != 3 && !$user->info->US_charID ==0) { $page->loadPage("createCharacter"); goto quickCheat; } } debug("test"); if (!isset($page->modules[$pageToLoad])) { if (!empty($_SESSION['userID'])) { $user = new user($_SESSION['userID']); $user->updateTimer('laston', time()); $user->checkRank(); } $page->loadPage("pageNotFound"); } else { $jailPageCheck = $page->modules[$pageToLoad]; if (!empty($_SESSION['userID'])) { $user = new user($_SESSION['userID']); $user->updateTimer('laston', time()); $user->checkRank(); if ($_GET["page"] == "logout") { $page->loadPage('logout'); } else if ($user->info->U_status == 0) { $deadPage = "dead"; $hook = new Hook("deadPage"); $deadPage = $hook->run($deadPage, true); $page->loadPage($deadPage); } else if ($user->info->U_status == 2 && $jailPageCheck["requireLogin"]) { $page->loadPage('users'); } else if ($user->info->U_userLevel == 3) { $bannedPage = "banned"; $hook = new Hook("bannedPage"); $bannedPage = $hook->run($bannedPage, true); $page->loadPage($bannedPage); } else if (!$user->checkTimer('jail')) { if ($jailPageCheck["accessInJail"]) { $page->loadPage($pageToLoad); } else { $jailPage = "jail"; $hook = new Hook("jailPage"); $jailPage = $hook->run($jailPage, true); $page->loadPage($jailPage); } } else { $page->loadPage($pageToLoad); } } else if (!$jailPageCheck["requireLogin"]) { $page->loadPage($_GET['page']); } else { $page->loadPage("login"); } } quickCheat: $page->printPage(); $page->success = true; ?> My go-to statement is the second if after the includes and the quick cheat: is almost at the bottom of the file. So not much searching is needed. The problem is it ignores the go-to execution and proceeds instead of jumping to quick cheat maybe this is purposely done in php7, but I seen no documentation that girl is no longer supported. @Dave will love this post The question should have been. The best and easiest way to load my create character page until a character was created. But I overlooked the simplicity of it. if($user->info->U_userLevel != 3 && $user->info->US_charID ==0) { $page->loadPage("createCharacter"); $page->printPage(); $page->success = true; exit(); } Edit #2: I still would love to know why the go-to statement did not work
-
Everything okay? No progress in weeks
-
Looks great and congrats on release. I love the little changes such as after a battle hey choice of leave alone, mug or hospital. If there is payment I am interested in being a developer and content Creator What engine are you using if you don't mind sharing publicly
-
Try include en/en.php T looks like you are already inside the teste folder. Although it looks like a test, I still think your cars should be more descriptive then what you have $lang["name"] ="Name"; instead of $lang["txt_trasuvtion"]> and possibly create an empty lang file $lang["name"] = $lang["dob"] = $lang["nickname"] = Ect This will allow a translator to make a new language file fairly fast.
-
Thoughts? I played around with css speech bubbles for an idea I want to implement I started my mugging mod, other then that not much progress today. I want very tired from work. Screenshot I promised.
-
What's that math supposed to be for? Lol.. I'm so lost. 🙂