PDA

View Full Version : using THIS_SCRIPT


flat6
06-26-2004, 12:53 PM
I've got some of my own pages using the vB template system, and they all have something like...

define('THIS_SCRIPT', 'index');

I'm guessing this correlates to the display in the user activity screen, where it might say that a user is looking at the forums index. Where do I need to make the matching coding so that if I say define('THIS_SCRIPT', 'my_widget'); it'll display on the user activity 'user is looking at his widget'?

flat6
06-28-2004, 04:21 PM
Come on, someone has to know :ermm:

Ryan Ashbrook
06-28-2004, 04:44 PM
You want something like in the Who's Online page it displays where they're at?

You do that in includes/functions_online.php.

Xenon
06-28-2004, 08:34 PM
sorry, but you are wrong here.

THIS_SCRIPT has nothing to do with user locations. It's just a constant which you can use in template conditions or such, but the online locations you mean have to be edited in functions_online.php :) (as Ryan said)

flat6
06-29-2004, 05:43 PM
Ah, OK. Thanks for your help guys.

Xenon
06-29-2004, 09:00 PM
you're welcome flat :)