Rate That Topic

Started by slinouille, August 20, 2008, 02:57:44 PM

Previous topic - Next topic

KahneFan

Quote from: Blue Dream on December 10, 2008, 06:19:48 AM
I don't think I'll have enough time to update this. Still looking for someone to take over the mod.
Quote from: cleanfiles on January 04, 2009, 11:18:00 PM
guess i will have to keep plodding along by myself, no support for this mod.......
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Rasyr

First of all, I wan to say that I think that this is a very cool Mod!! And it installed fine and without a single bit of trouble.

I did have one issue though -- If I set it to allow  for changing the rating, if a person selects "---" from the drop list, it give back an error message about missing a parameter or something. Anybody have any ideas on how to make be a "remove my rating" choice? Or even just a change to a zero.

Also, Has anybody created an SSI function for pulling the top 10 rated threads and displaying them in some fashion?

Thanks in advance!!

ke4obt

ok, on my test site, I'm running SMF 1.1.7 with a number of mods.
I installed Ratings with a little bit of needed manual installation. Now, when I click to go to the rating log, I get "An Error Has Occurred!  Undefined ID input." Also, when I try to change my settings in the Admin, it takes me directly to the main page of the forum - the forum index not the main page of the site.  The address bar shows what should be the address for the action/sub-action. EXCEPT, it shows them in lower case, not upper.
I've double checked the files that are edited and can't find anything missing. Since I've added maybe 2 or 3 mods after  I installed ratings, I wanted to make sure they didn't mess around with the code.
I have no clue where to start looking or what to look for. So, if anyone can help me out, I would greatly appreciate it.

Thanks in advance,
Flip
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

ke4obt

I did some more "testing" and research into my problem. The errors I'm getting in my Admin error log are all the same. I made a text file to make it a little easier to keep track of.
Here's what my errors are:

When in admin and click save for settings, get this error twice:

Quote
ke4obt   Today at 08:26:26 

http://hamradioadvisors.net/test2/index.php?action=RateAdmin;sa=defaultsettings;save 
8: Undefined index: num_chat
File: /html/hraregular/test2/Themes/default/BoardIndex.template.php
Line: 466


==================================

When in admin, trying to go to board settings, get this error twice:


ke4obt   Today at 08:29:17 

http://hamradioadvisors.net/test2/index.php?action=RateAdmin;sa=boardlist 
8: Undefined index: num_chat
File: /html/hraregular/test2/Themes/default/BoardIndex.template.php
Line: 466



=================================

When trying to go to rate log from board:

1 - takes you to screen that shows: An Error Has Occurred! Undefined ID input.

2 - when category is collapsed/expanded, get these errors twice:

ke4obt   Today at 08:30:48 

http://hamradioadvisors.net/test2/index.php?action=collapse;c=1;sa=expand 
8: Undefined index: num_chat
File: /html/hraregular/test2/Themes/default/BoardIndex.template.php
Line: 466


   ke4obt   Today at 08:30:40 

http://hamradioadvisors.net/test2/index.php?action=collapse;c=1;sa=collapse
8: Undefined index: num_chat
File: /html/hraregular/test2/Themes/default/BoardIndex.template.php
Line: 466


The code that is on lines 455 through 482 in boardindex.template.php is
// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td rowspan="3" class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

echo ')';
}



This is the ONLY thing giving me an error. I'm trying to figure out why the file it says it has the error with is the boardindex.template.php. I have no clue where Rate that topic has the call for that file, if it even does. Or why it would.
So, Please help!!!!    :'(

Thanks,
The stumped ones - Flip & Mickey
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

M-DVD

Quote from: ke4obt on January 30, 2009, 08:46:49 AM
I did some more "testing" and research into my problem. The errors I'm getting in my Admin error log are all the same. I made a text file to make it a little easier to keep track of.
Here's what my errors are:

When in admin and click save for settings, get this error twice:

Did you have installed a MOD to chat?

If you have not already, try delete this:

, ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat']


ke4obt

M-DVD,
I have Flash Chat Integration Mod installed. I removed that section of the line and that stopped the errors from showing up in the forum error log. Also, it removed the listing from the users on line section in the stats section on the front page.
However, it STILL won't let me edit the settings, view the rate log or anything!! The only thing that changed is that I don't have to see my error log filling up. :)
For the moment, until I get it all worked out, this will have to work.
If I don't get it worked out so that Rate that Topic works correctly, I'll have to dump it - much as I hate to.

Thanks,
Flip
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

ke4obt

disregard my last post.
I downloaded the RateAdmin.php that Blue Dream had edited for somebody else back on page 2 or so. Uploaded that to my server, checked to see if it worked- it did. Reverted my edits for the boardindex.template.php and uploaded that too.
Now, it's all working without any errors!! YIPPEEEEEE!!!!!!!!!
I'll keep an eye on it for a couple of days to make sure that it doesn't mess up again.

