Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
I just installed News Fader v2.4 on 5.47. I ran into a problem.

Display Newest Member

In the installation instructions is says to add the following to Ultimate.cgi

#############################################
if ($NEWS_UDEF ne "") {
$the_page = "";
&ReadNews;
} else {
$the_page = "";
}
if ($NEWS_REG ne "") {
if ($DisplayMemberTotal ne "true") {
&GetMemberListArray;
my $TotalMembers = @members;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
} else {
if ($LastReg eq "") {
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
}
}
#############################################

and a whole lot more in addition to that.

Well, I added the code and it did display the HTML message but No Newest Member was being displayed.

SO i got to looking around, and here is what I came up with:

This is the original v5.47 #Check Display Option Code:
#############################################
## check other display options--

if ($DisplayMemberTotal eq "true") {
open (MEMTOTAL, "$MembersPath/membertotal.cgi");
$TotalMembers = ;
close (MEMTOTAL);
$MemberLine = "Registered Members: $TotalMembers";
}
#############################################

So I replaced the code and made it look this:

#############################################
if ($DisplayMemberTotal eq "true") {
open (MEMTOTAL, "$MembersPath/membertotal.cgi");
$TotalMembers = ;
close (MEMTOTAL);
## Welcome Newest Member...
&GetMemberListArray;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);

$MemberLine = "Registered Members: $TotalMembers";
}
#############################################

The additional code is from the "Welcome Newest User Hack" which is nearly the same as the Fader hack Section that was added.

GO figure :-)

I think the authors of the News Fader already had this installed when they wrote the News Fader Hack instructions, but Im not sure. All I know at this point is, that its now working just the way it used to on 5.45c

I guess the recommendation here is, to add to the requirments section of the News Fader hack that (at least with v5.47 maybe others), "The Display Newest User Hack" Needs to be Installed, or just add the code to the Fader hack itself.

In any case, maybe Im out to lunch here and or have missed something major, but It's now working and I'm really happy :-)

Allen said I should post this in this section, so here it is. Maybe you all can figure out what did wrong or if the hack needs a tweek for v5.47.

Thanks.

G_B

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)