4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Sunny C. on August 22, 2008, 12:48:00 PM

Title: [HACK] My Profile - Mein Profil
Post by: Sunny C. on August 22, 2008, 12:48:00 PM
:flag-de:

Dieser Hack erweitert die Userbox um einen weiteren Link. Dieser Link führt direkt zum eigenen Profil.



:flag-en:
   
This hack Userbox extends for a further link. This link takes you directly to your own profile.


Step 1

Open / Öffne: includes/page_header.php
Search / Suche:
"url_new_images" => $site_sess->url(ROOT_PATH."search.php?search_new_images=1"),
Add after / Füge drunter:
"my_profile" => $site_sess->url(ROOT_PATH."member.php?action=showprofile&".URL_USER_ID."=".$user_info['user_id']),

Step 2

Open / Öffne: templates/YOUR-TEMPLATE/user_logininfo.html
Search / Suche:
Code: [Select]
» <a href="{url_control_panel}">{lang_control_panel}</a><br />Add after / Füge darunter ein:
Code: [Select]
<a href="{my_profile}">My Profile</a>
Title: Re: Mein Profil / My Profile- Link (page_header.php and user_logininfo.htm)
Post by: Lucifix on August 22, 2008, 12:58:40 PM
Try to put:
Code: [Select]
"my_profile" =>$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$user_id : "")),
in file page_header.php after:

Code: [Select]
// Replace Globals in $lang
$lang = $site_template->parse_array($lang);

$site_template->register_vars(array(
  "lang_site_stats" => $lang['site_stats'],

Title: Re: Mein Profil / My Profile- Link (page_header.php and user_logininfo.htm)
Post by: Lucifix on August 22, 2008, 01:04:15 PM
I think you've got error in your code:
Code: [Select]
"my_profile" =>$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$user_id : "")),
Title: Re: Mein Profil / My Profile- Link (page_header.php and user_logininfo.htm)
Post by: V@no on August 22, 2008, 01:49:49 PM
"my_profile" => $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$user_id),
Title: Re: Mein Profil / My Profile- Link (page_header.php and user_logininfo.htm)
Post by: Sunny C. on August 22, 2008, 03:01:02 PM
Hello,

i have the line by Vano

Code: [Select]
"my_profile" => $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$user_id),
in page_header.php add after

Code: [Select]
  "lang_site_stats" => $lang['site_stats'],
So...

I have put
Code: [Select]
{my_profile}in user_logininfo.html

Hat jemand eine Idee?

Look here:
Title: Re: Mein Profil / My Profile- Link (page_header.php and user_logininfo.htm)
Post by: V@no on August 23, 2008, 12:46:53 AM
Code: [Select]
"my_profile" => $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$user_info['user_id']),
Code: [Select]
<a href="{my_profile}">My profile</a>
Title: [HACK] My Profile - Mein Profil
Post by: Sunny C. on August 23, 2008, 02:22:59 PM
:flag-de:

Dieser Hack erweitert die Userbox um einen weiteren Link. Dieser Link führt direkt zum eigenen Profil.



:flag-en:
   
This hack Userbox extends for a further link. This link takes you directly to your own profile.


Step 1

Open / Öffne: includes/page_header.php
Search / Suche:
"url_new_images" => $site_sess->url(ROOT_PATH."search.php?search_new_images=1"),
Add after / Füge drunter:
"my_profile" => $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$user_info['user_id']),

Step 2

Open / Öffne: templates/YOUR-TEMPLATE/user_logininfo.html
Search / Suche:
Code: [Select]
» <a href="{url_control_panel}">{lang_control_panel}</a><br />Add after / Füge darunter ein:
Code: [Select]
<a href="{my_profile}">My Profile</a>