php

  1. CyberAP

    PHP min() function alternative in templates?

    Is there any way to have something similar to min() function in PHP but in templates?
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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/
  7. masterking

    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
  8. 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 ?
  9. KevinnTCG

    External MySQL Connection

    I am having trouble finding methods of connecting to a database outside of my web server box, and using data from that to display on a page. Not only do I have no clue how to do it (barely even know how with PHP) but I just need to know a method that is useable, since you cannot use PHP...
  10. cjesuele

    Massive XF_SEARCH_INDEX - Help - Search Function Not Needed

    Hello! My site's index.php (basically runs XenForo) is intermittently running extremely high CPU usage, which locks up my site for a minute or so. I have disabled XenForo's user-based search function, as I don't need that functionality on my site. XF_SEARCH_INDEX is by far my largest...
  11. ryladine

    External Login System

    This post was originally posted in the support section, I moved it believing this was a better place for this kind of question. I'm trying to find a way to integrate an external web application hosted under the same domain as a xenforo install into xenforo authentication system. I've looked...
  12. H

    PHP to convert IPv4 to Xenforo storable format

    Hello! I am able to pull IP's out of the Xenforo database using $iparray[] = long2ip(hexdec(bin2hex($row['ip']))); I want to be able to store IP addresses using my API, this uses PHP and MYSQL queries. How can I do the reverse of above to convert the IP to the correct format to store...
  13. Torrey Leonard

    XF 1.4 Incorporate WordPress Header with XenForo

    Hey XenForo, For the past few days, I've been searching endlessly for a way to integrate my forum with WordPress. I've reached the conclusion that, well- it's difficult. At this point, I've extracted the contents of my header to raw HTML and CSS. However, placing the static HTML in my header is...
  14. Tyler James Ronek

    Is it possible to use Xenforo Login with html site?

    Hello. I have been working on a website project for some time. I found Xenforo to have what I wanted in a forum software, as well as user profiles. One of my colleagues have designed a html based website from a template (WIP) and I was wondering if it was possible where at the top it has a...
  15. AUSFIFA

    Displaying extra info from my own MySQL database on user post

    I am running Xenforo on my PHP website which has its own database tables, and I'd like to be able to display information from these tables for each user when they post. Example of what I want to achieve: Please note that the info would need to come from database tables outside of Xenforo...
  16. AUSFIFA

    Being spammed with server errors after initialising Xenforo environment

    I have a PHP website which has its own user accounts/log in system, and I've integrated XF into that system using a bridge. When a user registers an account, a Xenforo account is also created for that user, and they are automatically logged into this XF account when they log in to my site. I'm...
  17. Grant

    Looking to move to XF from VB4. Have questions re integration with existing site

    Hello I currently run a site, which uses vBulletin 4 for forums, and user profiles. The rest of the site I have custom coded in php, and integrates with vBulletin. (I used to use the VB template but last year I ditched the VB template for the non-forum pages, as I wanted to go responsive) I'm...
  18. dougdirac

    XF 1.5 simple php redirect scripts from vB4

    I know about the resource here, but I was wondering if there were simpler scripts available. Since I preserved my thread/post indices, I don't need a database lookup table. Thanks!
  19. R

    Error checking after sql queries in installer/uninstaller?

    As there is no error checking after mysql queries in any code of a development tutorial here in XenForo I just want to ask: Is it not necessary to check sql errors by yourself (and throw an exception in case there is one) because XenForo already does this all? Or would it be not a bad idea to...
  20. Cyb3r

    What's the best way to call userfield value from PHP file

    I tried using XenForo_Template_Helper_Core::callHelper and XenForo_Template_Helper_Core::helperUserFieldValue and XenForo_Template_Helper_Core::helperCallbacks but the main problem is that I don't know which params I should pass to get the userfield value, any help will be much appreciated...
Top Bottom