Author Topic: Haw to make this usergrups ?  (Read 4830 times)

0 Members and 1 Guest are viewing this topic.

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Haw to make this usergrups ?
« on: March 30, 2007, 09:20:08 PM »
Hy guys.

Iwould like to make my category VIDEOS comericial so that the user must pay something to see the videos but the category should be seen forom all users and when somebody cliks to see a video that he gets the paysite,and whe the user pays so then i would like to ad the user in the admin panel to see the videos.Haw can i make this?

Sorry for my english and thanks very much!

HOHO
« Last Edit: March 30, 2007, 09:30:19 PM by hoho »

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Haw to make this usergrups ?
« Reply #1 on: March 31, 2007, 06:14:08 PM »
Hi,

in Admin Control Panel:

1. Generate and edit category => video_cat => select private for View Category and View Images
2. Generate a new user_group like "video"
3. Set in usergroup "video" the [Permissions] for View Category and View Images : yes

Now you can move user into the payed video-group...

Finish  :wink:


cu
Kurt

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Haw to make this usergrups ?
« Reply #2 on: April 01, 2007, 08:31:55 PM »
Supeerrrr...

Thannksss !

But In my 4images i have make when somebodey unregistered user like to see the details of a image he gets the massage
"alert(''MEMBERS ONLY CAN VIEW FULL PICTURES '); .



And now with this usergroups when a registerd user click on a video he gets the same massage  !

Haw can i get another massage for this usergroups ???

HOHO

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Haw to make this usergrups ?
« Reply #3 on: April 01, 2007, 09:06:53 PM »
Hi,

can't understund your request:
Quote
select private for View Category and View Images

only members in this group can see the category and the images  :wink:


cu
Kurt

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Haw to make this usergrups ?
« Reply #4 on: April 01, 2007, 09:09:01 PM »
Hy ..

My code is 


function get_thumbnail_code($media_file_name, $thumb_file_name = "", $image_id, $cat_id, $image_name = "", $mode = "", $show_link = 1, $open_window = 0) {
  global $site_sess, $config, $lang;;

  if (!check_media_type($media_file_name)) {
    $thumb = "<img ".(($show_link) ? "" : "onClick=\"alert('MEMBERS ONLY CAN VIEW FULL PICTURES ');\"")."src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" />";
  }
  else {
    if (!get_file_path($thumb_file_name, "thumb", $cat_id, 0, 0)) {
      $file_src = ICON_PATH."/".get_file_extension($media_file_name).".gif";
      $image_info = @getimagesize($dummy);
      $width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
      $thumb = "<img src=\"".$file_src."\" ".(($show_link) ? "" : "onClick=\"alert(''MEMBERS ONLY CAN VIEW FULL PICTURES '); \"")."border=\"0\"".$width_height." alt=\"".$image_name."\" />";
    }
    else {
      $file_src = get_file_path($thumb_file_name, "thumb", $cat_id, 0, 1);
      $image_info = @getimagesize($file_src);
      $width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
      $thumb = "<a href=\"".$file_src."\" ".(($show_link) ? "" : "onClick=\"alert('MEMBERS ONLY CAN VIEW FULL PICTURES '); \"")."border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" />";
    }
  }


and i would like to go to a site and not alleret .

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Haw to make this usergrups ?
« Reply #5 on: April 01, 2007, 09:39:12 PM »
Hi,

i don't need the code:

link please...


Kurt