forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: MorganEllis on February 10, 2005, 06:39:01 pm

Title: "Turning Off" Certain Features - file info, random image, etc
Post by: MorganEllis on February 10, 2005, 06:39:01 pm
I'm attempting to create a really 'clean' looking gallery, and to that end I'd like to limit the number of features which show up on the page.

Basically, I'd like to either turn off, disallow, or simply make invisible:

- the 'show file' info feature. Visitors shouldn't be able to choose this as an option

- remove/hide the random image and recently uploaded image galleries. A few people have complained they make the layout appear 'cluttered', so I'd prefer if they weren't visible

I'm using a (heavily) modified version of the water_drop theme, and I've checked config, the css file, and have even tentatively peeked in at the php template file, but can't find a way to do this. Does anyone have any ideas?

If you need to see the gallery as it looks now, let me know. I'd post it, but it's not really pg13 rated ;)

Morgan
Title: Re: "Turning Off" Certain Features - file info, random image, etc
Post by: Nibbler on February 10, 2005, 06:42:02 pm
Try adjusting the config setting for 'content of the main page'. The (i) button can be commented out in your theme.php.
Title: Re: "Turning Off" Certain Features - file info, random image, etc
Post by: MorganEllis on February 10, 2005, 06:55:27 pm
Cool - I removed random and recently uploaded via config.

What's the protocol for quoting out info in the php file? Sorry, I'm php clueless, and I'm afraid I'm going to utterly screw something up in there if I'm not careful ;)

Here's the tag I found in theme.php which, I assume, refers to the 'show info' option:

<td align="center" valign="middle" class="navmenu" width="48">
<a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a>

Any ideas what I need to change this to?

Morgan
Title: Re: "Turning Off" Certain Features - file info, random image, etc
Post by: Nibbler on February 10, 2005, 07:00:44 pm
You can put html comments around the linked pic like this:

Code: [Select]
                <td align="center" valign="middle" class="navmenu" width="48">
                        <!-- <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a> -->
                </td>

or around the table cell, like this:

Code: [Select]
             <!--      <td align="center" valign="middle" class="navmenu" width="48">
                      <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" width="16"  height="16" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a>
                </td> -->

depending what you want it to look like.
Title: Re: "Turning Off" Certain Features - file info, random image, etc
Post by: MorganEllis on February 10, 2005, 07:07:47 pm
That did the trick! You guys rock :)

Title: Re: "Turning Off" Certain Features - file info, random image, etc
Post by: hkboi on March 15, 2005, 11:40:00 pm
hey i don't quite understand this
so you go to config in gallery then what?
i want to turn off random and last added pic
Title: Re: "Turning Off" Certain Features - file info, random image, etc
Post by: Joachim Müller on March 15, 2005, 11:41:43 pm
RTFM: http://coppermine.sourceforge.net/manual.php#changing

Joachim