Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Removing Blocks?

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic
Author Message
nick020

Beginner
Beginner


Joined: May 30, 2005
Posts: 10

PostPosted: Mon May 30, 2005 1:04 pm    Post subject: Removing Blocks? Reply with quote

How can I turn off or remove the Related Links block, Article Rating and options block in the news pages? I can't find it in the admin block section.
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Removing Blocks?  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Tue May 31, 2005 9:49 am    Post subject: Re: Removing Blocks? Reply with quote

you have to delete those portions of the code from the News module php files.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
nick020

Beginner
Beginner


Joined: May 30, 2005
Posts: 10

PostPosted: Tue May 31, 2005 2:55 pm    Post subject: Re: Removing Blocks? Reply with quote

Can you show me what text I need to remove?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Tue May 31, 2005 3:04 pm    Post subject: Re: Removing Blocks? Reply with quote

in articles.php:

PHP: › <?php $boxtitle ""._RELATED."";
$boxstuff "<font class=\"content\">";
$result8 $db->sql_query("select name, url from ".$prefix."_related where tid='$topic'");
while (
$row8 $db->sql_fetchrow($result8)) {
    
$name stripslashes($row8['name']);
    
$url stripslashes($row8['url']);
    
$boxstuff .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"$url\" target=\"new\">$name</a><br>\n";
}

$boxstuff .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=Search&amp;topic=$topic\">"._MOREABOUT." $topictext</a><br>\n";
$boxstuff .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=Search&amp;author=$aid\">"._NEWSBY." $aid</a>\n";

$boxstuff .= "</font><br><hr noshade width=\"95%\" size=\"1\"><center><font class=\"content\"><b>"._MOSTREAD." $topictext:</b><br>\n";

global 
$multilingual$currentlang;
    if (
$multilingual == 1) {
    
$querylang "AND (alanguage='$currentlang' OR alanguage='')"/* the OR is needed to display stories who are posted to ALL languages */
    
} else {
    
$querylang "";
    }
$row9 $db->sql_fetchrow($db->sql_query("select sid, title from ".$prefix."_stories where topic='$topic' $querylang order by counter desc limit 0,1"));
$topstory intval($row9['sid']);
$ttitle stripslashes(check_html($row9['title'], "nohtml"));

$boxstuff .= "<a href=\"modules.php?name=$module_name&file=article&sid=$topstory\">$ttitle</a></font></center><br>\n";
themesidebox($boxtitle$boxstuff);

if (
$ratings != 0) {
    
$rate substr($score $ratings04);
    
$r_image round($rate);
    if (
$r_image == 1) {
            
$the_image "<br><br><img src=\"images/articles/stars-1.gif\" border=\"1\"></center><br>";
    } elseif (
$r_image == 2) {
            
$the_image "<br><br><img src=\"images/articles/stars-2.gif\" border=\"1\"></center><br>";
    } elseif (
$r_image == 3) {
            
$the_image "<br><br><img src=\"images/articles/stars-3.gif\" border=\"1\"></center><br>";
    } elseif (
$r_image == 4) {
            
$the_image "<br><br><img src=\"images/articles/stars-4.gif\" border=\"1\"></center><br>";
    } elseif (
$r_image == 5) {
            
$the_image "<br><br><img src=\"images/articles/stars-5.gif\" border=\"1\"></center><br>";
    }
} else {
    
$rate 0;
    
$the_image "</center><br>";
}

$ratetitle ""._RATEARTICLE."";
$ratecontent "<center>"._AVERAGESCORE.": <b>$rate</b><br>"._VOTES.": <b>$ratings</b>$the_image";
$ratecontent .= "<form action=\"modules.php?name=$module_name\" method=\"post\"><center>"._RATETHISARTICLE."</center><br>";
$ratecontent .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\">";
$ratecontent .= "<input type=\"hidden\" name=\"op\" value=\"rate_article\">";
$ratecontent .= "<input type=\"radio\" name=\"score\" value=\"5\"> <img src=\"images/articles/stars-5.gif\" border=\"0\" alt=\""._EXCELLENT."\" title=\""._EXCELLENT."\"><br>";
$ratecontent .= "<input type=\"radio\" name=\"score\" value=\"4\"> <img src=\"images/articles/stars-4.gif\" border=\"0\" alt=\""._VERYGOOD."\" title=\""._VERYGOOD."\"><br>";
$ratecontent .= "<input type=\"radio\" name=\"score\" value=\"3\"> <img src=\"images/articles/stars-3.gif\" border=\"0\" alt=\""._GOOD."\" title=\""._GOOD."\"><br>";
$ratecontent .= "<input type=\"radio\" name=\"score\" value=\"2\"> <img src=\"images/articles/stars-2.gif\" border=\"0\" alt=\""._REGULAR."\" title=\""._REGULAR."\"><br>";
$ratecontent .= "<input type=\"radio\" name=\"score\" value=\"1\"> <img src=\"images/articles/stars-1.gif\" border=\"0\" alt=\""._BAD."\" title=\""._BAD."\"><br><br>";
$ratecontent .= "<center><input type=\"submit\" value=\""._CASTMYVOTE."\"></center></form>";
themesidebox($ratetitle$ratecontent);
$optiontitle ""._OPTIONS."";
$optionbox "<br>";
$optionbox .= "&nbsp;<img src='images/print.gif' border='0' alt='"._PRINTER."' title='"._PRINTER."'> <a href=\"modules.php?name=$module_name&amp;file=print&amp;sid=$sid\">"._PRINTER."</a><br><br>";
$optionbox .= "&nbsp;<img src='images/friend.gif' border='0' alt='"._FRIEND."' title='"._FRIEND."'> <a href=\"modules.php?name=$module_name&amp;file=friend&amp;op=FriendSend&amp;sid=$sid\">"._FRIEND."</a><br><br></center>\n";
if (
is_admin($admin)) {
    
$optionbox .= "<center><b>"._ADMIN."</b><br>[ <a href=\"".$admin_file.".php?op=adminStory\">"._ADD."</a> | <a href=\"".$admin_file.".php?op=EditStory&sid=$sid\">"._EDIT."</a> | <a href=\"".$admin_file.".php?op=RemoveStory&sid=$sid\">"._DELETE."</a> ]<br><br></center>";
}
themesidebox($optiontitle$optionbox); ?>

_________________
Back to top
Offline View user's profile Send private message Visit poster's website
nick020

Beginner
Beginner


Joined: May 30, 2005
Posts: 10

PostPosted: Tue May 31, 2005 5:47 pm    Post subject: Re: Removing Blocks? Reply with quote

Thanks.
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic

 
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia