USANet Creations
Users Support and Discussion Areas

NOTE: Always state the software package you have
when asking questions so you will get the correct answer,
as it does make a big difference in the answers you'll get!

| Main Site Home Page | Forums Home Page |

Subject: "welcome newest member script will this work?"   Previous Topic | Next Topic
nonePrinter-friendly copy    
Conferences MakeBid Auction users addons and fixes Topic #167
Reading page 1 of 1 pages
jeremey
unregistered user
Feb-02-04, 01:05 PM (CST)
 
"welcome newest member script will this work?"
 
   Can some one look at this and tell me if it is right, and will it work?


############################################
# Welcome Newest Meber
# What it does...
# simply welcome the newest Member anywhere on your script

################# Step -1- #################
# paste these lines to your config-part

# Directory where the newmember.dat file will
# be stored
$config{'newestmember'} = 'nm';

################# Step -2- #################
# Find these lines in &proreg:
# mkdir("$config{'basepath'}$config{'regdir'}", 0777) unless (-d "$config{'basepath'}$config{'regdir'}");
# and paste this code after it


mkdir("$config{'basepath'}$config{'newestmember'}", 0777) unless (-d "$config{'basepath'}$config{'newestmember'}");

################# Step -3- #################
# scroll down to
# close NEWREG
# and paste this code after it

&oops('We were unable to write to the user directory.') unless (open NEWMEMBER, ">$config{'basepath'}$config{'newestmember'}/newmember.dat");
print NEWMEMBER "$form{'ALIAS'}\n$form{'EMAIL'}";
close NEWMEMBER;

################# Step -4- #################
# put this sub somewhere to your script
# the end will work best :-)

#-#############################################
# Sub: Welcome Message
# This will give out a welcome message to
# the newest member; call it everywhere you
# like with &welcome_msg

sub welcome_msg {
return '' unless -r "$config{'basepath'}$config{'newestmember'}/newmember.dat" and -T "$config{'basepath'}$config{'newestmember'}/newmember.dat";
open FILE, "$config{'basepath'}$config{'newestmember'}/newmember.dat";
my ($alias,$email) = <FILE>;
close FILE;
chomp ($alias,$email);
print "$config{'sitename'} welcomes its newest member <b><a href=mailto:$email>$alias</a><b>";
}



  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Richardadmin click here to view user rating
Charter Member
1987 posts, 10 feedbacks, 19 points
Feb-02-04, 01:47 PM (CST)
Click to view user profileClick to add this user to your buddy list  
2. "RE%3A welcome newest member script will this work%3F"
 
   NO tihs one will not work with MakeBid auctions, find attached the welcome newest member script for MakeBid Auctions.

Attachments
http://www.usanetcreations.com/dcforum/User_files/401e9b1e2c67b365.txt

  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
jeremey
unregistered user
Feb-03-04, 02:20 AM (CST)
 
3. "RE: RE%3A welcome newest member script will this work%3F"
 
   thanks Richard can't say enough about this place!!


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
nigel hatchett
unregistered user
May-08-04, 11:06 AM (CST)
 
4. "RE: RE%3A welcome newest member script will this work%3F"
 
   can't find this

######################
# Finally in your dispcat that you are using
# find this
######################

opendir THEDIR, "$config{'regdir'}";
readdir THEDIR;
readdir THEDIR;
my @allfiles = readdir THEDIR;
closedir THEDIR;
my $numusers = @allfiles;
print "<br><font face=arial size=1 color=000000><b>Registered Members:</b>(<font color=ff0000>$numusers</font>)</FONT></FONT>";
print "<p>$config{'categoryfont'}<font face=arial size=1><b>Current Auctions:</b>(<font color=ff0000>$totalfiles</font>)</FONT>";

### And replace the bottom line with these 2

color=ff0000>$totalfiles</font>)</FONT></p><br>";
&welcome_msg;

### So it looks like this:

opendir THEDIR, "$config{'regdir'}";
readdir THEDIR;
readdir THEDIR;
my @allfiles = readdir THEDIR;
closedir THEDIR;
my $numusers = @allfiles;
print "<br><font face=arial size=1 color=000000><b>Registered Members:</b>(<font color=ff0000>$numusers</font>)</FONT></FONT>";
print "<p>$config{'categoryfont'}<font face=arial size=1><b>Current Auctions:</b>(<font color=ff0000>$totalfiles</font>)</FONT></p><br>";
&welcome_msg;


##That's It


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
richardadmin
unregistered user
May-08-04, 11:20 AM (CST)
 
5. "RE: RE%3A welcome newest member script will this work%3F"
 
   LAST EDITED ON May-08-04 AT 11:27 AM (GMT) by Richard (admin)
 
This is there. if you still using the defualt main page display it's in your dispcat8.pl file or the dispcatX.pl file your using. the X is the number of the main page dispcat file your using like the installed defualt of dispcat8.pl file:


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
knightrider
Member since Feb-25-09
51 posts, Rate this user
Feb-25-09, 03:54 PM (CST)
Click to add this user to your buddy list  
6. "RE: RE%3A welcome newest member script will this work%3F"
 
   > NO tihs one will not work with MakeBid auctions, find attached the
>welcome newest member script for MakeBid Auctions.

I have the newest version of MakeBid Deluxe, I like this add-on and went to install it, i use the dispcat9.pl, when I went to alter it for this script nothing matches, since this was a old thread is there a new script that will work?


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Richardadmin click here to view user rating
Charter Member
1987 posts, 10 feedbacks, 19 points
Feb-25-09, 07:48 PM (CST)
Click to view user profileClick to add this user to your buddy list  
7. "RE: RE%3A welcome newest member script will this work%3F"
 
   It is posted in these forums some where but below is the link to the instructions that where posted

http://www.usanetcreations.com/dcforum/User_files/43627167329b59ab.txt


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote


Conferences | Topics | Previous Topic | Next Topic
Rate this topic Rate this topic