Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
chron
New Member
New Member



Joined: Nov 29, 2003
Posts: 9

PostPosted: Mon Apr 11, 2005 9:32 pm Reply with quote

i installed total calendar and am using the rss feed function to feed the upcoming events to a block on my nuke home page. the issue i need to resolve is removing the "read more..." link that appears at the botton of the block for rss feeds.

i know that nuke is stripping out the url to create the link, and i know its's not in a blockfile since it's rss.

which nuke file needs to be edited (mainfile.php?) and any suggestions to easily accomplish that without breaking the rest of the block functions?
 
View user's profile Send private message
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Tue Apr 12, 2005 4:58 pm Reply with quote

mainfile.php

find:
Code:
    if (($cont == 1) OR ($content != "")) {

   $content .= "<br><a href=\"http://$siteurl[0]\" target=\"blank\"><b>"._HREADMORE."</b></a></font>";
    } elseif (($cont == 0) OR ($content == "")) {
   $content = "<font class=\"content\">"._RSSPROBLEM."</font>";

change to:
Code:
    if (($cont == 0) OR ($content == "")) {

   $content = "<font class=\"content\">"._RSSPROBLEM."</font>";
 
View user's profile Send private message Visit poster's website
chron







PostPosted: Tue Apr 12, 2005 6:45 pm Reply with quote

thanks for the help. upon consideration, i did want to break all linking to rss, just the one in particular so here is what i did...

Code:
if (($cont == 1) OR ($content != "")) {

      if (($siteurl[0] == "mydomain.org") OR ($siteurl[0] == "www.mydomain.org")){
      $content .= "<br></font>";
      }else{
   $content .= "<br><a href=\"http://$siteurl[0]\" target=\"blank\"><b>"._HREADMORE."</b></a></font>";
      }
    } elseif (($cont == 0) OR ($content == "")) {
   $content = "<font class=\"content\">"._RSSPROBLEM."</font>";
    }


now it just discards the linking when it feeds itself.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©