coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: sizlintune on February 13, 2006, 03:43:15 PM

Title: Last comments Question *Solved*
Post by: sizlintune on February 13, 2006, 03:43:15 PM
I just upgraded to the newest version of coppermine and there is something I can't quite figure out. On my last comments page

http://www.slimtainment.com/coppermine/thumbnails.php?album=lastcom&cat=0

how do I just have the date and comment appear? I can't find where to modify this anywhere
Title: Re: Last comments Question
Post by: Joachim Müller on February 13, 2006, 05:43:08 PM
http://www.slimtainment.com/ is down for me.
Title: Re: Last comments Question
Post by: sizlintune on February 13, 2006, 05:50:35 PM
strange. its working for me.
Title: Re: Last comments Question
Post by: Joachim Müller on February 13, 2006, 06:02:08 PM
DNS lookup for the domain fails for me, could you post an IP address instead?
Title: Re: Last comments Question
Post by: Tranz on February 13, 2006, 06:05:47 PM
I was able to access the site. I found the IP address in whois but the site is on a shared server.
Title: Re: Last comments Question
Post by: Joachim Müller on February 13, 2006, 06:08:32 PM
k, might be a DNS replication issue for me then - sorry, I'm out of this thread obviously :-\.
Title: Re: Last comments Question
Post by: Nibbler on February 13, 2006, 06:10:33 PM
(IP: 72.29.78.93 - you can stick it in your hosts file)

You can disable

Display number of views below the thumbnail
Display number of comments below the thumbnail

globally in config, if you need specific settings for specific albums you'll need code changes.
Title: Re: Last comments Question
Post by: sizlintune on February 13, 2006, 06:16:31 PM
I dont mind the view and comment. I want to remove the name of the comment poster and be able to format the way it looks a little different. I  managed to do this in 1.3.2 but dont remember how
Title: Re: Last comments Question
Post by: Nibbler on February 13, 2006, 06:20:23 PM
Ah, then open your include/functions.inc.php, look for


            if ($row['author_id']) {
                $caption .= '<span class="thumb_caption"><a href ="profile.php?uid='.$row['author_id'].'">'.$row['msg_author'].'</a>: '.$msg_body.'</span>';
            } else {
                    $caption .= '<span class="thumb_caption">'.$row['msg_author'].': '.$msg_body.'</span>';
            }


and kill it


/*
            if ($row['author_id']) {
                $caption .= '<span class="thumb_caption"><a href ="profile.php?uid='.$row['author_id'].'">'.$row['msg_author'].'</a>: '.$msg_body.'</span>';
            } else {
                    $caption .= '<span class="thumb_caption">'.$row['msg_author'].': '.$msg_body.'</span>';
            }
*/

Title: Re: Last comments Question
Post by: sizlintune on February 13, 2006, 06:24:03 PM
awesome checking it out now. this is exactly what I was looking for, I just couldn't find the code. I think in the old version I used it was in the language file, but I could be wrong. I will update this to solved if it works