Author Topic: Error during adding a function :(  (Read 5279 times)

0 Members and 1 Guest are viewing this topic.

Offline klechoo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Error during adding a function :(
« on: January 20, 2007, 03:59:26 PM »
I want to add a function "print" in to my sytem. I try to add it with these lines in functions.php:

 if (!check_permission("auth_sendpostcard", $image_row['cat_id'])) ......

and:

 if (!check_permission("auth_print", $image_row['cat_id'])) {
    $print_button = "<img src=\"".get_gallery_image("print_off.gif")."\" border=\"0\" alt=\"\" />";
  }
  else {
    $print_button = "<a href=\"".$site_sess->url(ROOT_PATH."print.php?".URL_IMAGE_ID."=".$image_row['image_id'].((!empty($mode)) ? "&amp;mode=".$mode : ""))."\"><img src=\"".get_gallery_image("print.gif")."\" border=\"0\" alt=\"\" /></a>";
  }

In MYSQL I add a line in the table categories "auth_print".
The result wasn't a print button it was "print_off.gif". So please help me to find my mistake in this mess :)
« Last Edit: January 20, 2007, 04:20:38 PM by klechoo »

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Error during adding a function :(
« Reply #1 on: January 20, 2007, 04:40:26 PM »
for what do you need that?

Isn't it possible to use the download or lightbox rights for that?

Offline klechoo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Error during adding a function :(
« Reply #2 on: January 20, 2007, 05:25:44 PM »
I need that because I want to have a coloring pictures for the kida on my site :)

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Error during adding a function :(
« Reply #3 on: January 20, 2007, 05:44:30 PM »
I don't understand what you mean... )o:

Offline klechoo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Error during adding a function :(
« Reply #4 on: January 20, 2007, 05:53:31 PM »
Pictures black and white which can be colored with different colors - for the kids.

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Error during adding a function :(
« Reply #5 on: January 20, 2007, 06:00:54 PM »
And for what do you need the new Function???  :roll:

Offline klechoo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Error during adding a function :(
« Reply #6 on: January 20, 2007, 06:05:41 PM »
I need to make a button "Print" so they can print the picture and color in it after that.