Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Custom block not showing results from articles



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Chris Karakas Online Forum Index -> PHP-Nuke Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
jretsios
Private
Private


Joined: 25 Apr 2012
Posts: 2

PostPosted: Wed Apr 25, 2012 8:14 am    Post subject: Custom block not showing results from articles
Reply with quote

Hello all, and thank you for your time to read this message regarding my problem! I have a web portal in Greece http://www.fire.gr which i want to show to my visitors the articles of my partners in a single page.

Normally i converted a php nuke block to a module so I can redirect my readers to this link: http://www.fire.gr/portal/modules.php?name=Server_Info

But as you can see I can read how many articles submitted but I cannot read or see the titles? If i publish it as a block in my main page (news module is default) everything is worked fine but when I try to load it through the new module it is not possible to read the articles... Sad Any help?
The code of the php nuke block is:


Code:
<?php
/*************************************************************************/
/* block-Clock                                                           */
/* for PhpNuke 6.x, 7.x                                                  */
/* This block is by Akshat <akshat@scikids.com> (http://www.sci-kids.com)*/
/* Released: 08-06-2006                                                  */
/*************************************************************************/



if (eregi("block-Select_Stories_Yiannakos.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

global $prefix, $db, $user, $cookie;
$mytopic = "26";   
$a = 1;
$row = $db->sql_fetchrow($db->sql_query("SELECT sid, title, time FROM ".$prefix."_stories WHERE topic='$mytopic' ORDER BY time DESC LIMIT 0,30"));
while ($row = $db->sql_fetchrow($result)) {
    $r_options = "";
    if (isset($cookie[4])) { $r_options .= "&mode=$cookie[4]"; }
    if (isset($cookie[5])) { $r_options .= "&order=$cookie[5]"; }
    if (isset($cookie[6])) { $r_options .= "&thold=$cookie[6]"; }
    $content .= "$a: <a href=\"modules.php?name=News&file=article&sid=$row[sid]$r_options\" style=\"color:#000000\">$row[title]</a><br>";
    $a++;
}
$content .= "<br><center><a href=\"modules.php?name=Content&pa=showpage&pid=11\">Προφίλ Γιαννάκος Βασίλης</a></center>";

?>
Back to top
View user's profile Send private message
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Chris Karakas Online Forum Index -> PHP-Nuke Forum
Page 1 of 1
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

Jump to:  
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