Author Topic: [MOD] Members Personal Category (obsolete, not supported)  (Read 153102 times)

0 Members and 1 Guest are viewing this topic.

Offline WaywardTraveller

  • Pre-Newbie
  • Posts: 7
    • View Profile
    • http://www.waywardtraveller.org/
sigh
« Reply #75 on: June 29, 2003, 08:51:21 PM »
This is another mod I would love to have for my gallery; but the website is still down and I cannot download the files I need  :(

peace
WaywardTraveller

Offline Knuty

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: [MOD] Members Personal Category
« Reply #76 on: March 13, 2005, 01:53:18 PM »
okay..so say a user has created/activated their album already.....and you have 1150 users. How do they change their permissions?

Do I have to edit user and change permissions for ALL 1150 users so that everyone can see everyone else's albums?!?!?!?

I keep getting this error anyways whenever I try to edit the permissions from member_editprofile...I get this error:


Quote
DB Error: Bad SQL Query: UPDATE 4images_categories SET auth_upload = 3 WHERE cat_id =
You have an error in your SQL syntax near '' at line 3

DB Error: Bad SQL Query: SELECT group_id FROM 4images_groupaccess WHERE cat_id = AND auth_upload = 1
You have an error in your SQL syntax near 'AND auth_upload = 1' at line 3

please help....I think i might cry.

I get the same error. I have run this mod for a long time and have about 11K users. Yestrday I get feedback from user who get this error. Anyone know?

b.o.fan

  • Guest
Re: [MOD] Members Personal Category
« Reply #77 on: March 13, 2005, 03:23:43 PM »
i ve installed 4images 1.71. before  the hack, i ask "is this MOD for 1.71?" someone said. NO. had any body installed this mod on a running 1.71 system? if yes, how to do this??

thanx b.o.fan

Offline eshpro

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • gallery.eshpro.com
Re: [MOD] Members Personal Category
« Reply #78 on: March 14, 2005, 08:22:31 AM »
hey . i instaleed MPC and it seems to work. just in user control panel i see this instead of "language"

{if user_cat_edit}  [Edit] 
{endif user_cat_edit}
.... {if auth_edit_js} 

it doesn't show text from language file i guess. how can i fix it?  :?

Offline Knuty

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: [MOD] Members Personal Category
« Reply #79 on: March 14, 2005, 02:34:10 PM »
okay..so say a user has created/activated their album already.....and you have 1150 users. How do they change their permissions?

Do I have to edit user and change permissions for ALL 1150 users so that everyone can see everyone else's albums?!?!?!?

I keep getting this error anyways whenever I try to edit the permissions from member_editprofile...I get this error:


Quote
DB Error: Bad SQL Query: UPDATE 4images_categories SET auth_upload = 3 WHERE cat_id =
You have an error in your SQL syntax near '' at line 3

DB Error: Bad SQL Query: SELECT group_id FROM 4images_groupaccess WHERE cat_id = AND auth_upload = 1
You have an error in your SQL syntax near 'AND auth_upload = 1' at line 3

please help....I think i might cry.

I get the same error. I have run this mod for a long time and have about 11K users. Yestrday I get feedback from user who get this error. Anyone know?

I fix this problem. I deleted all cat with no pics in and run "Repair table" and "Optimize table" in phpmyadmin. All the error is gone. :)

Offline theresa_rose

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Members Personal Category
« Reply #80 on: March 17, 2005, 06:00:12 AM »
I can't seem to download the installation file...both the site and mirror is down.  Could someone email it to theresa@tgq.us.
Thanks,
Theresa

Offline oswald

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Members Personal Category
« Reply #81 on: March 17, 2005, 10:42:53 PM »
Wait.... can it be that code in step 9 is incomplete? I don't know javascript... but I know that a scriipt should start and end with the <script></script> tags... and the closing tag is missing.... if this is the cause, can someone lease post the complete code?

