Individueller Link zur User-Galerie Individueller Link zur User-Galerie
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Individueller Link zur User-Galerie

Started by ronny, June 03, 2010, 02:56:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ronny

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?

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

Αndré

Was ist an dem originalen Platzhalter {MY_GAL_TGT} auszusetzen?

ronny

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

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

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

Αndré

Ersetze deinen Code durch:
$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>

ronny

Saustark. Funktioniert. Vielen Dank André!