Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#198738 01/21/2003 11:24 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Name: Rate This Thread

Description: Allows your users to be able to rate a thread

Link: MultiHack File

Author: Philipp

Demo: https://www.ubbdev.com/db/cgi/ultimatebb.cgi

Requirement: UBB™ 6.2.1 - 6.4 vars_wordlets_mods


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Allen, I installed this, but when I rate a thread, it says "Taking you back to Forum 4"

Is there anyway to get it to go back to the topic, and maybe use the topics name, and not it's number?

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
possible, I'll look at it when I get back from my break™

tipsy


- Allen wavey
- What Drives You?
Joined: Jul 2002
Posts: 42
Member
Member
Offline
Joined: Jul 2002
Posts: 42
Hmmmmmm...tried adding it to my 6.5 board and hacking the four original files was no problem whatsoever.

I uploaded the four modified original files (public_forum_page.pl, public_topic_page.pl, ultimatebb.cgi, vars_wordlets_mods.cgi), the one new cgi file (ubb_rate_topic.cgi), the rating star GIFS to the UBB folder and I added the "thread_rating" folder (plus the recommended index.html) and properly chmoded all the files (cgi=755, vars=777, .pl=644 uploaded in ASCII and image GIFS uploaded in Binary and not chmoded)

Although I can see the new wordlets in the control panel, I can't see it on the board anyplace.

I looked at your Demo link.

https://www.ubbdev.com/db/cgi/ultimatebb.cgi

And I can't seem to see it there either.

So either I goofed up somewhere, I'm blind and can't see the modification or this doesn't work with 6.5 help

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
well mine installed fine on 6.5. Uploaded cleared cache and it showed up fine. Assuming you're hacking the board at http://www.ronaldreagan.com/cgi-bin/ultimatebb.cgi . All I can suggest is clearing the cache, and if that doesn't work, rehack and reupload public_forum_page.pl and public_topic_page.pl.

btw: I know this is a given but I've forgotten before. Make sure you cleared all the cache, not just the forum summary page, etc

Sponsored Links
Joined: Jul 2002
Posts: 42
Member
Member
Offline
Joined: Jul 2002
Posts: 42
Quote
quote:
Originally posted by Weird Al:
well mine installed fine on 6.5. Uploaded cleared cache and it showed up fine. Assuming you're hacking the board at http://www.ronaldreagan.com/cgi-bin/ultimatebb.cgi . All I can suggest is clearing the cache, and if that doesn't work, rehack and reupload public_forum_page.pl and public_topic_page.pl.

btw: I know this is a given but I've forgotten before. Make sure you cleared all the cache, not just the forum summary page, etc
Thanks Weird AL, I did clear my cache (twice) after I installed it...so I must have an error some place else. [Linked Image]

But since you said that you added it to your 6.5, that definitely helps narrow my search...thanks! thumbsup


Just out of curiousity can you tell me where the "Rate this Thread" is located in an actual post? [Linked Image]

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
right below the printer icon, all the way at the bottom. At least it would be in a working hack tipsy

Joined: Jul 2002
Posts: 42
Member
Member
Offline
Joined: Jul 2002
Posts: 42
Thanks again Weird Al!! laugh

Your input allowed me to narrow the source of the problem. laugh

I had use "MultiHack" to modify the files, but this time I simply hacked the files myself and this time it worked. [Linked Image]

Oh well, smiles & kudo's all the way around! laugh

Thanks buddy! thumbsup

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
well I see you got it to work, what was wrong with it?

btw: [Linked Image] cool

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
how did you do that? It didn't take me that long to type shocked

Sponsored Links
Joined: Jul 2002
Posts: 42
Member
Member
Offline
Joined: Jul 2002
Posts: 42
Quote
quote:
Originally posted by Weird Al:
well I see you got it to work, what was wrong with it?

btw: [Linked Image] cool
Not really sure to be honest. [Linked Image]

I used "MultiHack" to change the original files..this time I simply exported the modification file and instructions and did all the mods myself and it worked.../me shrugs [Linked Image]

Kind of cool board board you have their Weird Al...I may have to register. cool

Thanks again! thumbsup

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
thanks, but don't get too comfy with the hacks. Should be upgrading to 6.6 Beta any day now laugh

oh, btw: multihack is known for making mistakes. kinda like how a computer would want to take the shortest route, even though a human would see that it was covered in snow (analogies was never my strong suit)

Joined: Jul 2002
Posts: 42
Member
Member
Offline
Joined: Jul 2002
Posts: 42
Quote
quote:
Originally posted by Weird Al:
thanks, but don't get too comfy with the hacks. Should be upgrading to 6.6 Beta any day now laugh
Yeah, but the Reagan Foundation's license just expired and while I have no doubt that the Foundation will pay for the license renewal...I'm not sure (as their web master) that I want to reinstall all the custom hacks that I've added...unless A) the new UBB software is a significant leap forward...and B) that if the the new versions support the hacks that I've already added. [Linked Image]

As it seems right now...I'm adding custom hacks (only to see them added to the upgrade software), and while I understand this, I may have to take a break. [Linked Image]

Joined: May 2001
Posts: 55
Member
Member
Offline
Joined: May 2001
Posts: 55
problem with 6.3.1.1
Completely functional however, problem with 'online users' i dont remember if that was a hack also, but the column(or row rather) gets messed up

http://autostream.com/forum

Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
Hi,

I had the same problem of Finman with 6.5

I think the problem is with vars_wordlet_mods file because actions are working fine but nothing written....

Any ideas?

Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
and I did clear the cach.

Joined: Aug 2003
Posts: 71
Member
Member
Offline
Joined: Aug 2003
Posts: 71
I have the same problem too frown

I can't see the numbers of the rating Or the header of the column frown

Help Guyz =|

Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
Did you install the Mods Wordlet DevKit, and if so, are you sure you installed it correctly?

Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
Now it is working fine.

Thanks CTM smile

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
hehe, mebbe I should bold those instructions tipsy


- Allen wavey
- What Drives You?
Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
Quote
quote:
Originally posted by AllenAyres:
hehe, mebbe I should bold those instructions tipsy
[Linked Image]

Joined: May 2001
Posts: 55
Member
Member
Offline
Joined: May 2001
Posts: 55
and where would you suggest I look...

Quote
quote:
problem with 6.3.1.1
Completely functional however, problem with 'online users' i dont remember if that was a hack also, but the column(or row rather) gets messed up

http://autostream.com/forum

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
hmm, got a colspan problem in there related to pntf. quick fix would be to 'undock' the pntf until you can figure out the location for that particular table


- Allen wavey
- What Drives You?
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
anybody know if this works for 6.6?

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
It worked for me in our ezine forum here, even up to 6.7 I believe. You might need to adjust it here and there for it to fit, but it works smile


- Allen wavey
- What Drives You?
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Thats great to hear. smile I will install it later tonight.

Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
I see Tim got this working on 6.6.. Can anyone confirm this works on 6.7.1 before I go hacking away? smile


-GATOR

"Pain is temporary, Pride is forever"
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I've got it working on 6.7.1, but I can't remember if I changed anything.

Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
I already got it working on 6.6 as well. smile

Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
Hmm...

Can't locate /cgi/vars_rate.cgi at cgiultimatebb.cgi line 129.

I didn't seem to get this file on an export as I can't find it...

I tried to do a text export of this hack with multihack and it deleted not only my original files, but a directory where I've been keeping copies of every modified file in seperate directories for each hack, plus another directory where I have been a copy of what's on the server every time I add a hack. I don't know or understand how the **F** that happened, even when I made sure I had it set not to delete the output directory. The unfortunate thing now is that I have absolutely no backup copies of my original files and I don't know whether to cry or punch a whole in the wall. One thing is for sure, I will **never** use multihack on the same computer where I personally modify my own files again! Argh... mad

Can someone help me please before I decide to walk off the end of my fire escape? help

Thanks again...


-GATOR

"Pain is temporary, Pride is forever"
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
vars_rate.cgi? I've got no clue, I didn't have it and mine works fine

Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
Argh... I've got no backup files... Multihack deleted everything in three different directories... Please don't tell me I have to start over...

Do I need to rename ubb_rate_topic.cgi?


-GATOR

"Pain is temporary, Pride is forever"
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
Originally posted by GATOR420:

Argh... I've got no backup files... Multihack deleted everything in three different directories... Please don't tell me I have to start over...
This is why you always keep a backup copy of the zip.

*walks off quietly*

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Quote
Originally posted by Ian Spence:
This is why you always keep a backup copy of the zip.

*walks off quietly*
Ian, you're a bad bad man...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
'Eh, I had copies of everything in two different locations, plus a seperate location for files specifically modified in each hack. Thanks to Multihack I have nothing. Even if I had a zipped copy, I'm sure multihack would have had it's way with it too. So to say I took precautions in making backups would be an understatement. Fortunately, I found I do have a deleted copy of my directories about one hack back I can restore.

However, if you review the hack. for public_topic_page.pl, it says find

$print_topic_wording


and replace with


$vars_wordlets_rate{rate_topic}






However, the only reference I can find to what I'm supposed to be looking for is

my $print_topic_wording = ($vars_display{PrintTopic} ne "no"
? qq( - $vars_wordlets{print_topic_leader})
: "" );

Are you sure you don't have to do anything special for 6.7.1? smile


-GATOR

"Pain is temporary, Pride is forever"
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
look harder, towards the bottom

Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
The reference is there. I found what you posted there and what I was supposed to find as well. Instead of replacing I added below. Just so you know.

Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
OK, I just restored everything to about where I had it and tried again. Exact same error...

There was a compilation error while loading the UBB.classic libraries and data files:

Can't locate /cgi/vars_rate.cgi at cgiultimatebb.cgi line 129.


Please make sure that you uploaded the CGI and Variables files to the proper directory, permissions are set properly on the files, and that paths in the control panel are set correctly.

It seems I am getting the same errors as Multihack...

There was another post on another older thread with the same error message as me on an older version. It's here:

https://www.ubbdev.com/ubb/ultimatebb.php/ubb/get_topic/f/20/t/000167/p/5

By Bo$$

Any other possibilities? I do have several other hacks installed.. Maybe there is a conflict?


-GATOR

"Pain is temporary, Pride is forever"
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Gator, remove "rate" from the line beginning

Code
foreach my $file (qw(
around line 140 of ultimatebb.cgi

Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
Good gravy man, you are a friggin' genius!

I can only hope this will help others who may have the same problem. smile

Thanks again for your help and patience.


-GATOR

"Pain is temporary, Pride is forever"
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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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)