• [MOD] User Categories Area 5 0 5 1
Currently:  

Author Topic: [MOD] User Categories Area  (Read 90360 times)

0 Members and 1 Guest are viewing this topic.

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [MOD] User Categories Area
« Reply #15 on: May 08, 2009, 02:14:16 PM »
Thank you very much for your respond  Budduke , I didn't put them to user groups yet ,I'm not using user groups for that , because of the buttons (New Dancer , New Nightclub) that im willing to put on my site in sidebar they will (thanks to your MOD)create their profiles in their correct areas (categories ) .
To divide them  I have made another field - occupation- I used the same MOD like GIS but changed gender for occupation -   and like this i'm dividing one from another , so on my site I have also stats for everyone

lapdance clubs
nightclubs
stripclubs
photographers
models
dancers
hostesses
visitors etc.

for me are important only dancers , hostesses and nightclubs (nightclubs, lapdance clubs, tabledance, stripclubs), where they are willing to go , I only want the group dancers (in fact its not a user group ) to use category 502 and of course every category below cat502 that would create, hostess cat501 and nightclubs cat500 etc, so it doesnt have to have nothing to do with user permissions . Every group of people will have all permissions in their 500 , 501 , 502 and of course in categories created below.
Your Mod I can use only for one group , I need 3 different groups to use 3 different categories. I think that many people will use it too because almost everyone has at least 2 groups of people , like employer  - candidate , photographers - customers etc .
With this great Mod if you will manage to get it work for 2-3-4 groups you can easily transform 4Images in some JOB BOARD where the different people has their places , and everybody will know where exactly they are .
I want to come home and see that in category nightclubs I have a new club , at this moment i have to :

prepare the category for them  , create the name of this category, create a description of this category , then I have to explain exactly where to go and how to upload the pictures in their own category and after set permissions to this person in order to not to let others to put the pics at this category , if they want another subcategory I have to create it before etc.
Try to explain a dancer to make something with computer , the club owners in Italy maybe never saw the computer in their lives so I hope that with your MOD they will only click the button NEW CLUB (NEW DANCER , NEW HOSTESS) and they would create their portfolio theirselves , make their category description theirselves , upload their pics .
Would be great the MOD like this -:)

I have for this another part of my side , but its not very good to use it for picture gallery.
http://www.dancersrecruit.com/joblist/ 
its a Job Board its not working 100%  because when I installed 4Images I don't do anything else-:) but already working . You can see there employers part , candidates part . I know 4 Images  are  Picture gallery and that's why I choose gallery to help Joblist to see better pictures and to let the people to create big image portfolio .
I'm not a programmer , I can only edit , copy , delete but thanks to your (all the people here posting MODS) perfect descriptions its enough for me to know how to implement 90% of Mods here , I think that I can make it myself doing this 3x , by changing the some names . But you are a programmer of this Mod, you should know best which way to go before I choose bad one-:)
Thanks Budduke again for your respond , and do what you have to do , I'm not in a hurry at all , it would be only very pleasant addition to my 4Images website. Daniel







« Last Edit: May 08, 2009, 02:43:29 PM by 4ella »

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline wtr

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] User Categories Area
« Reply #16 on: May 29, 2009, 11:25:15 PM »
Hi,

Funktioniert das auch mit der Version 1.7.7???

Does it work with Version 1.7.7?

Greets wtr

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] User Categories Area
« Reply #17 on: May 30, 2009, 12:22:21 AM »
Hi,

Funktioniert das auch mit der Version 1.7.7???

Does it work with Version 1.7.7?

Greets wtr
Yes,
I upgraded my site to 1.7.7 a week ago and everyone says they are still able to use the MOD so I have not heard of any problems.
Buddy Duke
www.budduke.com

