![]() |
<if condition=> help please
hey i have a question for all you php coders
im working on a vbhack that improrting from another script my question is this in the script im working on have all the templates in the .php scripts and in the scripts there are a few areas that have this in it PHP Code:
PHP Code:
could i use the PHP Code:
please help me |
you will need to put in the php script something like
gettotalviews() = $gettotalviews Than on the template you put $gettotalviews where the gettotalviews() was.. a if is just a conditional. |
in your php file put:
PHP Code:
|
so would the script look like this then ?
in the php script: PHP Code:
PHP Code:
PHP Code:
|
well
if i got you right then its dosent show vb header and footer or things like that right ? so in the function gettotalviews(); add PHP Code:
i had this problem in my one of my hacks btw this will work only if the function call to template. |
where in my script do i put this can you give me a example please ?
Quote:
|
where you have
function gettotalviews but i think i just got you worng so if you can explain your problem again i might be able to help you more |
You can also embed PHP in HTML language, with a simpe tag like:
<script type="php"></script> |
All times are GMT. The time now is 07:43 PM. |
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:
|