Author Topic: [HACK] My Profile - Mein Profil  (Read 9801 times)

0 Members and 1 Guest are viewing this topic.

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
[HACK] My Profile - Mein Profil
« 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>
« Last Edit: June 05, 2009, 03:29:51 PM by Benny »

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Mein Profil / My Profile- Link (page_header.php and user_logininfo.htm)
« Reply #1 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'],


Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Mein Profil / My Profile- Link (page_header.php and user_logininfo.htm)
« Reply #2 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 : "")),

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: Mein Profil / My Profile- Link (page_header.php and user_logininfo.htm)
« Reply #3 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),
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 Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: Mein Profil / My Profile- Link (page_header.php and user_logininfo.htm)
« Reply #4 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:
« Last Edit: August 22, 2008, 11:33:13 PM by Phisker B »

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: Mein Profil / My Profile- Link (page_header.php and user_logininfo.htm)
« Reply #5 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>
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 Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
[HACK] My Profile - Mein Profil
« Reply #6 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>
« Last Edit: June 05, 2009, 03:23:55 PM by Benny »