Offline wtr

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] User Categories Area
« Reply #18 on: May 30, 2009, 12:02:47 PM »
OK thanks.
Then i will build in the MOD.

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [MOD] User Categories Area
« Reply #19 on: June 12, 2009, 02:14:15 AM »
@budduke
Very long installation but it worth it , amazing - working immediately and I didn't realized before the installation what I should  expect from this Mod , now I can only say super Mod , I have endless possibilities to use it now , thanks a lot for that, I would like to put your link and logo on the bottom inside user_categoriesform.html , but I didn't manage to copy that from your website (copyright restriction) , if you want to put your link and logo there, I put one but it is better to substitute it with yours, pm me please or contact me directly on my site  I would like to thank you in this way . Daniel


in case that somebody would like to test the DEMO
http://www.dancersrecruit.com/pictures/index.php
username: 4images
password: test
or you can register yourself with your name
« Last Edit: June 12, 2009, 04:09:52 AM by 4ella »

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [MOD] User Categories Area
« Reply #20 on: June 13, 2009, 12:31:16 PM »
@Budduke I have PMed you about the logo .

Was also thinking about what Your Area should have to be 100% perfect and everybody would appreciate that and it is that this Area should serve from beginning - it means immediately after  registration ,  after successful registration to have the possibility to create My own Category (like a Mod Let user create his own category)
and after either to be redirect to control panel and there for example to put the button  (Create category , profile etc. - to use Let User Create ... MOD ) neither directly be redirected to your User Area (but with the possibility to create NEW Category) - so to connect these 2 Mods in 1, where will be the possibilty to create (IN your present form You can't use it until ADMIN give you your categoryID and also the rights to use this category.
On my opinion it would be very useful Mod in 4images , because this is only thing that I don't like that every user step has to be followed by admin step or user can do something only when admin create category ,description etc. . I like that you are trying to cut some rights from admin to user (Super idea the possibility to change the category description in User Area)(Let user create the category MOD can create the description too but only create - NOT EDIT . In Short 4images would be nice when it will allow user with some small limitations make everything but ADMIN will have the last word .

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] User Categories Area
« Reply #21 on: June 15, 2009, 01:00:45 AM »
@Budduke I have PMed you about the logo .

Was also thinking about what Your Area should have to be 100% perfect and everybody would appreciate that and it is that this Area should serve from beginning - it means immediately after  registration ,  after successful registration to have the possibility to create My own Category (like a Mod Let user create his own category)
and after either to be redirect to control panel and there for example to put the button  (Create category , profile etc. - to use Let User Create ... MOD ) neither directly be redirected to your User Area (but with the possibility to create NEW Category) - so to connect these 2 Mods in 1, where will be the possibilty to create (IN your present form You can't use it until ADMIN give you your categoryID and also the rights to use this category.
On my opinion it would be very useful Mod in 4images , because this is only thing that I don't like that every user step has to be followed by admin step or user can do something only when admin create category ,description etc. . I like that you are trying to cut some rights from admin to user (Super idea the possibility to change the category description in User Area)(Let user create the category MOD can create the description too but only create - NOT EDIT . In Short 4images would be nice when it will allow user with some small limitations make everything but ADMIN will have the last word .

In 2.0 (just posted) new users can create own categories without admin approval (it was a very quick add at the end)
If I understand the rest of your idea, you are wanting buttons when they are in their categories looking at thumbnails, to be able to create a new category from that screen instead of going to the user area?
Will have to think about that one awhile

PS: anyone following allong, if you need to upgrade from 1.03 to 2.00 you should just look at the blue areas of the posted mod to see what has changed
Buddy Duke
www.budduke.com

Offline theresa_rose

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] User Categories Area
« Reply #22 on: June 15, 2009, 04:44:02 AM »
I installed this mod on an empty site...unfortunately not working for me.  I will go back and repeat the installation from scratch but I was wondering if anybody could see something in the error log.  Here is a cap of the error log.

Opps...edited....i found it....me being a dumbass and forgetting to upload a file on an older mod.
« Last Edit: June 15, 2009, 05:01:54 AM by theresa_rose »

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [MOD] User Categories Area
« Reply #23 on: June 15, 2009, 08:33:34 AM »
@Budduke
I'm trying to find admin/admin_functions.php  to modify  . Did you forget to publish it or I overlooked that?

