• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.


  1. Earth2Luke

    [Payment Profiles] and [User Upgrades] An unexpected database error occurred.

    I've been tinkering with the built-in Xenforo 2.0 "Payment Profiles" and "User Upgrades" however, I'm running into a small problem... At least when going through the process via PayPal. The goal: The goal is to have a $5.00 monthly subscription to allow the members to become a donor, which...
  2. CMTV

    XF 2.0 Create relation entity if not exists

    Hi! I want for Trophy entity to have default relation with TrophyData entity. $structure->relations = array_merge($structure->relations, [ 'UP' => [ 'entity' => 'UserProgression:TrophyData', 'type' => self::TO_ONE, 'conditions' => 'trophy_id', 'primary' =>...
  3. CMTV

    Fixed CodeMirror PHP mode is broken in ACP

    Hi! Put the code below in any admin template (for example in addon_list): <xf:codeeditorrow mode="php" data-line-wrapping="true" class="codeEditor--autoSize" /> This code creates code editor row without any errors: But the code is not highlighting and throws an error when hitting "Enter"...
  4. hutch2323

    XF 2.0 Passing values from a textbox to .php function

    Hello again! I'm attempting to build a custom query page whereby a user (for admin use only) can enter a username into a textbox, click a search button, and retrieve the stored information connected to the username. Currently, I have blocks of code, but I'm not entirely sure how to combine it...
  5. hutch2323

    XF 2.0 Simple "Hello World" Xenforo 2.0 Problem

    Hello, I'm new to Xenforo 2.0 and clearly there are some changes. I'm simply trying to get a "Hello World" string to be written on my node page, from a .php file. Currently, I have a Test.php file located in the \src\addons\XFP directory. This is the code used in Test.php: <?php namespace...
  6. eva2000

    Centmin Mod LEMP users get another 5-40% boost in performance

    Seeing as there are some folks here using my Centmin Mod LEMP stack, I thought I'd share a quick guide I wrote for configuration tips to improve performance beyond the out of box automatic optimisations already done. In theory these configuration tips can provide an additional 5-40% improvement...
  7. CMTV

    XF 2.0 PHP <xf:codeeditorrow...

    Hi! I am trying to add PHP <xf:codeeditorrow in my admin template. I tried this code: <xf:codeeditorrow name="test_name" value="..." mode="php" data-line-wrapping="true" class="codeEditor--autoSize" /> But I get an error every time I hit...
  8. Jeffin

    XF 2.0 Which PHP version should I upgrade to?

    Hi, I am running one xenforo site and few wordpress site on php 5.3. I am now going to upgrade php but there are few options in the list like 5.6.33, 7.0.27, 7.1.13 and 7.2.1. Which one should I choose? Need your advice please. Thanks.
  9. CMTV

    PHP Criteria 1.0.0

    This addon allows you to create complex criteria for advanced trophies or user group promotions with custom PHP code. For example, you can use: Count the number of threads the user has created in specific forum Analyze users signatures Count the number of likes on single messages Retreive data...
  10. T

    xenforo expert needed for customisation and mods

    We are looking for xenForo Developer to add 5-6 new mods to our forums. Here is what I need to be done for reference: - Custom New Thread Options - Reputaion System - Points System - Vote up & Vote Down for particular thread - Member Ranking System Also I want front page for my...
  11. szymme

    [100$ for solution] SQL Query

    Hello, I need help. I need a .php file which is asking for a costum user field and a user group. Like ........\check.php?Account=4711 4711 must be filled in the custom user field ID 123456 AND be part of user group X. The output is a echo with OK or WRONG. I would be so happy if anybody...
  12. kbarg

    Posting Forum news on PHP page

    Can anyone, anyone show me what I need to do to pull, "date, author, title, avatar, and message body" from my news forum posts and post them on my non-cms website. I do not use wordpress, and everything on my site is coded by hand. I would prefer to keep it that way. I know there will need to...
  13. CyberAP

    PHP min() function alternative in templates?

    Is there any way to have something similar to min() function in PHP but in templates?
  14. dooma

    Steps to install xenforo on fresh vps

    Hello all, I'm writing all the steps, required to install a test xenforo forums on a fresh vps from un-managed vps provider. I posted this thread for two reasons: First, to know the experts' opinions about the steps and to tell us if there're any missing steps or any modifications that should...
  15. eva2000

    Extending bench.php & micro_bench.php with Xenforo specific patterns ?

    I use for quick comparison PHP benchmarks bench.php https://github.com/php/php-src/blob/master/Zend/bench.php micro_bench.php https://github.com/php/php-src/blob/master/Zend/micro_bench.php was wondering if Xenforo specific execution patterns could be added ? @Xon @Chris D @DragonByte Tech...
  16. le-melvin

    XF 1.5 Xenforo installation on a nas error required PHP

    Hello I have a nas synology server I would like to install a xenforo Then I and try the script to see what is required The problem "The required PHP extension Iconv could not be found." I am looking for a solution Thank you for taking the time to read top My site...
  17. P

    XF 1.5 Recent Activity template

    Hi all, had a problem I was hoping you could help with. I'm trying to put the global news feed into another template for use on a different page. I have this code put into the template: <div class="newsFeed"> <xen:include template="news_feed"> <xen:set...
  18. Saburov

    After Update to PHP 7 my site doesn't work.

    Yesterday I changed my php version from php 5.4 to 7 for some upload limit situation but after that my web site doesn't open. I have an HTTP ERROR 500 now. How can I fix that? Thanks. http://www.muhasebecafe.com/
  19. ugurkn

    Is a PHP Framework a must

    Hello, I've developed many projects and saw many developers are using frameworks such as Laravel which i know as well. Is a framework a must or do you prefer your own application base ? Regards
  20. Jean-Baptiste

    Compile template via PHP

    Hello, I have the following PHP variable : $string = '<xen:h1>Demo</xen:h1>' ; I would like to compile it using XenForo's core PHP functions, so I get the following result : "<h1>Demo</h1>". It's exactly like XenForo's templates would do, but without using templates ! Any ideas ?