Author |
Topic |
big9erfan
Average Member
540 Posts |
|
rick7165
Senior Member
USA
1094 Posts |
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 17 August 2001 : 15:33:14
|
To make this work with 3.3 They changed the topic.asp file so you need to add the red:
<%'############### Member Rating Mod ################' iReplyRating = GetMemberRatingAvg( rsReplies("R_AUTHOR") ) if iReplyRating > 0 Then %> <br> <br> <% if strUseExtendedProfile then %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="pop_profile.asp?mode=display&id=<% =rsReplies("R_AUTHOR") %>"> <% else %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="JavaScript:openWindow3('pop_profile.asp?mode=display&id=<% =rsReplies("R_AUTHOR") %>')"> <% end if %> Member Rated:<br><img src="<%=GetRatingPicture( iReplyRating )%>" height="9" width="53" border="0"></small></font></a> <br> <% end if %> <%'############### End Member Rating Mod ################'%>
<%'############### Member Rating Mod ################' iReplyRating = GetMemberRatingAvg( rsTopic("MEMBER_ID") ) if iReplyRating > 0 Then %> <br> <br> <% if strUseExtendedProfile then %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="pop_profile.asp?mode=display&id=<% =rsTopic("MEMBER_ID") %>"> <% else %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="JavaScript:openWindow3('pop_profile.asp?mode=display&id=<% =rsTopic("MEMBER_ID") %>')"> <% end if %> Member Rated:<br><img src="<%=GetRatingPicture( iReplyRating )%>" height="9" width="53" border="0"></small></font></a> <br> <% end if %> <%'############### End Member Rating Mod ################'%>
But I think something else is missing because I can not Rate anyone.. must be in the pop_profile.asp
Test Site: http://www.eastpasco.com running on Huw's Code 3.3.09 SQL 2000
Edited by - Rick7165 on 17 August 2001 15:34:23 |
|
|
big9erfan
Average Member
540 Posts |
Posted - 17 August 2001 : 15:48:14
|
the code for rating someone is in pop_profile and you cannot rate someone more than 1x and you cannot rate yourself
Click on a profile and you'll see a dropdown box on the far right and a Sumbit button.
http://www.ugfl.net/forums |
|
|
big9erfan
Average Member
540 Posts |
Posted - 17 August 2001 : 15:52:27
|
I have tons of mods installed thus the reason I said NOT to just copy my files over yours. They were supplied for examples only.
http://www.ugfl.net/forums |
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 17 August 2001 : 16:03:33
|
Still not working.. I can rate someone then it doesn't show up... Funny thing is after rating someone it got to a page and not back to the Profile page.
Test Site: http://www.eastpasco.com running on Huw's Code 3.3.09 SQL 2000 |
|
|
big9erfan
Average Member
540 Posts |
Posted - 17 August 2001 : 16:09:56
|
you sure you added ALL the code properly into pop_profile?
There are ( from memory ) 3 or 4 places to add/change code.
As I had said before, I didn't try this in 3.3, but the changes should not be too different.
Also, what page did it go to after the submit?
http://www.ugfl.net/forums
Edited by - Big9erFan on 17 August 2001 16:10:37 |
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 17 August 2001 : 16:59:52
|
Hey.. A note... I don't care, but some on here might... There is some languge in the pop_profile.asp they might not like. Line 1212
Test Site: http://www.eastpasco.com running on Huw's Code 3.3.09 SQL 2000 |
|
|
big9erfan
Average Member
540 Posts |
Posted - 17 August 2001 : 17:09:42
|
whoops
That was for testing and forgot to make it more user friendly.
it's been fixed. http://www.ugfl.net/forums
Edited by - Big9erFan on 17 August 2001 17:15:35 |
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 17 August 2001 : 17:22:44
|
Works with 3.3 after you do these changes in red in the topic.asp file:
<%'############### Member Rating Mod ################' iReplyRating = GetMemberRatingAvg( rsReplies("R_AUTHOR") ) if iReplyRating > 0 Then %> <br> <br> <% if strUseExtendedProfile then %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="pop_profile.asp?mode=display&id=<% =rsReplies("R_AUTHOR") %>"> <% else %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="JavaScript:openWindow3('pop_profile.asp?mode=display&id=<% =rsReplies("R_AUTHOR") %>')"> <% end if %> Member Rated:<br><img src<%=GetRatingPicture( iReplyRating )%>" height="9" width="53" border="0"></small></font></a> <br> <% end if %> <%'############### End Member Rating Mod ################'%>
<%'############### Member Rating Mod ################' iReplyRating = GetMemberRatingAvg( rsTopic("MEMBER_ID") ) if iReplyRating > 0 Then %> <br> <br> <% if strUseExtendedProfile then %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="pop_profile.asp?mode=display&id=<% =rsTopic("MEMBER_ID") %>"> <% else %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="JavaScript:openWindow3('pop_profile.asp?mode=display&id=<% =rsTopic("MEMBER_ID") %>')"> <% end if %> Member Rated:<br><img src="<%=GetRatingPicture( iReplyRating )%>" height="9" width="53" border="0"></small></font></a> <br> <% end if %> <%'############### End Member Rating Mod ################'%>
Now for Huwr's Mod Forum code you need to also do this "blue" in the topic.asp file:
<%'############### Member Rating Mod ################' iReplyRating = GetMemberRatingAvg( rsReplies("R_AUTHOR") ) if iReplyRating > 0 Then %> <br> <br> <% if strUseExtendedProfile then %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="pop_profile.asp?mode=display&id=<% =rsReplies("R_AUTHOR") %>"> <% else %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="JavaScript:openWindow3('pop_profile.asp?mode=display&id=<% =rsReplies("R_AUTHOR") %>')"> <% end if %> Member Rated:<br><img src="<%=strImageURL %><%=GetRatingPicture( iReplyRating )%>" height="9" width="53" border="0"></small></font></a> <br> <% end if %> <%'############### End Member Rating Mod ################'%>
<%'############### Member Rating Mod ################' iReplyRating = GetMemberRatingAvg( rsTopic("MEMBER_ID") ) if iReplyRating > 0 Then %> <br> <br> <% if strUseExtendedProfile then %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="pop_profile.asp?mode=display&id=<% =rsTopic("MEMBER_ID") %>"> <% else %> <font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><a href="JavaScript:openWindow3('pop_profile.asp?mode=display&id=<% =rsTopic("MEMBER_ID") %>')"> <% end if %> Member Rated:<br><img src="<%=strImageURL %><%=GetRatingPicture( iReplyRating )%>" height="9" width="53" border="0"></small></font></a> <br> <% end if %> <%'############### End Member Rating Mod ################'%>
Also for Huwr's you need to do this "blue" in pop_profile.asp
<%'################### Member Rating Mod #####################'%> <tr> <td bgColor="<% =strPopUpTableColor %>" align=right nowrap valign=top><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Member Rated: </font></b></td> <% iReplyRating = GetMemberRatingAvg( rs("MEMBER_ID") ) if iReplyRating > 0 Then %> <td bgColor="<% =strPopUpTableColor %>"><img src="<%=strImageURL %><%=GetRatingPicture( iReplyRating )%>" height="9" width="53" border="0"><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small> (Votes: <%=GetMemberTotalRatingsCount( rs("MEMBER_ID") )%> )</small></font></td> <%else%> <td bgColor="<% =strPopUpTableColor %>" align=right nowrap valign=top><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Not Available</font></b></td> <%end if%> </tr>
<tr> <td bgColor="<% =strPopUpTableColor %>" align=right nowrap valign=top><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Member Since: </font></b></td> <td bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =ChkDate(rs("M_DATE")) %> </font></td> </tr> <%'################### End Member Rating Mod #####################'%>
Test Site: http://www.eastpasco.com running on Huw's Code 3.3.09 SQL 2000
Edited by - Rick7165 on 17 August 2001 17:26:47
Edited by - Rick7165 on 17 August 2001 17:27:52 |
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 17 August 2001 : 17:39:31
|
You might want to fix this also in pop_profile.asp... the "Not Available" is all the way to the right... Change to left marked in Red.
<%'################### Member Rating Mod #####################'%> <tr> <td bgColor="<% =strPopUpTableColor %>" align=right nowrap valign=top><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Member Rated: </font></b></td> <% iReplyRating = GetMemberRatingAvg( rs("MEMBER_ID") ) if iReplyRating > 0 Then %> <td bgColor="<% =strPopUpTableColor %>"><img src="<%=strImageURL %><%=GetRatingPicture( iReplyRating )%>" height="9" width="53" border="0"><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small> (Votes: <%=GetMemberTotalRatingsCount( rs("MEMBER_ID") )%> )</small></font></td> <%else%> <td bgColor="<% =strPopUpTableColor %>" align=left nowrap valign=top><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Not Available</font></b></td> <%end if%> </tr>
<tr> <td bgColor="<% =strPopUpTableColor %>" align=right nowrap valign=top><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Member Since: </font></b></td> <td bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =ChkDate(rs("M_DATE")) %> </font></td> </tr> <%'################### End Member Rating Mod #####################'%>
Test Site: http://www.eastpasco.com running on Huw's Code 3.3.09 SQL 2000 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 August 2001 : 20:20:50
|
yeah, I saw the profanity too, I left it, I thought it was great but thats the nature of my being and my forum is kind of ruthless too at times.
as for the align right, I fixed that too and forgot to mention that to ya big9erfan...
Dayve |
|
|
Raichelle
Junior Member
370 Posts |
Posted - 17 August 2001 : 22:03:09
|
nice mod i downloaded the one on the mod witout code forum i don't know if both version are the same but umm it only show only the person who was rated. so is there a code to add for members to click to vote for other members or better yet when someone click on that link a little pop up window open for you to vote for them instead of going to there profile or whatever i think the little pop up window will work fine when someone click on the link from the topic page to vote for a member
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 August 2001 : 22:51:06
|
I think big9erfan was considering a v2 to this which could include something like this.
Dayve |
|
|
bjlt
Senior Member
1144 Posts |
Posted - 18 August 2001 : 02:11:25
|
Haven't tried it yet. I have a question: for how long one can not vote another user for a second time? does this stored in the db? Is it possible to make it valid for x days/month, then one can vote it again?
e.g. i vote member x as 4, later 3 month later, i'd like to change it to 5, the total votes should not be changed when I change my rate to him.
maybe it's not worth doing this, but I think as time being, one may change his idea and there should be a way to reflect the change.
this is useful when using the mod to rate other things, e.g. to rate a restaurant. the restaurants may renovate, hire new chefs, change managers, etc. there should be a way to let the user express their new ideas to the new changes.
there's a ranking system in the link manager, I wonder how it works, compares with this member rating mod.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 18 August 2001 : 10:38:27
|
the voters id is stored in a database but I agree, maybe some administrative features can come out in the next release that allows members to vote again in say 1 month incremets (monthly). As it stands right now, I like the fact that the voter is stored in the database. I wish the poll mod was similar because I have people clearing their cookies all the time to vote again (I know that is silly).
If this mod becomes quite popular, I can see it becoming expanded. does anyone know of any administrative features that the UBB version of this may have?
Dayve |
|
|
Topic |
|