Gossamer Forum
Home : Products : DBMan : Customization :

JPD's list of mods to write

Quote Reply
JPD's list of mods to write
Hello JPD, Laugh

On behalf of the entire community here (I am sure) thanks for all your time and efforts !

In some posts you refer to your: list of mods to write. At first I took this as a way of saying 'maybee later' but I have the impression lately that you really keep such a list, based on the mods you have produced the last weeks.

(yes I get to the point)

Would you mind making this list public ? (no strings attached)

I know for a fact that a voting mod is on there (maybee based on one vote per ip adress/ such as 'the few' did for the top ten mod)

This is really no way of trying to pressure you but I for one would really be very interested to get an indication of maybee approx. when such or such a mod possible would see the light given enough time & inspiration etc. Smile



Close Watch
LyricZ http://www.lyricz.12inter.net
NL
Quote Reply
Re: JPD's list of mods to write In reply to
Okay. Here's my list --

Things people have asked for:
approve signup
preview modify
ICQ with password lookup
Rating mod
Validate mod -- separate .db file
Last x number of logins
Refer a friend
agreement page before signup



Things I would like to write:
select-o-matic
true wildcard search
fancy checkbox and radio fields
convert to secure password lookup
import password
trouble-shooting dichotomous key
View/Clear log from admin page



Applications I would like to write (some of which people have asked for):
Genealogy -- SQL
Bookstore
Reservations
Shopping Cart


That oughta keep me off the streets for a day or two! Wink

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: JPD's list of mods to write In reply to
WOW, more likely some years !

Ok, I'll have all of them Laugh

Close Watch
LyricZ http://www.lyricz.12inter.net
NL
Quote Reply
Re: JPD's list of mods to write In reply to
JPDeni is great !!!!Smile

Greetings,
[removed by request]
The Netherlands (Europe)

Quote Reply
Re: JPD's list of mods to write In reply to
Carol-

The rating mod is already done...it just hasn't been formalized yet. I do have the rating system running, but there were some fixes to Eliot's code that I had to make, and I can't remember them offhand. But maybe you could take a look into my latest auto thumbnail message and help me out, and I can try to make a formal MOD for ratings? Thanks.

Quote Reply
Re: JPD's list of mods to write In reply to
I'd be glad to help, but I don't know anything about what you're doing. I have no experience with this Perl mod at all, so I can't tell you what to do with it.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: JPD's list of mods to write In reply to
Hi Carol,

Well, looking at the code the ben originally posted and your multi-file upload mod, I don't see how it could be much different. I'll post a clarification in the long auto thumb thread, because I'm almost positive you can do those things. Thanks Wink

Quote Reply
Re: JPD's list of mods to write In reply to
I can do things that I am familiar with. When new things come along, I test them out first to find out how to work with them. When I don't have the ability to test things out, I cannot learn how to do them. I'm a hands-on person.

I do not have ImageMagick available to me. Therefore I cannot tell you how to work with it.



JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: JPD's list of mods to write In reply to
Hi JPD,

Well I understand your point, but I'm pretty sure all we have to do is to pass the ID# to the thumbnail.cgi script. And that would just go after $SAVE_DIRECTORY_PATH in the command line and before $filename. I'd be glad to test out any suggestions you have with my installation. The only hard part might be dealing with each file, but I'm sure the foreach statement would take care of it. Thanks.

Quote Reply
Re: JPD's list of mods to write In reply to
JPD,

I should have the "agreement page before signup" mod done in a day or two. Cross one off your list :)

AJ


AJ
Webmaster, TheFew.com
http://www.thefew.com
Semper Fi, Do or Die!
Quote Reply
Re: JPD's list of mods to write In reply to
Cool! Maybe someday I'll actually get to do that genealogy database!! Smile That's what I really want to work on.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: JPD's list of mods to write In reply to
I'd just like to say I would absolutely LOVE a rating mod with a Top # highest rated records. IP logging and/or cookies would be great for stopping cheaters. Thank you for helping us all with so many things. You are great!

Quote Reply
Re: JPD's list of mods to write In reply to
I have read through the threads and there was an inference to the rating/voting mod that there might be a working version out there - or at least almost completed; I am hoping to add this to my db.

Any direction would be appreciated.

Thanks,

Jim

Quote Reply
Re: JPD's list of mods to write In reply to
Try the following search link:

rate.cgi Eliot DBMAN

Regards,

Eliot Lee

Quote Reply
Re: JPD's list of mods to write In reply to
Hi JPD

Interesting to see your list. I've concentrated on Links 2.0 and haven't really gone very far with DBMan however I do know that code written for one can soon be adapted for the other.

I've recently gone down the road of writing Perl code to help a friend sort out, (amongst other things), password problems. Along the way was the requirement to generate new passwords for each link and to inform link owners of the update plus their new password. I presume that this may save you time with your 'import password' task.

If you want copy of any code I've written I would be only too pleased to pass it on to you.

