You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 46 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - linking a html page to a block. .....help [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
bluerobe
Nuke Cadet
Nuke Cadet


Joined: May 12, 2005
Posts: 3


PostPosted: Thu Sep 01, 2005 11:22 am Reply with quoteBack to top

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
Find all posts by bluerobeView user's profileSend private message
dead__last
Sergeant
Sergeant


Joined: Aug 07, 2004
Posts: 88


PostPosted: Sat Sep 03, 2005 6:23 am Reply with quoteBack to top

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();

}

$content = "<b><big>&middot;</big></b>
<a href=\"contentid-18.html\">X-Box Doom 3 Cheats</a><BR>";
$content .= "<b><big>&middot;</big></b>
<a href=\"contentid-19.html\">X-Box Doom 3 Reviews</a><BR>";
$content .= "<b><big>&middot;</big></b>
<a href=\"contentid-20.html\">X-Box Doom 3 Walkthrough</a><BR>";
//$content .= "nbsp;&nbsp;<b><big>&middot;</big></b>
//&nbsp;<a href=\"modules.php?name=Content...etc...4\">Page Title 4</a><BR>";
//$content .= "nbsp;&nbsp;<b><big>&middot;</big></b> <img src=modules/PHP-Nuke_HOWTO/images/blocks/icon_dot.gif>
//&nbsp;<a href=\"modules.php?name=Content...etc...5\">Page Title 5</a><BR>";

?>

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.
Find all posts by dead__lastView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.276 Seconds - 355 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::