Offline oswald

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Members Personal Category
« Reply #82 on: March 17, 2005, 10:45:17 PM »
Juhu.... just found it myself.... so, here is the correct code for step 9! :)
Code: [Select]
{if auth_edit_js}
<script language="JavaScript">
   var user_list="{user_list}";
   var list=user_list.split(",");
   var user_list = new Array();
   var user_list_id = new Array();
   var ii=0;
   for (var i=0; i < (list.length/2); i++){
      user_list[i] = list[ii+1];
      user_list_id[i] = list[ii];
      ii=ii+2;
   }
   var list = "{auth_list}";
   var name = "{usercat_auth}";
   var list = list.split(",");
   var owner = {admin_cat_owner};
   var owner_mark = "";
   function print_list(type){
      result="<select name='"+name+"_"+type+"[]' size='15' style='width:200;' multiple='multiple'>\n";
      result +="<option value='0' selected='selected'></option>\n";
      for (var i=0; i<user_list_id.length; i++){
         if (owner == user_list_id[i]) {
            owner_mark = " style='background-color: #FFCECE;'";
         }else{
            owner_mark = "";
         }
         if (type == 1){
            if (!searchArray(user_list_id[i], list)) {
               result +="<option value='"+user_list_id[i]+"'"+owner_mark+">&raquo; "+user_list[i]+"</option>\n";
            }
         }else{
            if (searchArray(user_list_id[i], list)) {
               result +="<option value='"+user_list_id[i]+"'"+owner_mark+"'>&raquo; "+user_list[i]+"</option>\n";
            }
         }
      }
      result +="</select>\n";
      return result;
   }
   function searchArray(key, arr){
      for (var i=0;i<arr.length;i++){
         if (key==arr[i]) return true;
      }
      return false;
   }
</script>
{endif auth_edit_js}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bordercolor">
  <tr>
    <td valign="top">
      <table width="100%" border="0" cellpadding="3" cellspacing="1">
        <tr>
          <td valign="top" class="head1" colspan="4">{lang_auth}</td>
            </tr>
            {auth_bit}
         </table>
    </td>
  </tr>
</table>

Offline oswald

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Members Personal Category (not supported)
« Reply #83 on: March 18, 2005, 12:25:42 PM »
to V@no
Do you think you will ever do a version 2 of the MPC? If yes, is there a timeframe for that?
Thanx.

Offline oswald

  • Newbie
  • *
  • Posts: 33
    • View Profile
Trying to ad a direct link that leads to the members private category...
« Reply #84 on: March 20, 2005, 11:38:55 AM »
I still need to find a way to make the members private category accessible via a direct link....
Tried it by adding this (second line "user_cat_id") to member.php:
Code: [Select]
$site_template->register_vars(array(
"user_cat_id" => $user_row['user_cat'],
"auth_edit_js" => $auth_edit_js,
"admin_cat_owner" => $admin_cat_owner['user_id'],
"user_cat_owner" => $admin_cat_owner['user_name'],

And that to the user_logininfo.html:
Code: [Select]
<a href="{root_path}categories.php?cat_id={user_cat_id}">My folder</a><br />
But that does not work.... What do I have to do? Please help....

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #85 on: April 23, 2005, 02:51:46 AM »
Hi I was thinking in install the MOD member personal category but I read that it is not recomendable to install because
Quote
THIS MOD NOT IS SUPPORTED BY THE AUTHOR ANYMORE, BECAUSE THE WAY ITS DONE, IT HAS NO POTENTIAL FUTURE TO EXPAND.
IF U HAVEN'T INSTALL THIS MOD, PLEASE DON'T. IF VERSION 2 EVER COMES OUT, AND U INSTALLED THIS VERSION, U'LL HAVE TO REMOVE THIS VERSION PRIOR INSTALLING NEXT VERSION.
SAVE YOURSELF FROM TROUBLE AND WAIT TILL NEXT VERSION.
SORRY.

So I think that would be very cool for the second version or for a new mod to have a  Member personal Album. It would be like the light box ... when a user register would see Album and if he click on there it would say you don't have pictures on your album so the user can upload pictures to his or her album and then in his profile there would be a link to his Personal Album so it is not really a category just a member personal space.

If some one has any idea or if this can be done easyly please post it :):):)

Offline aardid

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: [MOD] Members Personal Category
« Reply #86 on: May 28, 2005, 02:46:30 PM »
Quote from: ib41
should that code be added at the TOP ? Bottom ? anywhere specific ?
no. just make sure it's inside the <form...>...</form>


when i go to control panel (user control panel) and i activate personal gallery, then i go to the control panel and the option is off ... but if i go to the categories, my personal category was created ...

Offline aardid

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #87 on: May 30, 2005, 01:48:51 PM »
hi, how can i change the permissions for user personal gallery, if i create a member personal category when other user enter into the gallery he cant view other personal galleries ... and when i edit this categories, the options was all in PRIVATE ...

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
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #88 on: May 30, 2005, 08:08:48 PM »
u can edit permissions as any other category - through ACP.
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 aardid

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #89 on: May 30, 2005, 08:17:15 PM »
u can edit permissions as any other category - through ACP.

but, the permissions set automatically with PRIVATE, how i can change for the default is ALL ...