php

  1. Joe Link

    Add compatible PHP versions field for XenForo add-ons

    With so many people running different versions of PHP, it would be a big help if we could get a field for compatible PHP versions on the add-on page.
  2. asprin

    XF 2.2 Using keyed array in template

    My controller has this: $colors = ['30' => 'blue', '55' => 'green']; $viewParams = [ 'colors' => $colors, 'entity1' => $entity1, 'entity2' => $entity2 ]; return $this->view('ASP\Foo:bar', 'asp_foo_bar', $viewParams); And my template has this <xf:comment> {$entity1.sys_id} -->...
  3. I

    Fixed Sitemaps ping is deprecated

    This morning I got an unusual error in my XenForo log, which suggests that the forum software might need a fix (I'm currently using the latest public release of XF 2.2.13). GuzzleHttp\Exception\ClientException: Error submitting sitemap to...
  4. C

    XF 2.2 PHP Version: 8.3.0 and fresh install

    On a new UBUNTU install on a hyperv VM, accessing http://localhost/community/install/ reports PHP needs to be greater than 7.0.0 but I am on v 8.3.0 <?php $phpVersion = phpversion(); if (version_compare($phpVersion, '7.0.0', '<')) { die("PHP 7.0.0 or newer is required. $phpVersion does not...
  5. N

    XenForo include search from external php/mysql web app?

    Hi, is it possible to perform search from XenForo, but include search results from external php/mysql web app? Any API calls or Add-ons available for that? Thank you.
  6. U

    PHP8+

    Hello everyone, I recently took over the admin role for ~150 XenForo Instances. Shortly after I embarked on testing PHP 8.1. However, despite our utilization of a minimal number of plugins, the testing instance was non-functioning after the change to PHP 8.1. This situation poses a challenge...
  7. RG70Hz

    New install on self hosted SQL server. Xenforo not appearing

    I set up a new Windows Server 2019 install on a home server. I have php 8.x.x (the latest available download) and MySQL server/databases. Everything is working as expected until I put my upload folder in my wwwroot directory. It will not let me access the files/pages for some reason. I get an...
  8. Osman

    Fixed ErrorException: [E_DEPRECATED] Implicit conversion from float 47.5 to int loses precision in src\XF\Image\Gd.php at line 104

    I don't know if this bug report has been reported, but today I am getting such an error in the resource manager for the operation I have done on localhost. PHP version: 8.1.2 #0 [internal function]: XF::handlePhpError(8192, '[E_DEPRECATED] ...', 'C:\\xampp\\htdocs...', 104) #1...
  9. K

    XF 2.2 What PHP file informs the Member overview page

    I'm trying to simply change the number of users shown on the overview page (sitename.com/members) because it's hard-coded to 5, but for the first time ever I've run into the issue that I can't seem to find the PHP file that sets that limit. I've searched through my files based on callbacks in...
  10. revolveextra34

    PHP checking XenForo user's account data

    I am authenticating XenForo user via php. My code: public function Auth($username, $password) { $userIDA = $this->getarray("SELECT * FROM xf_user WHERE username='".$username."'"); if($userIDA) { define('SESSION_BYPASS', false); // if true: logged in user info and sessions...
  11. Mouth

    Lack of interest Provide a preload.php file to be used with PHP 7.4+ opcache.preload directive

    PHP 7.4+ provides a php script preloading function with the opcache.preload directive. It requires a file, preload.php is commonly used, to provide a list of the php files to preload. From https://www.php.net/manual/en/opcache.preloading.php ... "PHP can be configured to preload scripts into...
  12. charlesfoote13

    XF 2.0 Regarding custom coding

    Hello, I have a query regarding creating a new page. I want to create a custom page and what to use the database query to fetch the data from database
  13. D

    XF 2.1 Login Authenticate form PHP may cause BIG ISSUE

    Good morning, currently I'm experiencing issues with my website (almost hitting 96% of Physical Memory Usage) and I'm trying to resolve the issue. Given that I have a need to do external authentication of users from a PHP form, I suppose there is an incorrect method of calling some XenForo...
  14. xSean

    XF 2.0 Converting PHP to XF Template

    After some issues where an SQL server was completely lost, and am now in the process of getting things in working order again. While the original forum files were recoverable (and so all edited templates, addons, etc), they are in PHP files which don't exactly allow an easy copy/paste into the...
  15. alsoGAMER

    XF 2.1 For what "exec" and "proc_open" are used by Xenforo?

    I own a vps with this and more other functions disabled using php.ini and i would to know for what are used
  16. alsoGAMER

    XF 2.1 Error while loading the forum and the acp

    Fatal error: Uncaught TypeError: Argument 1 passed to XF\Extension::__construct() must be of the type array, bool given, called in /var/www/mc-security/src/XF/App.php on line 1452 and defined in /var/www/mc-security/src/XF/Extension.php:12 Stack trace: #0...
  17. Ali Ahmed

    XF 2.1 Rebuild User Cache with Cron Job

    hi I'm not very friendly to xenforo development source, its MVC model and etc.. So I'm building externally from xenforo such as subdomain and then using php and ajax from my xenforo forum for controlling my plugin (Don't ask me to use xenforo method of code, because I'm not good at all)...
  18. Xiomera

    XF 2.1 Make variable available in template from php file

    I would like to display an additional value for every thread in the thread view and the thread list (forum view), which i calculate with an php function. My problem: what is the best way to make a variable useable in an tempalte from an php file? And How? I found 2 solutions. The callback tag...
  19. eva2000

    PHP 7.1.28, 7.2.17, 7.3.4 releases

    Heads up for Centmin Mod users here, there are security update releases for PHP 7.1.28, 7.2.17 and 7.3.4 released now and I have also backported the security fixes to PHP 5.6.40 and 7.0.33 EOL releases. You're want to be on Centmin Mod 123.09beta01 at least for proper PHP 7.1+ support and have...
  20. CMTV

    Unmaintained Criteria Builder 1.0.0

    Description If you ever tried to create a trophy, you probably noticed "User criteria" tab. It allows you to set some conditions (number of posted messages, for example), which users must met to be awarded with your trophy. There are some other systems that use XenForo's criteria system...
Back
Top Bottom