ok i have a block on my website with a linked gif so when i click on it takes me to another page. my problem is when i click the link it says file not found. i made sure the directory was correct and still no dice. im wondering maybe in doing this wrong, if any you guys in here know how it should be done i would appreciate the help. if anyone can post a code for a better way or anything i would verymuch apreciate it...thanks
dead__last Sergeant
Joined: Aug 07, 2004
Posts: 88
Posted:
Sat Sep 03, 2005 6:23 am
Don't know what everyone else does, but this is what I do and it seems to work. I do this by using my content module. There are two steps really. First you create whatever content your going to use in the content module in your admin section. After completing your content, you make a block, with the code I posted here on the page. I take this code and turn it into a block. Remember you have an example block in your block folder. Anyway after pasteing the code into notepad or whatever text editor you use, I name the file - in this case "block-xbox.php" (without the quotations) upload it to the website and enable it in admin: blocks. Of course you need to point the files in the block to whereever you imputed your content for the html links to work. You can find out where your content is by just clicking on it and opening the content then copying the url. So remember, make the content first, second make the block - just make sure everything is enabled and pointing where it should.
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Additional security & Abstraction layer conversion */
/* 2003 chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
if (eregi("block-xbox.php", $_SERVER['SCRIPT_NAME'])) {
Header("Location: index.php");
die();
The commented // section is just so I can quickly add a few extra links if I ever need it, but is obviously unnecessary. Hope this helps a little for anyone else who has ever had this problem. I know I did when I went from straight html to a .php format.
_________________ dead__last webmaster @ http://www.doom3.ca doom 3, Quake 4 and Enemy territory news, reviews etc.
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