Author Topic: how to display a link to user own gallery  (Read 8811 times)

0 Members and 1 Guest are viewing this topic.

Offline Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
how to display a link to user own gallery
« on: February 27, 2003, 12:20:13 AM »
i would like to know how can i add a link to users own gallery when they log in. i would like to had this link next to "my lightbox"

thanks

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: how to display a link to user own gallery
« Reply #1 on: February 27, 2003, 01:18:00 AM »
Quote from: Bomba
add a link to users own gallery when they log in.

what do u mean?  :?
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 Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
how to display a link to user own gallery
« Reply #2 on: February 27, 2003, 04:52:35 AM »
i mean when users log in they usually get the links:

my lightbox
log out
and i also added the memberlist link

now i would like to put a link like:
my gallery (the place where it shows all their images)


thanks

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
how to display a link to user own gallery
« Reply #3 on: February 27, 2003, 09:47:33 AM »
3 files to edit:
/includes/page_header.php
/lang/<yourlanguage>/main.php
/templates/<yourtemplate>/user_logininfo.html


1.
in /includes/page_header.php find:
Code: [Select]

  "media_url" => MEDIA_PATH,

Add after:
Code: [Select]
 "url_show_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_info['user_name'])),
  "lang_show_user_images" => $lang['user_images'],


2.
in /lang/<yourlanguage>/main.php add at the end, just before ?>
Code: [Select]
$lang['user_images'] = "My images";

3.
in /templates/<yourtemplate>/user_logininfo.html add this:
Code: [Select]
&raquo; <A href="{url_show_user_images}">{lang_show_user_images}</A><BR>

have fun  :D
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 Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
how to display a link to user own gallery
« Reply #4 on: February 27, 2003, 06:00:51 PM »
AWESOME!
thanks  :D

one more thing,
is it possible to have a link to last commented user own images when they log in

like this:
you have (x) new comments on your images


thanks

Offline Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
how to display a link to user own gallery
« Reply #5 on: February 27, 2003, 06:41:38 PM »
hey just added the code above and it doesn't work well

it links to other user gallery.
i did everything good, im sure of it

here's the code of my includes/page_header.php
Code: [Select]
$site_template->register_vars(array(
  "media_url" => MEDIA_PATH,
  "url_show_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_info['user_name'])),
  "lang_show_user_images" => $lang['user_images'],
  "thumb_url" => THUMB_PATH,
  "icon_url" => ICON_PATH,


and the code from templates/yourtemplate/user_logininfo.html
Code: [Select]
&raquo; <a href="{url_show_user_images}">{lang_show_user_images}</a><br />
      &raquo; <a href="{url_lightbox}">{lang_lightbox}</a><br />


i also added the
Code: [Select]
$lang['user_images'] = "My images"; just before the ?>

what's wrong with it?

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
how to display a link to user own gallery
« Reply #6 on: February 27, 2003, 11:50:12 PM »
strange, working for me just fine....
well, then try change those two words in both files u added them: url_show_user_images and lang_show_user_images to something else, i.e. url_show_images and lang_show_images
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 Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
how to display a link to user own gallery
« Reply #7 on: February 28, 2003, 03:36:26 AM »
thanks v@no, it worked! :)

and what about my other queston above...

is it possible to had a message after logging in saying
"you have (x) new comments"

this would be the comments to the user own images since his last log in. and when they click this link they would see those new comments.


thanks

Offline Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
how to display a link to user own gallery
« Reply #8 on: March 01, 2003, 01:11:20 AM »
should i ask this at the mod request?

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
how to display a link to user own gallery
« Reply #9 on: March 01, 2003, 01:22:01 AM »
yes, it's possible, the question is who could do it  :roll: ;)

here is a logic idea how to do it:

4images logs last date u logged in. so its possible compare date of each comment for your images and show the number of newer then the date of your last login.
but, it probably wont work exactly as u want, because even if u look at those comments they still will be showed as new untill u logoff and login back.
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 Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
how to display a link to user own gallery
« Reply #10 on: March 01, 2003, 01:25:21 AM »
hmmm i see what u mean
but i've seen other sites that i don't need to log off and they show me the new comments everytime i go to their site... it's the well known deviantart.com

thanks

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
how to display a link to user own gallery
« Reply #11 on: March 01, 2003, 01:28:11 AM »
yes, and even this forum could do it.
but 4images doesnt have this feature.
it needs uses sessions or cookies to store your last actions.
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: how to display a link to user own gallery
« Reply #12 on: June 05, 2005, 07:20:07 PM »
Hi there,

i have insert this Mod a long time and now i have a Question.

Is there a way to sort the own Images by Categorie????

Now i see a complete list with all my images but there are not sort.

My idea: The User cklick on there own images Link and see a list. 3 images in Cat1, 4 images in Cat2 etc.
And then they can click the categorie and see his images...

I hope you understand me :)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-