Error code 1292 incorrect date value 0000-00-00 for date column
I have updated MYSQL to 8.0. from 5.7. and Xenforo works fine with no issues, however I have some older software on the server that doesn't like the change and hence threw up the error: Error code 1292...
View ArticleCreate a simple template to display data from a mysql query
I am trying to create a menu item that will display the results of a mysql query. Nothing fancy, no user permissions, no group permissions, no settings, etc. Just be able to create a query and have it...
View ArticleScript passing variables to another php script
I have this script to pass variables to another php script Code: $dir = __DIR__; require ($dir . '/src/XF.php'); \XF::start($dir); $app = \XF::setupApp('XF\Pub\App'); $app->start(); $visitor =...
View ArticleSQL Query in Page - issue
Hi guys, following on from this thread https://xenforo.com/community/threa...te-to-display-data-from-a-mysql-query.211452/ i am trying to create a page to display the contents of a SQL Query. When i...
View ArticleMySQL query to strip quotes
I'm interested in stripping quotes without removing the posts containing them. For example, in the xf_post table: Code: [QUOTE="USERNAME, post: #, member: #"]Random quoted text.[/QUOTE] I'm aware of...
View ArticleUnable to replace text in SQL database
Hi, I have identical text on some posts for a specific description. The text is as follows: Code: Sed consequat leo eget bibendum Vestibulum suscipit nulla quis orci [B][U]Quisque libero metus...
View ArticleRestore mariaDB10.3 backup to mysql8
is it possible to Restore mariaDB10.3 backup to mysql8 without any issues?
View ArticleSQL Query To Search By Birthdate And Add To User Group
I need to be able to restrict under 18 members from being able to send or receive conversations. I have a user group that I can add them to with the permissions that I want. What SQL query would I use...
View ArticleWorkflow, WSL2, mysql, phpStorm ...
I work with Windows 10. I have installed WSL2 with Ubuntu. I have installed Xenforo with Apache, php and mysql in wls2/Ubuntu. I use phpStorm in Windows to edit the files directly in the linux...
View Articleif a,b,c
I can do if a= elseif b = elseif c= means that a= will break and save running time What happens when I do if a= or b= or c= will php stop working here also if a= is true?
View Articlemysql and indexes?
Here is my next table: - item_id => auto - group_id; the items can be in groups and they are fetched as groups (select * where group_id =x) - another_id items also are fetched by this _id - title -...
View ArticleFind and replace
Morning. I am looking for a way to carry out a find replace on the posts table of the database. I want to search all posts for all instances of "url1.net" and replace them with "url2.net". Is this a...
View ArticleJavaScript and html multiple file field - I want to pass all the files
I'm posting it on the general questions. I have the following javascript code, used for a plugin called heic2any (converts heic images to jpeg / its functionality is not interesting us for this...
View ArticleHTTP 500 Error - Godaddy Linux CPanel - Fresh Install
Trying to launch: https:///www.site.com/install/index.php I was getting a HTTP 500 error on a fresh install. Resolution: Delete all files and reinstalled / uploaded. Solved the issue. I tried the...
View ArticleHow can I merge two *separate* MySQL databases into one, but avoid duplication?
I have two MySQL databases setup, with both having the table “xf_user”, and the columns “email” and “username”. They both have other columns, but not all match. I just want to merge those two...
View Articlearray_filter with callback?
Code: $newCustomFields = $this->filter('custom_fields', 'array'); $newCustomFields = array_filter($newCustomFields); I would like to make a check on " "; Code: private function checkElement($var) {...
View ArticleSimulate a key in a field
Here what I have: There is an input field and a button. I click on the button, and a text "example" is copied to field. [example] I also gave the focus to that field. And now I have to press [space] to...
View Articlelinux: Unzip in own dir
On windows i choose five zips, left-click, unzip in own directory, finished. How can I do this under Linux? After 100 years working with XF I have found out that uploading the zips and unzip on linux...
View Articlexenforo with wsl?
While the most things are ok, i am still stuck with installing xenforo. There is a database test, a user test with all privileges, a permission for user test to use database test. Also i can do mysql...
View Article
More Pages to Explore .....