Yes, if that is what you want to show. The html (design and fixed data) part of the form can be put directly into the template, and any dynamic data can be displayed through variables set in the php code.
The basic purpose of templating (whether vbulletin or otherwise) is to separate the front end design from the business logic. The template holds just enough code (actually html with conditionals, not programming code) to show whatever needs to be shown. The template is simply 'shown', and that is why you cannot have php code in there. The vbulletin manual has a section on templates, and reading the default vb templates can be very instructive for newcomers. --------------- Added [DATE]1246858288[/DATE] at [TIME]1246858288[/TIME] --------------- This will work: php: Code:
$htmlform = "<form>........</form>" Code:
$header |
Thanks AMCD i finally got it to work.
|
Sorry, but this makes no sence at all to me
anyone care to explain it in more detail for me? Sorry Gary, i just dont find your instructions very clear at all :S |
Quote:
|
Okay, I accidentally deleted my test file that I finally got working and really can't spend another week reading through all 76 pages of this topic, fun as that was the first time, to find the answer to this simple question. What do I change in this code to make this page viewable by nonmembers?
Quote:
|
Remove
Code:
if (!$vbulletin->userinfo['userid']) print_no_permission(); |
Sorry, I couldn't figure out those tags. And thanks for the help. Much appreciated.
Quote:
|
They're the same as the quote tags..... just php, code, and html
|
Quote:
I have fixed issue... It was a template issue. Thanks 4 your time & help. :D:D:D |
is there any way to insert html into the template, something like this:
eval('$showhtml = "' .$showhtml . '";'); // with $showhtml containing html I want to convert one of my scripts but if I can't do this it'll be a huge headache. |
All times are GMT. The time now is 01:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|