George
Quote Reply
Re: JPD's list of mods to write In reply to
The "import password" thing is to convert data from another database into DBMan. Actually, I think that's already done.

Thanks for the offer, though.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: JPD's list of mods to write In reply to
I'm using a simple view/edit log file mod I wrote if anyone is interested...

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: JPD's list of mods to write In reply to
Top! Can I have one of those please!!


Quote Reply
Re: JPD's list of mods to write In reply to
Ok, here are the changes I made to DBMan to make a "View/Edit" "MOD".

I'm sure there are ways it can be improved, but for now it suits my needs perfectly.
Feel free to hack away, comment, suggest, etc...

One quick note, while I'm sure you should'nt have any problems, please back up your log file before testing, just to be safe.

Code:

##########################################################
## CHANGES TO HTML.PL ##
##########################################################
#
# Add the following SubRoutine for your version
# (either user-friendly or original) to the "Authentication"
# area (under html_admin_display will do fine)
#
# How you link to it is up to you. I put a simple link under
# the Admin section, eg:
# <a href="$db_script_link_url&view_log=1">View / Edit Log</a>
#
##########################################################

##########################################################
#
# For JPDeni's User Friendly HTML.PL
#


sub html_admin_view_log {
# --------------------------------------------------------
# Displays the LOG file in a TEXTAREA for modifying
#

$page_title = "Log File";
&html_page_top;

$submit_button = "Save Changes";
$reset_button = "Undo Changes";

# < -- Start page text -- >
print qq|<p><$font>

</font></p>|;
# < -- End page text -->

print qq|
<form action="$db_script_url" method="post">
<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">
<input type=hidden name="edit_log" value="1">
<div align="center">
<textarea name="adminlog" rows="10" cols="80">|;

open(LOG, "< $auth_log_file") or &cgierr("error in view_log. unable to open log file: $auth_log_file.\nReason: $!");
if ($db_use_flock) { flock(LOG, 1); }
while (<LOG>) {
print $_;
}
close (LOG);

print qq|</textarea>
<P><center><input type="submit" value="$submit_button"> <input type="reset" value="$reset_button"></center>
</form></div>
|;

&html_footer;
&html_page_bottom;
} # End of SUB

##########################################################
#
# For the original HTML.PL
#


sub html_admin_view_log {
# --------------------------------------------------------
# Displays the LOG file in a TEXTAREA for modifying
#


&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Log File.</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">

<form action="$db_script_url" method="post">
<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">
<input type=hidden name="edit_log" value="1">
<center>
<table border=1 bgcolor="#FFFFFF" cellpadding=5 cellspacing=3 width=85% align=center valign=top>
<tr><td colspan=2 bgcolor="$title_color">
<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR=white>
<b>$html_title: Log File</b>
</td></tr>
</table>
<table border=0 bgcolor="#FFFFFF" cellpadding=5 cellspacing=3 width=85% align=center valign=top>
<tr><td>
<p><center><$font_title>
<b>Log File</b></font></center>

<textarea name="adminlog" rows="10" cols="80">
|;

open(LOG, "< $auth_log_file") or &cgierr("error in view_log. unable to open log file: $auth_log_file.\nReason: $!");
if ($db_use_flock) { flock(LOG, 1); }
while (<LOG>) {
print $_;
}
close (LOG);

print qq|</textarea>
<P><center><input type="submit" value="Save Changes"> <input type="reset" value="Undo Changes"></center>
</form>
<P>|; &html_footer; print qq|
</td></tr>
</table>
</center>
</body>
</html>
|;
} # End of SUB


##########################################################
## CHANGES TO DB.CGI ##
##########################################################

##########################################################
#
# Add the following under the line:
# elsif ($in{'admin_display'}) { if ($per_admin) { &admin_display; } else { &html_unauth; } }
#


elsif ($in{'view_log'}) { if ($per_admin) { &html_admin_view_log; } else { &html_unauth; } }
elsif ($in{'edit_log'}) { if ($per_admin) { &edit_log; } else { &html_unauth; } }

##########################################################
#
# Add the following SubRoutine (can go anywhere, I put it down bottom)
#

#######################################
## Log Editting ##
#######################################

sub edit_log {
# --------------------------------------------------------
# Edits the log file. Logging is optional, if you don't
# want to log changes to the log, comment out the line:
# &auth_logging("modified log file") if ($auth_logging);
#


open(LOG, "> $auth_log_file");
if ($db_use_flock) {
flock(LOG, 2) or &cgierr("unable to get exclusive lock on $auth_log_file.\nReason: $!");
}
print LOG $in{'adminlog'};
close (LOG);

&auth_logging("modified log file") if ($auth_logging);

&html_admin_view_log;

} # End of SUB
Enjoy!

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: JPD's list of mods to write In reply to
Mark, could you write this up into a .txt file and submit a link to it in the Resource Center? It's hard to try to remember where threads are when folks are looking for a mod.

Looks good! Smile

JPD
http://www.jpdeni.com/dbman/