[Nulled] » Nulled Warez Scripts » CMS (Site management systems) » DataLife Engine » DLE hacks » Additional fields by category [any DLE version]
December 26 2022

Additional fields by category [any DLE version]

Title: Additional fields by category [DLE ALL]
Author: everyone who thought of it
The author of this method: DomiTori
CMS: any version of DLE

Description:
The other day, such an idea came to mind. Make a hack that allows you to divide additional hyperlink fields into categories in links. Having conjured half the night, I managed to breathe life into this hack. It will be useful both for movie portals, vareznik, culinary sites and others.

What does this hack do.

I created two additional fields on the test site for experiments

genre|Genre of the work||text||1|1|0|0
year|Year of release||text||1|1|0|0


Initially, cms DLE allows you to sort by these additional fields by a common link

website.<url>/xfsearch/action movie
site.<url>/xfsearch/2014


In the hack, we change the annoying xfsearch to a more logical word in the address. I described how to change xfsearch to any other word that you like.
Now the idea is this:
Replace xfsearch with the Latin name of the additional field, thus dividing them into categories.

Now visually.
Above I described the data from xfields.txt . As you can see, I have two additional fields, I named them genre and year. Now I'll show you how to replace the site link.<url>/xfsearch/ to the website.<url>/genre/ and website.ru/year/.

Let's proceed with the installation.
1. Search in the files engine/modules/show.short.php , engine/modules/show.custom.php and twice engine/modules/show.full.php
$value3[] = "<a href=\"" . $config['http_home_url'] . "xfsearch/" . urlencode( $value2 ) . "/\">" . $value2 . "</a>";
Replace with
$value3[] = "<a href=\"" . $config['http_home_url'] . "".$preg_safe_name."/" . urlencode( $value2 ) . "/\">" . $value2 . "</a>";
This will replace xfsearch with the Latin name of the additional field.
2. In the file.htaccess is looking for

RewriteRule ^xfsearch/([^/]*)(/?)+$ index.php?do=xfsearch&xf=$1 [L]
RewriteRule ^xfsearch/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=xfsearch&xf=$1&cstart=$2 [L]

Insert below

RewriteRule ^genre/([^/]*)(/?)+$ index.php?do=xfsearch&xf=$1 [L]
RewriteRule ^genre/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=xfsearch&xf=$1&cstart=$2 [L]
RewriteRule ^year/([^/]*)(/?)+$ index.php?do=xfsearch&xf=$1 [L]
RewriteRule ^year/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=xfsearch&xf=$1&cstart=$2 [L]


This is how we make a redirect.

It is clear that you have different additional fields from mine, someone has more of them. You need in .htaccess to insert separately on each additional field

RewriteRule ^Latin name of the additional field/([^/]*)(/?)+$ index.php?do=xfsearch&xf=$1 [L]
RewriteRule ^Latin name of the additional field/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=xfsearch&xf=$1&cstart=$2 [L]


That's all. Is it really easy and simple?)

Information

Visitors who are in the group Guests they can't download files.
Log in to the site under your login and password or if you are a new user go through the process registrations on the website.

Comments:

This publication has no comments yet. You can be the first!

Information the publication:

Related News

21 November 2022
XenForo forum platform»,Modules XenForo
Thread Filter by

Thread Filter by AddonsLab - this plugin allows you to filter and search for topics based on additional fields.

Read more
26 December 2022
DLE modules
Grabber Parser TMDB

MultiLanguage: Multilingual grabber-parser based on films and TV series TMDB - an analogue of Kinopoisk and IMDB

Read more
12 November 2022
PrestaShop script»,Modules PrestaShop
Module Additional

Sell products with paid attributes, specify parameters, or simply get additional information from customers using

Read more
26 December 2022
DLE modules
Google Play Parser v6.0

MultiLanguage: Multilingual information Parser from Google Play for DLE 13-14X. Version 6.0, taking into account

Read more
26 December 2022
DLE modules
Catalog of companies 1.0

the additional module "Directory of companies 1.0" was created by the authors for the version of

Read more

Information

Users of 🆅🅸🆂🅸🆃🅾🆁 are not allowed to comment this publication.

Site Search

Site Menu


☑ Websites Scripts

Calendar

«    November 2024    »
MonTueWedThuFriSatSun
 123
45678910
11121314151617
18192021222324
252627282930 

Advertisement

Survey on the website

Evaluate the work of the site
 

Statistics

  • +20 Total articles 6747
  • +12 Comments 4083
  • +32 Users : 5825