The Arcive of vBulletin Modifications Site. |
|
[TXT] & [HTL]Adding OS specific Template conditonal. Details »»
|
|||||||||||||||||||||||||||
|
[TXT] & [HTL]Adding OS specific Template conditonal.
Developer Last Online: Jul 2009
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. ![]() Supporters / CoAuthors Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
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')"> Insert Code Here </if> 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.
|
|
#3
|
||||
|
||||
|
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')"> Insert Code Here </if> PHP Code:
HTML Code:
<if condition="is_os('windows') OR is_os('linux')"> Insert Code Here </if> ![]() //peace |
|
#4
|
||||
|
||||
|
Thanks!
HTL and TXT Updated. |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
||||
|
||||
|
Quote:
![]() Files are uploaded. |
![]() |
|
|