![]() |
Custom Non-vB Page
Created this hack for a friend and everything works well exept for one problem.
The problem is that the Replacement variables in the templates arent replaced by the replacement code, so the colors or images dont show up, if there is any file i have to "require" other than global.php could someone tell me? |
BUMP! Ne1 have ne ideas?
|
Make sure you're using the appropriate code to eval the template:
PHP Code:
|
I put that in, but the template didn't show, not sure if i missed something out or something. I'm currently using two lines to display the template which seems to work:
PHP Code:
|
Never echo directly from a vB page. Instead, always use dooutput (search in the source).
|
Quote:
Try this... eval("\$ranking = \"".gettemplate("ranking")."\";"); print $ranking; |
That's not the problem; PHP doesn't care which quote format you use (although I use double for everything except array keys). The only difference between the two is that single-quotes won't parse variables in the string.
|
ye, i just noticed that the type of quotes doesn't really matter, i prefer to use single quotes, thats the way i do it, others may use double.
Quote:
|
Quote:
http://us3.php.net/eval |
What do you mean? :)
Breaker: look in vB's files for examples on how to use dooutput(). :) |
All times are GMT. The time now is 07:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|