4images Forum & Community

4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: Fragezeichen on May 26, 2010, 10:20:43 PM

Title: User Button to Profile in Details
Post by: Fragezeichen 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.

Title: Re: User Button to Profile in Details
Post by: V@no 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}
Title: Re: User Button to Profile in Details
Post by: Fragezeichen on May 27, 2010, 11:30:57 AM
Many thanks V@no, it works perfect!
 ...you made my day
 :D