Results 1 to 9 of 9

Thread: Splitting page with GD Image

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    83

    Splitting page with GD Image

    I want to create a GD Image in PHP that I can use in my signature in vb forums like this. I want to split it and get the persons Username and output it. But I don't know how.
    Last edited by SlicedCheese; Aug 2nd, 2006 at 03:08 PM.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Splitting page with GD Image

    Split what?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    83

    Re: Splitting page with GD Image

    The current page the GD Image is on.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Splitting page with GD Image

    I don't understand, can you elaborate?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    83

    Re: Splitting page with GD Image

    Ok, I want to create a GD Image, that when I use it on a vBulletin forum as my signature, splits the page that the GD Image is on and finds out their username.

    Like splitting the

    "Welcome, SlicedCheese." bit. It's hard for me to explain.

    I've tried splitting the forum homepage but the

    "Welcome, <USERNAME>." bit doesn't exists becuase you have to be logged in to see that.

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Splitting page with GD Image

    Why can't you just pass the username as a GET parameter?

    [img]http://myserver.com/gdimage.php?user=SlicedCheese[/img]

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    83

    Re: Splitting page with GD Image

    Because i want it to fetch the Username by splitting the page. Im going to be using this as a signature and I want the username of the person viewing the page with the GD image on displayed.

  8. #8
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Splitting page with GD Image

    But wouldn't it be easy enough for each user to have their own link that they can just copy and paste in to their signature? Basically what you are asking is impossible. If you are having problems with .php files in image links you can use URL rewriting to fake a .jpg link or something.

    and BTW your use of the word "splitting" is what confused me before, I think you mean "parsing" or something.

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Splitting page with GD Image

    Basically you want to receive the source code that the user has in viewing the forum so that you can look up his username and embed that into the image, similar to the images that embed the IP and OS, right?

    Impossible, sorry. IP and OS are things that the browser sends automatically. You have no way of getting the source code of the referrer. Of course, you can make a request to the referrer page, but since you're not in the same session, you won't get the same page, especially not the same source.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width