Author Topic: User name by ecard  (Read 6192 times)

0 Members and 1 Guest are viewing this topic.

Offline qpatrick

  • Newbie
  • *
  • Posts: 30
    • View Profile
User name by ecard
« on: April 03, 2003, 12:43:55 PM »
Another question:

At the ecard function, I want to place the user name of the photographer under the photo next to the title. But I used user_name and it didn't work.

Every time there was a different user name with the same photo. Which code I must use to retrieve the photographer's user name ??

Thanks in advance !

Patrick

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
User name by ecard
« Reply #1 on: April 05, 2003, 10:51:19 AM »
open postcards.php
Find:
Code: [Select]
     "postcard_url" => stripslashes($postcard_url),
add right after:
Code: [Select]
     "user_name" => $image_row['user_name'],
then use {user_name} in /lang/<yourlanguage>/email/postcard_message.html
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 qpatrick

  • Newbie
  • *
  • Posts: 30
    • View Profile
Thankx
« Reply #2 on: April 05, 2003, 12:27:02 PM »
Thank you for your solution. The solution worked fine, although I used the {user_name} in my templates. But with a little modification it worked great !!

Thanx V@no

Offline qpatrick

  • Newbie
  • *
  • Posts: 30
    • View Profile
ecard
« Reply #3 on: April 09, 2003, 11:44:57 AM »
A new problem arised.  Everything worked great, but if you retrieve the ecard the user name won't be displayed.

Why isn't it working only at the retrieve side ??

Thanks in advance !!

Patrick

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
User name by ecard
« Reply #4 on: April 09, 2003, 03:22:17 PM »
sorry, what do u mean by "retrieve" ?
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 qpatrick

  • Newbie
  • *
  • Posts: 30
    • View Profile
User name by ecard
« Reply #5 on: April 10, 2003, 12:49:53 AM »
I mean, when the recipient go to the site and see his card.....