Thanks again for the help, guess it just was a little something I missed in my edits - imagine that :)

Thanks,
Flip
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

[SiNaN]

cleanfiles:

I try to provide support as much as I can but I was lately On Hiatus. Do you still require assistance? If yes, what does work on your other themes, but broken in your custom theme?

Rasyr:

Thanks for the nice comments. I know that this mod is wide open for development but I don't have time for that. Hopefully slinouille will take over the mod soon.
Former SMF Core Developer | My Mods | SimplePortal

TechPrince

I am back :P, installed this mod, edited display.template.php but getting nothing. Topic Ratings are enabled from the Settings, my member group is not excluded.

// Rate that Topic
echo '
<td width="20%">';
if(!empty($context['can_rate']))
{
echo '
<div class="smalltext" style="float:right;">
<form action="', $scripturl, '?action=rate" method="post" name="topicRating" accept-charset="', $context['character_set'], '">
', $context['can_rate'] == 1 ? $txt['rate_topicAgain'] : $txt['rate_topicNew'], '
<select name="rate">
<option value="">---</option>
<option value="1"', $context['user_rating'] == 1 ? 'selected="selected"' : '', '>1</option>
<option value="2"', $context['user_rating'] == 2 ? 'selected="selected"' : '', '>2</option>
<option value="3"', $context['user_rating'] == 3 ? 'selected="selected"' : '', '>3</option>
<option value="4"', $context['user_rating'] == 4 ? 'selected="selected"' : '', '>4</option>
<option value="5"', $context['user_rating'] == 5 ? 'selected="selected"' : '', '>5</option>
</select>
<input type="submit" name="rateTopic" value="', $txt['rate_topicGo'], '" />
<input type="hidden" name="topic" value="', $context['current_topic'], '" />
<input type="hidden" name="board" value="', $context['current_board'], '" />
</form>
</div>';
}
echo '</td>';


This is the code added in Musiconica Theme.

Output :


TechPrince

OOPS i didnt enabled that board :P Problem Solved :)

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

shanksta13

Few questions.  First off, looks great I just installed and it went through with out a glitch.

However, the star rating does not appear in the "unread posts" list.  Also, I do not see the star rating on the thread topic bar once you are actually in the thread (like it appears in the screenshot).  Would it be possible to get these features worked out? 

I can provide screenshots if needed.

slinouille

#192
I suggest it's for the version of the mod for SMF2 ?
QuoteHowever, the star rating does not appear in the "unread posts" list
I think I can add it in a next release.

Quote
Also, I do not see the star rating on the thread topic bar once you are actually in the thread (like it appears in the screenshot).
I can provide screenshots if needed.
Yes please ! I don't see what you mean (sorry for english)
Visit VAG-Technique.fr
Take a look to my mods

shanksta13

Quote from: slinouille on February 11, 2009, 12:51:58 PM
I suggest it's for the version of the mod for SMF2 ?
QuoteHowever, the star rating does not appear in the "unread posts" list
I think I can add it in a next release.

Quote
Also, I do not see the star rating on the thread topic bar once you are actually in the thread (like it appears in the screenshot).
I can provide screenshots if needed.
Yes please ! I don't see what you mean (sorry for english)

I'm running SMF 2.0 RC 1 If that was your question.  Here are some screenshots to help.  Also, I noticed in my message index that there is a line break between the title of the topic and the star images.  They should be in-line right?  I included a screenshot for that too (example 1)

KahneFan

The only settings that I see anywhere in my admin (RC1) are to enable ratings and to enable ratings on index (under modifications sections). I don't see any place to set permissions and for some reason my regular members can not vote. How do/can I allow my members to vote?
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

slinouille

#195
@shanksta13: okay I see what you want ... good ideas ... I'll add them soom ... thanks  ;)

@KahneFan: ratethattopic has to be enabled by board.
Visit VAG-Technique.fr
Take a look to my mods

KahneFan

I just looked in the board I've been testing in and it shows to be enabled.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

shanksta13

Actually, now that I look at it, I don't see the permissions anywhere and I'm having the same issue.

slinouille

Ok guys ... it seems I have badly manage my package versionning on this mod ... really sorry !
I've noticed that on my own site, this mod was not "working" as if I install the package from this site on a fresh install of SMF  :o ... oops ... !
I'll put in a few moment a corrected package.

For your permission problem, if you are in the board setting and permission, you'll see that the checkbox is checked. You have to save it if you want the mod to be enabled in your board. Indeed I don't why I put "status" checked on this chechbox  :-[

Soon corrected

Visit VAG-Technique.fr
Take a look to my mods

slinouille

Ok new release 0.2.3 is available.

I really hope you like it  :P
Visit VAG-Technique.fr
Take a look to my mods

Advertisement: