The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Quote:
Quote:
Actually what I said above was wrong, it's a redirect to an error page, but it does print out a phrase by calling the standard_error() function. In any case, while you could echo html code to the browser at that hook, it would happen before anything else was output so I think you'd pretty much have to output and entire html document and exit (in which case you'd be bypassing the vb shutdown code - which might not be a major problem, but just so you know...). |
#12
|
|||
|
|||
Output buffering is something I didn't think of. If you add vbflush(); after that echo statement it should output to the browser without messing up the layout.
But this is vB we're talking about, sometimes things don't work out that simple. I'm not sure if there's any template hooks in there either (doubt it). |
#13
|
|||
|
|||
I'm not completely sure without trying it, but I don't think it's so much a matter of buffering of things you "echo" as the fact that vb normally doesn't output anything until near the end of the script, so even if you called vbflush() or otherwise succeeded in causing output, it would still happen before any of the normal vb output.
|
#14
|
|||
|
|||
Yeah, you're right. It's not very smart to echo HTML before the page is even outputted. Going to get a screwed up looking page. Should stop posting when I just woke up.
I decided to look into the code instead of making random guesses. I don't think it's possible to add your own HTML into the registration complete page without hacking into the files. Your best bet would track sessions that registered then show the code for them. If you only want them to get the code once you'll have to revert the field that tracks the sessions. |
#15
|
|||
|
|||
Ok, now I am confused again! Does this mean I can't put the javascript into the phrase as suggested by kh99?
|
#16
|
|||
|
|||
I think that will work (although I'm not 100% sure because I haven't tried it). But I think just putting code to echo it in a plugin might not work right. But you know, why not try it both ways - it can't really hurt anything (unless you're doing it on a busy live site).
Edit: oh, I missed Pandemikk's last post, I guess we agree that the echo thing probably isn't a good idea. I still think my idea might work, but maybe there's a better way. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|