Log in

View Full Version : question about using "If this script" w/ hacks


Reeve of shinra
01-08-2006, 06:22 AM
I'm using a small hack that adds a value to an extra field in the post table when viewing a thread.

I'd like to extend the functionality of the script by using it in conjuction with different hacks like the journal and vbgallery.

After I add the corresponding new fields in the right tables, I assume I could use THIS_SCRIPT == xyz but whats the correct syntax for this?

Thanks,
Reeve

Adrian Schneider
01-08-2006, 08:48 AM
if (THIS_SCRIPT == 'someValue')
{
// this page has define('THIS_SCRIPT', 'someValue');
}

<if condition="THIS_SCRIPT == 'someValue'">yar</if>

Reeve of shinra
01-08-2006, 02:19 PM
thanks