Forum Moderators: coopster
I am using articletradeMS for my CMS and I have changed the extensions to php but my PHP scripts do not work within the text (html)
there is a seperate box for php script though, and I have insserted the script within that box removing the <? etc. but now the banner works but not where I want it to work
here is the code I inserted in the PHP section of the PHP
$textfile ="txt/longbanrotate.txt"; $quotes = file("$textfile"); $quote = rand(0, sizeof($quotes)-1); echo $quotes[$quote];
I call this script by simply calling a block - $block->blockname
it works but not where I want it, the block is inserted in the proper DIV I want it to be located, it should be located below the newsletter subscription but the banner is being called at the beginiing of the page once its loaded
[edited by: coopster at 4:38 pm (utc) on Dec. 28, 2006]
[edit reason] removed url TOS [webmasterworld.com] [/edit]
Maybe look at the generated source for that page and see exactly where the PHP code is being echoed and change it accordingly.
Good luck!