DLE hacks
Additional fields by category [any DLE version]
26-12-2022, 11:51
Title: Changing the annoying xfsearch to a more logical word in the address
Author: everyone who thought of it
The author of this method: DomiTori
CMS: any version of DLE
Description:
I think everyone has thought at least once that the word xfsearch on the site and in the address bar does not fit into the site in any way and only ruins all its beauty. Let's change the situation
To begin with, let's decide which word we will replace this most annoying xfsearch. I choose the word "find" and show you an example of this word
We will need to edit 6 files. Let's get started.
1. Open .htaccess
Looking for (in DLE 10.3 36-38 lines)
# search by additional fields
RewriteRule ^xfsearch/([^/]*)(/?)+$ index.php?do=xfsearch&xf=$1 [L]
RewriteRule ^xfsearch/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=xfsearch&xf=$1&cstart=$2 [L]
We change it to the selected word, so that it turns out like this:
# search by additional fields
RewriteRule ^find/([^/]*)(/?)+$ index.php?do=xfsearch&xf=$1 [L]
RewriteRule ^find/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=xfsearch&xf=$1&cstart=$2 [L]
2. Open engine/engine.php
Looking for (in DLE 10.3 349 line)
"xfsearch/"
We change it to our own
"find/"
3. Open engine/modules/show.custom.php
Looking for (in DLE 10.3 374 line)
"xfsearch/"
We replace it with our own
"find/"
4. Open engine/modules/show.full.php
We search 2 times (in DLE 10.3 1006 and 1336 lines)
"xfsearch/"
We replace it twice with our own
"find/"
5. Open engine/modules/show.short.php
Looking for (in DLE 10.3 480 line)
"xfsearch/"
We replace it with our own
"find/"
6. Open engine/modules/topnews.php
Looking for (in DLE 10.3 222 line)
"xfsearch/"
We replace it with our own
"find/"
As a result, the link to the search for additional fields will become more reasonable, and the search engines will index it as we make it.
26-12-2022, 11:51
26-12-2022, 13:38
26-12-2022, 15:14
There are no comments
Information
Users of Visitor are not allowed to comment this publication.