Advertisement:

Author Topic: Rate That Topic  (Read 150510 times)

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Rate That Topic
« Reply #60 on: August 25, 2008, 12:01:42 PM »
I meant, can you show me codes to figure that out?

If it doesn't have Display.template.php, it should be working.
Former SMF Core Developer | My Mods | SimplePortal

Offline nwobhm

  • Jr. Member
  • **
  • Posts: 197
  • Gender: Male
Re: Rate That Topic
« Reply #61 on: August 25, 2008, 04:45:30 PM »
I meant, can you show me codes to figure that out?

If it doesn't have Display.template.php, it should be working.
Problem solved. Manual installation worked and the code which I couldn't  replace, I just ignored tose parts. Mod worked fine after all :D

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Rate That Topic
« Reply #62 on: August 25, 2008, 04:57:15 PM »
Okay, glad you get it working. :)
Former SMF Core Developer | My Mods | SimplePortal

Offline Nibogo

  • SMF Hero
  • ******
  • Posts: 6,661
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Rate That Topic
« Reply #63 on: August 25, 2008, 09:13:21 PM »
Awesome mod , really nice work, thanks sinan

Offline TechPrince

  • Jr. Member
  • **
  • Posts: 101
  • Gender: Male
Re: Rate That Topic
« Reply #64 on: August 26, 2008, 01:20:24 AM »
Here are the scripts

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Rate That Topic
« Reply #65 on: August 26, 2008, 11:47:26 AM »
NIBOGO:

Thanks.

TechPrince:

Your MessageIndex.template.php file is attached. But I need Display.template.php not BoardIndex.template.php.
Former SMF Core Developer | My Mods | SimplePortal

tk2012

  • Guest
Re: Rate That Topic
« Reply #66 on: August 26, 2008, 12:23:12 PM »
Yeah, this would be great for v2.0 b3.1

