Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Sun Jan 22, 2006 8:18 am Reply with quote

how can I change the news home article title so it will link to the main article?

I would prefer this to the (Read More...)
 
View user's profile Send private message Visit poster's website
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Jan 22, 2006 3:21 pm Reply with quote

Looks like the theme controls where the $morelink is displayed (the template story_home.html usually). But that will also add the text for it too.

We'll need to change the modules/News/index.php file to stop the text from being displayed

Code:


      $morelink = "(";
      if ($fullcount > 0 OR $c_count > 0 OR $articlecomm == 0 OR $acomm == 1) {
         $morelink .= "$story_link<b>"._READMORE."</b></a> | ";
      } else {
         $morelink .= "";
      }


TO

Code:


$morelink = $story_link;



Then our story_home.html can do something like

Code:


$morelink $title</a>

The ending A tag is needed to close the one generated by $story_link

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
hinksta
PostPosted: Sun Jan 22, 2006 4:14 pm Reply with quote

The problem with that code is it's mixed up with the comments and score

I think it needs the same code as (Read More...) but without the comments and score, with a new name, maybe $titlemore.

This is so far, beyond my brain.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

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 ©