|
#1
|
|||
|
|||
|
Where am I going wrong - attempted addon
PHP Code:
I have attempted to make an addon allowing me to put my cute news powered blog into a template page using the above code (I did this by editing the current date example), however, when I turn this on it puts my blog at the top of every page, and does not put it in place of the tag. I am not too confident with php so really don't know what to look for, could anybody help me out with this one? |
|
#2
|
||||
|
||||
|
Try this and see how it works: (untested)
PHP Code:
__________________
Jay Williams | A Different View |
|
#3
|
||||
|
||||
|
Well, whatever the show_news.php does could change things. For instance, if in that file you had something that said "echo $string;" - that would be displayed at the top of the page.
|
|
#4
|
|||
|
|||
|
Kevincrafts is right. You must make sure that whatever you call, NOTHING echo's out anything. Instead, showNews() should return something:
PHP Code:
and then PHP Code:
|
| Post Reply |
| Thread Tools | |
|
|