PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Registered user (http://www.photopost.com/forum/photopost-pro-installation-upgrades/114091-registered-user.html)

garybrun May 26th, 2005 03:57 AM

Registered user
 
We used to have registered users in the "usergroup" area.

How do I limit my registered users to the amount that they can post.
Having nearly 3000 members will take a lot of work adding them to a usergroup.

Any suggestions please.

b6gm6n May 26th, 2005 09:02 AM

Hi..

Wouldn't this be simply a case of editing your 'registered' usergroup for 'Daily Upload Limit (# of files)' and adjusting that accordingly? (Alloted Diskspace etc etc)

-T

Chuck S May 26th, 2005 09:04 AM

Under usergroup options in admin section you can limit the filesize and diskspace on any usergroup you have.

garybrun May 26th, 2005 09:50 AM

That i know.
previously the software automaticaly had "regular users". set up in phpbb2 version of gallery. That is no longer there in this new version so I have no control over it. Do you understand what Iam trying to say now??? I hope I have explained it ok.

garybrun May 26th, 2005 09:51 AM

anonymous has also gone.

Chuck S May 26th, 2005 10:47 AM

You should have 3 usergroup entries at a minimum

In your usergroups table of Photopost what inserts are there?

garybrun May 26th, 2005 10:54 AM

I have quite a lot of usergroups in my forum and it has pulled them all over ecept anoymous and reged users over. Looking at the tables in phpmyadmin... they are not in there either.

the problem only happened when I refreshed usergroup.

Chuck S May 26th, 2005 10:56 AM

HMM so it cached admin but not the other two

garybrun May 26th, 2005 10:57 AM

hhhMM is a very good answer :p

i have 11 usergroups...

These are missing:
annoymous
regular users
admin

Chuck S May 26th, 2005 11:03 AM

Okay so the new cache is not working at all then

Chuck S May 26th, 2005 11:15 AM

Okay well you will need to use phpmyadmin and insert those groups back in

Code:

Content visible to verified customers only.
Now use this import_user_groups function and see if it works

Code:

Content visible to verified customers only.

garybrun May 26th, 2005 11:27 AM

OK... where do I find the file import usergroups?

My sql bit is done.

Chuck S May 26th, 2005 11:39 AM

okay sorry edit in your forums subdirectory phpbb2.php and replace the function with the one I posted

garybrun May 26th, 2005 11:52 AM

OK... parse error in 514.


$query = "DELETE FROM {$Globals['pp_db_prefix']}usergroups";
$resulta = ppmysql_query($query, $link);

foreach ($currentGroups as $currentGroup) {
$gid = $currentGroup['groupid'];
$name = addslashes($currentGroup['groupname']);
$cpaccess = $currentGroup['cpaccess'];
$uploads = $currentGroup['uploads'];
$comments = $currentGroup['comments'];
$diskspace = $currentGroup['diskspace'];
$uploadsize = $currentGroup['uploadsize'];
$uploadlimit = $currentGroup['uplimit'];
$editpho = $currentGroup['editpho'];
$editposts = $currentGroup['editposts'];
$modaccess = $currentGroup['modaccess'];
$useralbums = $currentGroup['useralbums'];
$reqmod = $currentGroup['reqmod'];
$canassign = $currentGroup['canassign'];

$query = "INSERT INTO {$Globals['pp_db_prefix']}usergroups (groupid,groupname,modaccess,cpaccess,uploads,uplimit,comments,diskspace,uploadsize,editpho,editposts,useralbums,reqmod,canassign) VALUES('$gid','$name','$modaccess','$cpaccess','$uploads','$comments','$diskspace','$uploadsize','$uplimit','$editpho','$editposts','$useralbums','$reqmod','$canassign')";
$setug = ppmysql_query($query,$link);
}
}
ppmysql_free_result( $readug );

} this is 514???

deleted it and it still doesnt work anyway

Would be a lot easier with the full php file.

Chuck S May 26th, 2005 01:07 PM

If you give me an email I can send you the file. I would assume you have not copied and pasted the full function I posted above.

garybrun May 26th, 2005 01:10 PM

gary.brun@minelabowners.com

i just copied the function you gave above over the previous function.

Chuck S May 26th, 2005 01:13 PM

sent it by email


All times are GMT -5. The time now is 07:54 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97