On the front page for messages block above the news I am trying to include a 3rd party script I made locally hosted on the same server, every attempt even pressing html and posting the code does not work. I even fixed the string $AllowableHTML in config.php to allow html and still its not working. The code that I am trying to get into the message block is:
<?php include("custom/fpss.php"); ?>
Thanks to anyone that can help
P.s. I am hardcore programmer but since I haven’t used php-nuke in ages I cant remember how the backend core is programmed and I wish not to waist hours upon hours researching...
Evaders99 Site Admin
Joined: Aug 17, 2003
Thu Dec 13, 2007 6:04 pm
That is PHP code. You cannot add that as an HTML block.
Simplest solution is to duplicate a simple block (like block_login.php or whatever), rem-out / delete the code you don't want and simply add your php code straight in. (Just save this as block_[yourtitle].php and upload into your blocks folder)
As Evaders99 already said, you cannot use PHP within a HTML block, it must be put within a block file in the blocks folder.
Hope this helps
jammyme Nuke Soldier
Joined: Jan 29, 2007
Location: South Yorkshire, UK
Fri Dec 21, 2007 1:59 am
Just another quick note - what you wish to display must be added to the $content string. The code you want from your include will probably need to be placed within the block file, depending on what your script does.
Using the template below may help? (works on RavenNuke 7.6, but think this should work for other versions?)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum