Gossamer Forum
Home : Products : Links 2.0 : Customization :

Multiple editors quick hack

Quote Reply
Multiple editors quick hack
get this:
www.mark-itt.ru/~roman/links/admin_e.cgi
and place to your cgi (not admin) directory;

www.mark-itt.ru/~roman/links/admin_e_html.pl
www.mark-itt.ru/~roman/links/db_e.pl
www.mark-itt.ru/~roman/links/db_utils_e.pl
www.mark-itt.ru/~roman/links/editors.db
and place to admin directory

Add to links.cfg string
$editor_script_url = $db_cgi_url . "/admin_e.cgi";
after or near $db_script_url= ...

Editors and their permission described in editors.db file. I lazy to make interface for edit it, there are 3 values, delimited by "|" - editor name, plain text password and list if categories ID, joined by "~~" where editor has permissions to validate, modify, etc.



[This message has been edited by Roman (edited January 19, 2000).]
Quote Reply
Re: Multiple editors quick hack In reply to
Very cool! I will be testing this Mod in the next week or so...Looking forward to seeing it work.

Thanks for your contribution.

Smile

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: Multiple editors quick hack In reply to
see.. if i had been smart and made seperate files from the admin files.. it'd be much easier to distribute my version.. i hadn't thought about it until i was practically through it Smile

roman..

you do not have any code to protect a link in another category from being deleted by an unauthorized editor..

the only kind of protection you have if from the category to not appear in the select lists.. this does not prevent someone from editing the url by hand..

in my version of the editor mod i put codes in three subroutines in db.pl.. in add_record, modify_record, delete_record.. (i did not have a validate because the editor still weren't allow to have those rights).. plus my version the editor wasn't allow to directly edit the database (before they screw you all over).. their entries (additions, modifications, and delete requests) went to a simple validation by the admin (in a different validation area)

------------------
Jerry Su
Links SQL Licensed
------------------
Quote Reply
Re: Multiple editors quick hack In reply to
Very cool, Widgetz...If you get a chance, and are willing, I think that many people would be interested in your Mod. Although it is nice to see other people attempting to make similar modifications...

I agree that when I was looking through the codes...I saw that the Editor had validation permissions...This is something that I would not like to see in my site, since I use crontab and telnet to build my index. Also, having multiple people validate the database is a bad idea in terms of security. But having the ability for multiple users to build a great directory is an awesome idea...although not a new one with the many human driven portals on the Net, including WWWVL, About.com, DMOZ, etc.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: Multiple editors quick hack In reply to
Widgetz:
thank you for comments. You right there was no protection from deleting a link from another category. Now there is: in modified http://www.mark-itt.ru/~roman/links/db_e.pl .
I have not change add_record and modify_record, only validate_record from db_utils.pl - adding and modifying going through it.
About validation by editor and directly modification of main base: this was my goal Smile You (and Eliot) right, if editor - stranger person. But in my case editors - one team, working on catalog, I mean editor is a responsible person for his categories.
Quote Reply
Re: Multiple editors quick hack In reply to
Roman,

Great hack, but I ran into a problem testing it. When I tried to assign a moderator a catagory above 10 or so it treated that as two entires thus moderator should have access to catagory 64 but instead gets access to 6 and 4.

Do you mind pointing out where you placed your mods in these files, so I can try and mess around and fix this?

Cheers,

Rush

------------------
Rush King
Quote Reply
Re: Multiple editors quick hack In reply to
great great mod well done ....

It let me in first time under test test, but when i edit it for different usernames it wont let me in to any of them Frown whats wrong this is what my editors.db file looks like
romeo|test1|8
john|free|10
me|me|1

Whats wrong ?

Thanks
JAB
Quote Reply
Re: Multiple editors quick hack In reply to
Found a work around to the double digit problem. I just removed the split routine from the db_e.pl I'm sure there is a better way to do this, but I will only be allowing people to edit one catagory so it works for me.

cheers

Rush
Quote Reply
Re: Multiple editors quick hack In reply to
Hello,
after two month I have already forget about this mod, but if anyone interested, there is improved version, working at real site:
http://www.mark-itt.ru/.../links/1/admin_e.cgi
http://www.mark-itt.ru/...ks/1/admin_e_html.pl
http://www.mark-itt.ru/~roman/links/1/db_e.pl
http://www.mark-itt.ru/...inks/1/db_utils_e.pl
http://www.mark-itt.ru/...n/links/1/editors.db
Sorry, don't remember all differences, some of them: editor can edit links in all child to his categories, and can add themself child categories. In editors.db trusted categories now stated as names, not id.
Sorry for inaccurate writing, made not for distribution.
Quote Reply
Re: Multiple editors quick hack In reply to
I have this mod working..., but I would really like to implement Jerry's multiple moderator script hack...Widgetz, we miss you - how 'bout some code?

Jerry's mod does everything, when did he say he would be coming back to this forum?
Quote Reply
Re: Multiple editors quick hack In reply to
Roman,

can you post here the URL of a demo or real working site where we can see how your mod works?
Quote Reply
Re: Multiple editors quick hack In reply to
Roman, this mod works great so far.

I have two questions though:

1. How can I send everything the editor inputs to my (admin) validation queue?
I do trust the editors, but I would like to be supervising whatevers entered into the database.
The ultimate solution would of course be a function to turn on/off this for either all editors or even better, per editor :-)

