php

  1. CMTV

    Plain not-wrapped php for <xf:codeeditorrow...

    The suggestion is simple: add a new mode called php-plain to the list of CodeMirror supported languages with text/x-php mime type. This can be useful for addon creators who want to add php editor rows in their addon.
  2. P

    XF 2.0 Upgrade system login?

    Hey Xenforo forum! I'm new here and I hope I'm in the right section - I got a real problem! :(:) I ran into an issue while trying to create an API / REST API for your software. After I set up the Autoloader XenForo_Autoloader::getInstance()->setupAutoloader(ROOT . '/library'); Xenforo...
  3. P

    XF 2.0 <xf:callbac> shows error when I want call PHP file

    I just created this file in library/MyCard/index.php and added this code in it class CardCoontroller{ public static function getCard() { return 'test data'; } } and in edit template -> member_view added this code <xf:callback class="CardCoontroller"...
  4. thinkdiff

    Not a bug <xf:callbac> has bug I think

    I just created this file in library/MyCard/index.php and added this code in it class CardCoontroller{ public static function getCard() { return 'test data'; } } and in edit template -> member_view added this code <xf:callback class="CardCoontroller"...
  5. J

    First Time Configuration On GoDaddy

    I have GoDaddy webhosting (Deluxe Web Hosting Windows) and am attempting to set up my first Xenforo forum. Following the instructions for installation of XenForo 2, I point my browser to the install folder and get this error: "PHP 5.4.0 or newer is required. 5.3.6 does not meet this...
  6. T

    XF 2.0 Save the Input from a custom display Location

    Hello, that's a repost because @S Thomas said that my first post is simply to long to understand my problem. Since the last week I'm trying to add a new display location for some input fields in the account settings location. I want to add for example a new location for a first name. Everything...
  7. T

    XF 2.0 How can I save the input which was written into a custom display location?

    Hello xenforo community! Wasn't here for a long time but because I've got summer holidays I'm finally able to work on my forum style again.. Problem: I've created a new Display Location for a custom user field (settings in my example). Into this display location I've tried to add a new input...
  8. 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...
  9. 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' =>...
  10. 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"...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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.
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. CyberAP

    PHP min() function alternative in templates?

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