Hello,
I am not sure the subject "Editing News Footer" is correct or not. But I get this message below the News(story text):
Posted by Tariq on Friday, June 06 @ Västeuropa, sommartid (1 reads)
(Read More... | 1362 bytes more | comments? | Score: 0)
I want to change this only to, such as below:
Posted 06 June 2003, ---- hrs - Read More
Please tell me, what file should I edit, and what codes are required for it.
oaklid Corporal
Joined: May 30, 2003
Posts: 56
Posted:
Mon Jun 09, 2003 8:30 pm
You will need to edit modules/News/index.php and probably modules/News/article.php as well.
Look for the section that create the $posted and $morelink lines.
You can comment out the parts you don't want by enclosing them in /* comment symbols */ That way if you want to restore something, you can just uncomment it.
for the help. I will check and see, as soon as I get to my home pc.
Javed Nuke Soldier
Joined: Jun 06, 2003
Posts: 19
Posted:
Tue Jun 10, 2003 4:52 am
Hello again,
Sorry I couldn't solve the problem. Can you please be a bit more specific? I mean what part (code) of it should I cut?
I just want to cut everything from there except "Posted Date(dd mm yy) Read More". If possible the addition of Time, after Date, would be great too. Like this:
Posted 06 June 2003, ---- hrs - Read More
I am using v6.5
oaklid Corporal
Joined: May 30, 2003
Posts: 56
Posted:
Tue Jun 10, 2003 2:51 pm
There's quite a bit that you'll need to look at carefully and understand to do this. It's not impossible or really difficult, but it's not as simple as throwing a switch, either.
A very good place to begin is reading through the lang-english.php file for the News module. Then you can look for places in the code where _BYTESMORE appears, for example, and comment those out.
This is what creates the "bytes more" part. I've commented it out on my site.
The next section is what puts the link to comments in. As you can see, it's a bit more complex:
Code:
if ($articlecomm == 1 AND $acomm == 0) {
if ($c_count == 0 AND is_user($user)) { $morelink .= "$story_link".
_COMMENTSQ."</a>"; } elseif ($c_count == 1 AND is_user($user)) { $morelink .= "
$story_link$c_count "._COMMENT."</a>"; } elseif ($c_count > 1 AND is_user($user
)) { $morelink .= "$story_link$c_count "._COMMENTS."</a>"; }
}
Just work slowly and carefully and test after each comment so you can see if it did what you wanted it to. Unfortunately for us beginners, editing PHP-Nuke code isn't as easy or as fast as coming up with the ideas on how we'd like to revise it!
I could remove the "Bytes" and "Score" from there, but unfortunately I couldn't find:
@ Västeuropa, sommartid
in there. (and (read) as well).
Will " @ Västeuropa, sommartid " be in any other file?
oaklid Corporal
Joined: May 30, 2003
Posts: 56
Posted:
Wed Jun 11, 2003 1:06 pm
Sorry, but is it the time? The date and time are handled together as one piece, so if you want to change the way the date and time are displayed, that's a different project entirely.
And one I haven't delved into yet. But maybe you can search the forums to find a solution...
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