[Solved]: How Do I Disable Link To User Profile In User Galleries [Solved]: How Do I Disable Link To User Profile In User Galleries
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: How Do I Disable Link To User Profile In User Galleries

Started by doogiekd, April 02, 2009, 07:38:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

doogiekd

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

Nibbler

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


// 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


// 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;

doogiekd

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?

Nibbler

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.

doogiekd

#4
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):

<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]

Nibbler

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.

doogiekd

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

doogiekd