Quote:
Originally Posted by ykkrox
Man I'm on the home stretch!
I'm stuck on doing the final display of a plugin.
Now I'm trying to have it show up on several sections and not others.
I found this VB snippet on another post
https://vborg.vbsupport.ru/showthrea...+certain+pages
Code:
<vb:if condition="in_array(THIS_SCRIPT, array('index', 'vbcms', 'blog'))">
stuff here
</vb:if>
What is in the "THIS_SCRIPT" to detect what page you are on?
Is there another array value that I can access to find out what page I'm on?
Thanks!
|
Open up the php file

For example, open blog.php in a text editor and see where it says:
PHP Code:
if (!defined('THIS_SCRIPT')) { define('THIS_SCRIPT', 'blog'); }
The main part you want to look for in that is:
PHP Code:
define('THIS_SCRIPT', 'blog');
And you would enter
blog as part of that array