The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
I've seen the link. I have seen no template code posted from you. You cannot use echo statements if you want to put text inside a vbulletin like page.
|
#12
|
||||
|
||||
@danishravian, as adviced above, post here the whole codes that make up your test.php file and your custom template. So we can have a clear and full look.
|
#13
|
|||
|
|||
I made a template by name TEST using this:
HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">Title</td> </tr> <tr> <td class="alt1">Text</td> </tr> </table> $footer </body> </html> PHP Code:
http://www.haveelskere.dk/test.php |
#14
|
||||
|
||||
Quote:
Your template is all wrong. Try to create a correct one for vb 4x by using the example at this tutorial. https://vborg.vbsupport.ru/showthread.php?t=228112 |
#15
|
|||
|
|||
|
#16
|
||||
|
||||
You need to take the time and try to understand what happens in the code.
1. You can not use echo, as Lynne already told you. That's what makes the results show up on top of the pages. You need to save the output of the loop into a variable, and that variable needs to be registered for use in your template. Replace echo with PHP Code:
3. There's no sense in wildly registering variables like $query, $row and $result in the middle of nowhere. Those three variables are only used in your php code, so there is no need to register them. Registering variables is for passing variables from the php code to the template. This happens under the comment "Now your template is being rendered." Add a line like this PHP Code:
HTML Code:
{vb:raw output} |
#17
|
|||
|
|||
PHP Code:
i have registered my variable $code in template and its working OK. if i use this code to display data, it displays it outside the template but i have to display all records from database. how it can be done?? any clue PHP Code:
--------------- Added [DATE]1274277151[/DATE] at [TIME]1274277151[/TIME] --------------- cellarius thnxxxxx a lottttttt a got some Idea you are sooo goood |
#18
|
||||
|
||||
For everyone else interested: The problem most likely was that there still was an echo statement in the php code.
Glad you figured it out |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|