Advanced search  

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

Pages: [1]   Go Down

Author Topic: Individueller Link zur User-Galerie  (Read 4567 times)

0 Members and 1 Guest are viewing this topic.

ronny

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 49
Individueller Link zur User-Galerie
« on: June 03, 2010, 02:56:31 am »

Hallo,

bräuchte bitte mal wieder Eure Hilfe. Seh den Wald vor lauter Bäumen nicht.

Wie baue ich den idividuellen Link zur Galerie des User der jeweils gerade eingeloggt ist?

Code: [Select]
// HTML template for user admin menu
$template_user_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="2" cellspacing="2">
                      <tr>
                    <td class="admin_menu" width="14%"><a href="http://www.vwteam.com/galerie/index.php?cat=', $message['member']['id']+10000, '">Meine Galerie</a></td>
                      <td class="admin_menu" width="14%"><a href="albmgr.php" title="{ALBMGR_TITLE}">{ALBMGR_LNK}</a></td>
                    <td class="admin_menu" width="14%"><a href="upload.php" title="Bilder und Videos hochladen">Bilder und Videos hochladen</a></td>
                                <td class="admin_menu" width="14%"><a href="modifyalb.php" title="{MODIFYALB_TITLE}">{MODIFYALB_LNK}</a></td>
                                <td class="admin_menu" width="14%"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu" width="14%"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
                        <td class="admin_menu" width="14%"><a href="http://www.vwteam.com/forum/index.php?board=27.0" target="_blank" title="Benötigst Du Hilfe?">Galerie Hilfe-Forum</a></td>
                        </tr>                       
                </table><br>
                </div>

EOT;

Es dreht sich um den Link: http://www.vwteam.com/galerie/index.php?cat=', $message['member']['id']+10000, '">Meine Galerie</a>
der natürlich so nicht funktioniert.

Zu sehen oben links in der Galerie - Testaccount: test - test
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Individueller Link zur User-Galerie
« Reply #1 on: June 03, 2010, 08:13:04 am »

Was ist an dem originalen Platzhalter {MY_GAL_TGT} auszusetzen?
Logged

ronny

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 49
Re: Individueller Link zur User-Galerie
« Reply #2 on: June 03, 2010, 08:10:09 pm »

Der funktioniert leider nicht. Mein Link sieht dann so aus...

http://www.vwteam.com/galerie/index.php?cat={MY_GAL_TGT}

Code: [Select]
// HTML template for user admin menu
$template_user_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="2" cellspacing="2">
                      <tr>
                    <td class="admin_menu" width="14%"><a href="http://www.vwteam.com/galerie/index.php?cat={MY_GAL_TGT}">Meine Galerie</a></td>
                      <td class="admin_menu" width="14%"><a href="albmgr.php" title="{ALBMGR_TITLE}">{ALBMGR_LNK}</a></td>
                    <td class="admin_menu" width="14%"><a href="upload.php" title="Bilder und Videos hochladen">Bilder und Videos hochladen</a></td>
                                <td class="admin_menu" width="14%"><a href="modifyalb.php" title="{MODIFYALB_TITLE}">{MODIFYALB_LNK}</a></td>
                                <td class="admin_menu" width="14%"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu" width="14%"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
                        <td class="admin_menu" width="14%"><a href="http://www.vwteam.com/forum/index.php?board=27.0" target="_blank" title="Benötigst Du Hilfe?">Galerie Hilfe-Forum</a></td>
                        </tr>                       
                </table><br>
                </div>

EOT;
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Individueller Link zur User-Galerie
« Reply #3 on: June 03, 2010, 08:48:37 pm »

Ersetze deinen Code durch:
Code: [Select]
$uid = FIRST_USER_CAT + USER_ID;
$template_user_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="2" cellspacing="2">
                      <tr>
                    <td class="admin_menu" width="14%"><a href="http://www.vwteam.com/galerie/index.php?cat=$uid">Meine Galerie</a></td>
                      <td class="admin_menu" width="14%"><a href="albmgr.php" title="{ALBMGR_TITLE}">{ALBMGR_LNK}</a></td>
                    <td class="admin_menu" width="14%"><a href="upload.php" title="Bilder und Videos hochladen">Bilder und Videos hochladen</a></td>
                                <td class="admin_menu" width="14%"><a href="modifyalb.php" title="{MODIFYALB_TITLE}">{MODIFYALB_LNK}</a></td>
                                <td class="admin_menu" width="14%"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu" width="14%"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
                        <td class="admin_menu" width="14%"><a href="http://www.vwteam.com/forum/index.php?board=27.0" target="_blank" title="Benötigst Du Hilfe?">Galerie Hilfe-Forum</a></td>
                        </tr>                       
                </table><br>
                </div>
Logged

ronny

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 49
Re: Individueller Link zur User-Galerie
« Reply #4 on: June 03, 2010, 09:07:02 pm »

Saustark. Funktioniert. Vielen Dank André!

Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.