- Moderated by:
- Support Team
-
- rank:
-
Freshman
- registered:
- November 2005
- Status:
- offline
- last visit:
- 13.01.06
- Posts:
- 9
Hi all, I have decided that phpnuke although OK doesnt really do what I want. however PostNuke seems more to what I want to do. it seems strange that phpnuke has dropped the sections module which is one of the reasons for moving to PostNuke.
anyway onto my query I have a block that I used in phpnuke (yes it worked on the sections area when they still existed) and I have tried to get it working in PN but it does not appeared in the new blocks list. The code I used to create this is as follows:
Code
<?php
if (eregi("block-Sections.php",$PHP_SELF)) {
header("Location: index.php");
die();
}
$content .= "<b></b>
<a href=\"modules.php?name=Sections&op=listarticles&secid=4\"><img src=images/sections/frontpage/image1.jpg>Subject 1</a><BR><BR>";
$content .= "<b></b>
<a href=\"modules.php?name=Sections&op=listarticles&secid=1\"><img src=images/sections/frontpage/image2.jpg>Subject 2</a><BR><BR>";
$content .= "<b></b>
<a href=\"modules.php?name=Sections&op=listarticles&secid=3\"><img src=images/sections/frontpage/image3.jpg>Subject 3</a><BR><BR>";
$content .= "<b></b>
<a href=\"modules.php?name=Sections&op=listarticles&secid=2\"><img src=images/sections/frontpage/image4.jpg>Subject 4</a><BR><BR>";
$content .= "<b></b>
<a href=\"modules.php?name=Sections&op=listarticles&secid=5\"><img src=images/sections/frontpage/image5.jpg>Subject 5</a><BR><BR>";
?>
I have searched the threads here but I cannot see an answer for this so I hope I am not duplicating anything
Any help would be appreciated.
Regards
CasioPN -
- rank:
-
Professional
- registered:
- November 2003
- Status:
- offline
- last visit:
- 23.11.08
- Posts:
- 1677
I don't believe anything from phpnuke is compatable with PostNuke at this point... have a look at the Example module for current standards (including blocks), or even in the includes/blocks directory for what PostNuke now calls "oldstyle" blocks for a reference on how to approach this now. You'll see that nothing there resembles your example.
That being said, your example appears to be a simple menu for the sections, PostNuke has a sections block allready available with the core that lists topics dynamicaly... give it a try.
--
Under Construction! -
- rank:
-
Freshman
- registered:
- November 2005
- Status:
- offline
- last visit:
- 13.01.06
- Posts:
- 9
Topiatic
I don't believe anything from phpnuke is compatable with PostNuke at this point... have a look at the Example module for current standards (including blocks), or even in the includes/blocks directory for what PostNuke now calls "oldstyle" blocks for a reference on how to approach this now. You'll see that nothing there resembles your example.
That being said, your example appears to be a simple menu for the sections, PostNuke has a sections block allready available with the core that lists topics dynamicaly... give it a try.
I will have a look, my head hurts at the moment as I have been studying too many different languages.
In blocks when I create a new one, There is no sections listed there. My version of PostNuke is 0.7.6.0 . I know its not the latest by my webspace provider has this pre-installed so apart from asking if they can upgrade I'll have to put up with this for now.
I had a brief look at the blocks and there seems to be a lot more involved. I will look at the example you mentioned to see if I can figure it out.
Cheers
CasioPN -
- rank:
-
Professional
- registered:
- November 2003
- Status:
- offline
- last visit:
- 23.11.08
- Posts:
- 1677
I am very sorry, my bad... it was the Topics block I was seeing . Please accept my appolagies.
But since it's just HTML that your inserting the HTML block might do it for you.
Hope your head feels better soon... I hate headaches.
--
Under Construction!
