Forum Moderators: coopster

Message Too Old, No Replies

PHP with CMS - with ext php

         

ianternet

4:35 pm on Dec 28, 2006 (gmt 0)

10+ Year Member



hi,

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]

eelixduppy

12:03 am on Dec 31, 2006 (gmt 0)



You are going to have to look at the positioning of that line relative to the rest of the script to figure that one out. Make sure that you place that code in the correct place. I don't know how else to help you.

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!