I have been gone for a while, but i recently played around with dbman and links, and i think i may have a close to done admin mod. It takes alot of editing so i don't know if it will be easy to distribute. One thing is it's not a multiple editor mod. It can't only allow certain people to edit certain categories. It can allow only certain people to do the other links functions like build, validate, delete, add new admins. It's still a little shaky and i've run into a problem with dbmans adding new admins part in links, but i will fix it. I'll put up a demo probably within a day. maybe.
Jul 23, 2001, 9:57 PM
Veteran (1311 posts)
Jul 23, 2001, 9:57 PM
Post #2 of 49
Views: 11484
ok i'm done so far. I haven't added anything like private messaging yet, but its fine for now.
go to http://lookhard.hypermart.net/...Look/admin/admin.cgi
The available login names and passwords for the demo are on the login screen. Each has different permissions. Tell me what you think and what not. How it can be improved. I'm open.
P.S.
in case someone went on before you and deleted links or categories or other things, click on the Restore Database link to have all the file and databases returned to their original content.
go to http://lookhard.hypermart.net/...Look/admin/admin.cgi
The available login names and passwords for the demo are on the login screen. Each has different permissions. Tell me what you think and what not. How it can be improved. I'm open.
P.S.
in case someone went on before you and deleted links or categories or other things, click on the Restore Database link to have all the file and databases returned to their original content.
Jul 24, 2001, 11:50 AM
Veteran (1311 posts)
Jul 24, 2001, 11:50 AM
Post #4 of 49
Views: 11329
it worked for something else i'm doing but for this i just used this
# 01 - Links DB
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$delete1 = unlink <$db_script_path/data/links.db>;
open(IN,"$db_script_path/hiddenfolder/links.db")
|| die "cannot open input file";
open(OUT,">$db_script_path/data/links.db")
|| die "cannot open output file";
while(<IN>)
{
print OUT $_; # echo line read
}
close(IN);
close(OUT);
print qq~\tStarting Restoring Program ... <bR>\n~;
print qq~\t
Restored Links database ... \n~;
# 01 - Links DB
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$delete1 = unlink <$db_script_path/data/links.db>;
open(IN,"$db_script_path/hiddenfolder/links.db")
|| die "cannot open input file";
open(OUT,">$db_script_path/data/links.db")
|| die "cannot open output file";
while(<IN>)
{
print OUT $_; # echo line read
}
close(IN);
close(OUT);
print qq~\tStarting Restoring Program ... <bR>\n~;
print qq~\t
Restored Links database ... \n~;
Jul 24, 2001, 11:56 AM
Veteran (19537 posts)
Jul 24, 2001, 11:56 AM
Post #5 of 49
Views: 11331
Cool.
You could use File::Copy if you have it installed like Links2.
&File::Copy::copy ("$db_script_path/data/links.db", "$db_script_path/hidden/links.db") or die "Can't restore backup : $!";Installations:http://www.wiredon.net/gt/
You could use File::Copy if you have it installed like Links2.
Code:
unlink("$db_script_path/data/links.db"); &File::Copy::copy ("$db_script_path/data/links.db", "$db_script_path/hidden/links.db") or die "Can't restore backup : $!";
Jul 25, 2001, 11:19 AM
Veteran / Moderator (1203 posts)
Jul 25, 2001, 11:19 AM
Post #11 of 49
Views: 11330
Nice work Bmxer. I had been meaning to put a few suggestions together in an email but looks like you've already thought about most things!
Glenn
Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Glenn
Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Jul 25, 2001, 1:08 PM
Veteran / Moderator (1203 posts)
Jul 25, 2001, 1:08 PM
Post #13 of 49
Views: 11282
What kind of restrictions did you have in mind, like restrict what categories links can be added to. Or restrict what categories can be added, ie. only allow sub categories to be added and not allow users to add top level categories.
One suggestion could be to collect a few more details on the user. If I had a directory I'd like to know a bit more about the user, especially since I'd be giving them some access to my directory.
Giving the user the ability to send out mass mail to linowners/others could be abused by some.
Glenn
Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
One suggestion could be to collect a few more details on the user. If I had a directory I'd like to know a bit more about the user, especially since I'd be giving them some access to my directory.
Giving the user the ability to send out mass mail to linowners/others could be abused by some.
Glenn
Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Jul 26, 2001, 1:07 AM
Veteran (1311 posts)
Jul 26, 2001, 1:07 AM
Post #14 of 49
Views: 11171
I'll probably make it ask for more details in the future and also have profiles and such. i just wanted to finish the hardest parts. Like, meshing dbman with links, and converting a web mail script for private messaging. I still have to ask for the rights from the author. But anyway, if you go and logon, and scroll down a little on the side navigation bar, you see Get/Send Messages. You can only get and send as the user you are logged on as. It was hard trying to pass the links/dbman password into the message scripts seperate authentication process. Oh well. Please tell me if you run into any problems or something. I tried to rush and finish before dawn.
Jul 26, 2001, 2:47 AM
Veteran / Moderator (1203 posts)
Jul 26, 2001, 2:47 AM
Post #16 of 49
Views: 11291
'and converting a web mail script for private messaging. I still have to ask for the rights from the author. '
I you don't get permission or run into any problems you could always maybe put together a pm messaging add on yourself. It shouldn't be that hard to do as you could integrate it into links and use alot of the existing admin subs. Ie. in links admin is the abilty to delete, add and view links. You could use all these functions to add/manipulate private messages as well.
Glenn
Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
I you don't get permission or run into any problems you could always maybe put together a pm messaging add on yourself. It shouldn't be that hard to do as you could integrate it into links and use alot of the existing admin subs. Ie. in links admin is the abilty to delete, add and view links. You could use all these functions to add/manipulate private messages as well.
Glenn
Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Jul 26, 2001, 3:46 AM
Veteran (1311 posts)
Jul 26, 2001, 3:46 AM
Post #17 of 49
Views: 11208
darkOne, I'm still not sure when i would release this.
thats a good idea glenn. that actually was my original idea because i'm comfortable with the way code is used in links. But i figured it would be faster to get a 3rd party and mod it into dbman and links. I think it was. And i really like the script.
thats a good idea glenn. that actually was my original idea because i'm comfortable with the way code is used in links. But i figured it would be faster to get a 3rd party and mod it into dbman and links. I think it was. And i really like the script.
Jul 27, 2001, 5:31 AM
Veteran (1311 posts)
Jul 27, 2001, 5:31 AM
Post #18 of 49
Views: 11152
I updated the private messenger area. It works perfectly with Links. I also tried to model the html off of the Gossamer Threads Forum Private Messaging.
Jul 27, 2001, 3:34 PM
Veteran (1311 posts)
Jul 27, 2001, 3:34 PM
Post #20 of 49
Views: 11020
there's always been a long discussion of having multiple admins, with certain restrictions on what they can do. Now, this combination i'm making doesn't have restrictions on specific category editors, but still restricts certain links functions . Its not really mixing dbman and links, because i just pulled the auth code and put it in peice by peice into links. Then i added some code to links.cfg that was in default.cfg, and some html subroutines from html.pl into admin_html.pl. Also some modifications of my own in admin.cgi. Jerrysu was right a while ago when he said that admin.cgi doesn't really look the same when you do this type of thing.
Aug 1, 2001, 12:48 PM
Novice (11 posts)
Aug 1, 2001, 12:48 PM
Post #22 of 49
Views: 10792
Would this type of database allow users to join such as they can with dbman? And if so... would it be easy to integrate this type of thing into a website that requires user registration for certain functions. ie.. cross reference this user password file before allowing a user to enter certain sections of your site. This is exactly what I need... I want users to register once because I have message boards, a directory, news posting system, other areas needs registering... if I could integrate one password file for all these areas it would make life a whole lot easier :)
By the way... Bmxer you make some great mods and I know alot of time must have gone into this... good work :)
Sergio
expertarena.net Webmaster
By the way... Bmxer you make some great mods and I know alot of time must have gone into this... good work :)
Sergio
expertarena.net Webmaster
Aug 1, 2001, 1:52 PM
Veteran (1311 posts)
Aug 1, 2001, 1:52 PM
Post #23 of 49
Views: 10876
Um, its not really a plugin type thing where you can use this to integrate with other programs. This is still Links 2 with Dbman authentication. Basically what i did was put all the auth code into links files, which isn't hard but is tiresome. For the 3rd party messenger i added, i just changed it so the password file it read from was my dbman one, and made sure it was delimited by a :. The thing is, i don't know how this would work with your solution, simply because you want to have more than one signup page for each solution, but when they signup for one, they are signed up for all. It would work as long as in each script, you have it check the database for an existing userid.
reply if you need help doing that
btw... i started the original mod on July 20th, and finished on the 23rd. I added all this other stuff by the 26th. Not too long.
reply if you need help doing that
btw... i started the original mod on July 20th, and finished on the 23rd. I added all this other stuff by the 26th. Not too long.
Aug 10, 2001, 8:30 PM
Veteran (1311 posts)
Aug 10, 2001, 8:30 PM
Post #26 of 49
Views: 10483
I really don't know how, but i'll try to get this into a mod in the next 2 - 4 months. This thing is so big now, It has my admin_html.pl at 150+ kb's and db.pl at 80+.
anyway, the demo is still up, with new features also such as:
the admin can check user logs
it logs everything users do
editing profiles
messaging
for this demo- if a user is logged on, and someone else tries to login while they are in, they will get an error saying the username is in use.
i don't even know what else.
if you want to see that admin side, login with admin/admin
if you want to see the editor side, login with author/author
if you want to see the new user side, login with the others.
or just create your own.
http://lookhard.hypermart.net/...Look/admin/admin.cgi
anyway, the demo is still up, with new features also such as:
the admin can check user logs
it logs everything users do
editing profiles
messaging
for this demo- if a user is logged on, and someone else tries to login while they are in, they will get an error saying the username is in use.
i don't even know what else.
if you want to see that admin side, login with admin/admin
if you want to see the editor side, login with author/author
if you want to see the new user side, login with the others.
or just create your own.
http://lookhard.hypermart.net/...Look/admin/admin.cgi
Aug 12, 2001, 10:43 PM
Veteran (1311 posts)
Aug 12, 2001, 10:43 PM
Post #27 of 49
Views: 10430
I added a category field to the pass file so now, when i have someone sign up they have to choose a password. Then i have a little peice of code that prints which editors edit that category on category.html. If you try the demo, login as admin/admin or sysadmin/sys and build then on the build screen under each category you should see Editors. Click on the Category name to go to it and you can view their profiles and everything. I think that's neat.
I am trying to add code so that when an editor adds, the only category he can add to is the one in the pass file under his id and the link he adds will go to the validate db for the admin, but also trying to have it so if a user without a category listed in the pass file (an admin) adds, it goes straight in. I can't get it, but i have an idea.
All those db_utils subs are crazy.
I figure the editor will be able to add to the validate db a link with the category he edits, add subcats to the category he edits, modify links in his category, which will get sent to validate, and thats all i can think of now. Any other ideas --?
Any info, input, or bugs you find on the demo, please put it down here.
thanks
I am trying to add code so that when an editor adds, the only category he can add to is the one in the pass file under his id and the link he adds will go to the validate db for the admin, but also trying to have it so if a user without a category listed in the pass file (an admin) adds, it goes straight in. I can't get it, but i have an idea.
All those db_utils subs are crazy.
I figure the editor will be able to add to the validate db a link with the category he edits, add subcats to the category he edits, modify links in his category, which will get sent to validate, and thats all i can think of now. Any other ideas --?
Any info, input, or bugs you find on the demo, please put it down here.
thanks
Aug 14, 2001, 11:42 AM
Veteran / Moderator (1203 posts)
Aug 14, 2001, 11:42 AM
Post #29 of 49
Views: 10366
'This thing is so big now, It has my admin_html.pl at 150+ '
It might be worth using templates for some of it. As I found alot of the space is taken up by the html code sometimes. Also I guess templates are good as I know alot of people prefer them!
Glenn
Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
It might be worth using templates for some of it. As I found alot of the space is taken up by the html code sometimes. Also I guess templates are good as I know alot of people prefer them!
Glenn
Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Aug 17, 2001, 7:23 PM
Veteran (1311 posts)
Aug 17, 2001, 7:23 PM
Post #30 of 49
Views: 10278
I may need to test this on someone else's server. I've pretty much gotten any bugs out of it except for being able to access nph-build, etc from the address bar, but i will have this fixed soon. I would probably need someone who is willing with an ok host, with good data transfer guidelines, and an access name and password by ftp. If anyone can do this, please email me at litrbf@aol.com or private message me. It's basically beta testing. So its for someone without that big of a database for now.
Thanks to anyone.
Thanks to anyone.
Aug 18, 2001, 10:12 AM
Veteran (17240 posts)
Aug 18, 2001, 10:12 AM
Post #34 of 49
Views: 10285
I believe it is the one that PaulWilson wrote...look for Online Users.
Regards,
Eliot Lee
http://anthrotech.com/
Regards,
Eliot Lee
http://anthrotech.com/
Aug 18, 2001, 10:16 AM
Veteran (19537 posts)
Aug 18, 2001, 10:16 AM
Post #35 of 49
Views: 10328
Junko also wrote some code to show online users.
Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Aug 20, 2001, 2:43 PM
Veteran (1311 posts)
Aug 20, 2001, 2:43 PM
Post #38 of 49
Views: 10202
I will probably be done soon. And then i'll work on instructions. I'll have a feature list up soon, and i'll have a planned features for the future list. It will include Paul's upcoming links.cfg config online mod.
Now, i'm just working out bugs, etc... and adding last minute details.
Now, i'm just working out bugs, etc... and adding last minute details.
Aug 23, 2001, 9:55 PM
Veteran (1311 posts)
Aug 23, 2001, 9:55 PM
Post #40 of 49
Views: 10169
Thanks for the support TomJ.
Just an update:
I have finally added the feature of approving editors.
Now when editors apply, they are added into a waiting database, and emailed that they will receive a rejection notice or an approval notice. The admin can approve and deny multiple editors at once, and it sends all the messages out. The admin can write personalized reasons for denying access if they want or just go with the standard template rejection notice.
Also, I have added a field in the category.def, called Edit. It is a Yes, No field. If yes is selected, users can signup for that category, and it's listed in the signup page select list for categories. If it's no, it will not be listed.
Each cat in when building will tell you if no or yes is selected and show all the editors of those cats.
This is done by code supplied by PaulWilson. Also, for those with the reference cats that show up in category lists ending with @, they are automatically excluded from the lists.
Anyway, you can see the editor approval thing by logging in as admin/admin. It should be easy to find.
Just an update:
I have finally added the feature of approving editors.
Now when editors apply, they are added into a waiting database, and emailed that they will receive a rejection notice or an approval notice. The admin can approve and deny multiple editors at once, and it sends all the messages out. The admin can write personalized reasons for denying access if they want or just go with the standard template rejection notice.
Also, I have added a field in the category.def, called Edit. It is a Yes, No field. If yes is selected, users can signup for that category, and it's listed in the signup page select list for categories. If it's no, it will not be listed.
Each cat in when building will tell you if no or yes is selected and show all the editors of those cats.
This is done by code supplied by PaulWilson. Also, for those with the reference cats that show up in category lists ending with @, they are automatically excluded from the lists.
Anyway, you can see the editor approval thing by logging in as admin/admin. It should be easy to find.
Sep 2, 2001, 8:00 PM
Veteran (1311 posts)
Sep 2, 2001, 8:00 PM
Post #43 of 49
Views: 10038
I haven't done much in the past few days because i'm upgrading my comp, but i did add on to the connection between the admin program and web-b-mail by making web-b-mail authenticate the admin program session id's. So noone can go straight on throught the web-b-mail script. They would have to log on through the admin.
Sep 6, 2001, 10:14 AM
Veteran (1311 posts)
Sep 6, 2001, 10:14 AM
Post #44 of 49
Views: 10008
I was just wondering, would anyone want it so that the editors can add subcats under the category they are assigned to. I already have it so that if an editor is assigned to a top level cat, he can edit links in all the cats under it, but only add to his. I was thinking of maybe letting them add cats. Maybe i'll do that with another permission set, depending on what you think.
Lavon Russell
LookHard Mods
lavon@lh.links247.net
Lavon Russell
LookHard Mods
lavon@lh.links247.net
Sep 6, 2001, 8:54 PM
Veteran (1311 posts)
Sep 6, 2001, 8:54 PM
Post #46 of 49
Views: 10022
I will probably have it ready in a month or two. No exact time set yet.
Lavon Russell
LookHard Mods
lavon@lh.links247.net
Lavon Russell
LookHard Mods
lavon@lh.links247.net
Sep 8, 2001, 7:41 AM
Veteran (1311 posts)
Sep 8, 2001, 7:41 AM
Post #47 of 49
Views: 9972
Ok, i'm just gonna make it so they can modify the cats, and add new subcats, and i don't know about deleting yet. Maybe for special editors. I'm also gonna make the web-b-mail messaging part into templates. To cut down on space and so you can design it better, but i don't know about the admin. If i made the admin into templates, which i thought about, I would want to do the whole thing and i doubt that would happen.
Lavon Russell
LookHard Mods
lavon@lh.links247.net
Lavon Russell
LookHard Mods
lavon@lh.links247.net