nexialys
11-12-2005, 11:58 PM
actually, we can create anykind of Custom Location but adding a plugin, like in this tutorial: https://vborg.vbsupport.ru/showthread.php?t=98009
problem is that actually, vBulletin parse only the last element of the url, say the file itself...
example:
/vb/index.php << this is detected as the "Viewing Index Forums" location...
BUT... that's the bug here... see:
/vb/my_fantastic_script/index.php << will be detected as "Viewing Index Forums" ...
we need something more serious and less hasardeous... the 'THIS_SCRIPT' constant as an example, is not used anywhere for the locations... i'm not sure anyway that it is used someway... maybe it's time to switch to this constant to detect where the user is, and base the Location on this instead of a filename (because i'm sure it takes more time to analyse the url than the constant!)
ok, i'm too far here...
i'd like to know if someone have break this gate, and see if we can add Custom Locations in these situations ?! outside vBulletin file structure?
.. this would help a lot!
oh, btw, i know how to handle this by hardcoding some lines... but i'd like to see a hook and plugin about this, ... anyway, may be complicated.. ;)
problem is that actually, vBulletin parse only the last element of the url, say the file itself...
example:
/vb/index.php << this is detected as the "Viewing Index Forums" location...
BUT... that's the bug here... see:
/vb/my_fantastic_script/index.php << will be detected as "Viewing Index Forums" ...
we need something more serious and less hasardeous... the 'THIS_SCRIPT' constant as an example, is not used anywhere for the locations... i'm not sure anyway that it is used someway... maybe it's time to switch to this constant to detect where the user is, and base the Location on this instead of a filename (because i'm sure it takes more time to analyse the url than the constant!)
ok, i'm too far here...
i'd like to know if someone have break this gate, and see if we can add Custom Locations in these situations ?! outside vBulletin file structure?
.. this would help a lot!
oh, btw, i know how to handle this by hardcoding some lines... but i'd like to see a hook and plugin about this, ... anyway, may be complicated.. ;)