Advertisement:

Author Topic: Post Ratings  (Read 116962 times)

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #60 on: December 02, 2009, 02:37:07 AM »
Great, and Thanks.  If you want to you can download english.zip here within this topic (unzip and open up english.xml) => http://www.simplemachines.org/community/index.php?topic=344748.msg2375091#msg2375091 and translate.

Really Appreciate this!

Cheers :)

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: Post Ratings
« Reply #61 on: December 02, 2009, 03:03:55 AM »
Ok.
Any text strings I can't translate. If I habe time I post the rows.
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #62 on: December 02, 2009, 03:05:44 AM »
Sure, that would be fine.

Thanks Again :)

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: Post Ratings
« Reply #63 on: December 02, 2009, 05:45:19 AM »
Doesn´t find this in the lang
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: Post Ratings
« Reply #64 on: December 02, 2009, 05:47:00 AM »
Doesn´t find this in the lang
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #65 on: December 02, 2009, 12:29:41 PM »
Wow, thanks I missed that one.  Ouch!

Just now fixed this and re-upped the entire mod with it pointing to:
Code: [Select]
$txt['remove_rating'] = 'Remove Your Rating';
Attached is the new english.xml file which has this lang string in there.

And Thanks Again! :)

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,524
  • Young and Foolish
    • SimplePortal
Re: Post Ratings
« Reply #66 on: December 02, 2009, 04:20:43 PM »
Idea and features look good. But I'm not sure why it required this much edits to SMF core, having a separate source file as well.
Former SMF Core Developer | My Mods | SimplePortal

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #67 on: December 02, 2009, 04:49:50 PM »
Thanks for your opinions just the same.

Cheers :)
« Last Edit: December 02, 2009, 11:43:55 PM by SoLoGHoST »

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #68 on: December 10, 2009, 11:44:46 PM »
Ok.
Any text strings I can't translate. If I habe time I post the rows.
Hello, did you ever get the chance to finish this translation?

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: Post Ratings
« Reply #69 on: December 11, 2009, 12:48:30 AM »
I think times which I today with the translation become finished. If I still which find announce I me once again. The last time gives to work it here much and then could I not so much on the laptop make.
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #70 on: December 11, 2009, 01:03:27 AM »
Wow, that was a Brain Twister, reading that post ;)  I think I follow you though.  Thanks for the quick response, and I'll wait patiently than.

Cheers :)

Offline SISPro

  • Jr. Member
  • **
  • Posts: 123
Re: Post Ratings
« Reply #71 on: December 12, 2009, 01:57:20 PM »
this mod installed and works from what i see but the only thing  is when i try to put this line in them my site comes up with

Template Parse Error!

Code: [Select]
104: // Present a canonical url for search engines to prevent duplicate content in their indices.
105: if (!empty($context['canonical_url']))
106: echo '
107: <link rel="canonical" href="', $context['canonical_url'], '" />';
108:
109: // The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
110: echo '
111: <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?rc2" />
112: <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc2" media="print" />';

113: <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc2" />

114: // Show all the relative links, such as help, search, contents, and the like.
115: echo '
116: <link rel="help" href="', $scripturl, '?action=help" />
117: <link rel="search" href="', $scripturl, '?action=search" />

Code: [Select]
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc2" />

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #72 on: December 13, 2009, 12:21:29 AM »
Wow, ok, will recheck the package for this.  Seems that it has been taken out of the echo statement. hmmm.  It should look like this instead:
Code: [Select]
echo
'<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc2" />';

Thanks :)

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #73 on: December 13, 2009, 12:27:59 AM »
Here's the operation:
Code: [Select]
<operation>
<search position="before"><![CDATA[<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc2" media="print" />]]></search>
<add><![CDATA[
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc2" />]]></add>
</operation>

As you can see this is fine.  So don't understand exactly what went wrong.  As it should've added the line directly after /> So it should look like this instead:
Code: [Select]
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?rc2" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc2" media="print" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/postratings.css?rc2" />';

Furthermore, I don't know why you'd want to try to put that line in it, as the Module package does this for you when you install it via Admin -> Browse Packages -> Download Packages (Upload a Package option in there at the bottom).

Cheers :)
« Last Edit: December 13, 2009, 12:31:12 AM by SoLoGHoST »

Offline SISPro

  • Jr. Member
  • **
  • Posts: 123
Re: Post Ratings
« Reply #74 on: December 13, 2009, 10:56:12 PM »
i did use the package manager but i changed themes and had to add that to the new one and that is why it was showing that i went to the mod link here and just copy it from the setting they have on this site when you do a manual edit

Offline pointalk

  • Jr. Member
  • **
  • Posts: 172
    • pointalk.com
Re: Post Ratings
« Reply #75 on: December 19, 2009, 05:43:46 AM »
Please compatible with smf1.1.8

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,035
    • Arantor on GitHub
Re: Post Ratings
« Reply #76 on: December 19, 2009, 05:44:55 AM »
Um, you really shouldn't be using 1.1.8, there are numerous vulnerabilities discovered and fixed since that release - 1.1.11 is the current 1.1.x version.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #77 on: December 19, 2009, 06:45:23 AM »
If I code this for 1.1.x versions, I will be focusing on 1.1.11 specifically and can't guarantee that it will work in any other SMF 1.1.x version.  Though, honestly, I do not see a need to make this compatible for 1.1.x.

If you want a 1.1.x version of this mod and are willing to pay for it, send me a PM Please!  This goes for everyone else who reads this post and wants it made compatible with SMF 1.1.11 and are willing to pay.  Once I get about 8 people interested in paying for this mod, I'll code it, offer a 1 year commitment to updates for FREE, and than place the URL within this topic or someplace else for you all to purchase.

DO NOT POST UP ANY MESSAGE IN HERE, PERSONAL MESSAGE TO ME IS ALL I ASK!

Thank You!
« Last Edit: December 19, 2009, 06:49:50 AM by SoLoGHoST »

Offline blokey

  • Jr. Member
  • **
  • Posts: 143
  • Gender: Male
Re: Post Ratings
« Reply #78 on: December 20, 2009, 11:20:22 AM »
why do i get thid it takes ober the top of the post
SMF Version 2.0 RC2     Server Info Apache version 2.0.63 PHP version 5.2.9 MySQL version 5.0.81-community Architecture x86_64 Operating system Linux

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Post Ratings
« Reply #79 on: December 20, 2009, 01:02:58 PM »
Must be a Theme related issue for that specific Theme you are using.  Switch to the Curve Theme and try again and let me know if you are still getting that display, k?