Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Strawberry
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Reply to topic    Forum Index » Strawberry Feedback View previous topic
View next topic
Strawberry
Author Message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
lexa wrote:
3. You use Default template from 1.1.1? You use cache?




I don't understand the plugin. This function shows the rating, right?

Code:
function rating($what = ''){

global $tpl;



   if ($what == 'check'){

      return ($_COOKIE['cnpostrating'.$tpl['post']['id']] ? true : false);

   } else {

      return @round(($tpl['post']['rating'] / $tpl['post']['votes']), 0);

   }

}




But $tpl['post']['rating'] and $tpl['post']['votes'] are empty. Where in the plugin do you give them the values?
Wed Jul 26, 2006 11:17 pm View user's profile Send private message
Guest








Please login to hide the ads.

lexa
Creator of CuteNews.RU


Joined: 02 Oct 2005
Posts: 90
Location: St.-Petersburg, Russia

Post Reply with quote
Yes, function return rating or check cookies.



In show.news.php first line (after foreach) $tpl['post'] = $row.

I mean $row['rating'] = $tpl['post']['rating'] Smile



Maybe not work in you browser?
Wed Jul 26, 2006 11:24 pm View user's profile Send private message Visit poster's website ICQ Number
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
I tested it in IE and FF - nothing.



Then I put print_r($tpl); to the function in rating.php to check the $tpl variable. This is what I get:

Code:
Array ( [post] => Array ( [date] => 26 Jul 2006 [author] => FI-DD [title] => News2 [short_before_join_story] => 5 [full_before_join_story] => 4 [avatar] => [category] => Array ( [name] => [icon] => [id] => [description] => ) [url] => news2 [id] => 2 [views] => 6 [comments] => 2 [hidden] => [sticky] => [keywords] => Array ( [name] => hallo, test  [id] => 1, 2 ) [type] => [parent] => 0 [level] => 0 [password] => [rating] => [post_id] => 2 [short] => short story [full] => full story


So [rating] is empty. And where is [votes]? Confused



Well, I will test this tomorrow with MySQL so I can use phpmyadmin to check the tables.



Thanks and Good Night. Smile
Wed Jul 26, 2006 11:43 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
It worked from the start using MySQL.



So I guess it was a problem with the news table in the txtSQL database.
Thu Jul 27, 2006 9:58 am View user's profile Send private message
lexa
Creator of CuteNews.RU


Joined: 02 Oct 2005
Posts: 90
Location: St.-Petersburg, Russia

Post Reply with quote
You right, with txtSQL not work. Sux Sad.





I know why.



Open plugins/rating.php and find:

Code:
'values' => array('type' => 'int', 'default', 'default' => 0)


Change to:

Code:
'values' => array('type' => 'int', 'default' => 0)

Thu Jul 27, 2006 12:54 pm View user's profile Send private message Visit poster's website ICQ Number
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
With MySQL everything seems to be working perfectly for me. I'm actually translating it to english to make it easier for me to get around. I'm straight up editing files in inc/mod and the skins folder though.. mostly inc/mod though.. Is that going to take out all the Russian? Is there a better way of translating? It looks good for me but I worry that when people go to install it, it would be English only because of the way I'm doing it.

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Thu Jul 27, 2006 8:49 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
I don't really understand you. Most of the script is already in English. Only some plugins and some javascript needs to be translated.
Thu Jul 27, 2006 8:56 pm View user's profile Send private message
lexa
Creator of CuteNews.RU


Joined: 02 Oct 2005
Posts: 90
Location: St.-Petersburg, Russia

Post Reply with quote
Scott talk about text in code (in function t()). I think.
Thu Jul 27, 2006 9:01 pm View user's profile Send private message Visit poster's website ICQ Number
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
Oh, is 1.1.1 not translated yet? I have to use 1.0.1?

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Thu Jul 27, 2006 9:06 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
scottdallas wrote:
Oh, is 1.1.1 not translated yet? I have to use 1.0.1?


Yes, it is in English (mostly). That's why I wonder why you are going to translate it?
Thu Jul 27, 2006 9:11 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
Quote:
Yes, it is in English (mostly). That's why I wonder why you are going to translate it?




Haha cause I'm diligent and a moron! My brain is the size of a peanut. Leave me alone. I read Lexa's post to pick EN from the drop down and try 1.1.1 so I figured it would all pop up in English. I'll start with 1.0.1 and see what happens. My mistake Embarassed

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Thu Jul 27, 2006 9:13 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
I still don't get it. Smile



1.0.1 is an outdated version. Why don't you use the latest 1.1.1? It's in English.



Quote:
I read Lexa's post to pick EN from the drop down and try 1.1.1 so I figured it would all pop up in English.


That's what it did for me.
Thu Jul 27, 2006 9:19 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
http://strawberry.goodgirl.ru/files/strawberry_1.1.1.zip ????? maybe it's GoDaddy. It stays in Russian. I'll try it again.



Yeah it stays in Russian.. here I show you. Go here and watch what happens, just pick txtSQL. I was going to put mysql info up but I changed my mind. Unecessary.



http://www.googleremix.com/strawberry

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Thu Jul 27, 2006 9:23 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Wow, that's really strange. Shocked



I'm installing it on my webspace at the moment. I'll report back.



Edit:

It's working perfectly. Must be your server then. No idea why this is happening.
Thu Jul 27, 2006 9:40 pm View user's profile Send private message
lexa
Creator of CuteNews.RU


Joined: 02 Oct 2005
Posts: 90
Location: St.-Petersburg, Russia

Post Reply with quote
Try use this langpack.



Put to strawberry/lang/en
Thu Jul 27, 2006 9:49 pm View user's profile Send private message Visit poster's website ICQ Number
Display posts from previous:    
Reply to topic    Forum Index » Strawberry Feedback All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.