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

0 Members and 1 Guest are viewing this topic.

Offline SNKMAN

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #105 on: July 01, 2006, 04:02:22 PM »
In 4images Version 1.7.2 i cab't find member.php "user_name" => htmlspecialchars(stripslashes($user_name)), ???

Offline SNKMAN

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Members Personal Category
« Reply #106 on: July 03, 2006, 12:57:12 AM »
Well guy's i finally managed it to get the Private Gallery Mod to work only problem is this:

Quote from: dune
oh, also got into some trouble with the mod:

i'm running a standalone installation and it works fine until i try to change the default permissions from the users' control panel. once i try to switch between all, registered users, and private i get this kind of messages:

if i try to switch from all to registered users:

Code: [Select]
DB Error: Bad SQL Query: UPDATE 4images_categories SET auth_download = 2 WHERE cat_id =
You have an error in your SQL syntax near '' at line 3

from all to private:

Code: [Select]
DB Error: Bad SQL Query: UPDATE 4images_categories SET auth_download = 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_download = 1
You have an error in your SQL syntax near 'AND auth_download = 1' at line 3


and something else, the category is not displaying for guests, even though now 'all' should be able to see it. Please help :)

solutions ?

Someone know's how to correct it?

Well i tested it as registred user and it look's like it only happends to the Admin.
« Last Edit: July 03, 2006, 01:11:21 AM by SNKMAN »

Offline salimiali

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #107 on: July 11, 2006, 10:31:43 AM »
VANO dear, i can setup this mode on new version of 4 images? can or can`not? thank you

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 #108 on: July 12, 2006, 01:07:45 AM »
I have no clue, and I wouldnt recomend installing it on any versions...
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 cappuccino

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • PIXXGALLERY
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #109 on: September 20, 2006, 11:33:00 PM »
In 4images Version 1.7.2 i cab't find member.php "user_name" => htmlspecialchars(stripslashes($user_name)), ???


Find in member.php

Code: [Select]
"user_name" => format_text(stripslashes($user_name), 2),
Insert above it:

Code: [Select]
"lang_activate" => ($config['user_cat'] && $user_info['user_cat_active_admin'] && ($config['user_cat_new'] || $user_info['user_cat'])) ? $lang['user_cat_activate'] : "",
"user_cat_edit" => ($user_info['user_cat_active']) ? $site_sess->url(ROOT_PATH."member.php?action=usercatpermedit") : "",
"lang_edit" => $lang['edit'],

It works!

And yes... this MOD works with the latest version 1.7.3

THX @ V@no

Offline cappuccino

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • PIXXGALLERY
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #110 on: September 25, 2006, 11:35:32 AM »
I have still problems with the permission before the user set it self!
I adjust the permissions in member.php to 0, 0, 1, 3, 0, 0, 1, 0, 0 and it does already work, but the user and the administrator can`t read out this permission of the database.

The database entries are correct, but the administrator has this view in the category view.
And the user has a look on this picture.

What's the cause? Does anyone have an idea?
Is this the cause "user_name" => htmlspecialchars(stripslashes($user_name)), at the post above?

Thx
« Last Edit: September 25, 2006, 12:00:05 PM by cappuccino »

b.o.fan

  • Guest
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #111 on: September 25, 2006, 02:17:26 PM »
In 4images Version 1.7.2 i cab't find member.php "user_name" => htmlspecialchars(stripslashes($user_name)), ???


Find in member.php

Code: [Select]
"user_name" => format_text(stripslashes($user_name), 2),
Insert above it:

Code: [Select]
"lang_activate" => ($config['user_cat'] && $user_info['user_cat_active_admin'] && ($config['user_cat_new'] || $user_info['user_cat'])) ? $lang['user_cat_activate'] : "",
"user_cat_edit" => ($user_info['user_cat_active']) ? $site_sess->url(ROOT_PATH."member.php?action=usercatpermedit") : "",
"lang_edit" => $lang['edit'],

It works!

And yes... this MOD works with the latest version 1.7.3

THX @ V@no

it works??

i will test it ;)

Offline cappuccino

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • PIXXGALLERY
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #112 on: September 25, 2006, 03:24:11 PM »
Yes, it works in version 1.7.2 and 1.7.3, but i have currently a little problem with this Mod. Read and look the post above.
It could be, that this problem is in line "user_name" => format_text(stripslashes($user_name), 2), because I also cant find the right line!

I´m not a developer and I can also only test, whether it works.

Best regards...

b.o.fan

  • Guest
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #113 on: September 25, 2006, 04:12:33 PM »
Yes, it works in version 1.7.2 and 1.7.3, but i have currently a little problem with this Mod. Read and look the post above.
It could be, that this problem is in line "user_name" => format_text(stripslashes($user_name), 2), because I also cant find the right line!

I´m not a developer and I can also only test, whether it works.

Best regards...

what is your problem there?

Offline cappuccino

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • PIXXGALLERY
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #114 on: September 25, 2006, 05:31:57 PM »
Please look at the post above. In the file "member.php" you can define the authorisations.
This autorisations are taken over in the database, too. But when the user or the admin selcts the authorisations, there is nothing deposited.

See the picture above

Offline steveeyes

  • Full Member
  • ***
  • Posts: 177
    • View Profile
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #115 on: October 20, 2006, 11:05:24 PM »
Part of the instructions for this mod says:

Download "Install MPC" installer. Unpack it and upload to your 4images root dir. Then start it by something like (http://youdomain.com/4images/install_mpc.php)

I guess because V@no site is down, the link doesn't work. How to get this MPC installer?


Thanks
Steve

Offline cappuccino

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • PIXXGALLERY
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #116 on: October 20, 2006, 11:10:45 PM »
see the attach...

Offline steveeyes

  • Full Member
  • ***
  • Posts: 177
    • View Profile
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #117 on: October 21, 2006, 12:45:30 AM »
thanks cappuccino

Offline Parasco

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [MOD] Members Personal Category
« Reply #118 on: February 16, 2007, 06:53:34 PM »
First off, I must state, V@no, you always got great MODs! Most of the best offered for 4images  :D

I just had a simple question and I doubt it would be too hard to do. 

I was wondering how I could change the code to allow the user to select the category they want to create the new category in.  Basically show the dropdown that the admin has when he/she enables the feature.

I think this would be a great addon feature for this mod.  If anyone knows how to do it, can you please post.

Thanks loads!

Chris

Offline Parasco

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [MOD] Members Personal Category (obsolete, not supported)
« Reply #119 on: February 21, 2007, 07:30:28 PM »
Any idea how to add the category list to allow the member to select which category they want to create their folder?