The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Can I use this code in vb4 ?
I was searching for this code but I found it for vb3
Can I use it in vb4? Quote:
|
#2
|
|||
|
|||
I don't think there's anything that won't work for vb4. I don't think the eval() around the print_standard_redirect() is needed, but I don't think it hurts anything.
|
Благодарность от: | ||
sadiq6210 |
#3
|
|||
|
|||
I didn't think the eval() will work that's why I asked, but after read you post I tried to use it and it is working perfect with me.
Thanks dear |
#4
|
|||
|
|||
The eval() may or may not be needed. I'm never sure on the context. It's not going to break your code, but it may prevent the redirect from working as intended. I'd leave it there.
But the exit is not needed, standard_redirect (which is called from print_standard_redirect) halts execution with an exit. |
Благодарность от: | ||
sadiq6210 |
#5
|
|||
|
|||
That's exactly the reason the eval() isn't needed - it never returns so nothing is ever eval'ed. In previous versions of vb print_standard_redirect() would return a string that needed to be eval'ed.
|
#6
|
|||
|
|||
Yeah I don't understand why vB uses eval so much. There's no need to eval print_standard_redirect unless I'm missing something from being up at this hour.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|