-
Posts
2,691 -
Joined
-
Last visited
-
Days Won
85
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
I dont think this argument needs to be public its obvious you are both grown up and can settle this in a better manner than doing it like this ?
-
I found a few issues with the gangs and have made a few edits.... adds a back button to each page and fixes a few other issues with wrong text direction gangs.tpl.php
-
This small edit will stop the Forum lists appearing on your left menu and there will only be one link to the forums to view all topics and cats Lines 1 to 31 need editing to that of the below code <?php new hook("customMenus", function ($user) { if ($user) { $forums = $user->db->prepare("SELECT * FROM forums ORDER BY F_sort ASC, F_name Limit 1"); $forums->execute(); $allForums = $forums->fetchAll(PDO::FETCH_ASSOC); $items = array(); foreach ($allForums as $forum) { $items[] = array( "url" => "?page=forum", "text" => "View Forums" ); } if (!count($items)) return array(); return array( "title" => "Forum", "url" => "?page=forum", "items" => $items ); } else { return false; } });
-
- 2
-
-
blooody hell im 51 now lol
-
you forgot to add require "../class/round.php"; to the install/index.php
-
The GL 2.4.1 free engine is pretty bloody good :)
Uridium replied to Uridium's topic in Gangster Legends
when you install a new theme from the theme manager once installed and you try View the theme you get an error message also the theme doesnt actually show when installed php lower and higher have same issue -
The GL 2.4.1 free engine is pretty bloody good :)
Uridium replied to Uridium's topic in Gangster Legends
the 2.4.1 has an issue when installing a new theme and trying to view it you seem to get the old nbbc errors -
Ive been messing with this engine for a few weeks now still getting used to the hooks and how things work. But I have to admit It has great potential Fixed a few bugs I found on the free version and added to other scripts which didnt take too long.. Well done Dayo
-
I made a fix for php 5.4 and above that should cure this issue for the nbbc issue
-
nbbc7.phpnbbc8.php these files are nbbc7 from PHP versions 5.6 up to 7.2 nbbc8 from PHP versions 7.3 up to 8+ put both files in the class/ folder then open up class/pageElement.php change line 10 require("nbbc.php"); TO $ver = (float)phpversion(); if ($ver > 7.3) { require "nbbc8.php"; } else { require "nbbc7.php"; } You can now switch back and forth to any working PHP version from MultiPHP Manager
-
yep tried it on 7.0 and had number of errors error: syntax error, unexpected '' (t_encapsed_and_whitespace), expecting identifier (t_string) or variable (t_variable) or number (t_num_string) line 801 is the culprit which is $urlParts['host'] = $part; ive done a { and } count and they are not equal on the updated nbbc.php version which works on php 7.3 - 8.0+ { = 216 } = 214 Not sure if its NOTEPAD++ but on line 28 which has a { there is no end also line 745 has a { and no end.. The <<<REGX line 747 doesnt seem to end
-
Dayo just replace the nbbc.php with the 4 month old version Ive tested the file on 7.4 and 8 and both work perfectly
-
Thank you found it finally 🙂
-
Cheers MTG looked at line 155 will try work it out from there i installed the nbbcode as a standalone and same issue with that GL wasnt installed on test site
-
Ive tried to install the GL to no success on the newest version of Xampp errors are There was an error! File: D:\xampp\htdocs\gangster\class\nbbc.php Line: 155 Error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in D:\xampp\htdocs\gangster\class\nbbc.php:155 Stack trace: #0 D:\xampp\htdocs\gangster\class\nbbc.php(1953): BBCodeLexer->NextToken() #1 D:\xampp\htdocs\gangster\class\pageElement.php(56): BBCode->Parse('GL v2 successfu...') #2 D:\xampp\htdocs\gangster\class\pageElement.php(69): pageElement->convertBBCodeToHTML('GL v2 successfu...') #3 [internal function]: pageElement->{closure}(Object(Handlebars\Template), Object(Handlebars\Context), 'text', '') #4 D:\xampp\htdocs\gangster\class\Handlebars\Template.php(255): call_user_func_array(Object(Closure), Array) #5 D:\xampp\htdocs\gangster\class\Handlebars\Template.php(148): Handlebars\Template->section(Object(Handlebars\Context), Array) #6 D:\xampp\htdocs\gangster\class\Handlebars\Helpers.php(298): Handlebars\Template->render(Object(Handlebars\Context)) #7 [internal function]: Handlebars\Helpers->helperEach(Object(Handlebars\Template), Object(Handlebars\Context), 'news', '\n ...') #8 D:\xampp\htdocs\gangster\class\Handlebars\Template.php(255): call_user_func_array(Array, Array) #9 D:\xampp\htdocs\gangster\class\Handlebars\Template.php(148): Handlebars\Template->section(Object(Handlebars\Context), Array) #10 D:\xampp\htdocs\gangster\class\Handlebars\Handlebars.php(180): Handlebars\Template->render(Object(Handlebars\Context)) #11 D:\xampp\htdocs\gangster\class\pageElement.php(91): Handlebars\Handlebars->render('\n\n <...', Array) #12 D:\xampp\htdocs\gangster\class\pageElement.php(141): pageElement->templateToHTML('\n\n <...', Array) #13 D:\xampp\htdocs\gangster\class\page.php(346): pageElement->parse() #14 D:\xampp\htdocs\gangster\modules\installed\loggedin\loggedin.inc.php(31): page->buildElement('newsArticle', Array) #15 D:\xampp\htdocs\gangster\class\module.php(30): loggedin->constructModule() #16 D:\xampp\htdocs\gangster\class\page.php(144): module->__construct() #17 D:\xampp\htdocs\gangster\class\page.php(58): page->load('loggedin') #18 D:\xampp\htdocs\gangster\init.php(86): page->loadPage('loggedin') #19 D:\xampp\htdocs\gangster\index.php(5): require('D:\\xampp\\htdocs...') #20 {main} thrown Type: E_RECOVERABLE_ERROR Hmm i managed to get this installed but had to set class/nbbc.php on line 154 to false rather than true.. not sure thats a great fix but it seems to have done the trick Ive managed to whittle the error down to the BBCODE which on PHP 8 it doesnt seem to like
-
sorry kyle ..
-
When I get home from work i'll see what I can do..
-
Iv'e found a fix for this there is nothing wrong with the JS files its the public function loadScripts() { $jsFiles = [ '/modules/installed/moduleEditor/ace/ace.js', '/modules/installed/moduleEditor/ace/ext-modelist.js', '/modules/installed/moduleEditor/ace/ext-language_tools.js', ]; $scripts = ''; foreach ($jsFiles as $jsFile) { $scripts .= "<script src='{$jsFile}'></script>\n\r"; } $this->html .= $this->page->buildElement('jsFiles', ['scripts' => $scripts]); } lines 53 - 55 '/modules/installed/moduleEditor/ace/ace.js', '/modules/installed/moduleEditor/ace/ext-modelist.js', '/modules/installed/moduleEditor/ace/ext-language_tools.js', I had to put my folder name before the first '/ so mine looks like this now and that seems to fix the issue '/gangster/modules/installed/moduleEditor/ace/ace.js', '/gangster/modules/installed/moduleEditor/ace/ext-modelist.js', '/gangster/modules/installed/moduleEditor/ace/ext-language_tools.js',
-
i'll have a look into it
-
these are just small adjustments which puts a EXIT link on each of the error notifications and a Cancel button on the Compose mail incase you dont want to send one mail.inc.php Ive updated the TPL file which should fix the SUBJECT repeating issue mail.tpl.php
-
damn i need to install this engine and get back to working
-
Nice one i havent written anything yet for GL may have to look this one up for futrure ref 🙂
- 1 reply
-
- 1
-
-
iv'e seen your coding ability and you should be on the list very clean and crisp work 🙂
-
Need to replace my cron_minute with a timestamp
Uridium replied to Samurai Legend's topic in Modification Support
There was actually a script someone wrote that was available on here do a look up for cronless crons this is the mentioned link removal of 1 minute crons