![]() |
[TXT] & [HTL]Adding OS specific Template conditonal.
I had this idea because when I was in Linux and was viewing a site using the Q3px Plugin. It would annoy me everytime because it would constantly ask for the plugin. Or it would show a Install this plugin Box.
What this will do is allow you to insert plugins that will work for only Specific Operating systems, while blocking out the unsupported operating systems. Alot of the credit goes to Revan For providing the fixed code and for pointing me to the corrent file to edit to add this function. And Credit also goes to MarcoH64 for his assistance. Thanks guys. :) Intructions are in the txt file, or if you have the Hack Tracking Log (https://vborg.vbsupport.ru/showthread.php?t=60735) installed, download the htl file. :) |
No Screenshot.
The example of how to use this is in the txt file. But here it is again. HTML Code:
<if condition="is_os('XXX')"> windows linux mac and webtv Yes I know webTv isn't an OS, but I included it for the remote chance someone out there actually uses it. :D |
Cort, you never told me if you wanted a version that could check against multiple os'es as well, so:
if anyone needs a version that can check multiple os'es at a time (IE something like HTML Code:
<if condition="is_os('XXX', 'YYY', 'ZZZ')"> PHP Code:
HTML Code:
<if condition="is_os('windows') OR is_os('linux')"> //peace |
Thanks!
HTL and TXT Updated. |
Maybe my eyes are still closed (yee i need more coffee) but i don't se any files attached.
PS Don't think i need any credits, all the work is done by Revan. |
Quote:
Files are uploaded. |
All times are GMT. The time now is 04:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|