PDA

View Full Version : define THIS_SCRIPT and Path question


Dankinit
04-30-2004, 06:52 PM
I have two basic questions, and sorry if this has been covered. I'm writing some hacks for vb3:

1. How do i define the path at the top of the navbar? For instance it has:
" vBulletin.org Forum > General Codings/Questions > PHP / MySQL / JS / " at the top of this page, how would I do this for my custom page?

2. Not sure if this is related to question #1, what does this part do exactly? I understand this is used throughout on many scripts at the top, but where/how does this information get used?

define('THIS_SCRIPT', 'profile');


Thanks for any help! :)

NTLDR
04-30-2004, 07:00 PM
1. How do i define the path at the top of the navbar? For instance it has:
" vBulletin.org Forum > General Codings/Questions > PHP / MySQL / JS / " at the top of this page, how would I do this for my custom page?

Take alook in showthread.php (or practically any front end script) for examples of how the navbar is constructed (usually near the bottom, just search for $navbits and navbar).

2. Not sure if this is related to question #1, what does this part do exactly? I understand this is used throughout on many scripts at the top, but where/how does this information get used?

define('THIS_SCRIPT', 'profile');


Its used in conditionals and within some PHP files to allow execution of code/output of HTML based on the script that is being run.

Dankinit
04-30-2004, 07:11 PM
Ahh, makes much more sense now, thanks for the help. :)