 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
May 26th, 2005, 03:57 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Dec 2002 Location: Norway
Posts: 118
| 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.
|
| |
May 26th, 2005, 09:02 AM
|
#2 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 1,319
|
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
|
| |
May 26th, 2005, 09:04 AM
|
#3 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
Under usergroup options in admin section you can limit the filesize and diskspace on any usergroup you have.
|
| |
May 26th, 2005, 09:50 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Dec 2002 Location: Norway
Posts: 118
|
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.
|
| |
May 26th, 2005, 09:51 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Dec 2002 Location: Norway
Posts: 118
|
anonymous has also gone.
|
| |
May 26th, 2005, 10:47 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
You should have 3 usergroup entries at a minimum
In your usergroups table of Photopost what inserts are there?
|
| |
May 26th, 2005, 10:54 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Dec 2002 Location: Norway
Posts: 118
|
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.
|
| |
May 26th, 2005, 10:56 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
HMM so it cached admin but not the other two
|
| |
May 26th, 2005, 10:57 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Dec 2002 Location: Norway
Posts: 118
|
hhhMM is a very good answer
i have 11 usergroups...
These are missing:
annoymous
regular users
admin
Last edited by garybrun; May 26th, 2005 at 11:10 AM.
|
| |
May 26th, 2005, 11:03 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
Okay so the new cache is not working at all then
|
| |
May 26th, 2005, 11:15 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
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.
|
| |
May 26th, 2005, 11:27 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Dec 2002 Location: Norway
Posts: 118
|
OK... where do I find the file import usergroups?
My sql bit is done.
Last edited by garybrun; May 26th, 2005 at 11:30 AM.
|
| |
May 26th, 2005, 11:39 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
okay sorry edit in your forums subdirectory phpbb2.php and replace the function with the one I posted
|
| |
May 26th, 2005, 11:52 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Dec 2002 Location: Norway
Posts: 118
|
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.
Last edited by garybrun; May 26th, 2005 at 11:57 AM.
|
| |
May 26th, 2005, 01:07 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
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.
|
| |
May 26th, 2005, 01:10 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Dec 2002 Location: Norway
Posts: 118
| gary.brun@minelabowners.com
i just copied the function you gave above over the previous function.
|
| |
May 26th, 2005, 01:13 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
sent it by email
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 12:34 AM. | |