Gossamer Forum
Home : Products : Links 2.0 : Customization :

Admin Mod Completed...

(Page 1 of 2)
> >
Quote Reply
Admin Mod Completed...
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.

Quote Reply
Re: Admin Mod Completed... In reply to
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.

Quote Reply
Re: Admin Mod Completed... In reply to
Did you get my code working in the end?

Installations:http://www.wiredon.net/gt/

Quote Reply
Re: Admin Mod Completed... In reply to
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~;

Quote Reply
Re: Admin Mod Completed... In reply to
Cool.

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 : $!";
Installations:http://www.wiredon.net/gt/

Quote Reply
Re: Admin Mod Completed... In reply to
do you have a copy of DynaLoader.pm from the perl library. I have code that needs to run Time::HiRes but i can't without DynaLoader.

Quote Reply
Re: Admin Mod Completed... In reply to
Here you go:

http://www.wiredon.net/DynaLoader.pm

Installations:http://www.wiredon.net/gt/

Quote Reply
Re: Admin Mod Completed... In reply to
thanks Paul and thank you everyone for your input

Quote Reply
Re: Admin Mod Completed... In reply to
Glad to help.

Installations:http://www.wiredon.net/gt/

Quote Reply
Re: Admin Mod Completed... In reply to
i found a way to give the people in the database private messages. I'll be working on this later today. adios

Quote Reply
Re: Admin Mod Completed... In reply to
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
Quote Reply
Re: Admin Mod Completed... In reply to
thanks glenn, any suggestions you have would be good. I would like to make it so there are restrictions on categories, but i can't see a way. The messages are the only thing i can think of for now. Any suggestions are great.

Quote Reply
Re: Admin Mod Completed... In reply to
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
Quote Reply
Re: Admin Mod Completed... In reply to
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.

Quote Reply
Re: Admin Mod Completed... In reply to
Looks great!
I really like the check detailed pages part
exactly what i need for my site.

When would your mod be available for the public?

Quote Reply
Re: Admin Mod Completed... In reply to
'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
Quote Reply
Re: Admin Mod Completed... In reply to
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.

Quote Reply
Re: Admin Mod Completed... In reply to
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.

Quote Reply
Re: Admin Mod Completed... In reply to
bmxer, what is the benefit of combining links and dbman together? just wanted to know! i guess it will, but in what way? thanks and keep up the good work.

Quote Reply
Re: Admin Mod Completed... In reply to
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.

Quote Reply
Re: Admin Mod Completed... In reply to
i made it so the people on the system can have profiles, and edit their own.

Quote Reply
Re: Admin Mod Completed... In reply to
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
Quote Reply
Re: Admin Mod Completed... In reply to
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.

Quote Reply
Re: Admin Mod Completed... In reply to
In Reply To:
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.
I thought you were working on an admin mod like a year ago?

Happy coding,

--Drew
http://www.camelsoup.com
ftp://ftp.camelsoup.com
Quote Reply
Re: Admin Mod Completed... In reply to
no, i believe that was jerrysu. I did talk to him about him releasing his like a year ago, but as far as me actually working on one, July 20th, as stated.

> >