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: 11517
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: 11362
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: 11364
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: 11363
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: 11315
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: 11204
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: 11324
'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: 11241
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: 11185
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: 11053
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: 10825
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: 10909
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.