I've got two users with usernames like 'محمد العلاف' (looks like Arabic characters) and also have plenty of other users with other language characters, in my db:
This is where the script stopped at the beginning:
user with user ID 161751 has its username this 'محمد...
Using protocol-independent absolute path:
If the browser is viewing a page in SSL through HTTPS, then it'll request that asset with the https protocol, otherwise, it'll request it with HTTP.
This prevents that awful "This Page Contains Both Secure and...
I have this HTML type widget in the search_results template which has access to the $search object of the search_results template.
(template passes $search to the widget via a context variable context-search, I'm using template modification to add the widget position to the search_results...
If you are familiar with the widget system in XenForo, as you may be aware, this special kind 'HTML' type widget, allows you to add raw HTML code to your site.
I can create other type widgets when installing the addon, in setup.php
but How do you create this HTML type widget using installSteps...
Does anybody use PHPUnit with XenForo 2.x?
How do you setup the working environment with PHPUnit?
I can see some vendor packages have already used it (PHPUnit\Framework\TestCase) but can we use it when we're developing add-ons?
I'm trying to import vB 3.8.9 to XF 2.0.2. I used CLI importer and Browser both, but no luck.
`user` table has 555,467 rows, table type is MyISAM, collation is latin1_swedish_ci (145.9 MiB)
InvalidArgumentException: Received invalid UTF-8 for string column [signature]...
What I'm trying to do is:
I wanna add some metadata to a file and modify it as soon as it uploads as an attachment. (before hash calculations etc)
So I thought overriding beforeNewAttachment method in AbstractHandler would do the trick.
In admin area we have "Resources > Resource fields".
Is it possible modifying the "resource search" to detect values in Resource fields?? or Sort by Resource fields?
For an instance, let's say we have a resource category and it has a resource field named "Condition". So we can put values like...
I see tags used sitewide in xenforo to categorize content. But search results can not be filtered using tags
In the main search, you can search a specific keyword filtered with specific forum category, thread prefix, date, member etc.. But no Tags.
Tags are more effective way to categorize...
What if I have to build the site (Installing add-ons and themes etc) after completing the import process?
I've read somewhere it's a good idea to import the forum to a fresh install.
What if I don't want to publish the live site until I finish with the importing, configuring settings, add-ons...
I've been performing an import from vB 3.8. Everything was going smoothly until I click the "Import Attachments" button, and I got this error:
I skipped importing "content tags" step because I don't want tags from previous vBulletin site. Was that the problem? I don't think so.
I'm writing an add-on to add-on
I need to modify one of his column and append new ENUM value to the list.
I know I can just modify the column with this code
public static function install()
$db = XenForo_Application::getDb();
$db->query("ALTER TABLE his_table MODIFY COLUMN his_column...
Does anyone use version control system with XenForo addons?
In case you guys are using git how do you setup repositories with xf addons?
In my case I think I should use git submodules on each plugin, but currently I'm facing a problem
is it possible to use unit tests on XFCP_ControllerPublic_XXX classes?
these are my settings
<?xml version="1.0" encoding="UTF-8"?>
I'm trying to add a custom inline mod option
@Snog helped me with this code
but when the code gets executed, I get the error
( ! ) Fatal error: Call to undefined method...
This maybe a silly question, but I really need to know if there is a possible way to do this.
for an instance lets say if I need to add a new inline mod option to $postModOptions in library/XenForo/Model/Post.php line: 959
* Adds the canInlineMod value to the provided post and returns the...
I bought a centos 7 minimal server with 512Gb x 2 SSDs in software raid 1
When I enter df -h command I get:
[root@CentOS-72-64-minimal ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md2 438G 935M 415G 1% /
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 0 32G 0% /dev/shm