Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Topic rating mod ( search)
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 27 April 2008 :  10:36:51  Show Profile  Reply with Quote
Well, deleting the apostrophes
strSQL = strSQL & "FROM " & strActivePrefix & "TOPICS WHERE TOPIC_ID = " & iTopicID
or to
strSQL = strSQL & "FROM " & strActivePrefix & "TOPICS WHERE TOPIC_ID = " & iTopicID & ""
changed the error message to
quote:
Syntax error (missing operator) in query expression 'TOPIC_ID ='.


Outputting the strSQL to screen reveals that the iTopicID isn't being filled in:
quote:
SELECT TOPIC_RATING_TOTAL_COUNT, TOPIC_RATING_TOTAL FROM FORUM_TOPICS WHERE TOPIC_ID =


Back to forum.asp, where I found this line in the midst of the iTopic routine:
Topic_ID = arrTopicData(tTOPIC_ID, iTopic)

Now, assuming that iTopicID wasn't being configured, I changed my line to say

strSQL = strSQL & "FROM " & strActivePrefix & "TOPICS WHERE TOPIC_ID = " & TOPIC_ID


and the error went away. Now I get to fix the rest of the routines....<

Edited by - Carefree on 27 April 2008 12:59:02
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 27 April 2008 :  11:22:38  Show Profile  Reply with Quote
iTopicID isn't holding a value. Look at the function in the file your calling it from and make sure the variable in the parenthesis has a value
GetTopicRatingAvg( variable with a numeric value )
<

    _-/Cripto9t\-_
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 20 June 2009 :  00:18:46  Show Profile  Reply with Quote
Hi All,

I am about to repackage this for use with Snitz Forums 3.4.07 as I found a need for it, but a lot of it did not work from the original download package. I now have it working and will package it up if anyone is interested.

Cheers,

David Greening
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 20 June 2009 :  01:57:57  Show Profile  Visit Etymon's Homepage  Reply with Quote
Here! Here!
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 20 June 2009 :  07:30:32  Show Profile  Reply with Quote
Just doing the documentation and it will be available for release.

Cheers,

David Greening
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 20 June 2009 :  07:35:36  Show Profile  Visit Etymon's Homepage  Reply with Quote
Awesome! Thanks David!
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 20 June 2009 :  18:28:51  Show Profile  Reply with Quote
All done and online at: Topic Rating Mod v2

I have tested with a fresh install of Snitz Forum 3.4.07 using MS Access. The original was tested with MS SQL so there is no reason why it would not work with it. I would rate the install as a 7 with 10 being easy and 1 being hard. I have included both the Percentage and the Stars version in the download. I have 2 different readme files which are named accordingly.

I have also included modified base Snitz Forum 3.4.07 files for each of the Percentage and Stars releases. Always remember to backup all the files that you replace with a mod so you can roll back quick and easy. I have a couple of working sites at: Classic Motorcycling Australia and www.VNCommodore.com Support Site (shameful promotion of own sites)

Let us know how you went with installing and enjoy.

Cheers,

David Greening
Go to Top of Page

m_r
New Member

Belarus
68 Posts

Posted - 20 January 2010 :  14:12:32  Show Profile  Reply with Quote

I want some modifications
Make the stars under the title of the topic


And



How
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 20 January 2010 :  14:25:44  Show Profile  Visit AnonJr's Homepage  Reply with Quote
m_r, you don't need to ask your question in multiple places. You've asked in another thread - keep the discussion there please.
Go to Top of Page

m_r
New Member

Belarus
68 Posts

Posted - 20 January 2010 :  14:41:28  Show Profile  Reply with Quote
AnonJr ok
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 01 June 2013 :  11:42:58  Show Profile  Visit richfed's Homepage  Reply with Quote
That sounds like it might work ... however, I would like it to be applied to any post ... topic OR replies. Can you assist on that matter?

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07