Pages: [1]
Author Topic: Top Rated Box Problem  (Read 1941 times)
Fernando Gomez
Guest


Email
on: May 19, 08, 04:34 PM

I have the option for "Date Added" and it wont show the newely added games in the box. What's the problem?

Also Sergey, How can i add the comment section on a custom page? Whats the code?
Logged
Administrator
Sr. Member
*

Karma: 7
Posts: 486


Email
Reply #1 on: May 19, 08, 10:10 PM

You should modify the config.php file:
find the line:
Code:
"date" => "added",
and replace it by this one:
Code:
"date" => "added DESC"
Logged
Fernando Gomez
Guest


Email
Reply #2 on: May 20, 08, 01:59 AM

and how do i add comment section to custom page? like add the code in the bottom of the html.
Logged
Administrator
Sr. Member
*

Karma: 7
Posts: 486


Email
Reply #3 on: May 20, 08, 02:30 AM

a custom plugin/pageblock is required, it shoud have its own table in the database, must handle the comments and associate them with certain pages... comments block from the gamepage will not work there because the comments it handles are associated with the games.

Thanks for the idea though, I'll consider its implementation after releasing the next version of the script.
Logged
fernando gomez
Guest


Email
Reply #4 on: May 20, 08, 10:31 PM

I did the edit you posted but it still doesnt show newest games.
Logged
Administrator
Sr. Member
*

Karma: 7
Posts: 486


Email
Reply #5 on: May 21, 08, 12:20 AM

in which block do you want to sort the games by date?
Logged
fernando gomez
Guest


Email
Reply #6 on: May 21, 08, 04:52 AM

top rated block
Logged
Administrator
Sr. Member
*

Karma: 7
Posts: 486


Email
Reply #7 on: May 21, 08, 12:48 PM

I see... it will always be sorted by rating, that's why its title is "top rated"... the "sorting" parameter does not matter here. But you can make a copy of that block (create an empty dynamic block, name it for example "RECENTGAMES", then copy-paste the code from the "top rated' block into the new one. And finally edit the new block's code a little bit: replace "ORDER BY rating" by "ORDER BY added".
Logged
Pages: [1]
 
Jump to: