11
brutalicuss
Re: Rating system in publisher module

ops :)

for
xoops_version.php

replace
$modversion['config'][] = array(
    
'name'        => 'format_order_by',
    
'title'       => '_MI_PUBLISHER_ORDERBY',
    
'description' => '_MI_PUBLISHER_ORDERBYDSC',
    
'formtype'    => 'select',
    
'valuetype'   => 'text',
    
'options'     => array(
        
_MI_PUBLISHER_ORDERBY_TITLE  => 'title',
        
_MI_PUBLISHER_ORDERBY_DATE   => 'date',
        
_MI_PUBLISHER_ORDERBY_WEIGHT => 'weight'),
    
'default'     => 'date',
    
'category'    => 'format'
);


with
$modversion['config'][] = array(
    
'name'        => 'format_order_by',
    
'title'       => '_MI_PUBLISHER_ORDERBY',
    
'description' => '_MI_PUBLISHER_ORDERBYDSC',
    
'formtype'    => 'select',
    
'valuetype'   => 'text',
    
'options'     => array(
        
_MI_PUBLISHER_ORDERBY_TITLE  => 'title',
        
_MI_PUBLISHER_ORDERBY_DATE   => 'date',
        
_MI_PUBLISHER_ORDERBY_RATING => 'rating',
        
_MI_PUBLISHER_ORDERBY_VOTES  => 'votes',
        
_MI_PUBLISHER_ORDERBY_COMMENTS  => 'comments',
        
_MI_PUBLISHER_ORDERBY_WEIGHT => 'weight'),
    
'default'     => 'date',
    
'category'    => 'format'
);



for older ver of publisher
include/functions.php

this:
function publisherGetOrderBy($sort)
must be:
function publisher_GetOrderBy($sort)

12
Mamba
Re: Rating system in publisher module
  • 2015/6/30 8:18

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Brutalicuss,

I've added your changes to the ones I've done earlier, and I have also added the new sorting to the "Admin Summary" View, so you can also sort now in the Admin view.

Check out the updated version on GitHub.

We need some testing done, so we can release it as final version

Can you help with that?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

13
brutalicuss
Re: Rating system in publisher module

Its fantastic :)

My project is still on localhost and I testing in old (my) publisher version and the new (master) both, and working fine. But I have also changes in .html (visualization)
Of course, I will test the new one also. First on localhost and than on web, and and will post here soon :)

10x Mamba :)

14
brutalicuss
Re: Rating system in publisher module

Everything working just perfect!

The only thing you must change:

in xoops_version.php
this line: _MI_PUBLISHER_ORDERBY_HITS => 'hits',
must be: _MI_PUBLISHER_ORDERBY_HITS => 'counter',

thats all

10x again Mamba, now its much better, im sure that the users will like it :))


ps: If you want you can change block name from "recent item list" to some other like "sorting item list" in exmp

15
Mamba
Re: Rating system in publisher module
  • 2015/6/30 23:54

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
in xoops_version.php
this line: _MI_PUBLISHER_ORDERBY_HITS => 'hits',
must be: _MI_PUBLISHER_ORDERBY_HITS => 'counter',

It's done! Thanks.

Please keep testing....

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

16
brutalicuss
Re: Rating system in publisher module

Sorting system working fine without bugs :)

Mamba, to not start new topic, I want to ask you for problem with "date to date" block. When I trying to edit in admin panel I had blank page. This happens in all publisher versions I have

Other thing (but not very important) - I cant set cyrillic characters for pdf - for tcpdf. I tried everything, other fonts, ignore page format, call MB and etc..

10x

Login

Who's Online

232 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits