Jump to content
bbh_blocked_dnftl
Tiberium Technology® Forums

Welcome to Tiberium Technology® Forums

Welcome to Tiberium Technology® Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of Tiberium Technology® Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Recommended Posts

  • Root Admin
Posted

This hook allows you to customize how you want a filter to work on text and textarea fields inside of IP.Content. You may not know this, but IP.Content hard codes the specific comparison made for each filter inside of the code. Date filters, for example, always provide results that are AFTER the date you put in. For all of the text and textarea fields, your results are a simple substring search.

 

This hook fixes a small bug inside of IP.Content 2.1.1 and older that treats all numeric columns as text as well. So if you have a field called 'price' and want to filter all the values that equal 2 you would get all records whose price contains the number 2. So you may see things like '20.00', '3.29', and '45.02' in your results.

 

Directions - In your filter box, if you choose a text field it will now allow you to provide a hint as to the comparison method. The possible comparisons are:

• > greater than

• >= greater than or equal to

• = equal to

• ! not equal to

 

 

Filter (note that whether the field is numeric or non-numeric will be recognized appropriately):

 

 

[price (numeric)] filter: [> 20] // Filters records with a price greater than 20

[price (numeric)] filter: [

 

Effective Result:

Returns records with a price between 20 and 30 (non inclusive)

 

 

Filter:

filter: [=red]

 

Effective Result:

Only returns records that match the string 'red' exactly

 

 

Filter:

filter: [!red]

 

 

Effective Result:

Returns records that aren't the string 'red'

 

 

Filter:

filter: [red]

 

 

Effective Result:

Performs a substring search for the string 'red'

 

View the full article IPS Resources

 

 


My Free Mods:
[NG23] News System v1.1.1 | Custom Pages v4.2 | (NG30) Google Adsense Ads v1.2.2
(NG30) Google Ads In Topic View v1.1.1 | (NG30) iClient Message In A Bottle v1.1.0 | (NG30) Forum Icon Legend v1.0.1
(NG30) Registration Notes v1.0.0 | (NG30) IP.Chat Message v1.0.0

My Paid Mods:
(NG33) Global Adverts v2.1.0 | (NG30) Rotating Banners v1.1.0 | (NG33) BuyNow BBCode v2.0.0
(NG33) Members Donate Button v1.0.8 | (NG33) Xbox/Psn Tags v1.0.3
(NG30) Image Align BBCode v1.0.0 | (NG30) Topic HTML v1.0.0 | (NG30) Google Checkout v1.0.0 | (NG30) LightBox Link BBCode v1.0.0

Mods In Development:
(NG33) Social Groups Addon - Group Payment Button | (NG33) Global Ads v2.2.0 Alpha 1

My Services:
Mod Installation Service | Skin Installation Service | Forum Upgrade Service

25d62e68d76cd7f75667a83cf86de91d.png571a3be8802342dcad9f07b714798cab.pngd650fe3d5d63fbbbab3604d6dc2414a0.png45b90d1ccf717d0a8f5d408051b94ef2.png
cacd42cb21d2574e269f68f0e79192dc.png62544e0b76b142e25661166266eb7944.png9fd72f98b8e65b7fb691407ee5d42391.png
b7abd2a44678e89c2bb3aa91e401ea99.png9687ca76387f2ede1fbb7df8d2508b3e.pngc8c57eb84a468892635126acaf75ff6f.png

---------------------------
For Support Questions About Your Hosting Account, Please Post Your Question In The HelpDesk System.
http://www.tiberiumstudios.net/Files/Sigs/sig.gif
---------------------------
My YouTube! Channel
The Price of War Clan.com
---------------------------

NXE:
NuclearGeneral.png
NewNXE:
NuclearGeneral.png
DarkSigBar:
NuclearGeneral.png
XboxOneSig:
NuclearGeneral.png
XboxOneSig2:
NuclearGeneral.png

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines, & Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.