News:

Wondering if this will always be free?  See why free is better.

Main Menu

Topic Ratings

Started by Oldiesmann, January 20, 2005, 01:59:43 PM

Previous topic - Next topic

Aristos

Hi,
Thanks a lot for your contributions - it was what I needed on my forum-in-development.

Still - in first instance it did not work, since the there was only a Modification.english.php.
Allthough I'm just a beginning PHP-programmer I managed to make it work. (My board is only in Dutch). Therefore I translated the modifications file.
Simple question: would you like my Modifications.dutch.php, so you can incorporate it in your contribution? If yes, tell me where to send it to.

Second question: I would very much like, that my subscribers can rate at the moment the write an answer (so directly in the reply-screen). Would that be an idea to add?

Love to hear from you,
Aristos (France)
[email protected]

Martin-22

Hi, I downloaded the package and during installation it claims to be corrupt.

The package you tried to upload either is not a valid package or has become corrupted.

Flying Drupalist


Carlos11pr

It seems that this topic is just for questions. :(

Does anybody here that could give us a light? :)

My question:

Is there a plan to show how much votes a topic had (e.g. in a tooltip)?

It'll be nice to see "Current Topic Rating ("n" user rated):" instead just "Current Topic Rating:"

Thanks.

Eliana Tamerin

Be patient, Carlos11pr. TrueSatan hasn't replied yet to anybody, he's probably working to get the PrettyURLs sorted out.

Just a question for the developer, are the votes totalled, or is it just calculated on the most recent and/or highest votes? It'd be nice to see the mod use partial or half stars to show an average rating for the topic.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

TrueSatan

@ ES23

You may have your forum language settings other than is needed...please go to ACP>Server Settings and set to English not English utf8

@ asdas2

Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

http://www.simplemachines.org/community/index.php?topic=34526.0

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

@ Aristos

If you would please be so good as to post your Modifications.dutch.php file as an attachment here the mod author will be able to consider its inclusion in any new version of the mod...and in the mean time it will be available for others to use should they so desire.

@ Martin-22

Please try downloading again with a different browser and see if that fixes the problem.

@ Miraploy

For such custom coding work you may need to offer payment...somebody might be willing to do it FOC but your chances don't look good.

@ Carlos11pr

Like Miraploy you may need to offer payment for custom coding.

@ Eliana Tamerin

Thanks! This mod isn't mine or the Pretty URL developers so now that we have identified the problems and posted that information we have done all we can...it must be down to the mod author (who is very busy and is one of the people working to produce v 2.0 of SMF) to look at what we have posted and review his mod. Like you I and the Pretty URL developer are onlookers who have just tried to help where we can.

Diven

People who know everything about this mod, could you please check this topic?
Sorry for my bad English, I'm from Belgium

TrueSatan

As with other posters if you require custom coding to be done, as opposed to support for a mod as is, you may very well need to pay for the work...it is possible that somebody might undertake it FOC but the more complex the existing mod and the more extensive or demanding the additional work the more likely it is that payment would be required to have it done.

Flying Drupalist

Quote from: TrueSatan on August 29, 2007, 04:16:32 AM
@ Miraploy
For such custom coding work you may need to offer payment...somebody might be willing to do it FOC but your chances don't look good.

To be honest it doesn't seem all that hard, I'll tackle it myself when I have time.

ES23

Quote from: perplexed on April 22, 2006, 11:56:43 AM
seems to work on my testboard but I get the following in the forum error log:

8: Undefined index: is_rated
File: /home/mysite/public_html/testforum/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 413

My error is quite similar to perplexed and I haven't seem to find any solutions to that.

8: Undefined index: is_rated
File: /var/www/html/forums/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 423

Any solutions yet??

Kisa

Hi!
First, thank you for the creation of this mod!
I had the version 1.1.3 of SMF and the theme lightning-dk and the mod doesn't work for me... Could you help please?

TrueSatan

Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

http://www.simplemachines.org/community/index.php?topic=34526.0

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

Mirror of the last link:

ES23

I've installed this mod manually...

catchpen

Here's my problem

The mod works when I'm viewing the default theme BUT not in my preferred Mesh TP theme.  The checkbox shows while in Mesh TP theme but nothing shows in the forum.

I tried the .mod directions to upload Ratingsdb.php and run it  manually once but it gave me 3 SQL errors. Should I run it again? Because it says not to.

I also tried to go thru and manually install in the Display.template.php but I couldn't even find the first line it says to search for...
<search for>
      $context['sub_template'] = WIRELESS_PROTOCOL . '_display';
   else
      loadTemplate('Display');
</search for>  //??
It's not even in my default display template!

I also tried Daniel15's package parser site and it gives me errors.

I read this whole post and other people are having the same problems, can someone please help? I think i can say I tried everything here.

Thanks.
C.P.

TrueSatan

You need to manually install the mod into your custom theme...the links (including Package Parser) I gave in reply #391 above may help, try to replicate the changes made to the SMF Default theme by the mod into your custom theme. Problems editing that theme might be best addressed by the theme designer on the topic for the theme.

catchpen

Woah wasn't expecting a response so early in the a.m., thanks.  I'll look it over again later today and post what I find if anything.     &gt;:(

It seems like it would almost be easier to weed out the errors in the mod the package parser - http://modparser.dev.dansoftaustralia.net/ shows and let it spit out exactly where it needs to go. 

Is this the mod packages fault or the package parser?

TrueSatan

Neither are at fault as such...mods aren't required to work with the Package Parser but almost all do do so. Some older mods (such as this) were made before the Package Parser existed and have been kept in maintenance mode rather than updated all that much so they are quite likely not to work all that well with it...still worth trying it though.

catchpen

Finally after a headache got it to work in the mesh TP theme. 

The .mod file sez to insert
';
if ($context['show_rating'])
{
echo '
<td class="windowbg' , $topic['is_sticky'] ? '3' : '', '" valign="middle" width="8%" align="center">';
if ($topic['rating']['empty'] == 1)
echo 'N/A';
else
{
for ($i = 0; $i < $topic['rating']['whole']; $i++)
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
//!!! Should have a half star!
if (!empty($topic['rating']['half']))
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
}
echo '
</td>';
}
echo '


after

<td class="windowbg' , $topic['is_sticky'] ? '3' : '' , '" valign="middle" width="4%" align="center">
', $topic['views'], '
</td>


But really it had to be added after this:
// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

echo '
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
</td>
<td class="windowbg2" valign="middle" width="14%">
', $topic['first_post']['member']['link'], '
</td>
<td valign="middle" width="4%" align="center">
', $topic['replies'], '
</td>
<td valign="middle" width="4%" align="center">
', $topic['views'], '
</td>
';


Everything else goes where the .mod file says to...on Mesh Tp theme that is

asdas2

Install Actions
Installations actions for "Topic Ratings":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 
:(


i m using smf 1.1.4
www.chillparadise.com

for all desi people .... get everything u ever wanted.... log in to view hidden stuff.

TrueSatan

Just follow standard practise for adding mods that don't formally support a new version (change the 1.1.2 to the last version a particular mod could run on.)

Put ;emulate_version=1.1.3 at the end of the Package Manager URL

Advertisement: