![]() ![]() |
Jan 10 2014, 07:22 AM
Post
#121
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
Sean, component is tested and work perfect with based templates, included in clear joomla install. Try to switch to other template and post here result.
-------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
Jan 11 2014, 12:41 AM
Post
#122
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 10-January 14 Member No.: 1,943 |
Same problem when I switch to another default joomla template.
When I click on Single Sport Event, it gives this error; #1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `c`.`state`' at line 1 SQL=SELECT `gtc`.`game_id`, `gtc`.`categories_id`, `c`.`name` FROM `jos_sportspredictions_game_to_categories` `gtc` LEFT JOIN `jos_sportspredictions_categories` `c` ON `gtc`.`categories_id`=`c`.`id` WHERE `gtc`.`game_id`= AND `c`.`state`; also, when I click on User Standings, it's a blank page. When I go to Predictions, there is no where to save my Predictions. Please help, or send a refund. |
|
|
|
Jan 11 2014, 01:47 PM
Post
#123
|
|
|
Newbie ![]() Group: Advanced Member Posts: 46 Joined: 14-July 12 Member No.: 1,272 |
hello, can you tell me were to go to translate months that show up on front end? and also i want to ask, if when game is predicted as a draw (X) and it ends up as a draw, does the formula count it as winner predicted correctly? sorry for double post but for some reason forum keeps logging me out so i cannot edit |
|
|
|
Jan 12 2014, 07:35 AM
Post
#124
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
Цитат #1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `c`.`state`' at line 1 SQL=SELECT `gtc`.`game_id`, `gtc`.`categories_id`, `c`.`name` FROM `jos_sportspredictions_game_to_categories` `gtc` LEFT JOIN `jos_sportspredictions_categories` `c` ON `gtc`.`categories_id`=`c`.`id` WHERE `gtc`.`game_id`= AND `c`.`state`; Sean, is this with new install or with upgrade? Is installed the right version? Versions for joomla 2.5 and Joomla 3 are different. As written in our Support TOS, we don't have technical support in non business days. -------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
Jan 12 2014, 10:30 AM
Post
#125
|
|
|
Newbie ![]() Group: Advanced Member Posts: 46 Joined: 14-July 12 Member No.: 1,272 |
ok big problem
i created one tournament then i created a second and unpublished first tournament, but pagination still there, and when visitor clicks on second page, it gets this error 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND `state`' at line 1 SQL=SELECT * FROM `btg0l_sportspredictions_predictions` `b` WHERE `game_id` IN() AND `state`; and then component wont work at all it will stay on error even if you refresh problem solved when i publish tournament what am i doing wrong? EDIT - ok so basically if i disable games/tournament, pagination does not go away, and when visitor goes on to second page, it either shows blank or causes the above error. and then it stays stuck there, even if user refreshes or leaves and comes back, he keeps going straight to error/blank page This post has been edited by michalis: Jan 12 2014, 02:13 PM |
|
|
|
Jan 13 2014, 12:49 AM
Post
#126
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 10-January 14 Member No.: 1,943 |
Yes, I did use Joomla 3 components from your zip file download. This seems to produce the results I've shown you.
It's also a full install, fresh. This post has been edited by Sean: Jan 13 2014, 12:50 AM |
|
|
|
Jan 13 2014, 07:46 AM
Post
#127
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
Is all steps from install guide done?
Цитат Configuration: 7. Form top menu navigate to "Components -> Sportspredictions" 8. From left side menu select "Teams" 9. Create at least two teams 10. Go to "Tournaments" 11. Create at least one tournament 12. Go to "Sport Events" 13. Create at least one 14. Create menu items for front - end 15. Optionally configure component by choosing from component top menu "Options" Read more: https://3dwebdesign.org/forum/sports-predic...for-joomla-t996 -------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
Jan 13 2014, 12:27 PM
Post
#128
|
|
|
Newbie ![]() Group: Advanced Member Posts: 46 Joined: 14-July 12 Member No.: 1,272 |
ok big problem i created one tournament then i created a second and unpublished first tournament, but pagination still there, and when visitor clicks on second page, it gets this error 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND `state`' at line 1 SQL=SELECT * FROM `btg0l_sportspredictions_predictions` `b` WHERE `game_id` IN() AND `state`; and then component wont work at all it will stay on error even if you refresh problem solved when i publish tournament what am i doing wrong? EDIT - ok so basically if i disable games/tournament, pagination does not go away, and when visitor goes on to second page, it either shows blank or causes the above error. and then it stays stuck there, even if user refreshes or leaves and comes back, he keeps going straight to error/blank page anything? |
|
|
|
Jan 13 2014, 01:34 PM
Post
#129
|
|
|
Php programmer ![]() ![]() ![]() ![]() Group: Administrators Posts: 285 Joined: 26-November 12 From: Bulgaria Member No.: 1,452 |
anything? I've send you personal message with details what i need in order to resolve this issue. -------------------- Php programmer in 3D Web Design
|
|
|
|
Jan 14 2014, 08:16 PM
Post
#130
|
|
|
Newbie ![]() Group: Advanced Member Posts: 46 Joined: 14-July 12 Member No.: 1,272 |
|
|
|
|
Jan 19 2014, 08:33 PM
Post
#131
|
|
|
Newbie ![]() Group: Members Posts: 5 Joined: 5-January 14 Member No.: 1,937 |
Hi,
is there some way to get months/days to be visible on my own language? I changed all of them on language file but the one that is on the settings (Datetimeformat in front-end) doesnt allow local format (ie. %A %e %B %Y) |
|
|
|
Jan 20 2014, 07:45 AM
Post
#132
|
|
|
Php programmer ![]() ![]() ![]() ![]() Group: Administrators Posts: 285 Joined: 26-November 12 From: Bulgaria Member No.: 1,452 |
In the component is used "date" function: http://bg2.php.net/manual/en/function.date.php
If you with to use "strftime" then your hosting should allow use of "setlocale". setlocale still causes problems on lots of hosting environments and because of this reason is not used. -------------------- Php programmer in 3D Web Design
|
|
|
|
Jan 21 2014, 10:08 AM
Post
#133
|
|
|
Php programmer ![]() ![]() ![]() ![]() Group: Administrators Posts: 285 Joined: 26-November 12 From: Bulgaria Member No.: 1,452 |
I have found bug in Sports Predictions for joomla 3.x (Thanks to @michalis!)
It is fixed and package is available for download! Problem was that when you un-publish category all assigned games to it will be counted as published in front-end when they should not. Now game is considered published when is assigned to at least one published category. To fix this manually follow this steps: 1. Open "components/com_sportsprediction/models/predictions.php" 2. Find around line 124 Код // Join over the created by field 'created_by' $query -> select('created_by.name AS created_by'); $query -> join('LEFT', '#__users AS created_by ON created_by.id = a.created_by'); Replace it with Код // Join over the created by field 'created_by' $query -> select('created_by.name AS created_by'); $query -> join('LEFT', '#__users AS created_by ON created_by.id = a.created_by'); //Join categories status $query -> select('(SELECT SUM(`cats`.`state`) FROM `#__sportspredictions_game_to_categories` AS `g2c` LEFT JOIN `#__sportspredictions_categories` `cats` ON `g2c`.`categories_id`=`cats`.`id` WHERE `a`.id=`g2c`.game_id) AS `category_state`'); //Filter only games assigned to at least one published category $query -> having('`category_state` > 0'); 3. Find around line 193 Код //Select only not completed games $query -> where("a.h_teams_score < 0"); $query -> where("a.g_teams_score < 0"); replace it with Код //Select only not completed games
$query -> where("a.h_teams_score < 0"); $query -> where("a.g_teams_score < 0"); //Only published games $query -> where("a.state > 0"); -------------------- Php programmer in 3D Web Design
|
|
|
|
Jan 22 2014, 05:20 PM
Post
#134
|
|
|
Newbie ![]() Group: Advanced Member Posts: 46 Joined: 14-July 12 Member No.: 1,272 |
pavel thank you for working quickly to fix the bug
great guy |
|
|
|
Jan 23 2014, 07:36 AM
Post
#135
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
michalis, if you like our extension, please, vote for Sports Predictions in JED
-------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
Jan 23 2014, 08:29 PM
Post
#136
|
|
|
Newbie ![]() Group: Advanced Member Posts: 46 Joined: 14-July 12 Member No.: 1,272 |
michalis, if you like our extension, please, vote for Sports Predictions in JED done! can you clarify something for me? the person with the lowest score is the winner right? what happens if someone signs up in the middle of a tournament? or if someone leaves a few predictions behind? does he collect less points and have a higher chance of winning? |
|
|
|
Jan 24 2014, 08:36 AM
Post
#137
|
|
|
Php programmer ![]() ![]() ![]() ![]() Group: Administrators Posts: 285 Joined: 26-November 12 From: Bulgaria Member No.: 1,452 |
can you clarify something for me? the person with the lowest score is the winner right? what happens if someone signs up in the middle of a tournament? or if someone leaves a few predictions behind? does he collect less points and have a higher chance of winning? - person with the lowest score is the winner - does he collect less points and have a higher chance of winning There is no defined winner! Lower score is for accuracy calculation for each game. PREF rating(proportional reduction in error formula) is calculated: PREF_rating = (1 - wins_percent) * accuracy In standings view you can sort users by any criteria or combination of them. For example if you sort users by "games played" bigger to smaller and PREF_rating smaller to bigger then you will find user who is played many as possible games with most accurate predictions. (Hold control key while sorting by second or above column) You can choose winner by different criteria! Default sorting is by pref_rating lower to bigger. You can create different standings pages by modifying url parameters of page: Example: Код podosfairaki.com/index.php?option=com_sportspredictions&view=standings&sp_sort_cols[0][sortcol]=games_played&sp_sort_cols[0][sortdir]=DESC&sp_sort_cols[1][sortcol]=pref_rating&sp_sort_cols[1][sortdir]=ASC "sp_sort_cols" parameter holds sorting information sp_sort_cols[0][sortcol]=games_played sp_sort_cols[0][sortdir]=DESC sp_sort_cols[1][sortcol]=pref_rating sp_sort_cols[1][sortdir]=ASC ..... available sort cols are: 'username', 'pref_rating', 'avg_error', 'tot_error', 'wins_percent', 'wins', 'losses', 'games_played' You can modify page defaults if you don't wist to use url parameters: 1. Open "/components/com_sportspredictions/models/standings.php" 2. Find around line 93 Код $default_sort_cols = array( array( "sortcol" => "pref_rating", "sortdir" => "ASC" ) ); 3. Replace above with Код $default_sort_cols = array(
array( "sortcol" => "games_played", "sortdir" => "DESC" ), array( "sortcol" => "pref_rating", "sortdir" => "ASC" ) ); -------------------- Php programmer in 3D Web Design
|
|
|
|
Jan 25 2014, 03:29 PM
Post
#138
|
|
|
Newbie ![]() Group: Members Posts: 5 Joined: 5-January 14 Member No.: 1,937 |
Hi,
I have made myself some modifications for Sports Predictions component but there is something I cant quite figure out. I would like to have all categories as invidual buttons/links instead of a selector menu. I'm trying to build a site with multiple sports, soccer, hockey, basketball etc and it would be nice to have some sort of filtering right on the front page. Is there an easy way to do it? |
|
|
|
Jan 27 2014, 08:20 AM
Post
#139
|
|
|
Php programmer ![]() ![]() ![]() ![]() Group: Administrators Posts: 285 Joined: 26-November 12 From: Bulgaria Member No.: 1,452 |
You can control categories filter by modifying URL parameters on the page.
Example: /index.php?option=com_sportspredictions&view=predictions&sp_cats[0]=2&sp_cats[1]=3 This will show only games from categories with id 2 and 3 Parameter responsible for categories selected is "sp_cats". sp_cats[0]=1 sp_cats[1]=5 sp_cats[2]=11 -------------------- Php programmer in 3D Web Design
|
|
|
|
Jan 27 2014, 08:46 AM
Post
#140
|
|
|
Newbie ![]() Group: Members Posts: 5 Joined: 5-January 14 Member No.: 1,937 |
You can control categories filter by modifying URL parameters on the page. Example: /index.php?option=com_sportspredictions&view=predictions&sp_cats[0]=2&sp_cats[1]=3 This will show only games from categories with id 2 and 3 Parameter responsible for categories selected is "sp_cats". sp_cats[0]=1 sp_cats[1]=5 sp_cats[2]=11 Thanks I'll try with this! Very helpful |
|
|
|
![]() ![]() |
Similar Topics
| Topic | Replies | Topic Starter | Views | Last Action | |
|---|---|---|---|---|---|
![]() |
Pinned: Joomla Scraper Can Grab Any Content From Any Website |
86 | Web Design Seo | 590,852 | 8th September 2021 - 07:02 AM Last post by: Web Design Seo |
![]() |
Pinned: list with new Joomla exploits |
20 | Web Design Seo | 385,815 | 26th September 2018 - 05:07 AM Last post by: Web Design Seo |
![]() |
Pinned: Joomla Pagination Seo Plugin SEO plugin for Joomla Pagination that work in all Joomla |
61 | Web Design Seo | 463,892 | 13th March 2018 - 10:05 AM Last post by: mxcpz |
![]() |
Pinned: Joomla Scraper Going Open Source No licenses, use scraper on unlimited number of web sites |
0 | Web Design Seo | 352,558 | 8th March 2017 - 07:40 AM Last post by: Web Design Seo |
![]() |
Joomla Ден 2016 Joomla Day 2016 |
1 | Web Design Seo | 310,694 | 31st October 2016 - 10:11 AM Last post by: Web Design Seo |
![]() |
Joomla Post By Email To K2 Extra Fields | 1 | uglykidjoe | 236,947 | 11th February 2016 - 07:45 AM Last post by: Web Design Seo |
![]() |
Pinned: Joomla Scraper Integration With K2 better integration of Joomla Scraper and K2 |
8 | Web Design Seo | 272,126 | 2nd January 2016 - 09:07 AM Last post by: b_goranov |
![]() |
Joomla Scraper Not Working | 2 | Jan Hädicke | 255,991 | 11th November 2015 - 02:05 PM Last post by: Web Design Seo |
![]() |
Sports Predictions Scoring method used? |
3 | Stef | 40,268 | 15th June 2015 - 07:54 AM Last post by: Web Design Seo |
![]() |
Sports Prediction: Remove The Host And Guest i need a little assistance |
0 | eric258 | 35,028 | 5th June 2015 - 05:16 PM Last post by: eric258 |
|
Lo-Fi Version | Time is now: 1st June 2026 - 09:35 PM |