| Author |
Message |
Guest

|
Posted:
Sun Jun 08, 2003 9:19 am |
  |
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 |
|
|
 |
 |
oaklid
Corporal


Joined: May 30, 2003
Posts: 56
|
Posted:
Sun Jun 08, 2003 5:00 pm |
  |
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/ |
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Jun 08, 2003 5:09 pm |
  |
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 |
|
    |
 |
Kermet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 5
|
Posted:
Sun Jun 08, 2003 5:25 pm |
  |
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. |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Jun 08, 2003 5:26 pm |
  |
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 |
|
    |
 |
oaklid
Corporal


Joined: May 30, 2003
Posts: 56
|
Posted:
Sun Jun 08, 2003 5:42 pm |
  |
| 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.  |
_________________ Kristen
http://www.mediatinker.com/ |
|
   |
 |
Kermet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 5
|
Posted:
Sun Jun 08, 2003 5:43 pm |
  |
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 |
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Jun 08, 2003 5:44 pm |
  |
I just sent a note to one of the admins and told them to watch out for you (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 |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Jun 08, 2003 5:46 pm |
  |
| 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 |
|
    |
 |
Kermet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 5
|
Posted:
Sun Jun 08, 2003 5:53 pm |
  |
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Jun 08, 2003 5:56 pm |
  |
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 |
|
    |
 |
Kermet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 5
|
Posted:
Sun Jun 08, 2003 6:08 pm |
  |
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Jun 08, 2003 6:38 pm |
  |
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 |
|
    |
 |
Kermet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 5
|
Posted:
Sun Jun 08, 2003 6:46 pm |
  |
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 |
|
|
   |
 |
oaklid
Corporal


Joined: May 30, 2003
Posts: 56
|
Posted:
Mon Jun 09, 2003 2:13 am |
  |
| Raven wrote: |
I just sent a note to one of the admins and told them to watch out for you (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."
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.  |
_________________ Kristen
http://www.mediatinker.com/ |
|
   |
 |
|
|