The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
ok, i have a variable in the index.php file, what do i have to do to print it on the index page?
|
|
#2
|
||||
|
||||
|
You will need to add it to your forumhome template where ever you want it to display.
|
|
#3
|
|||
|
|||
|
i know that, but what code do I have to add to the template?
|
|
#4
|
||||
|
||||
|
Can't say without seeing it and having an idea of where you want it.
|
|
#5
|
||||
|
||||
|
If you have something like $variable = 1; in your php file, then type $variable to display the 1.
|
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
||||
|
||||
|
Maybe something is wrong with your script, because that is how you do it.
![]() Could you post the section of code that creates the variable. |
|
#8
|
|||
|
|||
|
PHP Code:
|
|
#9
|
||||
|
||||
|
PHP Code:
|
|
#10
|
|||
|
|||
|
...but remember to never do SELECT *. Only SELECT what you want to get from the database and nothing more.
|
![]() |
|
|