Gossamer Forum
Home : Products : Links 2.0 : Customization :

Admin Mod Completed...

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.

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

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

Quote Reply
Re: Admin Mod Update... In reply to
ok, i think i made it so the editors can only add to their category and it goes to the validate database for the admin, and then can modify which they can do straight into the links.db.

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

Quote Reply
Re: Admin Mod Update... In reply to
Where to get this amazing mod ?
And the other ones ... like user system, or online system ...

Cya
Monster

Quote Reply
Re: Admin Mod Update... In reply to
I really would like to get that Admin mod!!!

Quote Reply
Re: Admin Mod Update... In reply to
What user system/online system mods?

Quote Reply
Re: Admin Mod Update... In reply to
I believe it is the one that PaulWilson wrote...look for Online Users.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: Admin Mod Update... In reply to
Junko also wrote some code to show online users.

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: Admin Mod Update... In reply to
I actually only used the one by jpdeni for dbman. I wrote her to ask for permission to repost her mod with mine, but never got a response.

Quote Reply
Re: Admin Mod Update... In reply to
I thought the Admin mod... :)

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

Quote Reply
Re: Admin Mod Update... In reply to
I am really waiting foward to this mod. :-;)( %JMD: _:)


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

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

I haven't been here lately.

So is this mode completed yet or?

Btw, great mod!

DeadRoot

UnReal Network - The Ultimate Portal Site
http://www.unreal-net.com
Quote Reply
Re: Admin Mod Completed... In reply to
No not yet. I'm still polishing up things and testing it on another system, and adding features and everything. It will probably be released near the new year, since i have to make the instructions and everything.

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

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

When will the script be available?

Quote Reply
Re: Admin Mod Completed... In reply to
I will probably have it ready in a month or two. No exact time set yet.


Lavon Russell
LookHard Mods
lavon@lh.links247.net
Quote Reply
Re: Admin Mod Completed... In reply to
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
Quote Reply
Re: [Bmxer] Admin Mod Completed... In reply to
I liked your admin mod, how can I use it??
Quote Reply
Re: [Bmxer] Admin Mod Completed... In reply to
I'd be interested, too Smile

------------------------------------------