HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Gdn_Form - Associative Arrays?
So the current Gdn_Form fails to handle models with columns like 'abc[]', but it has special code allowing it to handle models with columns like 'abc[x]'... public function escapeString($String) { $Array = false; if (substr($String, -2) == '[]') { $String = substr($String, 0, -2); $Array = true; } $Return =… -
Re: Introducing the Feed Discussion Plus plugin
Also feed validator returns: `Sorry This feed does not validate. line 12, column 4: Missing image element: title [help] </image>^ line 12, column 4: Missing image element: link [help] </image>^ In addition, interoperability with the widest range of feed readers could be improved by implementing the following… -
Re: Custom Permission
I would be something like that in the addon.json: "registerPermissions": { "Plugins.MyAddon.View" => 1, "Plugins.MyAddon.Manage" => 0, }, And in your controller you would be able to handle this like that: public function vanillaController_myAddon_create($sender) { // This will throw a permission exception if the session… -
Re: Discussion Alert - Problem with Vanilla 3.3 with settings in admin
Error List from debug Notice Gdn_ApplicationManager->enabledApplicationFolders() is deprecated. #0 [internal function]: gdn_ErrorHandler(16384, 'Gdn_Application...', '/home/clients/c...', 952, Array) #1 /mysite xxx//library/core/functions.general.php(952): trigger_error('Gdn_Application...', 16384) #2 /mysite… -
Re: Upgrading Problems From Version 2.1
@whu606 @R_J I am trying again today to upgrade from 2.1 to 2.8 (on my way to 3.3). Completed Actions: -Uploaded 2.8 package -Removed all files/folder listed in this upgrade document -Updated my PHP to 7.3 -Tried to run example.com/utility/update FAILED: [an error occurred while processing this directive] -Ran the Debug… -
Fatal Error in PHP.gdn_ErrorHandler(); after updating to 2021.009
Unknown column 'Visible' in 'where clause' The error occurred on or near: /library/database/class.database.php 513: if (!$message) { 514: $message = $ex->getMessage(); 515: } 516: 517: trigger_error($message, E_USER_ERROR); 518: } 519: } 520: 521: if ($pDOStatement instanceof PDOStatement) { Backtrace: Variables in local… -
Re: 2021.025 FIX Uncaught Error: Call to undefined function fnmatch()
update from 012, should exec sqls ALTER TABLE `GDN_ConversationMessage` CHANGE `Body` `Body` MEDIUMINT NOT NULL; ALTER TABLE `GDN_User` ADD INDEX `IX_User_Deleted` (`Deleted`); ALTER TABLE `GDN_ActivityComment` CHANGE `Body` `Body` MEDIUMINT NOT NULL; ALTER TABLE `GDN_Ban` CHANGE `BanType` `BanType`… -
Re: How to create custom Smarty functions
I haven't found a way to show the users avatar alone, so I've created that function: <?php defined('APPLICATION') or die();/** * Encapsulates UserPhoto function. * * Returns the users avatar. * Valid params are "userid" to manually choose a user and "wrap" to * specify a tag that the output should be surrounded with. * *… -
Re: "Basic Pages" Plugin not working
-
Notices in Debug Trace
In Version 3.0, I get several notices in the Debug Trace window when debug mode is enabled. This happens during ordinary activity like browsing a thread. This is low priority since they are just warnings. I just wanted to record them here so they can be fixed. Here are examples: Warning 1: Undefined index: ThemeOptions #0…
512 results