The Arcive of vBulletin Modifications Site. |
|
I hate to get help but ok..... Details »»
|
|||||||||||||||||||||||||
I need some help.
I made a template: $adminnews I want to display that on the /admin/index.php page. What i thried is: Code:
<?php
$adminnews = ".gettemplate[adminnews]."
?>
<?php
eval("$adminnews" = \".gettemplate[adminnews]."\;";")
?>
After that i Tried: Code:
<?php print $adminnews ?> Code:
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE title<>"adminnews"")
?>
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE title="adminnews"")
?>
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE topic<>"adminnews"")
?>
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE topic="adminnews"")
?>
But i just can't get it. What am i doin' wrong? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Why do you hate it to get help? Did you never get any help before? (While you just learned php/mysql/vb)
Try: PHP Code:
|
|
#3
|
||||
|
||||
|
Ok i'll try.
I hate to get help just caus I know i won't learn anything from it, cause i just copy past it.
|
|
#4
|
||||
|
||||
|
Doesn't work either :?
THe problem: It shows me an table [with the withs I told 'm] but it doesn't display the content of the template __________________________edit___ I'll be back in a few hours, goin' to play some soccer [football] :P Ciao! __________________________edit___ |
|
#5
|
||||
|
||||
|
You can do this, place the following:
PHP Code:
PHP Code:
Then it display hello there admin on the page! |
![]() |
|
|