2. How can I encrypt the passwords in the user database?
If users wants to use private, common passwords, I shouldn't be able to see them.

Again - thanks for this mod. I kept waiting for the one Widgets was boasting about...

Best regards,
Ørjan Sandland
Quote Reply
Re: Multiple editors quick hack In reply to
Very seldom read this forums, sorry for silence.

To volodia: sure, it works Smile try yourself and certain of it.

Macro:
position 2: - get modified http://www.mark-itt.ru/.../links/2/admin_e.cgi
- it will work with plain and encrypted passwords. But don't flatter yourself, this don't make it much more secure Smile
position 1: - too many keystrokes need for it Smile sorry, no time now. I suggest you to add logging of all editor's activity, if you you want check this, it will get less time to look throuth logs, than to validate once again.
Quote Reply
Re: Multiple editors quick hack In reply to
I'm about to install this mod... How can I add a link in my category pages so that the category will be passed into a application form? At first I was just going to have a static form but I figured it would be a pain to scroll through a drop-down list of 275 categories.

TIA
--Drew
Quote Reply
Re: Multiple editors quick hack In reply to
I have been searching the forums for hours and this mod looks pretty close to what I was looking for.
Has anybody else out there used this MOD?


http://www.irishsearch.net/
Quote Reply
Re: Multiple editors quick hack In reply to
Well? Has anybody used this MOD? A simple yes/no would satisfy... Okay - that sounds a bit rude... Maybe I should rephrase.
Would one of you please tell me whether or not you have had any success with this. Please... I'm begging you now :-)


http://www.irishsearch.net/
Quote Reply
Re: [blacknight] Multiple editors quick hack In reply to
I have a couple of questions:
1. How do I get this thing to work? I login as a test account and it allows that user to build all and such, I don't want anyone able to mess with the templates or do a build all.

2. Could someone post better instructions for installation please?

3. Am I missing something or should admin_e.cgi be somewhere else that it will work? I mean we are supposed to have all of these files but where we put them, it seems they don't work at all. I get a 500 Error when trying to access it.

Thanks in advance
Myth
Quote Reply
Re: [Mythotical] Multiple editors quick hack In reply to
Does anyone know where you can get a copy of admin_e.cgi? The link isn't working.

Kathy
Quote Reply
Re: [KM] Multiple editors quick hack In reply to
The links above are working for me, opening a download box, and the file is there... See this post above... http://www.gossamer-threads.com/...cgi?post=44802#44802


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Multiple editors quick hack In reply to
Thank you. For some reason IE wouldn't recognize the file.

Kathy