The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
<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 |
#2
|
|||
|
|||
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. |
#3
|
||||
|
||||
in your php file put:
PHP Code:
|
#4
|
|||
|
|||
so would the script look like this then ?
in the php script: PHP Code:
PHP Code:
PHP Code:
|
#5
|
|||
|
|||
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. |
#6
|
|||
|
|||
where in my script do i put this can you give me a example please ?
Quote:
|
#7
|
|||
|
|||
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 |
#8
|
||||
|
||||
You can also embed PHP in HTML language, with a simpe tag like:
<script type="php"></script> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|