Author Topic: Link to my pictures  (Read 6425 times)

0 Members and 1 Guest are viewing this topic.

Offline maineyak

  • Newbie
  • *
  • Posts: 30
    • View Profile
Link to my pictures
« on: February 21, 2008, 03:46:59 PM »
How can I add a link to my pictures next to the Top images and new images links? I want it so a user can access their images from any page. I tried adding <a href="search.htm?search_user={user_name}">My Images</a> to the click_incl file, but the username doesn't show.

I've tried searching, but can't find an answer.
Thanks

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Link to my pictures
« Reply #1 on: February 21, 2008, 04:11:48 PM »
... menu link to my own images ...


1. in /includes/page_header.php find ...
Code: [Select]
"url_new_images" => $site_sess->url(ROOT_PATH."search.php?search_new_images=1"),

and add after ...
Code: [Select]
"url_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".$user_info['user_name'].""),

2. in /templates/<your_template>/user_logininfo.html add ...
Code: [Select]
&nbsp;&raquo; <a href="{url_user_images}">My Images</a>

3. thats all ... ;)
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline maineyak

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Link to my pictures
« Reply #2 on: February 21, 2008, 08:33:58 PM »
Thanks!