UBB.Dev
Posted By: joebagodonuts Ugly Perl - 09/29/2000 11:33 PM
IRT my Troubleshoot Greetings to Newest Member thread and Zanardi's reply, I've made the below attempt...needless to say it doesn't work, maybe someone can help me out.
1. Created LastMember.cgi file
Code
code:
test is the last username registered.
2. In my Ultimate.cgi, created the print statement (sub-routine?) of
Quote
quote:
3. Encorporated the above in my $Memberline as so
Quote
quote:
OK, it's no secret that I'm the creatively acquired type, above is my attempt, now need yalls help, ACK!
JR

------------------
Webmaster
http://www.izmirhigh.com/index.shtml
http://home.flash.net/~murgnam/
Posted By: Mark Badolato Re: Ugly Perl - 09/29/2000 11:48 PM
Let's start with a definition of "It doesn't work". Specifically what happens, and what are you doing when it happens.

2nd, make sure your open command is successful. add:

or die "Can't open: $!"

to it

--mark
Posted By: joebagodonuts Re: Ugly Perl - 09/30/2000 12:12 AM
Mark,
1. Greetings from a fellow DBMAN user.
2. LastMember.cgi is now
Code
code:
3. What I want to do is display the newest member registered on my FW board. I'd tried BOTH the Total-Welcome and Statistik mod's with no luck. So, my aforementioned Trouble Greetings to newest member post. Zanardi suggested I use a workaround and
Quote
quote:
4. So here I am, [Linked Image]
JR
Posted By: zanardi Re: Ugly Perl - 09/30/2000 4:58 AM
open(USER,">$MembersDir/latestmember.cgi") or &StandardHTML("Couldn't open latestmember.cgi for writing");
print USER "$UserName";
close(USER);

You'll want that code in one of the subs that actually adds the user. The in Ultimate.cgi

open(USER,">$MembersDir/latestmember.cgi") or &StandardHTML("Couldn't open latestmember.cgi");
@user = ;
close(USER);
chomp($user[0]);

$latestmember = qq(Welcome our newest member $user[0]);

Then user your variable $latestmember where you want to view that.

------------------
My Freeware Board
Posted By: joebagodonuts Re: Ugly Perl - 09/30/2000 4:45 PM
Still having prob's guys ...
1. ubbmisc.cgi|sub GetBio is now
Code
code:
2. Ultimate.cgi|sub Intro below &GetTime is now
Code
code:
3. Note I changed $Members"Dir" to $Members"Path". 'Course you know the deal with pipes displaying here on the UBB. I commented the lines 'cause I'm now exactly sure whether I can simply delete them?
4. Still nothing printing on the board tho'. What should happen is it print the latest member "test", with hopes that next time someone registers it will write over test with that username. What am I STILL doing wrong, ugh.
JR

This message has been edited by joebagodonuts on September 30, 2000 at 12:14 PM
Posted By: joebagodonuts Re: Ugly Perl - 10/04/2000 12:51 AM
Mark/Zanardi,
Come back -- still need yr help, ACK!
JR
Posted By: zanardi Re: Ugly Perl - 10/10/2000 1:46 AM
Do you have the memberslist? I know another way. I used it on my statics hack. It's just like the one at UBBH.com

[edit]
Why are you in the sub GetBio? I don't think that is the sub you are looking for. In the form where the user fills out there name they want, look for this line:



What ever the value it, copy it, and use the search option on your text editor to find that line near the top. It SHOULD be also be a sub. I hope any of that makes sense

If you have ICQ go ahead and message me[/edit]

------------------
My Site

My Board
Posted By: joebagodonuts Re: Ugly Perl - 10/10/2000 2:43 AM
I moved
Code
code:
from sub GetBio to sub RegSubmit (the value you ref'd) in ubbmisc.cgi and yes I have Memberlist.
I just tried to ICQ u, but dunno if this newfangled 2000 version is quite working right, shocked
Over
JR
© UBB.Developers