Author Topic: User Button to Profile in Details  (Read 6400 times)

0 Members and 1 Guest are viewing this topic.

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
User Button to Profile in Details
« on: May 26, 2010, 10:20:43 PM »
Hoi,

Ich such schon das ganze Forum ab und probiere alles mögliche,komm aber nicht drauf.
Kann mir wer freundlicherweise bei dem Problem weiter helfen?

Und zwar in der Deatils.html möchte ich gerne das "uploadet by XXX_User" anstatt des Link zum Userprofil mit einen eigenen Button austauschen.

Noch besser wäre wenn der Link zum Uploader erhalten bleibt und ZUSÄTZLICH ein zweiter Button zum Profil eingebaut werden kann.

Steh da echt an,sry...
 :|


Try to explain in english:
Is it possible to get a second Profil link looks a Button in the details.html?
It means, first the Profil link "..upload by User Xyz" and set a second Button to the Memberprofile.

« Last Edit: May 26, 2010, 11:17:10 PM by Fragezeichen »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: User Button to Profile in Details
« Reply #1 on: May 27, 2010, 02:45:23 AM »
In includes/functions.php find:
    "user_name_link" => $user_name_link,

Insert below:
    "user_profile_link" => isset($user_profile_link) ? $site_sess->url($user_profile_link) : "",



In details.html template use something like this:

Code: (HTML template) [Select]
{if user_profile_link}<a href="{user_profile_link}"><img src="{template_image_url}/profile.gif"></a>{endif user_profile_link}
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: User Button to Profile in Details
« Reply #2 on: May 27, 2010, 11:30:57 AM »
Many thanks V@no, it works perfect!
 ...you made my day
 :D