I've been waiting for a mod that would rate only the starting topic post instead of every reply like the thumbs up mod.  I like this way much much more!  Great job.  Just makes me wish I wasn't going live to v2.0 b3.1 in two weeks!  :(

Offline TechPrince

  • Jr. Member
  • **
  • Posts: 101
  • Gender: Male
Re: Rate That Topic
« Reply #67 on: August 26, 2008, 05:59:11 PM »
OOPS, here is the file :

Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: Rate That Topic
« Reply #68 on: August 28, 2008, 12:12:31 PM »
I have a problem:

I can´t speak english very well.
Has the problem solved someone?
THX

Offline locau

  • Semi-Newbie
  • *
  • Posts: 40
Re: Rate That Topic
« Reply #69 on: August 28, 2008, 03:55:18 PM »
I have a problem:

I can´t speak english very well.
Has the problem solved someone?
THX

Check first post pls

Offline locau

  • Semi-Newbie
  • *
  • Posts: 40
Re: Rate That Topic
« Reply #70 on: August 28, 2008, 03:58:26 PM »
hello there [SiNaN]

I'm using "overview" theme and it doesn't have any Display.template.php included so it's supost to use the default.

I've installed with sucess this mod and it works with default template but not with mine, what can causing this?

I've checked manual install and i don't see any code to insert on my theme files, what i'm missing here pls ?


-----

Nevermind i got this working by itself, didn't do any change... no clue :(
« Last Edit: August 28, 2008, 04:27:10 PM by locau »

Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: Rate That Topic
« Reply #71 on: August 28, 2008, 05:06:49 PM »
Sorry, I am lama :D
I will try...

Offline digger

  • Sr. Member
  • ****
  • Posts: 731
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Rate That Topic
« Reply #72 on: August 28, 2008, 09:03:28 PM »
Can you make option for don't show stars on Message Index where message rating is empty.

Offline Nibogo

  • SMF Hero
  • ******
  • Posts: 6,661
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Rate That Topic
« Reply #73 on: August 28, 2008, 10:04:19 PM »
Can you make option for don't show stars on Message Index where message rating is empty.

Easy Way:

You can delete or change your "tr0.png" in your images dir

PHP Way:

Search in MessageIndex.template:

FIND:
Quote
if(!empty($context['show_rate']) && !$topic['is_locked'] && !empty($modSettings['rate_showMessageIndex']) && ($modSettings['rate_showMessageIndex'] == 2 || ($modSettings['rate_showMessageIndex'] == 1 && !$topic['is_sticky'])))
REPLACE:
Quote
   if(!empty($context['show_rate']) && !$topic['is_locked'] && !empty($modSettings['rate_showMessageIndex']) && ($modSettings['rate_showMessageIndex'] == 2 || ($modSettings['rate_showMessageIndex'] == 1 && !$topic['is_sticky'])) && (!($topic['rating_average'] == 0)))


Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: Rate That Topic
« Reply #74 on: August 29, 2008, 03:07:29 AM »
Nice work, thanks [SiNaN]   ;D

CZ translation Modifications.czech-utf8.php THERE

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Rate That Topic
« Reply #75 on: August 29, 2008, 03:12:11 PM »
TechPrince:

Sorry for delay. What is the theme you are using? Can you provide a link?

MaxiPes:

Thanks MaxiPes. I'll add it ASAP.
Former SMF Core Developer | My Mods | SimplePortal

Offline jeri

  • Semi-Newbie
  • *
  • Posts: 54
Re: Rate That Topic
« Reply #76 on: August 30, 2008, 03:32:47 AM »
I installed this mod and got an error at the top of the forum. I have uninstalled and deleted the mod but its still there. This is what it says:

// Topic Rating Mod $txt['rate_adminTitle'] = 'Topic Rating Admin'; $txt['rate_adminHelp'] = 'This panel gives you possibilty to change the Topic Rating settings.'; $txt['rate_adminDesc'] = 'Topic Rating control panel.'; $txt['rate_defaultTitle'] = 'Default Settings'; $txt['rate_defaultDesc'] = 'Panel which allows you to change default settings for the mod.'; $txt['rate_boardsTitle'] = 'Board Settings'; $txt['rate_boardsDesc'] = 'Panel which allows you to change board specific settings for the mod.'; $txt['rate_enabled'] = 'Enable Topic Rating?'; $txt['rate_againType'] = 'Rate again type:'; $txt['rate_againTypeOp'] = 'Disable|Change Rating|Rate Again'; $txt['rate_againWait'] = 'Rate again wait time:'; $txt['rate_showMessageIndex'] = 'Topic Ratings on Message Index?'; $txt['rate_showMessageIndexOp'] = 'Disable|Exclude Sticky|Enable'; $txt['rate_excludedGroups'] = 'Excluded Groups:'; $txt['rate_reset'] = 'Reset Topic Ratings'; $txt['rate_resetConfirm'] = 'Are you sure to reset topic ratings?'; $txt['rate_resetSuccess'] = 'All topic ratings are reset.'; $txt['rate_resetFail'] = 'An Error Occured: Topic Rating could not be reset.'; $txt['rate_boardsName'] = 'Name'; $txt['rate_boardsModify'] = 'Modify'; $txt['rate_typeDefault'] = 'Default'; $txt['rate_typeLocal'] = 'Local'; $txt['rate_qtDisable'] = 'Disable'; $txt['rate_qtEnable'] = 'Enable'; $txt['rate_qtDefault'] = 'Set Default'; $txt['rate_qtLocal'] = 'Set Local'; $txt['rate_qtGo'] = 'Go!'; $txt['rate_qtConfirm'] = 'Are you sure?'; $txt['rate_undefined_type'] = 'Undefined type input.'; $txt['rate_undefined_id'] = 'Undefined ID input.'; $txt['rate_undefined_board'] = 'Undefined board input.'; $txt['rate_missing_info'] = 'There are missing info need to be passed.'; $txt['rate_not_allowed'] = 'You are not allowed to rate.'; $txt['rate_not_in_range'] = 'Your rating is not in range.'; $txt['rate_average'] = 'Average Rating'; $txt['rate_topicNew'] = 'Rate Topic:'; $txt['rate_topicAgain'] = 'Change your rate:'; $txt['rate_topicGo'] = 'Go!'; $txt['rate_logTitle'] = 'Rating Log'; $txt['rate_logRate'] = 'Rating'; $txt['rate_logTime'] = 'Time'; // Topic Rating Mod

My forum is www.megansmadams.com/forum


Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Rate That Topic
« Reply #77 on: August 30, 2008, 05:30:01 AM »
Open

../Themes/default/languages/Modifications.english.php

Find and Cut:

Code: [Select]
?>
Paste at the very end of the file.
Former SMF Core Developer | My Mods | SimplePortal

Offline TechPrince

  • Jr. Member
  • **
  • Posts: 101
  • Gender: Male
Re: Rate That Topic
« Reply #78 on: August 30, 2008, 07:28:55 AM »
I am using Musiconica Theme

Offline Rifugio

  • Semi-Newbie
  • *
  • Posts: 17
Re: Rate That Topic
« Reply #79 on: August 30, 2008, 06:59:29 PM »
I've got to say SiNaN that this is a wonderful and very well thought out Mod - I've changed your stars slightly on my site by making the non rated stars black and white for further contrast which looks neat in the default scheme.

Quick question if I may - currently the system does not allow users to rate locked topics is there a way round this, because it would be very nice if my members could rate these topics as well?

Fantastic work!