1
straylight3
Taking off the print graphic

If you go to this page on my website http://www.dd-o.com/modules/sections/index.php?op=listarticles&secid=2 you will notice the read: # times and print icon. Is there a way to take how many times it was read and the print icon off?

2
ladon
Re: Taking off the print graphic
  • 2005/5/1 21:09

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Look in the templates for the section module, there you can add of remove any info you want.

3
straylight3
Re: Taking off the print graphic

Sorry but I'm new with this, where exaclty can I find that?

4
straylight3
Re: Taking off the print graphic

Bump

5
ladon
Re: Taking off the print graphic
  • 2005/5/20 9:18

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


I don't have the module running but I took a look at the code of the standard sections module and it seems it doesn't have templates, so my apologies for the incorrect reply

here's what you do, the quick & dirty way:

Open index.php (http://www.yoursite/modules/sections/) in your favorite editor and find the following code:

line 79 t/m 81:
echo "<tr><td align='left'>&nbsp;&nbsp;<strong><big>&middot;</big></strong>&nbsp;<a href='index.php?op=viewarticle&artid=$artid'>$title</a>";
printf(" (read: %s times)",$counter);
echo 
"<a href='index.php?op=printpage&artid=$artid'>&nbsp;&nbsp;<img src='".XOOPS_URL."/modules/sections/images/print.gif' border='0' alt='' . _MD_PRINTERPAGE.' /></a></td></tr>";


and replace with:
echo "<tr><td align='left'>&nbsp;&nbsp;<strong><big>&middot;</big></strong>&nbsp;<a href='index.php?op=viewarticle&artid=$artid'>$title</a></td></tr>";


Didn't test as I don't have the module running, but it should work.

Now there is some redundant code in the php-file, but we'll leave it there, it does no harm and as you said, you are new to this.

Login

Who's Online

257 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 257


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits