Author Topic: include search.php?search_user=a-username in detail page  (Read 7821 times)

0 Members and 1 Guest are viewing this topic.

Offline CanSuperMuay

  • Newbie
  • *
  • Posts: 15
    • View Profile
include search.php?search_user=a-username in detail page
« on: November 13, 2002, 05:46:11 AM »
Not only a image on detail page,I also want to include "/search.php?search_user=a-username" in detail page ,to allow visitors can previews all image of that user. :wink:
But I am not a program literated so, any help please. :lol:

Love you all.

Offline CanSuperMuay

  • Newbie
  • *
  • Posts: 15
    • View Profile
include search.php?search_user=a-username in detail page
« Reply #1 on: November 14, 2002, 12:43:33 PM »
I really need this modify :cry:  Please ~

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
include search.php?search_user=a-username in detail page
« Reply #2 on: November 14, 2002, 03:26:38 PM »
You are on the right way. Just use this in details.html:

"/search.php?search_user={user_name}

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
include search.php?search_user=a-username in detail page
« Reply #3 on: November 14, 2002, 05:50:52 PM »
Hi, Jan ,thank you for your reply , but as I told I am not a php literated  :(
I did not get what you guided me.
If possible ,could you please make coding for me?
I will told you what exactly what I want,
In the details page of a image id,I want to show all uploaded-images of that user in. Just like putting this search result in;
< ?php include("search.php?search_user={user_name}"); ? >
but I have test what you guided,but failed.I browse web and see error message instead of images like this;
Warning: Failed opening 'search.php?search_user=' for inclusion (include_path='.') in /var/www/i/includes/template.php(133) : eval()'d code on line 568

Keep up the good work!  :lol:

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
include search.php?search_user=a-username in detail page
« Reply #4 on: November 14, 2002, 07:30:45 PM »
Ok, i didn't understand you correctly. I thought that you only want to show a link where the users can click on to go to the search page.
It's not possible to show the images on the detail page like you want, sorry.

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
include search.php?search_user=a-username in detail page
« Reply #5 on: November 15, 2002, 04:52:01 AM »
:idea: I think it would possible , I try to modify the search.php to only has one vialable,the user_name ,then include it in details page  but I can not make it success. :cry:  :cry:

Offline Vraxor

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • http://tc-revolution.net
include search.php?search_user=a-username in detail page
« Reply #6 on: November 16, 2002, 07:30:17 PM »
HI Jan,

It might not be possible to post the images on the details page, but thats ok, I don't need that.

However I would like to post a link called "Display all image by {user_name}"

This link should do go to the search.php and search for all works by the owner of the image I was looking at.

If I say
Code: [Select]
<a href="search.php?search_user={user_name}">Display all images by {user_name}</a>

I get a nice link but I always get a link to my own images instead of to the owner of the image I was looking at. So I need another user, not me.

I hope you what else I can use instead of {user_name} or maybe I should add something to the detail.php file?

Cheers,
Vraxor

Offline Vraxor

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • http://tc-revolution.net
include search.php?search_user=a-username in detail page
« Reply #7 on: November 16, 2002, 07:32:57 PM »
hmm.. ok, it becomes more clear to me now.
I noticed that it works perfectly, only when I'm not logged in.

So whenever I log-in the {user_name) tag point at my name, but when I'm not logged-in it points to the owner of the image name.

I hope this is helpful,
Vraxor

Offline CanSuperMuay

  • Newbie
  • *
  • Posts: 15
    • View Profile
include search.php?search_user=a-username in detail page
« Reply #8 on: November 16, 2002, 08:33:36 PM »
Hi Vraxor,See this  :D http://4homepages.de/forum/viewtopic.php?p=8759&highlight=#8759
it is already work for me with text link.