PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   vBGallery Suggestions (http://www.photopost.com/forum/vbgallery-suggestions/)
-   -   Display order (http://www.photopost.com/forum/vbgallery-suggestions/122187-display-order.html)

mhc1576 January 12th, 2006 04:08 PM

Display order
 
Sometimes it would be handy to be able to set display order for pictures.
Creating a slideshow after the pictures is uploaded and get them in the sequence you want involves a bit of extra work.
Also setting default sort order for each Category would be handy.

Regs

Charles_1 March 18th, 2010 01:26 AM

Quote:

Originally Posted by mhc1576 (Post 1144316)
Also setting default sort order for each Category would be handy.

Yes, it would be really useful. I just wanted to set default sorting by rating in one category with images from contest (every image has rating from the same number of voters - our jury) and when I go to edit category in admincp, I see that there is no option for this :-(.

I did my search here and find no solution so far. I am just only aware, that this is standard function in actual version of Photopost Pro which I really don't want to use (I choose vBGallery thanks to its tight integration with vBulletin).

Chuck (or someone else), please, can you at least write me what I need to put in browseimages.php to make it work (order by rating) as a condition only for categories which I can define? I know how to change order to random - using this:
Code:

Content visible to verified customers only.
But sorting by rating is not that straightforwarded as I can tell so far.

Luciano March 18th, 2010 04:00 PM

well i thought that was integrated in browseimages....
at the bottom of a browseimage page you have:
display options where you can sort by rating...

it adds '&orderby=rating&direction=DESC' to the query string...

this meens that you just have to add
$orderby = 'rating';
$direction = 'DESC';

in the code...

add it after the vars are cleaned..

after:

$postid = $vbulletin->input->clean_gpc('r', 'postid', TYPE_NOHTML);

that should work..

luc

Charles_1 March 19th, 2010 07:00 AM

Great, it works. Thank you Luciano :-).


All times are GMT -5. The time now is 10:49 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97