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, 89 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 - Editing News Footer [ ]
 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
Javed
Nuke Soldier
Nuke Soldier


Joined: Jun 06, 2003
Posts: 19


PostPosted: Mon Jun 09, 2003 6:12 pm Reply with quoteBack to top

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.
Find all posts by JavedView user's profileSend private message
oaklid
Corporal
Corporal


Joined: May 30, 2003
Posts: 56


PostPosted: Mon Jun 09, 2003 8:30 pm Reply with quoteBack to top

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.

Hope this gets you headed in the right direction.

_________________
Kristen
http://www.mediatinker.com/
Find all posts by oaklidView user's profileSend private message
Javed
Nuke Soldier
Nuke Soldier


Joined: Jun 06, 2003
Posts: 19


PostPosted: Mon Jun 09, 2003 11:55 pm Reply with quoteBack to top

Thank you Oaklid,

for the help. I will check and see, as soon as I get to my home pc.
Find all posts by JavedView user's profileSend private message
Javed
Nuke Soldier
Nuke Soldier


Joined: Jun 06, 2003
Posts: 19


PostPosted: Tue Jun 10, 2003 4:52 am Reply with quoteBack to top

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
Find all posts by JavedView user's profileSend private message
oaklid
Corporal
Corporal


Joined: May 30, 2003
Posts: 56


PostPosted: Tue Jun 10, 2003 2:51 pm Reply with quoteBack to top

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.

For example:

Code:

/*      if ($fullount > 0) { $morelink .="$totalcount" ._BYTESMORE." | "; }*/


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! Confused

_________________
Kristen
http://www.mediatinker.com/
Find all posts by oaklidView user's profileSend private message
Javed
Nuke Soldier
Nuke Soldier


Joined: Jun 06, 2003
Posts: 19


PostPosted: Wed Jun 11, 2003 6:03 am Reply with quoteBack to top

Thank you Oaklid,

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?
Find all posts by JavedView user's profileSend private message
oaklid
Corporal
Corporal


Joined: May 30, 2003
Posts: 56


PostPosted: Wed Jun 11, 2003 1:06 pm Reply with quoteBack to top

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...

_________________
Kristen
http://www.mediatinker.com/
Find all posts by oaklidView user's profileSend private message
Javed
Nuke Soldier
Nuke Soldier


Joined: Jun 06, 2003
Posts: 19


PostPosted: Wed Jun 11, 2003 4:15 pm Reply with quoteBack to top

I don't know either that its the time or what. I can't even pronounce it. It must be some other language.

Thanks for your help.
Find all posts by JavedView 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.210 Seconds - 290 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::