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, 59 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 - Removing extra blocks in news (simplifying news) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Guest







PostPosted: Sun Jun 08, 2003 9:19 am Reply with quoteBack to top

I've searched around this forum and numerous others but havn't found an answer to the problem I am having.

I want to remove the extra blocks that appear when viewing 'Read more' of news articles (i.e. Related links, Article Rating and Options).

Also, related to the above, I want to remove the 'print friendly', 'send to a friend' and 'score' text and graphics below news posts (before you click on 'Read more').

Any suggestions?
Cheers
Find all posts by Anonymous
oaklid
Corporal
Corporal


Joined: May 30, 2003
Posts: 56


PostPosted: Sun Jun 08, 2003 5:00 pm Reply with quoteBack to top

You need to go in and edit the PHP code in two files in the News module: index.php, article.php

It's a good idea just to comment out the parts you don't want, as you might change your mind later!

For example, if you want to get rid of the "X bytes more" bit next to "Read more", go into index.php and comment it out like this:

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


To get rid of the right-side blocks on the main article, go to article.php and comment out everything from

Code:
$boxstuff .= "<strong><big>&</big></strong>&<a href=\"modules.ph
p?name=Search&topic=$topic\">"._MOREABOUT." $topictext</a><br>\n";


to (and including)

Code:
themesidebox($ratetitle, $ratecontent);


If you're new to commenting out in PHP, note that you can't comment out a comment that's already there, so you'll have to muck about a bit with the start and end points of your comments for the above section. In other words, stop your comment before the extant comment and start a new one right after it.

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


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sun Jun 08, 2003 5:09 pm Reply with quoteBack to top

Or, just change
$index = 1;
to
$index = 0;
in index.php to get rid of the blocks on the right. That should save you having to comment out that stuff.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Kermet
Nuke Cadet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 5


PostPosted: Sun Jun 08, 2003 5:25 pm Reply with quoteBack to top

Oaklid - will use that first bit and the second if I can't get Raven's idea to work.

Raven - found that and tried it before I posted, but wouldn't work, you do mean index.php in "/modules/News" don't you? or am I editing the wrong index.php???

Thanks to both of you.
Find all posts by KermetView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sun Jun 08, 2003 5:26 pm Reply with quoteBack to top

That's it. I tested it here and that's a nuke feature. Make sure that you don't have more than one.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
oaklid
Corporal
Corporal


Joined: May 30, 2003
Posts: 56


PostPosted: Sun Jun 08, 2003 5:42 pm Reply with quoteBack to top

Raven wrote:
Or, just change
$index = 1;
to
$index = 0;


Well, that would have saved me a lot of time! Ah, well, I guess I understand the code to make the blocks now, at least. Maybe someday I'll get proficient at all this. Or I'll get back to doing what I do better--writing and making films. Smile

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


Joined: Jun 08, 2003
Posts: 5


PostPosted: Sun Jun 08, 2003 5:43 pm Reply with quoteBack to top

It doesn't make any difference what "$index = x;" is set to or even if I comment out the line, the blocks are still down the right hand side.

Could there be some other conflicting setting or something?


Last edited by Kermet on Sun Jun 08, 2003 5:45 pm; edited 1 time in total
Find all posts by KermetView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sun Jun 08, 2003 5:44 pm Reply with quoteBack to top

I just sent a note to one of the admins and told them to watch out for you Laughing (seriously). You've made great progress since we first 'met'. Keep it up. And we definitely can use the help here.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sun Jun 08, 2003 5:46 pm Reply with quoteBack to top

Kermet wrote:
It doesn't make any difference what "$index = x;" is set to or even if I comment out the line, the blocks are still down the right hand side.

Could there be some other conflicting setting or something?

Hmmm. We're talking the News now, correct? It's set on a module-by-module basis.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Kermet
Nuke Cadet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 5


PostPosted: Sun Jun 08, 2003 5:53 pm Reply with quoteBack to top

Yes, news...
Find all posts by KermetView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sun Jun 08, 2003 5:56 pm Reply with quoteBack to top

Zip your entire News folder and send it to me so I can check it out.

raven at gaylenandmargie dot com

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Kermet
Nuke Cadet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 5


PostPosted: Sun Jun 08, 2003 6:08 pm Reply with quoteBack to top

YGM

Cheers
Find all posts by KermetView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sun Jun 08, 2003 6:38 pm Reply with quoteBack to top

Got it and it works perfectly here, so something else is overriding it.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Kermet
Nuke Cadet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 5


PostPosted: Sun Jun 08, 2003 6:46 pm Reply with quoteBack to top

Yeah, seems like it, had a quick look around but can't find anything. Will have to use Oaklid's method for the time being.

Cheers
Find all posts by KermetView user's profileSend private message
oaklid
Corporal
Corporal


Joined: May 30, 2003
Posts: 56


PostPosted: Mon Jun 09, 2003 2:13 am Reply with quoteBack to top

Raven wrote:
I just sent a note to one of the admins and told them to watch out for you Laughing (seriously). You've made great progress since we first 'met'. Keep it up. And we definitely can use the help here.


Maybe someday I can qualify as "Nuke School Crossing Guard." Laughing

I am happy to help where I can. I was so impressed with the quick and useful advice you gave me a few days ago. Just keep correcting me when I give out stupid suggestions, please. It's a good way to learn, as long as I don't confuse anyone in the process.

Kermet, I hope you got your article side bocks to vanish. "My way" definitely does work. I did it myself with great satisfaction. Embarassed

_________________
Kristen
http://www.mediatinker.com/
Find all posts by oaklidView user's profileSend private message
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can 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.215 Seconds - 172 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::