The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Vb Api Extension returns data and shows always after <body>
I am creating a Api Extension with the help of Wordpress Header & Footer Integation
I am almost done and everything seems to be in order except, whenever I return a data, it always goes on the top of the browser, after the <body> tag, example given below: PHP Code:
PHP Code:
|
#2
|
||||
|
||||
The echo statement is the problem. VB wants to display the returned data. Assign your data to a variable and return the variable.
$data = '<h1>My Custom Footer</h1>'; return $data; |
Благодарность от: | ||
In Omnibus |
#3
|
|||
|
|||
Quote:
PHP Code:
|
#4
|
||||
|
||||
Using an echo will show at the top of the page like a debug marker. You need to remove the echo.
in your snippet, you're doing "return;" You need to put the data in a variable and "return $data;" |
Благодарность от: | ||
MarkFL |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|