Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Removing the username from the Lastcomment block  (Read 2863 times)

0 Members and 1 Guest are viewing this topic.

Necko

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[Solved]: Removing the username from the Lastcomment block
« on: March 27, 2004, 04:04:37 pm »

Hey,im cureently using coppermine 1.2.1 i think ,its really great.
i wanted to make an anonymous posting for registerd user,since i dont know alot of php i decided to go on the hide username way.
i've started deleting the entries of msg_author and user_name from the air head template and replacing it by Anonymous,well it worked great!
i also removed the last comment fro, the user profile!
the only thing that left is the username at the lastcomment block which i couldnt seems to find a vriable that stores it.
notice,i dont want to remove those entries fromd database,i mean i want to be able to see who post this comment on what mage on what date only from the database( or only for administrtor access) but i dont want to delete this information from the data base,just from the templates and from the "EYE".
so someone can tell me which part of the code is conected to the block?so i can remove the variable and finish with this?
thanks in advance.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Solved]: Removing the username from the Lastcomment block
« Reply #1 on: March 28, 2004, 09:12:24 am »

if you want anonymity, why don't you remove the lastcomments block alltogether?
In themes/yourtheme/theme.php, look for
Code: [Select]
<a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a>and comment it out like this
Code: [Select]
<!--<a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a>-->

GauGau
Logged

Necko

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[Solved]: Removing the username from the Lastcomment block
« Reply #2 on: March 28, 2004, 02:26:17 pm »

Because i still want it to be shown, its a great part of the system and make it look better.
Logged

Necko

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[Solved]: Removing the username from the Lastcomment block
« Reply #3 on: March 31, 2004, 08:02:40 pm »

Someone?plz...
Logged

Nibbler

  • Guest
[Solved]: Removing the username from the Lastcomment block
« Reply #4 on: March 31, 2004, 08:28:55 pm »

functions.inc.php

find:

Code: [Select]

$caption = '<span class="thumb_title">'.$user_link.'</span>'.'<span class="thumb_caption">'.localised_date($row['msg_date'], $lastcom_date_fmt).'</span>'.'<span class="thumb_caption">'.$msg_body.'</span>';


change it to:

Code: [Select]

$caption = '<span class="thumb_caption">'.localised_date($row['msg_date'], $lastcom_date_fmt).'</span>'.'<span class="thumb_caption">'.$msg_body.'</span>';
Logged

Necko

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Thanks!!
« Reply #5 on: April 01, 2004, 01:13:46 pm »

Thank you very very very much,it worked...
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 14 queries.