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, 331 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Simple Content block

20.3. Simple Content block

Figure 20-3. Administration panel: Content.

Administration panel: Content.



PHP-Nuke comes with a Content module (Figure 20-3). But how about a Content block? How to display links to Content pages in a PHP-Nuke block? A block may be desirable in case you wish to place a link summary of the Content module's er...content, somewhere in the left, central or right columns.

After you have created the desired categories for the Content module, you can then go to http://yoursite.com/admin.php?op=content and start adding pages to the categories. To find out the link to these pages, you will have to click on the Content link in the modules block, view each page and copy its url from the browser's address window, then just add these urls to a html block with maybe the following HTML code:

&nbsp;&nbsp;<b><big>&middot;</big></b> <img src=images/blocks/icon_dot.gif>
&nbsp;<a href="modules.php?name=Content...etc...1">Page Title 1</a><BR>
&nbsp;&nbsp;<b><big>&middot;</big></b> <img src=images/blocks/icon_dot.gif>
&nbsp;<a href="modules.php?name=Content...etc...2">Page Title 2</a><BR>
&nbsp;&nbsp;<b><big>&middot;</big></b> <img src=images/blocks/icon_dot.gif>
&nbsp;<a href="modules.php?name=Content...etc...3">Page Title 3</a><BR>
&nbsp;&nbsp;<b><big>&middot;</big></b> <img src=images/blocks/icon_dot.gif>
&nbsp;<a href="modules.php?name=Content...etc...4">Page Title 4</a><BR>
&nbsp;&nbsp;<b><big>&middot;</big></b> <img src=images/blocks/icon_dot.gif>
&nbsp;<a href="modules.php?name=Content...etc...5">Page Title 5</a><BR>

A block that does the job is the following:

<?php
if (eregi("block-Content.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "&nbsp;&nbsp;<b><big>&middot;</big></b> <img src=images/blocks/icon_dot.gif>
&nbsp;<a href=\"modules.php?name=Content...etc...1\">Page Title 1</a><BR>";
$content  .= "nbsp;&nbsp;<b><big>&middot;</big></b> <img src=images/blocks/icon_dot.gif>
&nbsp;<a href=\"modules.php?name=Content...etc...2\">Page Title 2</a><BR>";
$content  .= "nbsp;&nbsp;<b><big>&middot;</big></b> <img src=images/blocks/icon_dot.gif>
&nbsp;<a href=\"modules.php?name=Content...etc...3\">Page Title 3</a><BR>";
$content  .= "nbsp;&nbsp;<b><big>&middot;</big></b> <img src=images/blocks/icon_dot.gif>
&nbsp;<a href=\"modules.php?name=Content...etc...4\">Page Title 4</a><BR>";
$content  .= "nbsp;&nbsp;<b><big>&middot;</big></b> <img src=images/blocks/icon_dot.gif>
&nbsp;<a href=\"modules.php?name=Content...etc...5\">Page Title 5</a><BR>";
?>

Name it block-Content, put it in the blocks folder, then "create" it in the blocks administration (see Section 7.1).


Help us make a better PHP-Nuke HOWTO!

Want to contribute to this HOWTO? Have a suggestion or a solution to a problem that was not treated here? Post your comments on my PHP-Nuke Forum!

Chris Karakas, Maintainer PHP-Nuke HOWTO

Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
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.026 Seconds - 231 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::