Author Topic: "see all images of 'user_name' click here'in details page  (Read 23559 times)

0 Members and 1 Guest are viewing this topic.

Offline CanSuperMuay

  • Newbie
  • *
  • Posts: 15
    • View Profile
"see all images of 'user_name' click here'in details page
« on: September 26, 2002, 08:17:33 PM »
I want to put a link "see all images of 'user_name' click here' in details page. How to ?
Thank in advance for any help.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
"see all images of 'user_name' click here'in details pa
« Reply #1 on: September 27, 2002, 08:04:24 AM »
Search in "includes/functions.php" for
Code: [Select]
"user_name_link" => $user_name_link,
and after this line
Code: [Select]
"url_show_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_name)),
Then use {url_show_user_images} in details.html

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline CanSuperMuay

  • Newbie
  • *
  • Posts: 15
    • View Profile
"see all images of 'user_name' click here'in details pa
« Reply #2 on: September 28, 2002, 04:47:55 PM »
I followed you code but in image_id view I found uncompleted link url lke this"
./search.php?search_user=GaMeAw ".
Indeed it was not a hyperlink to user's all images page.
Could you please fix this, Thank you

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
"see all images of 'user_name' click here'in details pa
« Reply #3 on: September 28, 2002, 06:16:51 PM »
Jus add
Code: [Select]
<a href="user_name_link">User images</a>to your templates.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline CanSuperMuay

  • Newbie
  • *
  • Posts: 15
    • View Profile
"see all images of 'user_name' click here'in details pa
« Reply #4 on: September 30, 2002, 06:13:19 AM »
work great!thank you.
I wonder how to inculde the number of pics posted by this user after the word
"Show all images of username" (25 pics)
 :wink: Thank you.

Offline Vraxor

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • http://tc-revolution.net
"see all images of 'user_name' click here'in details pa
« Reply #5 on: November 17, 2002, 09:27:32 AM »
ok, it works great, but I had to add the following in functions.php too.

After you add:
Code: [Select]
"url_show_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_name)),

I added this:
Code: [Select]
"owner_name" => $image_row['user_name'],

Now you can call in your template:
Code: [Select]
<a href="{url_show_user_images}">Display all images by {owner_name}</a>

This was just a small addition.

Cheers,
Vraxor

Offline matthew

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://www.seclusion.org
"see all images of 'user_name' click here'in details pa
« Reply #6 on: March 22, 2003, 12:17:40 AM »
Edit: For some reason its working now. It wasn't 2 minutes ago though. Go figure. Great contributions though!

Offline IngoT

  • Newbie
  • *
  • Posts: 49
    • View Profile
"see all images of 'user_name' click here'in details pa
« Reply #7 on: March 24, 2003, 09:28:35 AM »
How can I realize for the comments?

Greeting Ingo.

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
"see all images of 'user_name' click here'in details pa
« Reply #8 on: March 24, 2003, 09:39:06 AM »
Quote from: IngoT
How can I realize for the comments?

this?
http://4homepages.de/forum/viewtopic.php?t=4131
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 steveeyes

  • Full Member
  • ***
  • Posts: 177
    • View Profile
Re: "see all images of 'user_name' click here'in details page
« Reply #9 on: December 30, 2005, 02:02:20 AM »
I think this mod is what I want, but it went right over my head. Cant seem to understand what to do.

Here is what I did

First part I understood about going into includes/functions.php and adding the code. No problem.

Next I went into my templates details.htm and added {url_show_user_images} I added in the table under {lang_description}. I put it in the left column -- the right column is blank (should I put anything in the right column?).

After doing that I got the same error or problem that CanSuperMuay got ./search.htm?search_user=Nonah-1353  but I didn't understand Jan's solution.

Jan said to Just add
Code:
<a href="user_name_link">User images</a>to your templates.

Ok, wasn't sure where to add Jan's code, so I went back into  the details.htm and put Jan's code in the right column beside the {url_show_user_images} and now I got:

./search.htm?search_user=Nonah-1353 <a href="user_name_link">User images</a> in the details page.

Can someone please explain what I'm missing. I guess the terminology is going over my head and the fact I don't understand what goes where.

Would appreciate any clarification of what I'm doing wrong.

thanks
steve

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: "see all images of 'user_name' click here'in details page
« Reply #10 on: December 30, 2005, 02:16:49 AM »
Quote

<a href="user_name_link">User images</a>to your templates.


perhaps - this is what you're looking for to do :

Code: [Select]

<a href="{user_name_link}">User images</a>to your templates.


? ;)

In the mean time, you could follow this tutorial on how to proceed in details :

http://www.4homepages.de/forum/index.php?topic=10897.0

Offline steveeyes

  • Full Member
  • ***
  • Posts: 177
    • View Profile
Re: "see all images of 'user_name' click here'in details page
« Reply #11 on: December 30, 2005, 02:54:33 AM »
Sorry, read it but still don't get it....if anything it confused me more.

please dont' be offended, I know that you are the author of the page you want me to read, but it doesn't help.


Sorry, for my ignorance  Maybe I didn't explain my problem. Let me try again.

Step 1. Jan said:

Search in "includes/functions.php" for

Code:
"user_name_link" => $user_name_link,
and after this line

Code:
"url_show_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_name)),

oK, understood step 1....got it.


Step 2, Jan said:

Then use {url_show_user_images} in details.html


Ok, as I explained I put the above in my template's details.html. Since Jan didn't say where, I told you I put it in under the {lang_description} in the left table colum.  The right column, across from it, I put nothing.



So far, I think I did the first two steps right...but please tell me if I did it wrong.


Step 3 Jan said:

Jus add

Code:

Code: [Select]
<a href="user_name_link">User images</a>
to your templates.

This is where I think I'm lost...I have no idea what template I should be sticking the above code in. However, I may not have the first two steps correct, so I wanted to give you all the steps I did.

Hopefully someone can clarify and put in simple words what I'm not understanding
.

Thanks

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: "see all images of 'user_name' click here'in details page
« Reply #12 on: December 30, 2005, 12:44:03 PM »
Quote

<a href="user_name_link">User images</a>


As said above, the link shoud be added like this :

Code: [Select]

<a href="{user_name_link}">User images</a>


 :?

Offline steveeyes

  • Full Member
  • ***
  • Posts: 177
    • View Profile
Re: "see all images of 'user_name' click here'in details page
« Reply #13 on: December 31, 2005, 02:43:42 AM »

sir, you are not getting me or I'm not writing it well.......... I"m not asking HOW, but WHERE do you add the link....not HOW......BUT WHERE IS WHAT I DON'T UDNERSTAND....

Sorry, but I know I said this above, but I'm sure with all the words it was lost in the thought....so I thought I would be sure that it stood out this time. Not HOW, but WHERE is what I don't understand......when they say templates, what template are they talking about and WHERE in that template do I put the link.

Any Help Please



thank you.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: "see all images of 'user_name' click here'in details page
« Reply #14 on: December 31, 2005, 03:50:41 AM »
Correct. I thought I did specified the place but it would seems I forgot. The location is in your templates/<your_template>/details.html file.