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]: How Do I Disable Link To User Profile In User Galleries  (Read 4849 times)

0 Members and 1 Guest are viewing this topic.

doogiekd

  • Coppermine newbie
  • Offline Offline
  • Posts: 4

Please see the link to my CPG at: http://www.sfbcommunity.org/gallery/index.php?cat=1

My guests and users are inexperienced with computers (most +65 yo)  and when selecting an album they choose the user profile link below the album thumbnail. This confuses them as they are taken to the user profile (with way too many choices) instead of just the album.

I want to disable the link to the registered user below the album thumbnail. Is this possible?

Thanks,

doogiekd
« Last Edit: April 03, 2009, 07:31:24 am by Joachim Müller »
Logged

Nibbler

  • Guest
Re: How Do I Disable Link To User Profile In User Galleries
« Reply #1 on: April 02, 2009, 07:41:46 pm »

Simply copy the relevant template from the sample theme's theme.php to your custom theme's theme.php and modify it. So you copy over this

Code: [Select]
// HTML template for the USER info box in the user list view
$template_user_list_info_box = <<<EOT

        <table cellspacing="1" cellpadding="0" border="0" width="100%" class="user_thumb_infobox">
                <tr>
                        <th><a href="profile.php?uid={USER_ID}">{USER_NAME}</a></th>
                </tr>
                <tr>
                        <td>{ALBUMS}</td>
                </tr>
                <tr>
                        <td>{PICTURES}</td>
                </tr>
        </table>

EOT;

Then de-linkify the name like this

Code: [Select]
// HTML template for the USER info box in the user list view
$template_user_list_info_box = <<<EOT

        <table cellspacing="1" cellpadding="0" border="0" width="100%" class="user_thumb_infobox">
                <tr>
                        <th>{USER_NAME}</th>
                </tr>
                <tr>
                        <td>{ALBUMS}</td>
                </tr>
                <tr>
                        <td>{PICTURES}</td>
                </tr>
        </table>

EOT;
Logged

doogiekd

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: How Do I Disable Link To User Profile In User Galleries
« Reply #2 on: April 02, 2009, 08:19:45 pm »

Currently I am using the "Water Drop" default theme, which is working very well and I do not have a custom theme (nothing to copy over?). Is it possible to modify the water drop theme instead of creating a custom theme?
Logged

Nibbler

  • Guest
Re: How Do I Disable Link To User Profile In User Galleries
« Reply #3 on: April 02, 2009, 08:22:07 pm »

See http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create

If you modify a built-in theme you are likely to accidentally overwrite it later during an update and lose your changes.
Logged

doogiekd

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: How Do I Disable Link To User Profile In User Galleries
« Reply #4 on: April 02, 2009, 08:35:05 pm »

Can I create a custom theme, copy all from the Water Drop Theme into the custom theme and add the final de-linked code you suggested - and if so where do I add this in the (customized) Water Drop Theme (See Below):

Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/water_drop/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!--
  SVN version info:
  Coppermine version: 1.4.19
  $Revision: 4392 $
  $LastChangedBy: gaugau $
  $Date: 2008-04-16 09:25:35 +0200 (Mi, 16 Apr 2008) $
-->
</head>
<body>
  {CUSTOM_HEADER}
  <table width="100%" border="0" cellpadding="20" cellspacing="20">
    <tr>
      <td valign="top" style="border: 1px solid #CCD7E0; background-color: #FFFFFF;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center">
              <h1>{GAL_NAME}</h1>
              <h3>{GAL_DESCRIPTION}</h3><br />
              {SYS_MENU}<br />{SUB_MENU}
            </td>
          </tr>
        </table>
        <img src="images/spacer.gif" width="1" height="15" alt="" />
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top">
              {ADMIN_MENU}
              {GALLERY}
              <div style="text-align:center;">
              <div>
  {LANGUAGE_SELECT_FLAGS}<br />
  {THEME_SELECT_LIST}{LANGUAGE_SELECT_LIST}
  </div>
  </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  {CUSTOM_FOOTER}{VANITY}
</body>
</html>

[Edit GauGau] Instead of using the bbcode button [ s i z e ] you should have used [ c o d e ]. I edited your posting accordingly to make it more readable. [/Edit]
« Last Edit: April 03, 2009, 07:31:10 am by Joachim Müller »
Logged

Nibbler

  • Guest
Re: How Do I Disable Link To User Profile In User Galleries
« Reply #5 on: April 02, 2009, 08:49:40 pm »

Read the information I gave you more carefully. The link explains how to make a custom theme based on a built-in theme and nowhere did I say to modify template.html.
Logged

doogiekd

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: How Do I Disable Link To User Profile In User Galleries
« Reply #6 on: April 02, 2009, 09:01:36 pm »

Sorry, I missed that link... I'll try this. Thank you very much for your time.

doogiekd
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.