>>  Site Map >>  Forums >>  Blocks

Forum module - topics in forum:



Blocks - Having problems with a block? Code doesn't work, get help here.



Changing background

Hello,

I do not know php at all and I need to edit the top center second block on this site:

nfldrafttracker.com

to use this background image:

http://img322.imageshack.us/img322/861/watermarkedbkgd6je.gif

Can someone please tell me how I can do this? Do i need to edit CSS?






What version of phpnuke are you using? Yes it matters. If you are using anything over 7.6 then it can't be done. It has NOTHING TO DO WITH CSS!






im using 7.8

It seems a little odd that it cant be done...arnt you allowed to create blocks and have like HTML files with them?






not if you are using the message module, which isn't a block at all, it's a MODULE big difference and you can only use nukes built in text editor in it not HTML.






its not a message module, i created a custom block under Administration<Blocks






Same difference... in order for it to actually work you would need to actually create a block by coding it. Your block might look something like the EXAMPLE below.
Code: :
<?php

if (stristr($_SERVER['PHP_SELF'], "block-Block_Name.php") OR stristr($_SERVER['PHP_SELF'], "block-Block_Name.php")) { Header("Location: index.php"); }
$content  =  "<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
$content  .= "  <tr>";
$content  .= "    <td background=\"images/image.gif\" width=\"100%\" height=\"150\">content here</td>";
$content  .= "  </tr>";
$content  .= "</table>";

?>

Becareful....Dumping a bit of code into the content section of the blocks admin section is a good way to open security holes in your site. It is always best to code a block to do what you want then use the content area in blocks administration. I hope this example helps you.






man its to bad i dont know php *cries*






err cant seem to edit my own posts =\

Thankyou so much for your help Nukecode




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS