Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#38318 10/05/2000 6:05 PM
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Just posted the "rate this topic" hack for UBB.

Download | Demo

Philipp


------------------
Philipp Esselbach
http://www.ntcompatible.com

Sponsored Links
#38319 10/06/2000 8:00 AM
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Fixed a security issue in rate.cgi. Please download the ZIP again.

Sorry,
Philipp

#38320 10/07/2000 8:15 AM
Joined: Mar 2000
Posts: 63
Member
Member
Offline
Joined: Mar 2000
Posts: 63
Great hack, Thanks Philipp. One thing though, to get it to work in NT/IIS, you have to add the following before the required files line:

#If you are running UBB on IIS,
#you may need to add the following line
#if so, just remove the "#" sign before the print line below
#print "HTTP/1.0 200 OKn";

print ("Content-type: text/htmlnn");

eval {

($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX / or Windows /
($0 =~ m,(.*)\[^\]+,) && unshift (@INC, "$1"); # Get the script location: Windows

#substitute all require files here for the file

Also add a closing bracket to last line.

Cheers

#38321 10/07/2000 11:28 AM
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Thanks spiffy. The hack is already compatible with IIS [Linked Image].

eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1");
($0 =~ m,(.*)\[^\]+,) && unshift (@INC, "$1");


require "UltBB.setup";
require "ubb_library.pl";
require "Styles.file";
};

print "Content-type: text/htmlnn";
.....

Philipp

------------------
Philipp Esselbach
http://www.ntcompatible.com

#38322 10/08/2000 9:11 AM
Joined: Mar 2000
Posts: 63
Member
Member
Offline
Joined: Mar 2000
Posts: 63
Cheers Philip. I had to comment out a few lines in ubb_library which was returning the message to registered members that their (valid) username was not in the database.

Also do you know how to modify it so that it takes us back to the same forum page rather than to the rate page. Great Hack!

--

my $ProfileNumber = "";
FINDNUMBER: foreach $line(@memberslist) {
if ($line =~ m/^$GetNameClean|!!|/) {
($MatchName, $ProfileNumber) = split(/|!!|/, $line);
chomp($ProfileNumber);
last FINDNUMBER;
}
# else {
# &StandardHTML("Sorry, The record for this username is not in our database.");
# exit;
# }
}

Sponsored Links
#38323 10/08/2000 12:38 PM
Joined: Sep 2000
Posts: 3
Junior Member
Junior Member
Offline
Joined: Sep 2000
Posts: 3
Dear Sir ,,

I have problem with rate topic ,,

the problem is ..when i click to rate a topic there is blank page i don't know what happend but there is no out put ...

what can i do to solve it

Regards

#38324 10/09/2000 6:25 AM
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Code
quote:</font><HR>Also do you know how to modify it so that it takes us back to the same forum page rather than to the rate page. Great Hack!<HR></BLOCKQUOTE>

Yes. Change the follow code:

Quote
code:

to

Code
code:

quote:

Here a debug version of rate.cgi. What is your output with this version?
#38325 10/09/2000 7:23 AM
Joined: Oct 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 1
Lo guys.

I install the hack, and it works fine. But only in private forum it doesn't work?. Is this correct?.

I see rating on page private forum only in topic view page a see now stars.?

#38326 10/09/2000 7:55 AM
Joined: Sep 2000
Posts: 5
Member
Member
Offline
Joined: Sep 2000
Posts: 5
hi Philipp,

Best Hack i've been waiting for it [Linked Image]

Just one question : is it possible to add a function for select a specific forum by CP ?


I know i'm abuse [Linked Image]

Thanks



------------------
Newbie From Paris - ckforum.fr.fm

#38327 10/09/2000 8:26 AM
Joined: Oct 2000
Posts: 807
Member
Member
Offline
Joined: Oct 2000
Posts: 807
what do you mean?
ive got a hack to rate a forum but are you tlking about making the rate feature show up only in specific forum threads?

------------------
-= DFT =-
...................
I don mean dis in a disrespectful way//
But colombine happens in the ghetto happens every day//
Uncle L

Sponsored Links
#38328 10/09/2000 10:45 AM
Joined: Oct 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 1
But,
When you delete the topic but unable to delete the correlate rate
file.

EX:
Please help me!

When you delete the topic "000012.cgi" and "000012.htm", but
unable to delete the correlate rate file "rate000012.file".

Can you help me?

------------------
I love UBB!

#38329 10/10/2000 2:00 AM
Joined: Sep 2000
Posts: 5
Member
Member
Offline
Joined: Sep 2000
Posts: 5
hi Jigga-Master,

I've got the rate forum's hack too (but i don't use it). I want right capacity to select only in specific forum threads by the CP (for example [Linked Image] ).

Voilà


------------------
Newbie From Paris - ckforum.fr.fm

#38330 10/10/2000 3:37 PM
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Quote
quote:
I fix this in one of the next updates.

Quote
quote:
Added in "Rate this topic" v1.1

------------------
Philipp Esselbach
http://www.ntcompatible.com

#38331 10/10/2000 3:38 PM
Joined: Aug 2000
Posts: 7
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 7
Yes I would prefer it if this hack could be enabled on specific forums. Also, what is to prevent someone from rating a topic multiple times?

#38332 10/11/2000 10:43 PM
Joined: Oct 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 1
How do you get it to work in PRIVATE FORUMS? I can get it to right to the private forum dir, but for somereason, nothing shows up. I think it is because of the messed up folder names (like kju5j43) that the private section creates is causing it.

Any solutions?

#38333 10/17/2000 5:52 AM
Joined: Sep 2000
Posts: 5
Member
Member
Offline
Joined: Sep 2000
Posts: 5
Same problem like "loveubb"


Quote
quote:
...

------------------
Newbie From Paris - ckforum.fr.fm

#38334 10/21/2000 9:56 PM
Joined: Oct 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 2
How about people posting multiple votes? Or restricting it so that only registered users can vote. ... can we expect these?

azkar

#38335 10/23/2000 2:01 PM
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Just posted Rate this topic 2.0

New in 2.0:
- IP Logging to prevent multiple votes
- Delete topic delete also the ratefile

------------------
Philipp Esselbach
http://www.ntcompatible.com

#38336 10/23/2000 2:17 PM
Joined: Jul 2000
Posts: 1,349
Ell Offline
Member
Member
Offline
Joined: Jul 2000
Posts: 1,349
I've seen this mod in action (not seen the code tho). Here's a thought: How about changing the mod so that you submit your vote when you reply to the topic? (And if it's tracked, your vote could be removed from the total if you delete that post) That way, you know who's voted, and that they've only done it once...

#38337 11/06/2000 8:15 AM
Joined: Oct 2000
Posts: 17
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 17
your link to the zip is incorrect. please fix? would really like the v2.1 of this hack.

------------------
this is my witty .sig


this is my witty .sig
#38338 11/13/2000 10:10 AM
Joined: Oct 2000
Posts: 17
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 17
any fix for getting a black cell in the rate column when viewing with netscape, and no votes having been cast?

for an example, peep this .

------------------
this is my witty .sig


this is my witty .sig
#38339 11/15/2000 11:50 PM
Joined: Mar 2000
Posts: 143
Member
Member
Offline
Joined: Mar 2000
Posts: 143
Yes, update the link please. I would like this hack. [Linked Image]




#38340 11/17/2000 10:11 AM
Joined: Nov 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 1
Quote
quote:
I put a 1x1 pixel transparent spacer gif into the rate cell so that if no data is passed (there's no rating) then in Netscape it'll read the image in the cell and use the standard background color. Hope that helps...

Last change on forumdisplay.cgi:


$threadinfo[3]


$ratestar

$TheDate $FormatTime
#38341 11/17/2000 10:42 AM
Joined: Sep 2000
Posts: 37
Member
Member
Offline
Joined: Sep 2000
Posts: 37
Its easier than that. Look for the hack code that sets rate = " ";

change to

rate = "& nbsp;";

Remove the space between the & and the nbsp in the real code.

#38342 01/25/2001 7:43 AM
Joined: Jan 2001
Posts: 22
Member
Member
Offline
Joined: Jan 2001
Posts: 22
Philipp: both download links are dead links
And your demo doesn't have the hack installed. I saw a working demo on the poetry page..

Anybody have the 2.1 version available?

Etienne

#38343 01/26/2001 7:03 AM
Joined: Jan 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 3
Hello...

I have installed RateThisTopic hack version 2.2, and it all looks fine. But the minut I press GO! I get at 500 Internal Server Error with the rate.cgi file.
Why ????

I have installed it on Apache server with perl 5, and I have tried and tried to do all the things in the readme file: Type in the UBB-cgi path and turing Flock on/off.
Nothing helps.

I very much a UBB hack newbie, so please help me [Linked Image]

This message has been edited by pingboy on January 26, 2001 at 06:33 AM

#38344 01/27/2001 4:41 PM
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Quote
quote:
Scriptkeeper.de has the latest version available
http://www.scriptkeeper.de/Ultimate_Bulletin_Board/UBB_Hacks/Hacks_fuer_die_lizensierte_Version/

Quote
quote:
Try the follow:

Replace

if ($ubbcgi eq "") {
use FindBin qw($Bin);
use lib "$Bin/../lib";
$ubbcgi=$Bin;
}

require "$ubbcgi/UltBB.setup";
require "$ubbcgi/ubb_library.pl";
require "$ubbcgi/Styles.file";

with

eval {

# Get the script location: UNIX / or Windows /
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1");
# Get the script location: Windows
($0 =~ m,(.*)\[^\]+,) && unshift (@INC, "$1");

require "UltBB.setup";
require "ubb_library.pl";
require "Styles.file";

};

#38345 01/28/2001 8:19 AM
Joined: Jan 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 3
Thanks...

But it still won't work... I'm starting over again.

I'll get back with more info later.

#38346 01/29/2001 6:30 AM
Joined: Jan 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 3
IT WORKS

Finally it works... it was as simple as it could have been. All I had to do was to remove the -w in the #!/usr/bin/perl command, and then it worked.

#38347 05/26/2001 8:35 AM
Joined: May 2001
Posts: 2
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 2
can't get download..
popup window require username and password..

what account? i want download it smile

#38348 05/26/2001 7:06 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Well he must have broken the link just get the hack from SpAwN's Database

#38349 05/29/2001 9:47 AM
Joined: May 2001
Posts: 2
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 2
Thank ya smile

#38350 05/30/2001 4:36 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
No problem.

#38351 07/24/2001 9:51 AM
Joined: Jun 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 13
**bump** any updated links?


KoolBear
#38352 07/31/2001 4:51 PM
Joined: May 2001
Posts: 2
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 2
I know this is old, but could someone repost this??

Thanks ...

Matt.

#38353 08/01/2001 2:57 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
What do you want Re-posted?

#38354 08/01/2001 11:00 PM
Joined: Nov 2000
Posts: 68
Member
Member
Offline
Joined: Nov 2000
Posts: 68

#38355 08/03/2001 1:10 AM
Joined: Aug 2001
Posts: 2
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 2
how come SpAwN's Database is password protected?

how do we get in?

#38356 08/05/2001 9:40 AM
Joined: Nov 2000
Posts: 68
Member
Member
Offline
Joined: Nov 2000
Posts: 68
Spawn's site is a little stuffed at the moment, and spawn isn't around to fix it frown

But if there's anything you need from there, just let me know and I can probably get it for ya wink

#38357 08/05/2001 2:32 PM
Joined: Nov 2000
Posts: 22
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 22
I need the lastest News Fader. My is not working right and I need to check out what I did wrong.

Page 1 of 2 1 2

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)