and about my question:
Quote
Was also thinking about what Your Area should have to be 100% perfect and everybody would appreciate that and it is that this Area should serve from beginning - it means immediately after  registration ,  after successful registration to have the possibility to create My own Category (like a Mod Let user create his own category)

Forget this question , I didn't realize that your Mod already works from beginning - Now I see that there already was the possibility to create the category immediately from the start (I didnt try it like a new member before).  So your Mod was and is even better than I thought, I will let you know if everything works good in New 2.0 version, now I get errors and don't see my area anymore, because I didn't put admin_functions.php changes , I think that you have forgot to publish them -:)
« Last Edit: June 15, 2009, 09:07:19 AM by 4ella »

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] User Categories Area
« Reply #24 on: June 15, 2009, 12:56:16 PM »
My bad...
Forgot to add mod to admin_functions...
Modified first post so things should be good now.
Buddy Duke
www.budduke.com

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [MOD] User Categories Area
« Reply #25 on: June 15, 2009, 01:12:00 PM »
Budduke I have following error here in in plugins ACP:
Warning: Invalid argument supplied for foreach() in /home2/dancersr/public_html/pictures/admin/plugins/user_categories_mod.php on line 291

user_categories_mod.php line 284 - 294
291 - function show_user_submitted_enable_options($setting_name, $setting_value) {

In attach i added also my admin_function.php

Code: [Select]
     echo "> ".$val."<br />";
  }
}

function show_user_submitted_enable_options($setting_name, $setting_value) {
  global $user_submitted_enable_optionlist,$none_found;
  foreach ($user_submitted_enable_optionlist as $key => $val) {
  if ($none_found && ($key===2)){


« Last Edit: June 15, 2009, 01:35:14 PM by 4ella »

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] User Categories Area
« Reply #26 on: June 15, 2009, 07:53:18 PM »
@4ella,

did you change the mod in the lang/english/admin.php file?
I forgot to change the text to blue.
It added more info to the option list.

I will not be able to look further till I get home tonight...
Buddy Duke
www.budduke.com

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [MOD] User Categories Area
« Reply #27 on: June 15, 2009, 08:47:56 PM »
@Budduke
There's no hurry Budduke no problem , Yes i didn't change the admin.php-:) , so now i dont have the error in plugin area but I still have the errors in admin_function.php(screen above - 5x warning) , otherwise now I undestand how it works and it is absolutely super idea with dropdown menu , looking forward when it starts to work , very nice and useful  indeed .

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] User Categories Area
« Reply #28 on: June 16, 2009, 01:01:55 AM »
I haved tried installing it twice and it works fine for me...
What other mods are you also using on this test site?
I did notice that you did not have the case dropdown mod in the admin_functions file. Could that be causing the problem?

my file looked like this
Code: [Select]
     case "textarea":
        show_textarea_row($val[0], $field_name, $value);
        break;
      case "dropdown":
        show_user_dropdown_row($field_name, $val, $value);
        break;
 case "radio":
        show_radio_row($val[0], $field_name, ($value == "") ? 1 : $value);
        break;
      case "text":
      default:
 //MOD User Categories
 if (substr($field_name,0,21)=='user_submitted_parent'){
   show_user_parent_input_row($val[0],$field_name,$value);
 }
 else{
        show_input_row($val[0], $field_name, $value);
      }
 //END MOD User Categories
 } // end switch

Your file was missing the dropdown case area...
Let me know if it is still happening and what other mods you have installed on this setup.

Also, what happens when you try to run the other plugin (clear cache) that is native to 4images?
The is the file a used as a template when I was creating my plugin. That may tell me if it is my files or something else...
« Last Edit: June 16, 2009, 02:05:52 AM by budduke »
Buddy Duke
www.budduke.com

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] User Categories Area
« Reply #29 on: June 20, 2009, 04:31:52 PM »
Thew above admin header problem fixed in version 2.01
Buddy Duke
www.budduke.com