You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 58 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Bodytext ONLY on the story page? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
saleem
Nuke Cadet
Nuke Cadet


Joined: Jul 25, 2003
Posts: 2


PostPosted: Fri Jul 25, 2003 3:30 pm Reply with quoteBack to top

Hello all!

What do I need to change in the code (and in which file), if I want only the bodytext to be displayed (and not the hometext) on the story page, when a user clicks on "Read more..." on the Home Page?

Thanks in advance!
Find all posts by saleemView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Fri Jul 25, 2003 5:01 pm Reply with quoteBack to top

Question, what happens when the news article on the front page is no longer on the front page? Where is the home text then? Only via Topic or Category Search. You're then limiting it at Google too.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
saleem
Nuke Cadet
Nuke Cadet


Joined: Jul 25, 2003
Posts: 2


PostPosted: Sat Jul 26, 2003 2:49 am Reply with quoteBack to top

Ok... I found the answer to my problem...

In the modules/News/article.php, look for the following:

if($bodytext == "") {
$bodytext = "$hometext$notes";
} else {
$bodytext = "$hometext<br><br>$bodytext$notes";
}

In order to display just the $bodytext on the stories page, and NOT the hometext, simply delete "$hometext<br>" , so the code now should like following:

if($bodytext == "") {
$bodytext = "$hometext$notes";
} else {
$bodytext = "<br>$bodytext$notes";
}
Find all posts by saleemView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.302 Seconds - 212 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::