Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Making progress!

I can get the "Add News" screen.

BUT....
I enter text in the box.....and click "add"....

and i get ANOTHER blank screen!

Sponsored Links
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Fixed it. Missed a "CP" [Linked Image]

Thanks!

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
NBAustin hehe...hm here your last chance before you'll better try an update

#
##find in cpanel3.cgi:
#

if ($action eq "news") {
&get_cookie;
$User_name = $UserName;
$Pass = $Password;
&VerifyAdmin($UserName, $Password);
if ($Proceed eq "true") {
&NewsFader;
}
}

#
## and replace with:
#

if ($action eq "news") {
&get_cookie; #retrieves all current cookies

if ($cookie{UserNameCP}) {
$UserName = "$cookie{UserNameCP}";
$Password = "$cookie{PasswordCP}";
$User_name = $UserName;
$Pass = $Password;
&VerifyAdmin($UserName, $Password);

if ($Proceed eq "true") {
&NewsFader;
}
}
}

#
## done
#

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Works fine now. Didn't need the last fix you offered. Thank you for your patience and help!

Now.....
We need to make the box taller (or whatever needs to be done) to handle 2 lines of text! If you go too long, it gets cut off, and only partially shows a tip of the 2nd line's text.



demo
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
try in Ultimate.cgi:

FDRboxHgt = 50; or 45?

and

50>
Sponsored Links
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Thank you.

I'll play around with that.

5.39 doesn't suck!
I just have so many hacks, I can't upgrade. I have extra text fields and truncation crap for news article posting, and I have to comply with copyright laws.

I tried an upgrade a while back and none of my stuff worked.

Thanks again for your patience and help [aa]!

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
I wish we could edit our posts here.

Is there a way we can fit more text on the one line? It seems the box can accomodate a longer text line.

Joined: May 2001
Posts: 7
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 7
Yeah, I read over and over again about this rant of the news fader and it all seems cool but just exactly where do I get it??? Should have told that a long time ago eh?

Joined: Mar 2001
Posts: 43
Member
Member
Offline
Joined: Mar 2001
Posts: 43
I installed the hack and everything works perfectly. Except when the userdefined news finishes the hack stops and I would get "Error on Page" message below.

It doesn't want to loop! help please..


Like a phoenix rising from the ashes..
Joined: Mar 2001
Posts: 43
Member
Member
Offline
Joined: Mar 2001
Posts: 43
sorry forgot to add my URL.. here it is:

http://www.demna.org:81/~barsa/cgi-bin/Ultimate.cgi


Like a phoenix rising from the ashes..
Sponsored Links
Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
Make sure you don't end your custom news with a ,

Joined: Mar 2001
Posts: 43
Member
Member
Offline
Joined: Mar 2001
Posts: 43
yeah am sure my news doesn't inclue a "," but when I add an entry the script adds it automatically if I inserted for instance "testing testing" the script will save it as: "testing testing","",


Like a phoenix rising from the ashes..
Joined: Jun 2000
Posts: 59
Member
Member
Offline
Joined: Jun 2000
Posts: 59
You have to make sure the last line doesn't have a comma, the script inserts it and we never got around to fixing it.


I do not offer support by EMail or ICQ, please post your question at UBBDev....
Joined: Mar 2001
Posts: 43
Member
Member
Offline
Joined: Mar 2001
Posts: 43
Thanks man!! yeaah FINALLY it worked!.. I didnt know that I have to "manually" delete the last comma in the userdefined field! this bug should have been noted in the installation readme file!

Thanks again!


Like a phoenix rising from the ashes..
Joined: Feb 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 4
The newscript works beautifully (2.5) in 5.47e, except for the welcome our newest user, message.
Fixed by adding to the else statement as shown below.

In the Ultimate.cgi file:
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);
}
}

##
# Replace with :
##

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 "") {
&GetMemberListArray;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
}
}

[ May 29, 2001 02:33 AM: Message edited by: dynomite ]

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Can someone tell me what this hack does please?

Page 3 of 3 1 2 3

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
Posts: 70
Joined: January 2007
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
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)